From 6ecf71f546576564fe79c33ebd3f42bed9667e29 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Tue, 2 Feb 2016 09:46:45 +0100 Subject: [PATCH 01/54] Fix #577 All credit go to @nickdeis --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 9adab58740..fb0a0cdc05 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -29,7 +29,7 @@ var execSync = require('child_process').execSync; // Identify name of the build var packageData = JSON.parse(fs.readFileSync('package.json', 'utf8')) var version = packageData.version; -var branch = execSync('git --work-tree=' + __dirname +' --git-dir=' + __dirname + '/.git branch', {encoding:'utf8'}) +var branch = execSync('git --work-tree="' + __dirname +'" --git-dir="' + __dirname + '/.git" branch', {encoding:'utf8'}) .match(/^\*\s+(.*)/m)[1] .trim() var commits = parseInt(execSync('git rev-list HEAD --count', {encoding:'utf8'})) | 0; From 5fcb32c9970bc0ffdc74a80eacf177b06e07a994 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Tue, 2 Feb 2016 10:05:51 +0100 Subject: [PATCH 02/54] Skip test with problem https://github.com/agershun/alasql/commit/1168027dfd50fd870884649da20a383eadb2bb6d#commitcomment-15821831 --- test/test430.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test430.js b/test/test430.js index 3ac2c94571..80f81a7aa6 100644 --- a/test/test430.js +++ b/test/test430.js @@ -7,7 +7,7 @@ if(typeof exports === 'object') { // Test for issue #566 var test = 430; -describe('Test '+test+' UNIQUE keyword in localStorage', function() { +describe.skip('Test '+test+' UNIQUE keyword in localStorage', function() { before(function() { alasql('CREATE localStorage DATABASE test'+test+'g1; ATTACH localStorage DATABASE test'+test+'g1 as test'+test+'g1'); From 2ffb642deb527bbd4ed511244517886746231bff Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Tue, 2 Feb 2016 10:12:11 +0100 Subject: [PATCH 03/54] Reset content of test helper file https://github.com/agershun/alasql/commit/1168027dfd50fd870884649da20a383eadb2bb6d#commitcomment-15821831 --- test/test429.json | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/test/test429.json b/test/test429.json index 65d69d0ddb..7171bd0597 100644 --- a/test/test429.json +++ b/test/test429.json @@ -1,14 +1,3 @@ { - "alasql": "{\"databases\":{\"test267\":true,\"Atlas\":true,\"test\":true,\"ls429\":true,\"test430g1\":true,\"ls379\":true}}", - "test267": "{\"databaseid\":\"test267\",\"tables\":{\"test\":true}}", - "test267.test": "{\"columns\":[],\"data\":[],\"identities\":{}}", - "Atlas": "{\"databaseid\":\"Atlas\",\"tables\":{\"transactions\":true}}", - "Atlas.transactions": "{\"columns\":[{\"columnid\":\"transid\",\"dbtypeid\":\"\"},{\"columnid\":\"payee\",\"dbtypeid\":\"\"},{\"columnid\":\"amount\",\"dbtypeid\":\"\"}],\"data\":[],\"identities\":{}}", - "test": "{\"databaseid\":\"test\",\"tables\":{\"one\":true}}", - "test.one": "{\"columns\":[{\"columnid\":\"a\",\"dbtypeid\":\"INT\",\"identity\":{\"value\":1,\"step\":1}},{\"columnid\":\"b\",\"dbtypeid\":\"STRING\"}],\"data\":[{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"},{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"},{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"},{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"}],\"identities\":{\"a\":{\"value\":1,\"step\":1}}}", - "ls429": "{\"databaseid\":\"ls429\",\"tables\":{\"one\":true}}", - "ls429.one": "{\"columns\":[{\"columnid\":\"str\",\"dbtypeid\":\"STRING\"}],\"data\":[[\"a\"],[\"a\"],[\"a\"],[\"a\"],[\"a\"],[\"a\"],{\"str\":\"b\"}],\"identities\":{}}", - "test430g1": "{\"databaseid\":\"test430g1\",\"tables\":{}}", - "ls379": "{\"databaseid\":\"ls379\",\"tables\":{\"one\":true}}", - "ls379.one": "{\"columns\":[{\"columnid\":\"a\",\"dbtypeid\":\"INT\"},{\"columnid\":\"b\",\"dbtypeid\":\"STRING\"}],\"data\":[],\"identities\":{}}" -} \ No newline at end of file + "alasql": "{\"databases\":{}}" +} From 88e5c43207c5ad7940b3ad1438e6aded2e33d934 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Tue, 2 Feb 2016 10:17:07 +0100 Subject: [PATCH 04/54] Skip test with problem https://github.com/agershun/alasql/commit/1168027dfd50fd870884649da20a383eadb2bb6d#commitcomment-15821831 --- test/test429.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test429.js b/test/test429.js index 78b4c7d5a4..2a0f96fbd0 100644 --- a/test/test429.js +++ b/test/test429.js @@ -5,7 +5,7 @@ if(typeof exports === 'object') { global.localStorage = new DOMStorage("./test429.json", { strict: false, ws: '' }); }; -describe('Test 429', function() { +describe.skip('Test 429', function() { it('Localstorage DELETE with WHERE clause', function(done){ alasql("SET AUTOCOMMIT ON") From 58b7b074745e7b53e273ea088f38bc576aaaaa08 Mon Sep 17 00:00:00 2001 From: Wisehorn Date: Tue, 2 Feb 2016 17:30:51 +0300 Subject: [PATCH 05/54] Fixed time conversion error --- src/59convert.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/59convert.js b/src/59convert.js index 5ae57a6c7b..ba019dd0fa 100755 --- a/src/59convert.js +++ b/src/59convert.js @@ -80,7 +80,7 @@ alasql.stdfn.CONVERT = function(value, args) { } else if(args.style == 7) { // Mon dd,yy val = t.toString().substr(4,3)+' '+("0"+t.getDate()).substr(-2)+','+("0"+t.getYear()).substr(-2); } else if(args.style == 8) { // hh:mm:ss - val = ("0"+t.getHours()).substr(-2)+':'+("0"+(t.getMinutes()+1)).substr(-2)+':'+("0"+t.getSeconds()).substr(-2); + val = ("0"+t.getHours()).substr(-2)+':'+("0"+(t.getMinutes())).substr(-2)+':'+("0"+t.getSeconds()).substr(-2); } else if(args.style == 10) { // mm-dd-yy val = ("0"+(t.getMonth()+1)).substr(-2)+'-'+("0"+t.getDate()).substr(-2)+'-'+("0"+t.getYear()).substr(-2); @@ -105,7 +105,7 @@ alasql.stdfn.CONVERT = function(value, args) { } else if(args.style == 107) { // Mon dd,yy val = t.toString().substr(4,3)+' '+("0"+t.getDate()).substr(-2)+','+t.getFullYear(); } else if(args.style == 108) { // hh:mm:ss - val = ("0"+t.getHours()).substr(-2)+':'+("0"+(t.getMinutes()+1)).substr(-2)+':'+("0"+t.getSeconds()).substr(-2); + val = ("0"+t.getHours()).substr(-2)+':'+("0"+(t.getMinutes())).substr(-2)+':'+("0"+t.getSeconds()).substr(-2); } else if(args.style == 110) { // mm-dd-yy val = ("0"+(t.getMonth()+1)).substr(-2)+'-'+("0"+t.getDate()).substr(-2)+'-'+t.getFullYear(); From 009e91723f6161dbe7bb08a2e607b2c4271bde74 Mon Sep 17 00:00:00 2001 From: Wisehorn Date: Wed, 3 Feb 2016 10:30:33 +0300 Subject: [PATCH 06/54] Test for time conversion fix --- test/test431.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/test431.js diff --git a/test/test431.js b/test/test431.js new file mode 100644 index 0000000000..7f92272a24 --- /dev/null +++ b/test/test431.js @@ -0,0 +1,17 @@ +if(typeof exports === 'object') { + var assert = require("assert"); + var alasql = require('..'); +} +describe('Test 431 error in 8 and 108 convert formats', function() { + + it('1. Should format time correctly', function(done) { + var date = new Date(2016, 0, 1, 0, 0, 0); + var correctTime = '00:00:00'; + var res = alasql('SELECT VALUE CONVERT(STRING, ?, 108)', [date]); + assert.equal(res, correctTime); + res = alasql('SELECT VALUE CONVERT(STRING, ?, 8)', [date]); + assert.equal(res, correctTime); + + done(); + }); +}); From 2687f3ac33d44abddf3df97efea93151fa17845d Mon Sep 17 00:00:00 2001 From: Nicholas Deis Date: Thu, 4 Feb 2016 01:44:43 -0500 Subject: [PATCH 07/54] 583: Added guides for Webpack and Browserify --- README.md | 122 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 74 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index b1283f1d44..9709b931ce 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -[![bitHound Score](https://www.bithound.io/github/agershun/alasql/badges/score.svg?123)](https://www.bithound.io/github/agershun/alasql) -[![Build status](https://api.travis-ci.org/agershun/alasql.svg)](https://travis-ci.org/agershun/alasql?123) -[![NPM downloads](http://img.shields.io/npm/dm/alasql.svg?style=flat&label=npm%20downloads)](https://npmjs.org/package/alasql?) -[![Inline docs](http://inch-ci.org/github/agershun/alasql.svg?branch=develop)](http://inch-ci.org/github/agershun/alasql) -![Stars](https://img.shields.io/github/stars/agershun/alasql.svg?label=Github%20%E2%98%85&a) -![Release](https://img.shields.io/github/release/agershun/alasql.svg?label=Last%20release&a) -![NPM version](https://img.shields.io/npm/l/alasql.svg?123) +[![bitHound Score](https://www.bithound.io/github/agershun/alasql/badges/score.svg?123)](https://www.bithound.io/github/agershun/alasql) +[![Build status](https://api.travis-ci.org/agershun/alasql.svg)](https://travis-ci.org/agershun/alasql?123) +[![NPM downloads](http://img.shields.io/npm/dm/alasql.svg?style=flat&label=npm%20downloads)](https://npmjs.org/package/alasql?) +[![Inline docs](http://inch-ci.org/github/agershun/alasql.svg?branch=develop)](http://inch-ci.org/github/agershun/alasql) +![Stars](https://img.shields.io/github/stars/agershun/alasql.svg?label=Github%20%E2%98%85&a) +![Release](https://img.shields.io/github/release/agershun/alasql.svg?label=Last%20release&a) +![NPM version](https://img.shields.io/npm/l/alasql.svg?123) _AlaSQL is an open source project and we appreciate any and all contributions we can get. Please help out._ @@ -26,9 +26,9 @@ The library is designed for: We focus on [speed](https://github.com/agershun/alasql/wiki/Speed) by taking advantage of the dynamic nature of javascript when building up queries. Real world solutions demands flexibility regarding where data comes from and where it is to be stored. We focus on flexibility by making sure you can [import/export](https://github.com/agershun/alasql/wiki/Import-export) and query directly on data stored in Excel (both `xls` and `.xlsx`), CSV, JSON, TAB, IndexedDB, LocalStorage, and SQLite files. -The library brings you the comfort of a full database engine to your javascript app. No, really - its working towards a full database engine complying with [most of SQL-99](https://github.com/agershun/alasql/wiki/Supported-SQL-statements) spiced up with additional syntax for handling noSQL (schema less) data and graph networks. +The library brings you the comfort of a full database engine to your javascript app. No, really - its working towards a full database engine complying with [most of SQL-99](https://github.com/agershun/alasql/wiki/Supported-SQL-statements) spiced up with additional syntax for handling noSQL (schema less) data and graph networks. + - ```js // A) Traditional SQL alasql("CREATE TABLE cities (city string, population number)"); @@ -39,7 +39,7 @@ var res = alasql("SELECT * FROM cities WHERE population < 3500000 ORDER BY popul console.log(res); -/* +/* [ { "city": "Madrid", @@ -54,7 +54,7 @@ console.log(res); "population": 2249975 } ] -*/ +*/ ``` ```js @@ -89,13 +89,13 @@ alasql.tables.example1.data = [ // Insert data directly from javas {a:3,b:4} ]; -alasql("INSERT INTO example1 VALUES (1,5)"); // ...or you insert data with normal SQL +alasql("INSERT INTO example1 VALUES (1,5)"); // ...or you insert data with normal SQL var res = alasql("SELECT * FROM example1 ORDER BY b DESC"); console.log(res); // [{a:2,b:6},{a:1,b:5},{a:3,b:4}] ``` - + jsFiddle with [example A)](http://jsfiddle.net/hguw3LLk/) and [example B)](http://jsfiddle.net/c1hbytf1/) ## Install @@ -111,13 +111,13 @@ npm install -g alasql # command line For the browser: include [alasql.min.js](http://cdn.jsdelivr.net/alasql/latest/alasql.min.js) ```html - + ``` ## Get started -The wiki has a great section on [how to get started](https://github.com/agershun/alasql/wiki/Getting%20started) +The wiki has a great section on [how to get started](https://github.com/agershun/alasql/wiki/Getting%20started) When you feel you got the grip you can check out the wiki section about [data manipulation](https://github.com/agershun/alasql/wiki/Data-manipulation) or getting inspired by the [list of Q&As](http://stackoverflow.com/questions/tagged/alasql) @@ -141,7 +141,7 @@ When you feel you got the grip you can check out the wiki section about [data ma ## Please note -**All contributions are much welcome and greatly appreciated(!)** - +**All contributions are much welcome and greatly appreciated(!)** - The project has never received any funding and is based on unpaid voluntary work: [We really (really) love pull requests](https://github.com/agershun/alasql/blob/develop/CONTRIBUTING.md) @@ -153,11 +153,11 @@ Please chekout the [limitations of the library](https://github.com/agershun/alas ## Peformance AlaSQL is very focused on speed and we make sure to use all the tricks we can find to make javascript spit out your results as quick as possible. For example: -* Queries are cached as compiled functions. +* Queries are cached as compiled functions. * Joined tables are pre-indexed * ```WHERE``` expressions are pre-filtered for joins -The results are good. Check out AlaSQL vs. other javaScript SQL databases: +The results are good. Check out AlaSQL vs. other javaScript SQL databases: * **3x speed** [compared to SQL.js](http://jsperf.com/sql-js-vs-alasql-js/11) selecting with `SUM`, `JOIN`, and `GROUP BY`. @@ -166,7 +166,7 @@ The results are good. Check out AlaSQL vs. other javaScript SQL databases: * **2x speed** [compared to Linq](http://jsperf.com/alasql-vs-linq-on-groupby/3) for `GROUP BY` on 1,048,576 rows -See more [speed related info on the wiki](https://github.com/agershun/alasql/wiki/Speed) +See more [speed related info on the wiki](https://github.com/agershun/alasql/wiki/Speed) @@ -204,7 +204,7 @@ See more [in the wiki](https://github.com/agershun/alasql/wiki/User-Defined-Func ### Compiled statements and functions ```js -var ins = alasql.compile('INSERT INTO one VALUES (?,?)'); +var ins = alasql.compile('INSERT INTO one VALUES (?,?)'); ins(1,10); ins(2,20); ``` @@ -221,7 +221,7 @@ var data = [{a:1,b:1,c:1},{a:1,b:2,c:1},{a:1,b:3,c:1}, {a:2,b:1,c:1}]; var res = alasql('SELECT a, COUNT(*) AS b FROM ? GROUP BY a',[data]); console.log(res); ``` -See more ideas of creative datamanipulation [in the wiki](https://github.com/agershun/alasql/wiki/Getting-started) +See more ideas of creative datamanipulation [in the wiki](https://github.com/agershun/alasql/wiki/Getting-started) @@ -240,7 +240,7 @@ After globally installing AlaSQL `npm install alasql -g` you can access AlaSQL v > alasql "VALUE OF SELECT COUNT(*) as abc FROM TXT('README.md') WHERE LENGTH([0]) > ?" 140 // Number of lines with more than 140 characters in README.md -``` +``` See more [in the wiki](https://github.com/agershun/alasql/wiki/AlaSQL-CLI) @@ -257,18 +257,18 @@ AlaSQL plays nice with d3.js and gives you a convinient way to integrate a speci AlaSQL can export data to both [Excel 2003 (.xls)](https://github.com/agershun/alasql/wiki/XLS) and [Excel 2007 (.xlsx)](https://github.com/agershun/alasql/wiki/XLSX) with coloring of cells and other Excel formatting functions. -### AlaSQL ♥ Meteor +### AlaSQL ♥ Meteor Meteor is amazing. You can now query directly on your Meteor collections with SQL - simple and easy. See more about [Meteor and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Meteor) -### AlaSQL ♥ Angular.js +### AlaSQL ♥ Angular.js Angular is great. Besides using AlaSQL for normal data manipulation it works like a charm for exporting you present scope to Excel. See more about [Angular and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Angular.js) -### AlaSQL ♥ Google Maps +### AlaSQL ♥ Google Maps Pinpointing data on a map should be easy. AlaSQL is great to prepare source data for Google Maps from for example Excel or CSV making a one unif of work for fetching and identifying whats relevant. See more about [Google Maps and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) @@ -303,9 +303,9 @@ AlaSQL supports plugins. To install the plugin you need to use the `REQUIRE` sta -### Graphs +### Graphs -AlaSQL is a multi-paradigm database with support for graphs that can be searched or manipulated. +AlaSQL is a multi-paradigm database with support for graphs that can be searched or manipulated. ```js @@ -392,7 +392,7 @@ See more detailed [the example](http://alasql.org/demo/004sqlite/). ### ETL sample: CSV and IndexedDB database -Upload CSV file with headers to IndexedDB database, and then save only asian countries +Upload CSV file with headers to IndexedDB database, and then save only asian countries to Excel file: ```js alasql('ATTACH INDEXEDDB DATABASE geo; \ @@ -400,7 +400,7 @@ to Excel file: SELECT * INTO geo.country FROM CSV("country.csv",{headers:true}); \ SELECT * INTO XLSX("asia.xlsx") FROM geo.country WHERE continent_name = "Asia"'); ``` -See [the example](http://alasql.org/demo/001csv/). +See [the example](http://alasql.org/demo/001csv/). @@ -431,14 +431,14 @@ You can use browser localStorage and [DOM-storage](https://github.com/node-brows alasql('CREATE localStorage DATABASE IF NOT EXISTS Atlas'); alasql('ATTACH localStorage DATABASE Atlas AS MyAtlas'); alasql('CREATE TABLE IF NOT EXISTS MyAtlas.City (city string, population number)'); - alasql('SELECT * INTO MyAtlas.City FROM ?',[[{city:'Vienna', population:1731000}, + alasql('SELECT * INTO MyAtlas.City FROM ?',[[{city:'Vienna', population:1731000}, {city:'Budapest', population:1728000}]]); var res = alasql('SELECT * FROM MyAtlas.City'); console.log(res); ``` -Try this sample in [jsFiddle](http://jsfiddle.net/agershun/x1gq3wf2/). Run this sample -two or three times, and AlaSQL store more and more data in localStorage. Here, "Atlas" is +Try this sample in [jsFiddle](http://jsfiddle.net/agershun/x1gq3wf2/). Run this sample +two or three times, and AlaSQL store more and more data in localStorage. Here, "Atlas" is the name of localStorage database, where "MyAtlas" is a memory AlaSQL database. You can use localStorage in two modes: SET AUTOCOMMIT ON to immediate save data @@ -452,7 +452,7 @@ You can use files in these formats directly from AlaSQL (in sync and async modes var res1 = alasq("select * from txt('mytext.txt') where [0] like 'M%'"); var res2 = alasq("select * from tab('mydata.tab') order by [1]"); var res3 = alasq("select [3] as city,[4] as population from csv('cities.csv')"); - + alasq("select * from json('array.json')",[],function(res4){ console.log(res4) }); @@ -492,32 +492,58 @@ Try AlaSQL JSON objects in Console [sample](http://alasql.org/console?drop tabl Yes, you can even use AlaSQL as a very simple server for tests. -To run enter the command: +To run enter the command: ``` alaserver [port] ``` -then type in browser something like "http://127.0.0.1:1337/?SELECT VALUE 2*2" +then type in browser something like "http://127.0.0.1:1337/?SELECT VALUE 2*2" Warning: Alaserver is not multi-thread, not concurent, and not secured. -### Webpack +### Webpack and Browserify + +When targeting the browser, several code bundlers like Webpack and Browserify will pick up modules you might not want. + +Here's a list of modules that alasql requires +* fs +* cptable +* jszip +* xlsx +* xls +* cpexcel +* path +* es6-promise -To use alasql with webpack, get [script-loader](https://github.com/webpack/script-loader). +#### Webpack + +Use the built-in IgnorePlugin -Then: ```js -require("script!alasql"); +var IgnorePlugin = require("webpack").IgnorePlugin; + +module.exports = { + ... + //Will ignore the modules fs, path, xlsx, xls + plugins:[new IgnorePlugin(/(^fs$|xlsx|xls|^path$)/)] +}; ``` -Warning: This is a bad idea if you are using babel-loader +#### Browserify + +Read up on [excluding](https://github.com/substack/browserify-handbook#excluding), [ignoring](https://github.com/substack/browserify-handbook#ignoring), and [shimming](https://github.com/substack/browserify-handbook#shimming) + +Example (using excluding) + ```js -import alasql from "script!alasql"; +var browserify = require("browserify"); +var b = browserify("./main.js").bundle(); +//Will ignore the modules fs, path, xlsx, xls +["fs","path","xlsx","xls"].map(ignore => b.ignore(ignore)); ``` -as script-loader does not return the global instance of alasql. -### Miss a feature? +### Miss a feature? Take charge and [add your idea](http://feathub.com/agershun/alasql/features/new) or [vote on your favorite feature](http://feathub.com/agershun/alasql) to be implemented: [![Feature Requests](http://feathub.com/agershun/alasql?format=svg)](http://feathub.com/agershun/alasql) @@ -531,14 +557,14 @@ Please be aware that AlaSQL ~~may~~ have [bugs](https://github.com/agershun/alas 0. AlaSQL has a (long) list of keywords that must be escaped if used for column names. When selecting a field named `key` please write ``` SELECT `key` FROM ... ``` instead. This is also the case for words like ``` `value` ```, ``` `read` ```, ``` `count` ```, ``` `by` ```, ``` `top` ```, ``` `path` ```, ``` `deleted` ```, ``` `work` ``` and ``` `offset` ```. Please consult the [full list of keywords](https://github.com/agershun/alasql/wiki/AlaSQL-Keywords). -0. It is Ok with select for 1000000 records or to join two tables by 10000 records in each (You can use streamming functions to work with longer datasources - see [test/test143.js](test/test143.js)) but be aware that the workload is multiplied so selecting from more than 8 tables with just 100 rows in each will show bad performance. This is one of our top priorities to make better. +0. It is Ok with select for 1000000 records or to join two tables by 10000 records in each (You can use streamming functions to work with longer datasources - see [test/test143.js](test/test143.js)) but be aware that the workload is multiplied so selecting from more than 8 tables with just 100 rows in each will show bad performance. This is one of our top priorities to make better. 0. Limited functionality for transactions (supports only for localStorage) - Sorry, transactions are limited, because AlaSQL started to use more complex approach for PRIMARY KEYS / FOREIGN KEYS. Transactions will be fully turned on again in future version. 0. A `(FULL) OUTER JOIN` and `RIGHT JOIM` on more than 2 tables will not give the expected results. `INNER JOIN` and `LEFT JOIN` are ok. Probably, there are many of others. Please, help us to fix them by [submitting it as an issue](https://github.com/agershun/alasql/issues). Thank you! - + @@ -594,15 +620,15 @@ MIT - see [MIT licence information](LICENSE) ## Credits -Many thanks to Zach Carter for [Jison](http://zaach.github.io/jison/) parser generator, to the author of FileSaver.js, Andrew Kent for his [SQL Parser](https://github.com/forward/sql-parser), +Many thanks to Zach Carter for [Jison](http://zaach.github.io/jison/) parser generator, to the author of FileSaver.js, Andrew Kent for his [SQL Parser](https://github.com/forward/sql-parser), authors of [XLSX](https://github.com/SheetJS/js-xlsx) library, and other people for useful tools, which make our work much easier. ### Related projects that have inspired us -* [AlaX](http://github.com/agershun/alax) - Export to Excel with colors and formats +* [AlaX](http://github.com/agershun/alax) - Export to Excel with colors and formats * [WebSQLShim](http://github.com/agershun/WebSQLShim) - WebSQL shim over IndexedDB (work in progress) -* [AlaMDX](http://github.com/agershun/alamdx) - JavaScript MDX OLAP library (work in progresss) +* [AlaMDX](http://github.com/agershun/alamdx) - JavaScript MDX OLAP library (work in progresss) * [Other similar projects](http://github.com/agershun/alasql/wiki/Similar-Projects.md) - list of databases on JavaScript [![ghit.me](https://ghit.me/badge.svg?repo=agershun/alasql)](https://ghit.me/repo/agershun/alasql) From c680497457cf7ed0d2f9f71448ea7ec895b65eac Mon Sep 17 00:00:00 2001 From: Nicholas Deis Date: Thu, 4 Feb 2016 02:05:58 -0500 Subject: [PATCH 08/54] Just adding getGlobal for now --- src/15utility.js | 128 +++++++++++++++++++++++++-------------------- src/18promise.js | 10 ++-- src/833xlsx.js | 32 ++++++------ src/84from.js | 12 ++--- src/91indexeddb.js | 86 ++++++++++++++++-------------- 5 files changed, 148 insertions(+), 120 deletions(-) diff --git a/src/15utility.js b/src/15utility.js index 8cf30ada99..803e4844f8 100755 --- a/src/15utility.js +++ b/src/15utility.js @@ -19,7 +19,7 @@ var utils = alasql.utils = {}; @return {string} Covered expression @example - + 123 => 123 undefined => undefined NaN => undefined @@ -35,12 +35,12 @@ function n2u(s) { @return {string} Covered expression @example - + 123,a => a undefined,a => undefined NaN,a => undefined -*/ +*/ function und(s,r) { return '(y='+s+',typeof y=="undefined"?undefined:'+r+')'; } @@ -66,7 +66,7 @@ function returnUndefined() {} @param {string} s Source string @return {string} Escaped string @example - + Piter's => Piter\'s */ @@ -82,7 +82,7 @@ var escapeq = utils.escapeq = function(s) { @return {string} Escaped string @example - + Piter's => Piter''s */ @@ -110,7 +110,7 @@ var doubleq = utils.doubleq = function(s) { @return {string} Replaced string @todo Chack this functions - + */ var doubleqq = utils.doubleqq = function(s) { return s.replace(/\'/g,"\'"); @@ -119,7 +119,7 @@ var doubleq = utils.doubleq = function(s) { /** Cut BOM first character for UTF-8 files (for merging two files) @param {string} s Source string - @return {string} Replaced string + @return {string} Replaced string */ var cutbom = function(s) { @@ -129,6 +129,22 @@ var cutbom = function(s) { return s; } +/** + Gets the global object + @return {object} The global object +**/ +utils.getGlobal = function getGlobal(){ + try { + //This will always return the global objects + return Function('return this')(); + }catch(e){ + //unless Content Security Policy is enabled, in which case we do our best + var global = self || window || global; + if(global) return global; + else throw new Error('unable to locate global object'); + } +} + /** Load text file from anywhere @param {string|object} path File path or HTML event @@ -143,7 +159,7 @@ var loadFile = utils.loadFile = function(path, asy, success, error) { var data, fs; if((typeof exports === 'object') || (typeof Meteor !== 'undefined' && Meteor.isServer)) { - + if(typeof Meteor !== 'undefined') { /** For Meteor */ fs = Npm.require('fs'); @@ -173,7 +189,7 @@ var loadFile = utils.loadFile = function(path, asy, success, error) { if(err) { throw err; } - success(cutbom(body.toString())); + success(cutbom(body.toString())); }); } else { /* If async callthen call async*/ @@ -193,7 +209,7 @@ var loadFile = utils.loadFile = function(path, asy, success, error) { } } else if(typeof cordova === 'object') { /* If Cordova */ - window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { + utils.getGlobal().requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:false}, function (fileEntry) { fileEntry.file(function(file){ var fileReader = new FileReader(); @@ -228,20 +244,20 @@ var loadFile = utils.loadFile = function(path, asy, success, error) { reader.readAsText(file); }); }); - }); + }); */ } else { /* For string */ if(typeof path === "string") { // For browser read from tag /* - SELECT * FROM TXT('#one') -- read data from HTML element with id="one" + SELECT * FROM TXT('#one') -- read data from HTML element with id="one" */ if((path.substr(0,1) === '#') && (typeof document !== 'undefined')) { data = document.querySelector(path).textContent; success(data); } else { - /* + /* Simply read file from HTTP request, like: SELECT * FROM TXT('http://alasql.org/README.md'); */ @@ -256,7 +272,7 @@ var loadFile = utils.loadFile = function(path, asy, success, error) { error(xhr); } // Todo: else...? - + } }; xhr.open("GET", path, asy); // Async @@ -264,7 +280,7 @@ var loadFile = utils.loadFile = function(path, asy, success, error) { xhr.send(); } } else if(path instanceof Event) { - /* + /* For browser read from files input element + ``` ## Get started -The wiki has a great section on [how to get started](https://github.com/agershun/alasql/wiki/Getting%20started) +The wiki has a great section on [how to get started](https://github.com/agershun/alasql/wiki/Getting%20started) When you feel you got the grip you can check out the wiki section about [data manipulation](https://github.com/agershun/alasql/wiki/Data-manipulation) or getting inspired by the [list of Q&As](http://stackoverflow.com/questions/tagged/alasql) @@ -141,7 +141,7 @@ When you feel you got the grip you can check out the wiki section about [data ma ## Please note -**All contributions are much welcome and greatly appreciated(!)** - +**All contributions are much welcome and greatly appreciated(!)** - The project has never received any funding and is based on unpaid voluntary work: [We really (really) love pull requests](https://github.com/agershun/alasql/blob/develop/CONTRIBUTING.md) @@ -153,11 +153,11 @@ Please chekout the [limitations of the library](https://github.com/agershun/alas ## Peformance AlaSQL is very focused on speed and we make sure to use all the tricks we can find to make javascript spit out your results as quick as possible. For example: -* Queries are cached as compiled functions. +* Queries are cached as compiled functions. * Joined tables are pre-indexed * ```WHERE``` expressions are pre-filtered for joins -The results are good. Check out AlaSQL vs. other javaScript SQL databases: +The results are good. Check out AlaSQL vs. other javaScript SQL databases: * **3x speed** [compared to SQL.js](http://jsperf.com/sql-js-vs-alasql-js/11) selecting with `SUM`, `JOIN`, and `GROUP BY`. @@ -166,7 +166,7 @@ The results are good. Check out AlaSQL vs. other javaScript SQL databases: * **2x speed** [compared to Linq](http://jsperf.com/alasql-vs-linq-on-groupby/3) for `GROUP BY` on 1,048,576 rows -See more [speed related info on the wiki](https://github.com/agershun/alasql/wiki/Speed) +See more [speed related info on the wiki](https://github.com/agershun/alasql/wiki/Speed) @@ -204,7 +204,7 @@ See more [in the wiki](https://github.com/agershun/alasql/wiki/User-Defined-Func ### Compiled statements and functions ```js -var ins = alasql.compile('INSERT INTO one VALUES (?,?)'); +var ins = alasql.compile('INSERT INTO one VALUES (?,?)'); ins(1,10); ins(2,20); ``` @@ -221,7 +221,7 @@ var data = [{a:1,b:1,c:1},{a:1,b:2,c:1},{a:1,b:3,c:1}, {a:2,b:1,c:1}]; var res = alasql('SELECT a, COUNT(*) AS b FROM ? GROUP BY a',[data]); console.log(res); ``` -See more ideas of creative datamanipulation [in the wiki](https://github.com/agershun/alasql/wiki/Getting-started) +See more ideas of creative datamanipulation [in the wiki](https://github.com/agershun/alasql/wiki/Getting-started) @@ -240,7 +240,7 @@ After globally installing AlaSQL `npm install alasql -g` you can access AlaSQL v > alasql "VALUE OF SELECT COUNT(*) as abc FROM TXT('README.md') WHERE LENGTH([0]) > ?" 140 // Number of lines with more than 140 characters in README.md -``` +``` See more [in the wiki](https://github.com/agershun/alasql/wiki/AlaSQL-CLI) @@ -257,18 +257,18 @@ AlaSQL plays nice with d3.js and gives you a convinient way to integrate a speci AlaSQL can export data to both [Excel 2003 (.xls)](https://github.com/agershun/alasql/wiki/XLS) and [Excel 2007 (.xlsx)](https://github.com/agershun/alasql/wiki/XLSX) with coloring of cells and other Excel formatting functions. -### AlaSQL ♥ Meteor +### AlaSQL ♥ Meteor Meteor is amazing. You can now query directly on your Meteor collections with SQL - simple and easy. See more about [Meteor and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Meteor) -### AlaSQL ♥ Angular.js +### AlaSQL ♥ Angular.js Angular is great. Besides using AlaSQL for normal data manipulation it works like a charm for exporting you present scope to Excel. See more about [Angular and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Angular.js) -### AlaSQL ♥ Google Maps +### AlaSQL ♥ Google Maps Pinpointing data on a map should be easy. AlaSQL is great to prepare source data for Google Maps from for example Excel or CSV making a one unif of work for fetching and identifying whats relevant. See more about [Google Maps and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) @@ -303,9 +303,9 @@ AlaSQL supports plugins. To install the plugin you need to use the `REQUIRE` sta -### Graphs +### Graphs -AlaSQL is a multi-paradigm database with support for graphs that can be searched or manipulated. +AlaSQL is a multi-paradigm database with support for graphs that can be searched or manipulated. ```js @@ -392,7 +392,7 @@ See more detailed [the example](http://alasql.org/demo/004sqlite/). ### ETL sample: CSV and IndexedDB database -Upload CSV file with headers to IndexedDB database, and then save only asian countries +Upload CSV file with headers to IndexedDB database, and then save only asian countries to Excel file: ```js alasql('ATTACH INDEXEDDB DATABASE geo; \ @@ -400,7 +400,7 @@ to Excel file: SELECT * INTO geo.country FROM CSV("country.csv",{headers:true}); \ SELECT * INTO XLSX("asia.xlsx") FROM geo.country WHERE continent_name = "Asia"'); ``` -See [the example](http://alasql.org/demo/001csv/). +See [the example](http://alasql.org/demo/001csv/). @@ -431,14 +431,14 @@ You can use browser localStorage and [DOM-storage](https://github.com/node-brows alasql('CREATE localStorage DATABASE IF NOT EXISTS Atlas'); alasql('ATTACH localStorage DATABASE Atlas AS MyAtlas'); alasql('CREATE TABLE IF NOT EXISTS MyAtlas.City (city string, population number)'); - alasql('SELECT * INTO MyAtlas.City FROM ?',[[{city:'Vienna', population:1731000}, + alasql('SELECT * INTO MyAtlas.City FROM ?',[[{city:'Vienna', population:1731000}, {city:'Budapest', population:1728000}]]); var res = alasql('SELECT * FROM MyAtlas.City'); console.log(res); ``` -Try this sample in [jsFiddle](http://jsfiddle.net/agershun/x1gq3wf2/). Run this sample -two or three times, and AlaSQL store more and more data in localStorage. Here, "Atlas" is +Try this sample in [jsFiddle](http://jsfiddle.net/agershun/x1gq3wf2/). Run this sample +two or three times, and AlaSQL store more and more data in localStorage. Here, "Atlas" is the name of localStorage database, where "MyAtlas" is a memory AlaSQL database. You can use localStorage in two modes: SET AUTOCOMMIT ON to immediate save data @@ -452,7 +452,7 @@ You can use files in these formats directly from AlaSQL (in sync and async modes var res1 = alasq("select * from txt('mytext.txt') where [0] like 'M%'"); var res2 = alasq("select * from tab('mydata.tab') order by [1]"); var res3 = alasq("select [3] as city,[4] as population from csv('cities.csv')"); - + alasq("select * from json('array.json')",[],function(res4){ console.log(res4) }); @@ -492,58 +492,32 @@ Try AlaSQL JSON objects in Console [sample](http://alasql.org/console?drop tabl Yes, you can even use AlaSQL as a very simple server for tests. -To run enter the command: +To run enter the command: ``` alaserver [port] ``` -then type in browser something like "http://127.0.0.1:1337/?SELECT VALUE 2*2" +then type in browser something like "http://127.0.0.1:1337/?SELECT VALUE 2*2" Warning: Alaserver is not multi-thread, not concurent, and not secured. -### Webpack and Browserify - -When targeting the browser, several code bundlers like Webpack and Browserify will pick up modules you might not want. - -Here's a list of modules that alasql requires -* fs -* cptable -* jszip -* xlsx -* xls -* cpexcel -* path -* es6-promise +### Webpack -#### Webpack - -Use the built-in IgnorePlugin +To use alasql with webpack, get [script-loader](https://github.com/webpack/script-loader). +Then: ```js -var IgnorePlugin = require("webpack").IgnorePlugin; - -module.exports = { - ... - //Will ignore the modules fs, path, xlsx, xls - plugins:[new IgnorePlugin(/(^fs$|xlsx|xls|^path$)/)] -}; +require("script!alasql"); ``` -#### Browserify - -Read up on [excluding](https://github.com/substack/browserify-handbook#excluding), [ignoring](https://github.com/substack/browserify-handbook#ignoring), and [shimming](https://github.com/substack/browserify-handbook#shimming) - -Example (using excluding) - +Warning: This is a bad idea if you are using babel-loader ```js -var browserify = require("browserify"); -var b = browserify("./main.js").bundle(); -//Will ignore the modules fs, path, xlsx, xls -["fs","path","xlsx","xls"].map(ignore => b.ignore(ignore)); +import alasql from "script!alasql"; ``` +as script-loader does not return the global instance of alasql. -### Miss a feature? +### Miss a feature? Take charge and [add your idea](http://feathub.com/agershun/alasql/features/new) or [vote on your favorite feature](http://feathub.com/agershun/alasql) to be implemented: [![Feature Requests](http://feathub.com/agershun/alasql?format=svg)](http://feathub.com/agershun/alasql) @@ -557,14 +531,14 @@ Please be aware that AlaSQL ~~may~~ have [bugs](https://github.com/agershun/alas 0. AlaSQL has a (long) list of keywords that must be escaped if used for column names. When selecting a field named `key` please write ``` SELECT `key` FROM ... ``` instead. This is also the case for words like ``` `value` ```, ``` `read` ```, ``` `count` ```, ``` `by` ```, ``` `top` ```, ``` `path` ```, ``` `deleted` ```, ``` `work` ``` and ``` `offset` ```. Please consult the [full list of keywords](https://github.com/agershun/alasql/wiki/AlaSQL-Keywords). -0. It is Ok with select for 1000000 records or to join two tables by 10000 records in each (You can use streamming functions to work with longer datasources - see [test/test143.js](test/test143.js)) but be aware that the workload is multiplied so selecting from more than 8 tables with just 100 rows in each will show bad performance. This is one of our top priorities to make better. +0. It is Ok with select for 1000000 records or to join two tables by 10000 records in each (You can use streamming functions to work with longer datasources - see [test/test143.js](test/test143.js)) but be aware that the workload is multiplied so selecting from more than 8 tables with just 100 rows in each will show bad performance. This is one of our top priorities to make better. 0. Limited functionality for transactions (supports only for localStorage) - Sorry, transactions are limited, because AlaSQL started to use more complex approach for PRIMARY KEYS / FOREIGN KEYS. Transactions will be fully turned on again in future version. 0. A `(FULL) OUTER JOIN` and `RIGHT JOIM` on more than 2 tables will not give the expected results. `INNER JOIN` and `LEFT JOIN` are ok. Probably, there are many of others. Please, help us to fix them by [submitting it as an issue](https://github.com/agershun/alasql/issues). Thank you! - + @@ -620,15 +594,15 @@ MIT - see [MIT licence information](LICENSE) ## Credits -Many thanks to Zach Carter for [Jison](http://zaach.github.io/jison/) parser generator, to the author of FileSaver.js, Andrew Kent for his [SQL Parser](https://github.com/forward/sql-parser), +Many thanks to Zach Carter for [Jison](http://zaach.github.io/jison/) parser generator, to the author of FileSaver.js, Andrew Kent for his [SQL Parser](https://github.com/forward/sql-parser), authors of [XLSX](https://github.com/SheetJS/js-xlsx) library, and other people for useful tools, which make our work much easier. ### Related projects that have inspired us -* [AlaX](http://github.com/agershun/alax) - Export to Excel with colors and formats +* [AlaX](http://github.com/agershun/alax) - Export to Excel with colors and formats * [WebSQLShim](http://github.com/agershun/WebSQLShim) - WebSQL shim over IndexedDB (work in progress) -* [AlaMDX](http://github.com/agershun/alamdx) - JavaScript MDX OLAP library (work in progresss) +* [AlaMDX](http://github.com/agershun/alamdx) - JavaScript MDX OLAP library (work in progresss) * [Other similar projects](http://github.com/agershun/alasql/wiki/Similar-Projects.md) - list of databases on JavaScript [![ghit.me](https://ghit.me/badge.svg?repo=agershun/alasql)](https://ghit.me/repo/agershun/alasql) From ae3e3a69e7ceb1c3e5084dfc7d894d7fcbf5e420 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Thu, 4 Feb 2016 10:11:57 +0100 Subject: [PATCH 10/54] Central detection of environment --- src/10start.js | 47 ------------ src/15utility.js | 187 +++++++++++++++++++++++++++++++++++++++++++---- src/98finish.js | 3 +- test/test.js | 16 +++- 4 files changed, 187 insertions(+), 66 deletions(-) diff --git a/src/10start.js b/src/10start.js index c9a573cf54..a1801346fd 100644 --- a/src/10start.js +++ b/src/10start.js @@ -105,51 +105,4 @@ alasql.debug = undefined; // Initial debug variable -/** - Get path of alasql.js - @function - @todo Rewrite and simplify the code. Review, is this function is required separately -*/ -function getAlaSQLPath() { - /** type {string} Path to alasql library and plugins */ - alasql.path = ''; - - if (typeof importScripts === 'function') { - alasql.path = ''; - /** @todo Check how to get path in worker */ - } else if(typeof exports !== 'undefined') { - alasql.path = __dirname; - - } else if(typeof Meteor === 'object' && Meteor.isClient) { - alasql.path = '/packages/dist/'; - - } else if(typeof Meteor === 'object' && Meteor.isServer) { - alasql.path = 'assets/packages/dist/'; - - } else if(typeof document !== 'undefined') { - var sc = document.getElementsByTagName('script'); - - for(var i=0;i-1; }; + + +/** + Get path of alasql.js + @todo Rewrite and simplify the code. Review, is this function is required separately +*/ +utils.findAlaSQLPath = function() { + /** type {string} Path to alasql library and plugins */ + + if (isWebWorker()) { + return ''; + /** @todo Check how to get path in worker */ + } else if(isNode()) { + return __dirname; + + } else if(isMeteorClient()) { + return '/packages/dist/'; + + } else if(isMeteorServer()) { + return 'assets/packages/dist/'; + + } else if(isBrowser()) { + var sc = document.getElementsByTagName('script'); + + for(var i=0;i Date: Thu, 4 Feb 2016 11:07:59 +0100 Subject: [PATCH 11/54] Use central environment detection --- src/18promise.js | 6 +++--- src/80console.js | 25 ++++++------------------- 2 files changed, 9 insertions(+), 22 deletions(-) diff --git a/src/18promise.js b/src/18promise.js index def6448ea8..3e1a828b29 100755 --- a/src/18promise.js +++ b/src/18promise.js @@ -5,10 +5,10 @@ //nodejs now has Promises if(typeof utils.getGlobal().Promise === "object") { var Promise = utils.getGlobal().Promise; -} else if(typeof exports === 'object'){ +} else if(utils.isNode()){ var Promise = require('es6-promise').Promise; -} else if(typeof window === 'object') { - var Promise = utils.getGlobal().Promise; +} else { + throw new Error('Please include a Promise library'); } // diff --git a/src/80console.js b/src/80console.js index 429c613e7d..805133a492 100755 --- a/src/80console.js +++ b/src/80console.js @@ -126,7 +126,7 @@ alasql.log = function(sql, params) { } // For Node and console.output - if(target === 'console' || typeof exports === 'object') { + if(target === 'console' || utils.isNode()) { if(typeof sql === 'string' && alasql.options.logprompt){ console.log(olduseid+'>',sql); } @@ -184,17 +184,11 @@ alasql.log = function(sql, params) { alasql.clear = function() { var target = alasql.options.logtarget; // For node other - if(typeof exports === 'object') { - target = 'console'; - } - - if(target === 'console' || typeof exports === 'object') { + + if(utils.IsNode() || utils.isMeteorServer()) { if(console.clear) { console.clear(); } - - // todo: handle Node - } else { var el; if(target === 'output') { @@ -215,17 +209,10 @@ alasql.write = function(s) { // console.log('write',s); var target = alasql.options.logtarget; // For node other - if(typeof exports === 'object') { - target = 'console'; - } - - if(target === 'console' || typeof exports === 'object') { + if(utils.IsNode() || utils.isMeteorServer()) { if(console.log) { console.log(s); } - - // todo: handle node - } else { var el; if(target === 'output') { @@ -319,8 +306,8 @@ function scrollTo(element, to, duration) { } alasql.prompt = function(el, useidel, firstsql) { - if(typeof exports === 'object') { - throw new Error('The functionality of prompt is not realized for Node.js'); + if(utils.isNode()) { + throw new Error('The prompt not realized for Node.js'); } var prompti = 0; From 594527fa7d31b3582c729091d9360b7d96eb3ab6 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Thu, 4 Feb 2016 11:33:46 +0100 Subject: [PATCH 12/54] Cache detected environment --- dist/alasql-worker.js | 4 +- dist/alasql.js | 181 +++++++++++++++++++----------------------- dist/alasql.min.js | 24 +++--- src/15utility.js | 109 +++++++++++++------------ src/18promise.js | 6 +- src/80console.js | 8 +- src/833xlsx.js | 2 +- src/84from.js | 4 +- src/91indexeddb.js | 26 +++--- test/test.js | 14 ++-- 10 files changed, 179 insertions(+), 199 deletions(-) diff --git a/dist/alasql-worker.js b/dist/alasql-worker.js index 317415c6fc..4e800c4f88 100755 --- a/dist/alasql-worker.js +++ b/dist/alasql-worker.js @@ -1,7 +1,7 @@ -/*! AlaSQL v0.2.3-nickdeis-get-global-1175 © 2014-2015 Andrey Gershun & M. Rangel Wulff | alasql.org/license */ +/*! AlaSQL v0.2.3-develop-1181 © 2014-2015 Andrey Gershun & M. Rangel Wulff | alasql.org/license */ /* @module alasql -@version 0.2.3-nickdeis-get-global-1175 +@version 0.2.3-develop-1181 AlaSQL - JavaScript SQL database © 2014-2015 Andrey Gershun & M. Rangel Wulff diff --git a/dist/alasql.js b/dist/alasql.js index 8e3040c24f..99180c7c52 100755 --- a/dist/alasql.js +++ b/dist/alasql.js @@ -1,7 +1,7 @@ -/*! AlaSQL v0.2.3-nickdeis-get-global-1175 © 2014-2015 Andrey Gershun & M. Rangel Wulff | alasql.org/license */ +/*! AlaSQL v0.2.3-develop-1181 © 2014-2015 Andrey Gershun & M. Rangel Wulff | alasql.org/license */ /* @module alasql -@version 0.2.3-nickdeis-get-global-1175 +@version 0.2.3-develop-1181 AlaSQL - JavaScript SQL database © 2014-2015 Andrey Gershun & M. Rangel Wulff @@ -126,7 +126,7 @@ var alasql = function alasql(sql, params, cb, scope) { Current version of alasql @constant {string} */ -alasql.version = '0.2.3-nickdeis-get-global-1175'; +alasql.version = '0.2.3-develop-1181'; /** Debug flag @@ -3105,16 +3105,22 @@ var cutbom = function(s) { Inspired by System.global @return {object} The global scope */ -var getGlobal = utils.getGlobal = function(){ +var getGlobal = function(){ try { return Function('return this')(); - }catch(e){ + + }catch(e){ //If Content Security Policy var global = self || window || global; - if(global) return global; - else throw new Error('unable to locate global object'); + + if(global){ + return global; + } else { + throw new Error('Unable to locate global object'); + } } } +utils.global = getGlobal(); /** Find out if a function is native to the enviroment @@ -3129,38 +3135,41 @@ var isNativeFunction = utils.isNativeFunction = function(fn){ Find out if code is running in a web worker enviroment @return {boolean} True if code is running in a web worker enviroment */ -var isWebWorker = utils.isWebWorker = function(){ +var isWebWorker = function(){ try{ - var importScripts = utils.getGlobal().importScripts; + var importScripts = utils.global.importScripts; return (utils.isNativeFunction(importScripts)); }catch(e){ return false; } } +utils.isWebWorker = isWebWorker(); /** Find out if code is running in a node enviroment @return {boolean} True if code is running in a node enviroment */ -var isNode = utils.isNode = function(){ +var isNode = function(){ try{ - return utils.isNativeFunction(utils.getGlobal().process.reallyExit); + return utils.isNativeFunction(utils.global.process.reallyExit); }catch(e){ return false; } -} +}; +utils.isNode = isNode(); /** Find out if code is running in a browser enviroment @return {boolean} True if code is running in a browser enviroment */ -var isBrowser = utils.isBrowser = function(){ +var isBrowser = function(){ try{ - return utils.isNativeFunction(utils.getGlobal().location.reload); + return utils.isNativeFunction(utils.global.location.reload); }catch(e){ return false; } } +utils.isBrowser = isBrowser(); /** Find out if code is running with Meteor in the enviroment @@ -3168,25 +3177,28 @@ var isBrowser = utils.isBrowser = function(){ @todo Find out if this is the best way to do this */ -var isMeteor = utils.isMeteor = function(){ +var isMeteor = function(){ return (typeof Meteor !== 'undefined' && Meteor.release) } +utils.isMeteor = isMeteor(); /** Find out if code is running on a Meteor client @return {boolean} True if code is running on a Meteor client */ var isMeteorClient = utils.isMeteorClient = function(){ - return isMeteor() && Meteor.isClient; + return utils.isMeteor && Meteor.isClient; } +utils.isMeteorClient = isMeteorClient(); /** Find out if code is running on a Meteor server @return {boolean} True if code is running on a Meteor server */ -var isMeteorServer = utils.isMeteorServer = function(){ - return isMeteor() && Meteor.isServer; +var isMeteorServer = function(){ + return utils.isMeteor && Meteor.isServer; } +utils.isMeteorServer = isMeteorServer(); /** Find out code is running in a cordovar enviroment @@ -3194,25 +3206,10 @@ var isMeteorServer = utils.isMeteorServer = function(){ @todo Find out if this is the best way to do this */ -var isCordova = utils.isCordova = function(){ +var isCordova = function(){ return (typeof cordova === 'object') } - -/** - Gets the global object - @return {object} The global object -**/ -utils.getGlobal = function getGlobal(){ - try { - //This will always return the global objects - return Function('return this')(); - }catch(e){ - //unless Content Security Policy is enabled, in which case we do our best - var global = self || window || global; - if(global) return global; - else throw new Error('unable to locate global object'); - } -} +utils.isCordova = isCordova(); /** Load text file from anywhere @@ -3227,9 +3224,9 @@ utils.getGlobal = function getGlobal(){ */ var loadFile = utils.loadFile = function(path, asy, success, error) { var data, fs; - if(isNode() || isMeteorServer()) { + if(utils.isNode || utils.isMeteorServer) { - if(isMeteor()) { + if(utils.isMeteor) { /** For Meteor */ fs = Npm.require('fs'); } else { @@ -3276,9 +3273,9 @@ var loadFile = utils.loadFile = function(path, asy, success, error) { } } } - } else if(isCordova()) { + } else if(utils.isCordova) { /* If Cordova */ - utils.getGlobal().requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { + utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:false}, function (fileEntry) { fileEntry.file(function(file){ var fileReader = new FileReader(); @@ -3363,16 +3360,15 @@ var loadFile = utils.loadFile = function(path, asy, success, error) { var loadBinaryFile = utils.loadBinaryFile = function(path, asy, success, error) { var fs; - if(isNode() || isMeteorServer()) { + if(utils.isNode || utils.isMeteorServer) { + // For Node.js - if(isMeteor()) { - var fs = Npm.require('fs'); // For Meteor + if(utils.isMeteor) { + fs = Npm.require('fs'); // For Meteor } else { - var fs = require('fs'); + fs = require('fs'); } - // if(typeof exports == 'object') { - // // For Node.js - // var fs = require('fs'); + if(/^[a-z]+:\/\//i.test(path)) { var request = require('request'); request({url:path,encoding:null},function(err, response, data) { @@ -3442,11 +3438,11 @@ var loadBinaryFile = utils.loadBinaryFile = function(path, asy, success, error) }; var removeFile = utils.removeFile = function(path,cb) { - if(isNode()) { + if(isNode) { var fs = require('fs'); fs.remove(path,cb); - } else if(isCordova()) { - utils.getGlobal().requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { + } else if(isCordova) { + utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:false}, function (fileEntry) { fileEntry.remove(cb); cb && cb(); // jshint ignore:line @@ -3461,18 +3457,18 @@ var removeFile = utils.removeFile = function(path,cb) { // Todo: check if it makes sense to support cordova and Meteor server var deleteFile = utils.deleteFile = function(path,cb){ - if(isNode()) { + if(isNode) { var fs = require('fs'); fs.unlink(path, cb); } }; var fileExists = utils.fileExists = function(path,cb){ - if(isNode()) { + if(isNode) { var fs = require('fs'); fs.exists(path,cb); - } else if(isCordova()) { - utils.getGlobal().requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { + } else if(isCordova) { + utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:false}, function (fileEntry) { cb(true); }, function(){ @@ -3506,16 +3502,16 @@ var saveFile = utils.saveFile = function(path, data, cb) { } } else { - if(isNode()) { + if(isNode) { // For Node.js var fs = require('fs'); data = fs.writeFileSync(path,data); if(cb){ res = cb(res); } - } else if(isCordova()) { + } else if(isCordova) { // For Apache Cordova - utils.getGlobal().requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { + utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:true}, function (fileEntry) { fileEntry.createWriter(function(fileWriter) { @@ -3539,7 +3535,7 @@ var saveFile = utils.saveFile = function(path, data, cb) { var ndata = data.replace(/\r\n/g,'&#A;&#D;'); ndata = ndata.replace(/\n/g,'&#D;'); ndata = ndata.replace(/\t/g,' '); - var testlink = utils.getGlobal().open("about:blank", "_blank"); + var testlink = utils.global.open("about:blank", "_blank"); testlink.document.write(ndata); //fileData has contents for the file testlink.document.close(); testlink.document.execCommand('SaveAs', false, path); @@ -3948,13 +3944,13 @@ utils.findAlaSQLPath = function() { if (isWebWorker()) { return ''; /** @todo Check how to get path in worker */ - } else if(isNode()) { + } else if(isNode) { return __dirname; - } else if(isMeteorClient()) { + } else if(isMeteorClient) { return '/packages/dist/'; - } else if(isMeteorServer()) { + } else if(isMeteorServer) { return 'assets/packages/dist/'; } else if(isBrowser()) { @@ -4399,12 +4395,12 @@ alasql.compile = function(sql, databaseid) { // Promises for AlaSQL // //nodejs now has Promises -if(typeof utils.getGlobal().Promise === "object") { - var Promise = utils.getGlobal().Promise; -} else if(typeof exports === 'object'){ +if(typeof utils.global.Promise === "object") { + var Promise = utils.global.Promise; +} else if(utils.isNode){ var Promise = require('es6-promise').Promise; -} else if(typeof window === 'object') { - var Promise = utils.getGlobal().Promise; +} else { + throw new Error('Please include a Promise library'); } // @@ -13432,7 +13428,7 @@ alasql.log = function(sql, params) { } // For Node and console.output - if(target === 'console' || typeof exports === 'object') { + if(target === 'console' || utils.isNode) { if(typeof sql === 'string' && alasql.options.logprompt){ console.log(olduseid+'>',sql); } @@ -13490,17 +13486,11 @@ alasql.log = function(sql, params) { alasql.clear = function() { var target = alasql.options.logtarget; // For node other - if(typeof exports === 'object') { - target = 'console'; - } - if(target === 'console' || typeof exports === 'object') { + if(utils.isNode || utils.isMeteorServer) { if(console.clear) { console.clear(); } - - // todo: handle Node - } else { var el; if(target === 'output') { @@ -13521,17 +13511,10 @@ alasql.write = function(s) { var target = alasql.options.logtarget; // For node other - if(typeof exports === 'object') { - target = 'console'; - } - - if(target === 'console' || typeof exports === 'object') { + if(utils.isNode || utils.isMeteorServer) { if(console.log) { console.log(s); } - - // todo: handle node - } else { var el; if(target === 'output') { @@ -13623,8 +13606,8 @@ function scrollTo(element, to, duration) { } alasql.prompt = function(el, useidel, firstsql) { - if(typeof exports === 'object') { - throw new Error('The functionality of prompt is not realized for Node.js'); + if(utils.isNode) { + throw new Error('The prompt not realized for Node.js'); } var prompti = 0; @@ -14691,7 +14674,7 @@ alasql.into.XLSX = function(filename, opts, data, columns, cb) { if(typeof exports == 'object') { var XLSX = require('xlsx'); } else { - var XLSX = utils.getGlobal().XLSX; + var XLSX = utils.global.XLSX; }; /* If called without filename, use opts */ @@ -15222,7 +15205,7 @@ alasql.from.XLS = function(filename, opts, cb, idx, query) { if(typeof exports === 'object') { X = require('xlsjs'); } else { - X = utils.getGlobal().XLS; + X = utils.global.XLS; if(!X) { throw new Error('XLS library is not attached'); } @@ -15235,7 +15218,7 @@ alasql.from.XLSX = function(filename, opts, cb, idx, query) { if(typeof exports === 'object') { X = require('xlsx'); } else { - X = utils.getGlobal().XLSX; + X = utils.global.XLSX; if(!X) { throw new Error('XLSX library is not attached'); } @@ -15704,13 +15687,13 @@ WEBSQL.attachDatabase = function(databaseid, dbid, args, params, cb){ // (c) Andrey Gershun // -if(typeof(utils.isBrowser()) && utils.getGlobal().indexedDB) { +if(typeof(utils.isBrowser) && utils.global.indexedDB) { var IDB = alasql.engines.INDEXEDDB = function (){}; // For Chrome it work normally, for Firefox - simple shim -if(typeof utils.getGlobal().indexedDB.webkitGetDatabaseNames == 'function') { - IDB.getDatabaseNames = utils.getGlobal().indexedDB.webkitGetDatabaseNames.bind(utils.getGlobal().indexedDB); +if(typeof utils.global.indexedDB.webkitGetDatabaseNames == 'function') { + IDB.getDatabaseNames = utils.global.indexedDB.webkitGetDatabaseNames.bind(utils.global.indexedDB); } else { IDB.getDatabaseNames = function () { var request = {}; @@ -15756,7 +15739,7 @@ IDB.showDatabases = function(like,cb) { IDB.createDatabase = function(ixdbid, args, ifnotexists, dbid, cb){ console.log(arguments); - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; if(ifnotexists) { var request2 = indexedDB.open(ixdbid,1); request2.onsuccess = function(event) { @@ -15782,7 +15765,7 @@ console.log(arguments); }; IDB.createDatabase = function(ixdbid, args, ifnotexists, dbid, cb){ - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; if(IDB.getDatabaseNamesNotSupported) { // Hack for Firefox if(ifnotexists) { @@ -15846,7 +15829,7 @@ IDB.createDatabase = function(ixdbid, args, ifnotexists, dbid, cb){ }; IDB.dropDatabase = function(ixdbid, ifexists, cb){ - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var request1 = IDB.getDatabaseNames(); request1.onsuccess = function(event) { var dblist = event.target.result; @@ -15867,7 +15850,7 @@ IDB.dropDatabase = function(ixdbid, ifexists, cb){ }; IDB.attachDatabase = function(ixdbid, dbid, args, params, cb) { - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var request1 = IDB.getDatabaseNames(); request1.onsuccess = function(event) { var dblist = event.target.result; @@ -15893,7 +15876,7 @@ IDB.attachDatabase = function(ixdbid, dbid, args, params, cb) { }; IDB.createTable = function(databaseid, tableid, ifnotexists, cb) { - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var ixdbid = alasql.databases[databaseid].ixdbid; @@ -15937,7 +15920,7 @@ IDB.createTable = function(databaseid, tableid, ifnotexists, cb) { }; IDB.dropTable = function (databaseid, tableid, ifexists, cb) { - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var ixdbid = alasql.databases[databaseid].ixdbid; var request1 = IDB.getDatabaseNames(); @@ -15989,7 +15972,7 @@ IDB.intoTable = function(databaseid, tableid, value, columns, cb) { // console.trace(); - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var ixdbid = alasql.databases[databaseid].ixdbid; var request1 = indexedDB.open(ixdbid); request1.onsuccess = function(event) { @@ -16012,7 +15995,7 @@ IDB.intoTable = function(databaseid, tableid, value, columns, cb) { IDB.fromTable = function(databaseid, tableid, cb, idx, query){ // console.trace(); - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var ixdbid = alasql.databases[databaseid].ixdbid; var request = indexedDB.open(ixdbid); request.onsuccess = function(event) { @@ -16048,7 +16031,7 @@ IDB.fromTable = function(databaseid, tableid, cb, idx, query){ IDB.deleteFromTable = function(databaseid, tableid, wherefn,params, cb){ // console.trace(); - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var ixdbid = alasql.databases[databaseid].ixdbid; var request = indexedDB.open(ixdbid); request.onsuccess = function(event) { @@ -16089,7 +16072,7 @@ IDB.deleteFromTable = function(databaseid, tableid, wherefn,params, cb){ IDB.updateTable = function(databaseid, tableid, assignfn, wherefn, params, cb){ // console.trace(); - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var ixdbid = alasql.databases[databaseid].ixdbid; var request = indexedDB.open(ixdbid); request.onsuccess = function(event) { diff --git a/dist/alasql.min.js b/dist/alasql.min.js index 8680ea59fb..25c99c62e0 100755 --- a/dist/alasql.min.js +++ b/dist/alasql.min.js @@ -1,13 +1,13 @@ -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?H(a):r(l.args,0,a),0===u.length)return[];var E=H(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=H(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ee.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ee.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?B(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=X(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=P(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=_(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:he(e[a][n])});t+=""}else t+="

"+he(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Ee(e,t,n,r){if("function"==typeof importScripts||!Ee.webworker){if(0===arguments.length)return new ee.Select({columns:[new ee.Column({columnid:"*"})],from:[new ee.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ee.Select({columns:[new ee.Column({columnid:"*"})],from:[new ee.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Ee.exec(e,t,n,r)}var s=Ee.lastid++;Ee.buffer[s]=n,Ee.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-nickdeis-get-global-1175",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],G=[1,71],_=[1,96],B=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],Ge=[2,455],_e=[1,200],Be=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],Gt=[1,340],_t=[1,347],Bt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],Gn=[1,479],_n=[1,480],Bn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Gr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[2,366],Br=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],Ga=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],_a=[1,1004],Ba=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],Gs=[1,1324],_s=[1,1326],Bs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?W(a):r(l.args,0,a),0===u.length)return[];var E=W(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=W(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof te.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof te.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?J(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=Y(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=_(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=G(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:de(e[a][n])});t+=""}else t+="

"+de(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function ye(e,t,n,r){if("function"==typeof importScripts||!ye.webworker){if(0===arguments.length)return new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),ye.exec(e,t,n,r)}var s=ye.lastid++;ye.buffer[s]=n,ye.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1181",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] -});break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:G,496:_,498:B,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:G,496:_,498:B,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,Ge,{331:198,168:[1,199],195:_e}),t(Pe,Ge,{331:201,195:_e}),{3:213,4:r,5:a,74:Be,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:G,496:_,498:B,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:G,496:_,498:B,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:G,496:_,498:B,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, -410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Be,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:G,496:_,498:B,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:G,496:_,498:B,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,Ge,{331:201,74:ct,195:_e}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Gr,[2,409],{111:349,317:361,306:Pt}),t(Gr,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:_r,298:672,299:on,301:Br},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,Ge,{331:690,195:_e}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Be,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ -74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:Ve,414:je},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:Tt,113:wt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:804,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:dr,75:[1,805]},{71:dr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:dt,134:ft,141:821,142:Ke,149:pt,409:185,410:Ve,414:je,466:820,484:306,488:308},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(Tr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(Tr,[2,733]),t(Tr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:ha,330:da,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:G,496:_,498:B,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:Gt,308:_t,309:Bt}),t(pa,[2,368],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:Gt,308:_t,309:Bt}),t(ba,[2,369],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:Gt,308:_t,309:Bt}),t(ba,[2,371],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:Gt,308:_t,309:Bt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:Tt,113:wt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:Gt}),t(ma,[2,381],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:Gt}),t(ma,[2,382],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:Gt}),t(ma,[2,383],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:Gt}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:858,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:dr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,Sa),t(Ta,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:_r,298:672,299:on,301:Br},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:877,413:410,414:je,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:jr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:hn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:882,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:883,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:884,413:410,414:je},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:885,409:185,410:Ve,414:je},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:893,409:185,410:Ve,414:je},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:913,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,915],109:wn,111:459,112:Tt,113:wt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:925,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:d},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{111:954,112:Tt,113:wt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:970,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:971,4:r,5:a},{71:dr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, -285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:Ve,414:je}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],wr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,Va,{76:74,181:99,459:995,38:998,86:u,143:ja,186:d,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(Ga,[2,753]),t(Ga,[2,754]),t(Ga,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(gt,[2,674],{121:[1,1002]}),{128:_a,377:1003,379:Ba},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:Ve,414:je},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1012],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1015,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1016]},{71:dr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1020,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(Ta,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:Ve,414:je},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:d},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Be,76:74,86:u,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,181:99,186:d,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:dr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1074],109:wn,111:459,112:Tt,113:wt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:dr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1081],109:wn,111:459,112:Tt,113:wt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1083],109:wn,111:459,112:Tt,113:wt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1085],109:wn,111:459,112:Tt,113:wt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1087],109:wn,111:459,112:Tt,113:wt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1089]},t(hs,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1093],109:wn,111:459,112:Tt,113:wt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1095],109:wn,111:459,112:Tt,113:wt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,141:481,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(ds,[2,643]),t(ds,[2,644]),t(ds,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:dr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1125,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:d},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1141,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:ha,330:da,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:[1,1145],75:[1,1146]},t(hs,[2,528]),t(hs,[2,529]),{128:_a,377:1147,379:Ba},{71:fs,75:[1,1148]},t(hs,[2,463],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:Gt,308:_t,309:Bt}),t(pa,[2,372],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:Gt,308:_t,309:Bt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:dr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:dr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(Ta,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:de,178:ge,198:1164,293:qe,409:185,410:Ve,414:je},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:d},{3:718,4:r,5:a,108:1168},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1169,409:185,410:Ve,414:je},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Be,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:he,149:de,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1212,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, -198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:Gn,140:_n,142:Bn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:Gs,346:_s}),t(Bs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:G,496:_,498:B,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:G,496:_,498:B,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:Gs,346:_s}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Bs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Bs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Bs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:Gt,308:_t,309:Bt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column -},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=(x.getGlobal=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("unable to locate global object")}},x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},x.isWebWorker=function(){try{var e=x.getGlobal().importScripts;return x.isNativeFunction(e)}catch(t){return!1}}),N=x.isNode=function(){try{return x.isNativeFunction(x.getGlobal().process.reallyExit)}catch(e){return!1}},$=x.isBrowser=function(){try{return x.isNativeFunction(x.getGlobal().location.reload)}catch(e){return!1}},D=x.isMeteor=function(){return"undefined"!=typeof Meteor&&Meteor.release},I=x.isMeteorClient=function(){return D()&&Meteor.isClient},L=x.isMeteorServer=function(){return D()&&Meteor.isServer},q=x.isCordova=function(){return"object"==typeof cordova};x.getGlobal=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("unable to locate global object")}};var U=x.loadFile=function(e,t,n,r){var a,s;if(N()||L())if(s=D()?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(q())x.getGlobal().requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},F=(x.loadBinaryFile=function(e,t,n,r){var a;if(N()||L()){if(D())var a=Npm.require("fs");else var a=require("fs");if(/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},W=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},X=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(t||"").toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(e||"").toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(R())return"";if(N())return __dirname;if(I())return"/packages/dist/";if(L())return"assets/packages/dist/";if($())for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=F(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Y(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.getGlobal().Promise)var Y=x.getGlobal().Promise;else if("object"==typeof exports)var Y=require("es6-promise").Promise;else if("object"==typeof window)var Y=x.getGlobal().Promise;T.promise=function(e,t){return new Y(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var K=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};K.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},K.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},K.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Q=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Q.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Q.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Q.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Q.prototype.executeSQL=Q.prototype.exec;var z=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},W(this,e)};z.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var Z=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],W(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},W(this,e)}),ee=(T.Recordset=function(e){W(this,e)},w.yy=T.yy={});ee.extend=W,ee.casesensitive=T.options.casesensitive;var te=ee.Base=function(e){return ee.extend(this,e)};te.prototype.toString=function(){},te.prototype.toType=function(){},te.prototype.toJS=function(){},te.prototype.compile=r,te.prototype.exec=function(){},te.prototype.compile=r,te.prototype.exec=function(){},ee.Statements=function(e){return ee.extend(this,e)},ee.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ee.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ee.Search=function(e){return ee.extend(this,e)},ee.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ee.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ee.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){ -var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=B(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var ne=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof ee.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof ee.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(ne(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[F(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[F(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[F(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[F(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},ee.Select=function(e){return ee.extend(this,e)},ee.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof ee.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},ee.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},ee.Select.prototype.compile=function(e){var t=T.databases[e],n=new Z;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof ee.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof ee.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof ee.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof ee.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},ee.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ee.ExistsValue=function(e){return ee.extend(this,e)},ee.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},ee.ExistsValue.prototype.toType=function(){return"boolean"},ee.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},ee.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},ee.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},ee.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof ee.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof ee.Select)e.aliases[r]={type:"subquery"};else if(t instanceof ee.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof ee.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof ee.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof ee.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof ee.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof ee.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof ee.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof ee.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ee.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ee.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ee.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ee.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ee.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof ee.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},ee.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof ee.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=j(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof ee.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},ee.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},ee.Select.prototype.compileWhereJoins=function(e){},ee.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=M(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=V(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof ee.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof ee.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},ee.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof ee.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof ee.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},ee.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof ee.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},ee.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof ee.Column&&"*"===n.columnid)){var a;a=A(n instanceof ee.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},ee.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof ee.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof ee.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof ee.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},ee.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},ee.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},ee.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof ee.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof ee.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},ee.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1, -o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=B(p);n.columnid=t,e.columns.push(n)})}},ee.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var re=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof ee.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},ee.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},ee.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},ee.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof ee.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof ee.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof ee.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof ee.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof ee.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},ee.VarValue=function(e){return ee.extend(this,e)},ee.VarValue.prototype.toString=function(){return"@"+this.variable},ee.VarValue.prototype.toType=function(){return"unknown"},ee.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},ee.NumValue=function(e){return ee.extend(this,e)},ee.NumValue.prototype.toString=function(){return this.value.toString()},ee.NumValue.prototype.toType=function(){return"number"},ee.NumValue.prototype.toJS=function(){return""+this.value},ee.StringValue=function(e){return ee.extend(this,e)},ee.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},ee.StringValue.prototype.toType=function(){return"string"},ee.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},ee.LogicValue=function(e){return ee.extend(this,e)},ee.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},ee.LogicValue.prototype.toType=function(){return"boolean"},ee.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},ee.NullValue=function(e){return ee.extend(this,e)},ee.NullValue.prototype.toString=function(){return"NULL"},ee.NullValue.prototype.toJS=function(){return"undefined"},ee.ParamValue=function(e){return ee.extend(this,e)},ee.ParamValue.prototype.toString=function(){return"$"+this.param},ee.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},ee.UniOp=function(e){return ee.extend(this,e)},ee.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},ee.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},ee.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},ee.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof ee.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},ee.Column=function(e){return ee.extend(this,e)},ee.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},ee.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},ee.AggrValue=function(e){return ee.extend(this,e)},ee.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},ee.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},ee.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},ee.OrderExpression=function(e){return ee.extend(this,e)},ee.OrderExpression.prototype.toString=ee.Expression.prototype.toString,ee.GroupExpression=function(e){return ee.extend(this,e)},ee.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},ee.FromData=function(e){return ee.extend(this,e)},ee.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},ee.FromData.prototype.toJS=function(){},ee.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=F(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},ee.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new ee.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new ee.Column({columnid:"*",func:t,param:n}))}}),e},ee.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new ee.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new ee.Table({tableid:e}))}return t},ee.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new ee.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new ee.OrderExpression({expression:n,direction:"ASC"}))}),e},ee.Select.prototype.Top=function(e){var t=this;return t.top=new ee.NumValue({value:e}),t},ee.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new ee.Column({columnid:t});e.group.push(n)}),e},ee.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},ee.FuncValue=function(e){return ee.extend(this,e)},ee.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},ee.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},ee.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},ee.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var oe=T.stdlib={},ue=T.stdfn={};oe.ABS=function(e){return"Math.abs("+e+")"},oe.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},ue.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},oe.EXP=function(e){return"Math.pow(Math.E,"+e+")"},oe.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},oe.IFNULL=function(e,t){return"("+e+"||"+t+")"},oe.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},oe.LEN=oe.LENGTH=function(e){return t(e,"y.length")},oe.LOWER=oe.LCASE=function(e){return t(e,"String(y).toLowerCase()")},oe.MAX=oe.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},oe.MIN=oe.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},oe.SUBSTRING=oe.SUBSTR=oe.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},ue.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},oe.ISNULL=oe.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},oe.POWER=function(e,t){return"Math.pow("+e+","+t+")"},oe.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},oe.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},oe.CEIL=oe.CEILING=function(e){return"Math.ceil("+e+")"},oe.FLOOR=function(e){return"Math.floor("+e+")"},oe.ROWNUM=function(){return"1"},oe.ROW_NUMBER=function(){return"1"},oe.SQRT=function(e){return"Math.sqrt("+e+")"},oe.TRIM=function(e){return t(e,"y.trim()")},oe.UPPER=oe.UCASE=function(e){return t(e,"String(y).toUpperCase()")},ue.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},ue.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var ce=[],le=0;256>le;le++)ce[le]=(16>le?"0":"")+le.toString(16);ue.NEWID=ue.UUID=ue.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return ce[255&e]+ce[e>>8&255]+ce[e>>16&255]+ce[e>>24&255]+"-"+ce[255&t]+ce[t>>8&255]+"-"+ce[t>>16&15|64]+ce[t>>24&255]+"-"+ce[63&n|128]+ce[n>>8&255]+"-"+ce[n>>16&255]+ce[n>>24&255]+ce[255&r]+ce[r>>8&255]+ce[r>>16&255]+ce[r>>24&255]},ee.CaseValue=function(e){return ee.extend(this,e)},ee.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},ee.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},ee.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},ee.Json=function(e){return ee.extend(this,e)},ee.Json.prototype.toString=function(){var e="";return e+=he(this.value),e+=""};var he=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return he(e)}).join(",")+"]";else if(!e.toJS||e instanceof ee.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+he(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};ee.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},ee.Convert=function(e){return ee.extend(this,e)},ee.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},ee.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},ee.ColumnDef=function(e){return ee.extend(this,e)},ee.ColumnDef.prototype.toString=function(){var 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},ee.CreateTable=function(e){return ee.extend(this,e)},ee.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},ee.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=F(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=F(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","), -o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=F(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=F(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=B(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,ue.EXTEND=T.utils.extend,ue.CHAR=String.fromCharCode.bind(String),ue.ASCII=function(e){return e.charCodeAt(0)},ue.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},ee.CreateEdge=function(e){return ee.extend(this,e)},ee.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},ee.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ee.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ee.CreateGraph=function(e){return ee.extend(this,e)},ee.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},ee.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&W(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&W(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},ee.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ee.AlterTable=function(e){return ee.extend(this,e)},ee.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},ee.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},ee.CreateIndex=function(e){return ee.extend(this,e)},ee.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},ee.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=F(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},ee.Reindex=function(e){return ee.extend(this,e)},ee.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},ee.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},ee.DropIndex=function(e){return ee.extend(this,e)},ee.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},ee.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},ee.WithSelect=function(e){return ee.extend(this,e)},ee.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},ee.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new z({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},ee.If=function(e){return ee.extend(this,e)},ee.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},ee.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},ee.While=function(e){return ee.extend(this,e)},ee.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},ee.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},ee.Break=function(e){return ee.extend(this,e)},ee.Break.prototype.toString=function(){var e="BREAK";return e},ee.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ee.Continue=function(e){return ee.extend(this,e)},ee.Continue.prototype.toString=function(){var e="CONTINUE";return e},ee.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ee.BeginEnd=function(e){return ee.extend(this,e)},ee.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},ee.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=B(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},ee.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ee.CreateTrigger=function(e){return ee.extend(this,e)},ee.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()},ee.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},ee.DropTrigger=function(e){return ee.extend(this,e)},ee.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},ee.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},ee.Delete=function(e){return ee.extend(this,e)},ee.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},ee.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},ee.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ee.Update=function(e){return ee.extend(this,e)},ee.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()),e},ee.SetColumn=function(e){return ee.extend(this,e)},ee.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},ee.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},ee.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ee.Merge=function(e){return ee.extend(this,e)},ee.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},ee.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},ee.CreateDatabase=function(e){return ee.extend(this,e)},ee.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},ee.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},ee.AttachDatabase=function(e){return ee.extend(this,e)},ee.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},ee.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},ee.DetachDatabase=function(e){return ee.extend(this,e)},ee.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid},ee.DetachDatabase.prototype.execute=function(e,t,n){ -if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ee.UseDatabase=function(e){return ee.extend(this,e)},ee.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},ee.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},ee.DropDatabase=function(e){return ee.extend(this,e)},ee.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},ee.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ee.Declare=function(e){return ee.extend(this,e)},ee.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},ee.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},ee.ShowDatabases=function(e){return ee.extend(this,e)},ee.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},ee.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},ee.ShowTables=function(e){return ee.extend(this,e)},ee.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},ee.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},ee.ShowColumns=function(e){return ee.extend(this,e)},ee.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ee.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},ee.ShowIndex=function(e){return ee.extend(this,e)},ee.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ee.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},ee.ShowCreateTable=function(e){return ee.extend(this,e)},ee.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},ee.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},ee.SetVariable=function(e){return ee.extend(this,e)},ee.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},ee.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;"object"==typeof exports&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||"object"==typeof exports)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(he(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="
"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if("object"==typeof exports&&(e="console"),"console"===e||"object"==typeof exports)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if("object"==typeof exports&&(t="console"),"console"===t||"object"==typeof exports)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if("object"==typeof exports)throw new Error("The functionality of prompt is not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},ee.BeginTransaction=function(e){return ee.extend(this,e)},ee.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},ee.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},ee.CommitTransaction=function(e){return ee.extend(this,e)},ee.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},ee.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},ee.RollbackTransaction=function(e){return ee.extend(this,e)},ee.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},ee.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&W(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=F(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&W(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(W(s,h.row),h.rows&&h.rows[a]&&W(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsjs");else if(s=x.getGlobal().XLS,!s)throw new Error("XLS library is not attached");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsx");else if(s=x.getGlobal().XLSX,!s)throw new Error("XLSX library is not attached");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},ee.Help=function(e){return ee.extend(this,e)},ee.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],ee.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},ee.Print=function(e){return ee.extend(this,e)},ee.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},ee.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return he(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(he(i))}else console.log();return n&&(a=n(a)),a},ee.Source=function(e){return ee.extend(this,e)},ee.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},ee.Source.prototype.execute=function(e,t,n){var r;return U(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},ee.Require=function(e){return ee.extend(this,e)},ee.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},ee.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){U(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||U(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},pe.fromTable=function(e,t,n,r,a){var s=x.getGlobal().indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},pe.deleteFromTable=function(e,t,n,r,a){var s=x.getGlobal().indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},pe.updateTable=function(e,t,n,r,a,s){var i=x.getGlobal().indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var be=T.engines.LOCALSTORAGE=function(){};be.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},be.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},be.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,be.set(n.lsdbid+"."+t,a)},be.restoreTable=function(e,t){var n=T.databases[e],r=be.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},be.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},be.createDatabase=function(e,t,n,r,a){var s=1,i=be.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,be.set("alasql",i),be.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},be.dropDatabase=function(e,t,n){var r=1,a=be.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],be.set("alasql",a);var s=be.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},be.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=be.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)be.restoreTable(t,o);return a&&(s=a(s)),s},be.showDatabases=function(e,t){var n=[],r=be.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},be.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=be.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=be.get(s);T.databases[e].tables[t];return o.tables[t]=!0,be.set(s,o),be.storeTable(e,t),r&&r(a),a},be.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=be.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],be.set(s,i),be.removeTable(e,t),r&&r(a),a},be.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,be.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},be.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=be.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),be.storeTable(e,t),a&&a(s),s},be.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;be.restoreTable(e,t)},be.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;be.storeTable(r,t),n.tables[t].data=void 0},be.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,be.storeTable(e,s);return be.set(r,a),1},be.begin=be.commit,be.rollback=function(e,t){return};var ge=T.engines.SQLITE=function(){};ge.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},ge.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},ge.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof ee.StringValue||n[0]instanceof ee.ParamValue){if(n[0]instanceof ee.StringValue)var i=n[0].value;else if(n[0]instanceof ee.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},ge.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},ge.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var me=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(me.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},me.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,U(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},me.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],me.updateFile(e),r&&r(i),i},me.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){me.updateFile(e)},50)}))},me.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],me.updateFile(e),r&&r(a),a},me.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},me.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),me.updateFile(e),a&&a(i),i},me.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},me.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,me.updateFile(e)},me.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return me.updateFile(e),1},me.begin=me.commit,me.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});W(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),W(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},"object"!=typeof exports&&"function"!=typeof importScripts&&"object"==typeof document){var ve=ve||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=ve:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return ve}),T.utils.saveAs=ve}return new K("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file +});break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, +410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ +74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:Ve,414:je},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:Tt,113:wt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:804,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:dr,75:[1,805]},{71:dr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:dt,134:ft,141:821,142:Ke,149:pt,409:185,410:Ve,414:je,466:820,484:306,488:308},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(Tr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(Tr,[2,733]),t(Tr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:ha,330:da,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,368],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,369],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,371],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:Tt,113:wt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,381],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,382],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,383],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:858,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:dr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,Sa),t(Ta,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:Br,298:672,299:on,301:Gr},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:877,413:410,414:je,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:jr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:hn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:882,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:883,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:884,413:410,414:je},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:885,409:185,410:Ve,414:je},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:893,409:185,410:Ve,414:je},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:913,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,915],109:wn,111:459,112:Tt,113:wt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:925,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:d},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{111:954,112:Tt,113:wt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:970,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:971,4:r,5:a},{71:dr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, +285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:Ve,414:je}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],wr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,Va,{76:74,181:99,459:995,38:998,86:u,143:ja,186:d,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(_a,[2,753]),t(_a,[2,754]),t(_a,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(gt,[2,674],{121:[1,1002]}),{128:Ba,377:1003,379:Ga},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:Ve,414:je},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1012],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1015,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1016]},{71:dr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1020,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(Ta,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:Ve,414:je},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:d},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Ge,76:74,86:u,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,181:99,186:d,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:dr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1074],109:wn,111:459,112:Tt,113:wt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:dr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1081],109:wn,111:459,112:Tt,113:wt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1083],109:wn,111:459,112:Tt,113:wt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1085],109:wn,111:459,112:Tt,113:wt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1087],109:wn,111:459,112:Tt,113:wt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1089]},t(hs,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1093],109:wn,111:459,112:Tt,113:wt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1095],109:wn,111:459,112:Tt,113:wt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(ds,[2,643]),t(ds,[2,644]),t(ds,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:dr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1125,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:d},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1141,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:ha,330:da,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:[1,1145],75:[1,1146]},t(hs,[2,528]),t(hs,[2,529]),{128:Ba,377:1147,379:Ga},{71:fs,75:[1,1148]},t(hs,[2,463],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,372],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:dr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:dr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(Ta,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:de,178:ge,198:1164,293:qe,409:185,410:Ve,414:je},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:d},{3:718,4:r,5:a,108:1168},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1169,409:185,410:Ve,414:je},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:he,149:de,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1212,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, +198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column +},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=I();var L=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=L();var q=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=q();var U=function(){return"object"==typeof cordova};x.isCordova=U();var F=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},M=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},X=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},Y=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(t||"").toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(e||"").toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(N())return"";if($)return __dirname;if(L)return"/packages/dist/";if(q)return"assets/packages/dist/";if(D())for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=M(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new K(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var K=x.global.Promise;else{if(!x.isNode)throw new Error("Please include a Promise library");var K=require("es6-promise").Promise}T.promise=function(e,t){return new K(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var Q=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};Q.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},Q.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Q.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.executeSQL=z.prototype.exec;var Z=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},X(this,e)};Z.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var ee=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],X(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},X(this,e)}),te=(T.Recordset=function(e){X(this,e)},w.yy=T.yy={});te.extend=X,te.casesensitive=T.options.casesensitive;var ne=te.Base=function(e){return te.extend(this,e)};ne.prototype.toString=function(){},ne.prototype.toType=function(){},ne.prototype.toJS=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},te.Statements=function(e){return te.extend(this,e)},te.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},te.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},te.Search=function(e){return te.extend(this,e)},te.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},te.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{ +status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=J(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var re=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof te.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof te.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(re(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},te.Select=function(e){return te.extend(this,e)},te.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof te.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},te.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},te.Select.prototype.compile=function(e){var t=T.databases[e],n=new ee;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof te.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof te.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof te.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof te.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},te.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.ExistsValue=function(e){return te.extend(this,e)},te.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},te.ExistsValue.prototype.toType=function(){return"boolean"},te.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},te.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},te.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},te.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof te.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof te.Select)e.aliases[r]={type:"subquery"};else if(t instanceof te.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof te.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof te.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof te.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof te.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof te.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof te.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof te.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof te.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},te.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof te.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=P(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof te.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},te.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileWhereJoins=function(e){},te.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=V(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=j(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof te.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof te.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},te.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof te.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof te.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},te.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof te.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},te.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof te.Column&&"*"===n.columnid)){var a;a=A(n instanceof te.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},te.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof te.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof te.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof te.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},te.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},te.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof te.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof te.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},te.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0), +d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=J(p);n.columnid=t,e.columns.push(n)})}},te.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var ae=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof te.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},te.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},te.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},te.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof te.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},te.VarValue=function(e){return te.extend(this,e)},te.VarValue.prototype.toString=function(){return"@"+this.variable},te.VarValue.prototype.toType=function(){return"unknown"},te.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},te.NumValue=function(e){return te.extend(this,e)},te.NumValue.prototype.toString=function(){return this.value.toString()},te.NumValue.prototype.toType=function(){return"number"},te.NumValue.prototype.toJS=function(){return""+this.value},te.StringValue=function(e){return te.extend(this,e)},te.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},te.StringValue.prototype.toType=function(){return"string"},te.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},te.LogicValue=function(e){return te.extend(this,e)},te.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},te.LogicValue.prototype.toType=function(){return"boolean"},te.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},te.NullValue=function(e){return te.extend(this,e)},te.NullValue.prototype.toString=function(){return"NULL"},te.NullValue.prototype.toJS=function(){return"undefined"},te.ParamValue=function(e){return te.extend(this,e)},te.ParamValue.prototype.toString=function(){return"$"+this.param},te.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},te.UniOp=function(e){return te.extend(this,e)},te.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},te.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},te.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},te.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof te.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},te.Column=function(e){return te.extend(this,e)},te.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},te.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},te.AggrValue=function(e){return te.extend(this,e)},te.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},te.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},te.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},te.OrderExpression=function(e){return te.extend(this,e)},te.OrderExpression.prototype.toString=te.Expression.prototype.toString,te.GroupExpression=function(e){return te.extend(this,e)},te.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},te.FromData=function(e){return te.extend(this,e)},te.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},te.FromData.prototype.toJS=function(){},te.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=M(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},te.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new te.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new te.Column({columnid:"*",func:t,param:n}))}}),e},te.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new te.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new te.Table({tableid:e}))}return t},te.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new te.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new te.OrderExpression({expression:n,direction:"ASC"}))}),e},te.Select.prototype.Top=function(e){var t=this;return t.top=new te.NumValue({value:e}),t},te.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new te.Column({columnid:t});e.group.push(n)}),e},te.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},te.FuncValue=function(e){return te.extend(this,e)},te.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},te.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},te.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},te.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ue=T.stdlib={},ce=T.stdfn={};ue.ABS=function(e){return"Math.abs("+e+")"},ue.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},ce.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ue.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ue.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ue.IFNULL=function(e,t){return"("+e+"||"+t+")"},ue.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ue.LEN=ue.LENGTH=function(e){return t(e,"y.length")},ue.LOWER=ue.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ue.MAX=ue.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ue.MIN=ue.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ue.SUBSTRING=ue.SUBSTR=ue.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},ce.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ue.ISNULL=ue.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ue.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ue.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ue.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},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.SQRT=function(e){return"Math.sqrt("+e+")"},ue.TRIM=function(e){return t(e,"y.trim()")},ue.UPPER=ue.UCASE=function(e){return t(e,"String(y).toUpperCase()")},ce.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},ce.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var le=[],he=0;256>he;he++)le[he]=(16>he?"0":"")+he.toString(16);ce.NEWID=ce.UUID=ce.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return le[255&e]+le[e>>8&255]+le[e>>16&255]+le[e>>24&255]+"-"+le[255&t]+le[t>>8&255]+"-"+le[t>>16&15|64]+le[t>>24&255]+"-"+le[63&n|128]+le[n>>8&255]+"-"+le[n>>16&255]+le[n>>24&255]+le[255&r]+le[r>>8&255]+le[r>>16&255]+le[r>>24&255]},te.CaseValue=function(e){return te.extend(this,e)},te.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},te.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},te.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},te.Json=function(e){return te.extend(this,e)},te.Json.prototype.toString=function(){var e="";return e+=de(this.value),e+=""};var de=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return de(e)}).join(",")+"]";else if(!e.toJS||e instanceof te.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+de(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};te.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},te.Convert=function(e){return te.extend(this,e)},te.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},te.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},te.ColumnDef=function(e){return te.extend(this,e)},te.ColumnDef.prototype.toString=function(){var 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},te.CreateTable=function(e){return te.extend(this,e)},te.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},te.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=M(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=M(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists"); +var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=M(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=M(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=J(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,ce.EXTEND=T.utils.extend,ce.CHAR=String.fromCharCode.bind(String),ce.ASCII=function(e){return e.charCodeAt(0)},ce.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},te.CreateEdge=function(e){return te.extend(this,e)},te.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.CreateGraph=function(e){return te.extend(this,e)},te.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&X(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&X(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},te.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.AlterTable=function(e){return te.extend(this,e)},te.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},te.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},te.CreateIndex=function(e){return te.extend(this,e)},te.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},te.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=M(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},te.Reindex=function(e){return te.extend(this,e)},te.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},te.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},te.DropIndex=function(e){return te.extend(this,e)},te.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},te.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},te.WithSelect=function(e){return te.extend(this,e)},te.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},te.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new Z({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},te.If=function(e){return te.extend(this,e)},te.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},te.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},te.While=function(e){return te.extend(this,e)},te.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},te.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},te.Break=function(e){return te.extend(this,e)},te.Break.prototype.toString=function(){var e="BREAK";return e},te.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.Continue=function(e){return te.extend(this,e)},te.Continue.prototype.toString=function(){var e="CONTINUE";return e},te.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.BeginEnd=function(e){return te.extend(this,e)},te.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},te.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=J(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},te.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.CreateTrigger=function(e){return te.extend(this,e)},te.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()},te.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},te.DropTrigger=function(e){return te.extend(this,e)},te.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},te.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},te.Delete=function(e){return te.extend(this,e)},te.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},te.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},te.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Update=function(e){return te.extend(this,e)},te.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()),e},te.SetColumn=function(e){return te.extend(this,e)},te.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},te.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},te.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Merge=function(e){return te.extend(this,e)},te.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},te.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},te.CreateDatabase=function(e){return te.extend(this,e)},te.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},te.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},te.AttachDatabase=function(e){return te.extend(this,e)},te.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},te.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},te.DetachDatabase=function(e){return te.extend(this,e)},te.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid},te.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.'); +var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.UseDatabase=function(e){return te.extend(this,e)},te.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},te.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},te.DropDatabase=function(e){return te.extend(this,e)},te.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},te.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.Declare=function(e){return te.extend(this,e)},te.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},te.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},te.ShowDatabases=function(e){return te.extend(this,e)},te.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},te.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},te.ShowTables=function(e){return te.extend(this,e)},te.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},te.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},te.ShowColumns=function(e){return te.extend(this,e)},te.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},te.ShowIndex=function(e){return te.extend(this,e)},te.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},te.ShowCreateTable=function(e){return te.extend(this,e)},te.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},te.SetVariable=function(e){return te.extend(this,e)},te.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},te.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;"object"==typeof exports&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(de(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="

"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},te.BeginTransaction=function(e){return te.extend(this,e)},te.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},te.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},te.CommitTransaction=function(e){return te.extend(this,e)},te.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},te.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},te.RollbackTransaction=function(e){return te.extend(this,e)},te.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},te.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&X(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=M(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&X(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(X(s,h.row),h.rows&&h.rows[a]&&X(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library is not attached");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library is not attached");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},te.Help=function(e){return te.extend(this,e)},te.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],te.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},te.Print=function(e){return te.extend(this,e)},te.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},te.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return de(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(de(i))}else console.log();return n&&(a=n(a)),a},te.Source=function(e){return te.extend(this,e)},te.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},te.Source.prototype.execute=function(e,t,n){var r;return F(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},te.Require=function(e){return te.extend(this,e)},te.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},te.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){F(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||F(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},be.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},be.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},be.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var ge=T.engines.LOCALSTORAGE=function(){};ge.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},ge.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},ge.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,ge.set(n.lsdbid+"."+t,a)},ge.restoreTable=function(e,t){var n=T.databases[e],r=ge.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},ge.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},ge.createDatabase=function(e,t,n,r,a){var s=1,i=ge.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,ge.set("alasql",i),ge.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},ge.dropDatabase=function(e,t,n){var r=1,a=ge.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],ge.set("alasql",a);var s=ge.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},ge.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=ge.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)ge.restoreTable(t,o);return a&&(s=a(s)),s},ge.showDatabases=function(e,t){var n=[],r=ge.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},ge.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=ge.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=ge.get(s);T.databases[e].tables[t];return o.tables[t]=!0,ge.set(s,o),ge.storeTable(e,t),r&&r(a),a},ge.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=ge.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],ge.set(s,i),ge.removeTable(e,t),r&&r(a),a},ge.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,ge.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},ge.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=ge.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),ge.storeTable(e,t),a&&a(s),s},ge.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;ge.restoreTable(e,t)},ge.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;ge.storeTable(r,t),n.tables[t].data=void 0},ge.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,ge.storeTable(e,s);return ge.set(r,a),1},ge.begin=ge.commit,ge.rollback=function(e,t){return};var me=T.engines.SQLITE=function(){};me.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},me.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof te.StringValue||n[0]instanceof te.ParamValue){if(n[0]instanceof te.StringValue)var i=n[0].value;else if(n[0]instanceof te.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},me.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},me.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var ve=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(ve.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},ve.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,F(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},ve.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],ve.updateFile(e),r&&r(i),i},ve.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){ve.updateFile(e)},50)}))},ve.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],ve.updateFile(e),r&&r(a),a},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},ve.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),ve.updateFile(e),a&&a(i),i},ve.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},ve.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,ve.updateFile(e)},ve.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return ve.updateFile(e),1},ve.begin=ve.commit,ve.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});X(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),X(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},"object"!=typeof exports&&"function"!=typeof importScripts&&"object"==typeof document){var Ee=Ee||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=Ee:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return Ee}),T.utils.saveAs=Ee}return new Q("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file diff --git a/src/15utility.js b/src/15utility.js index 11f725abbc..fe70839420 100755 --- a/src/15utility.js +++ b/src/15utility.js @@ -135,16 +135,22 @@ var cutbom = function(s) { Inspired by System.global @return {object} The global scope */ -var getGlobal = utils.getGlobal = function(){ +var getGlobal = function(){ try { return Function('return this')(); - }catch(e){ + + }catch(e){ //If Content Security Policy var global = self || window || global; - if(global) return global; - else throw new Error('unable to locate global object'); + + if(global){ + return global; + } else { + throw new Error('Unable to locate global object'); + } } } +utils.global = getGlobal(); /** Find out if a function is native to the enviroment @@ -159,38 +165,41 @@ var isNativeFunction = utils.isNativeFunction = function(fn){ Find out if code is running in a web worker enviroment @return {boolean} True if code is running in a web worker enviroment */ -var isWebWorker = utils.isWebWorker = function(){ +var isWebWorker = function(){ try{ - var importScripts = utils.getGlobal().importScripts; + var importScripts = utils.global.importScripts; return (utils.isNativeFunction(importScripts)); }catch(e){ return false; } } +utils.isWebWorker = isWebWorker(); /** Find out if code is running in a node enviroment @return {boolean} True if code is running in a node enviroment */ -var isNode = utils.isNode = function(){ +var isNode = function(){ try{ - return utils.isNativeFunction(utils.getGlobal().process.reallyExit); + return utils.isNativeFunction(utils.global.process.reallyExit); }catch(e){ return false; } -} +}; +utils.isNode = isNode(); /** Find out if code is running in a browser enviroment @return {boolean} True if code is running in a browser enviroment */ -var isBrowser = utils.isBrowser = function(){ +var isBrowser = function(){ try{ - return utils.isNativeFunction(utils.getGlobal().location.reload); + return utils.isNativeFunction(utils.global.location.reload); }catch(e){ return false; } } +utils.isBrowser = isBrowser(); /** Find out if code is running with Meteor in the enviroment @@ -198,25 +207,28 @@ var isBrowser = utils.isBrowser = function(){ @todo Find out if this is the best way to do this */ -var isMeteor = utils.isMeteor = function(){ +var isMeteor = function(){ return (typeof Meteor !== 'undefined' && Meteor.release) } +utils.isMeteor = isMeteor(); /** Find out if code is running on a Meteor client @return {boolean} True if code is running on a Meteor client */ var isMeteorClient = utils.isMeteorClient = function(){ - return isMeteor() && Meteor.isClient; + return utils.isMeteor && Meteor.isClient; } +utils.isMeteorClient = isMeteorClient(); /** Find out if code is running on a Meteor server @return {boolean} True if code is running on a Meteor server */ -var isMeteorServer = utils.isMeteorServer = function(){ - return isMeteor() && Meteor.isServer; +var isMeteorServer = function(){ + return utils.isMeteor && Meteor.isServer; } +utils.isMeteorServer = isMeteorServer(); @@ -226,26 +238,12 @@ var isMeteorServer = utils.isMeteorServer = function(){ @todo Find out if this is the best way to do this */ -var isCordova = utils.isCordova = function(){ +var isCordova = function(){ return (typeof cordova === 'object') } +utils.isCordova = isCordova(); -/** - Gets the global object - @return {object} The global object -**/ -utils.getGlobal = function getGlobal(){ - try { - //This will always return the global objects - return Function('return this')(); - }catch(e){ - //unless Content Security Policy is enabled, in which case we do our best - var global = self || window || global; - if(global) return global; - else throw new Error('unable to locate global object'); - } -} /** Load text file from anywhere @@ -260,9 +258,9 @@ utils.getGlobal = function getGlobal(){ */ var loadFile = utils.loadFile = function(path, asy, success, error) { var data, fs; - if(isNode() || isMeteorServer()) { + if(utils.isNode || utils.isMeteorServer) { - if(isMeteor()) { + if(utils.isMeteor) { /** For Meteor */ fs = Npm.require('fs'); } else { @@ -309,9 +307,9 @@ var loadFile = utils.loadFile = function(path, asy, success, error) { } } } - } else if(isCordova()) { + } else if(utils.isCordova) { /* If Cordova */ - utils.getGlobal().requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { + utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:false}, function (fileEntry) { fileEntry.file(function(file){ var fileReader = new FileReader(); @@ -419,16 +417,15 @@ var loadFile = utils.loadFile = function(path, asy, success, error) { var loadBinaryFile = utils.loadBinaryFile = function(path, asy, success, error) { var fs; - if(isNode() || isMeteorServer()) { + if(utils.isNode || utils.isMeteorServer) { + // For Node.js - if(isMeteor()) { - var fs = Npm.require('fs'); // For Meteor + if(utils.isMeteor) { + fs = Npm.require('fs'); // For Meteor } else { - var fs = require('fs'); + fs = require('fs'); } - // if(typeof exports == 'object') { - // // For Node.js - // var fs = require('fs'); + if(/^[a-z]+:\/\//i.test(path)) { var request = require('request'); request({url:path,encoding:null},function(err, response, data) { @@ -499,11 +496,11 @@ var loadBinaryFile = utils.loadBinaryFile = function(path, asy, success, error) var removeFile = utils.removeFile = function(path,cb) { - if(isNode()) { + if(isNode) { var fs = require('fs'); fs.remove(path,cb); - } else if(isCordova()) { - utils.getGlobal().requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { + } else if(isCordova) { + utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:false}, function (fileEntry) { fileEntry.remove(cb); cb && cb(); // jshint ignore:line @@ -518,18 +515,18 @@ var removeFile = utils.removeFile = function(path,cb) { // Todo: check if it makes sense to support cordova and Meteor server var deleteFile = utils.deleteFile = function(path,cb){ - if(isNode()) { + if(isNode) { var fs = require('fs'); fs.unlink(path, cb); } }; var fileExists = utils.fileExists = function(path,cb){ - if(isNode()) { + if(isNode) { var fs = require('fs'); fs.exists(path,cb); - } else if(isCordova()) { - utils.getGlobal().requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { + } else if(isCordova) { + utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:false}, function (fileEntry) { cb(true); }, function(){ @@ -583,16 +580,16 @@ var saveFile = utils.saveFile = function(path, data, cb) { } } else { - if(isNode()) { + if(isNode) { // For Node.js var fs = require('fs'); data = fs.writeFileSync(path,data); if(cb){ res = cb(res); } - } else if(isCordova()) { + } else if(isCordova) { // For Apache Cordova - utils.getGlobal().requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { + utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { // alasql.utils.removeFile(path,function(){ fileSystem.root.getFile(path, {create:true}, function (fileEntry) { fileEntry.createWriter(function(fileWriter) { @@ -674,7 +671,7 @@ var saveFile = utils.saveFile = function(path, data, cb) { var ndata = data.replace(/\r\n/g,'&#A;&#D;'); ndata = ndata.replace(/\n/g,'&#D;'); ndata = ndata.replace(/\t/g,' '); - var testlink = utils.getGlobal().open("about:blank", "_blank"); + var testlink = utils.global.open("about:blank", "_blank"); testlink.document.write(ndata); //fileData has contents for the file testlink.document.close(); testlink.document.execCommand('SaveAs', false, path); @@ -1148,13 +1145,13 @@ utils.findAlaSQLPath = function() { if (isWebWorker()) { return ''; /** @todo Check how to get path in worker */ - } else if(isNode()) { + } else if(isNode) { return __dirname; - } else if(isMeteorClient()) { + } else if(isMeteorClient) { return '/packages/dist/'; - } else if(isMeteorServer()) { + } else if(isMeteorServer) { return 'assets/packages/dist/'; } else if(isBrowser()) { diff --git a/src/18promise.js b/src/18promise.js index 3e1a828b29..92ef56e8e9 100755 --- a/src/18promise.js +++ b/src/18promise.js @@ -3,9 +3,9 @@ // Promises for AlaSQL // //nodejs now has Promises -if(typeof utils.getGlobal().Promise === "object") { - var Promise = utils.getGlobal().Promise; -} else if(utils.isNode()){ +if(typeof utils.global.Promise === "object") { + var Promise = utils.global.Promise; +} else if(utils.isNode){ var Promise = require('es6-promise').Promise; } else { throw new Error('Please include a Promise library'); diff --git a/src/80console.js b/src/80console.js index 805133a492..61ca116de0 100755 --- a/src/80console.js +++ b/src/80console.js @@ -126,7 +126,7 @@ alasql.log = function(sql, params) { } // For Node and console.output - if(target === 'console' || utils.isNode()) { + if(target === 'console' || utils.isNode) { if(typeof sql === 'string' && alasql.options.logprompt){ console.log(olduseid+'>',sql); } @@ -185,7 +185,7 @@ alasql.clear = function() { var target = alasql.options.logtarget; // For node other - if(utils.IsNode() || utils.isMeteorServer()) { + if(utils.isNode || utils.isMeteorServer) { if(console.clear) { console.clear(); } @@ -209,7 +209,7 @@ alasql.write = function(s) { // console.log('write',s); var target = alasql.options.logtarget; // For node other - if(utils.IsNode() || utils.isMeteorServer()) { + if(utils.isNode || utils.isMeteorServer) { if(console.log) { console.log(s); } @@ -306,7 +306,7 @@ function scrollTo(element, to, duration) { } alasql.prompt = function(el, useidel, firstsql) { - if(utils.isNode()) { + if(utils.isNode) { throw new Error('The prompt not realized for Node.js'); } diff --git a/src/833xlsx.js b/src/833xlsx.js index 2736d6365e..5b0744f7e3 100755 --- a/src/833xlsx.js +++ b/src/833xlsx.js @@ -28,7 +28,7 @@ alasql.into.XLSX = function(filename, opts, data, columns, cb) { if(typeof exports == 'object') { var XLSX = require('xlsx'); } else { - var XLSX = utils.getGlobal().XLSX; + var XLSX = utils.global.XLSX; }; /* If called without filename, use opts */ diff --git a/src/84from.js b/src/84from.js index 371e3ba261..8447df7238 100755 --- a/src/84from.js +++ b/src/84from.js @@ -407,7 +407,7 @@ alasql.from.XLS = function(filename, opts, cb, idx, query) { if(typeof exports === 'object') { X = require('xlsjs'); } else { - X = utils.getGlobal().XLS; + X = utils.global.XLS; if(!X) { throw new Error('XLS library is not attached'); } @@ -420,7 +420,7 @@ alasql.from.XLSX = function(filename, opts, cb, idx, query) { if(typeof exports === 'object') { X = require('xlsx'); } else { - X = utils.getGlobal().XLSX; + X = utils.global.XLSX; if(!X) { throw new Error('XLSX library is not attached'); } diff --git a/src/91indexeddb.js b/src/91indexeddb.js index ceb431f7a2..1379e85dd1 100755 --- a/src/91indexeddb.js +++ b/src/91indexeddb.js @@ -6,13 +6,13 @@ // -if(typeof(utils.isBrowser()) && utils.getGlobal().indexedDB) { +if(typeof(utils.isBrowser) && utils.global.indexedDB) { var IDB = alasql.engines.INDEXEDDB = function (){}; // For Chrome it work normally, for Firefox - simple shim -if(typeof utils.getGlobal().indexedDB.webkitGetDatabaseNames == 'function') { - IDB.getDatabaseNames = utils.getGlobal().indexedDB.webkitGetDatabaseNames.bind(utils.getGlobal().indexedDB); +if(typeof utils.global.indexedDB.webkitGetDatabaseNames == 'function') { + IDB.getDatabaseNames = utils.global.indexedDB.webkitGetDatabaseNames.bind(utils.global.indexedDB); } else { IDB.getDatabaseNames = function () { var request = {}; @@ -58,7 +58,7 @@ IDB.showDatabases = function(like,cb) { IDB.createDatabase = function(ixdbid, args, ifnotexists, dbid, cb){ console.log(arguments); - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; if(ifnotexists) { var request2 = indexedDB.open(ixdbid,1); request2.onsuccess = function(event) { @@ -99,7 +99,7 @@ console.log(arguments); }; IDB.createDatabase = function(ixdbid, args, ifnotexists, dbid, cb){ - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; if(IDB.getDatabaseNamesNotSupported) { // Hack for Firefox if(ifnotexists) { @@ -165,7 +165,7 @@ IDB.createDatabase = function(ixdbid, args, ifnotexists, dbid, cb){ IDB.dropDatabase = function(ixdbid, ifexists, cb){ - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var request1 = IDB.getDatabaseNames(); request1.onsuccess = function(event) { var dblist = event.target.result; @@ -186,7 +186,7 @@ IDB.dropDatabase = function(ixdbid, ifexists, cb){ }; IDB.attachDatabase = function(ixdbid, dbid, args, params, cb) { - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var request1 = IDB.getDatabaseNames(); request1.onsuccess = function(event) { var dblist = event.target.result; @@ -223,7 +223,7 @@ IDB.attachDatabase = function(ixdbid, dbid, args, params, cb) { IDB.createTable = function(databaseid, tableid, ifnotexists, cb) { - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; // console.log(arguments); var ixdbid = alasql.databases[databaseid].ixdbid; // console.log(ixdbid); @@ -267,7 +267,7 @@ IDB.createTable = function(databaseid, tableid, ifnotexists, cb) { }; IDB.dropTable = function (databaseid, tableid, ifexists, cb) { - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var ixdbid = alasql.databases[databaseid].ixdbid; var request1 = IDB.getDatabaseNames(); @@ -353,7 +353,7 @@ IDB.intoTable = function(databaseid, tableid, value, columns, cb) { // console.log(arguments); // console.trace(); // console.log('intoTable',databaseid, tableid, value, cb); - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var ixdbid = alasql.databases[databaseid].ixdbid; var request1 = indexedDB.open(ixdbid); request1.onsuccess = function(event) { @@ -388,7 +388,7 @@ IDB.intoTable = function(databaseid, tableid, value, columns, cb) { IDB.fromTable = function(databaseid, tableid, cb, idx, query){ // console.log(arguments); // console.trace(); - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var ixdbid = alasql.databases[databaseid].ixdbid; var request = indexedDB.open(ixdbid); request.onsuccess = function(event) { @@ -425,7 +425,7 @@ IDB.fromTable = function(databaseid, tableid, cb, idx, query){ IDB.deleteFromTable = function(databaseid, tableid, wherefn,params, cb){ // console.log(arguments); // console.trace(); - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var ixdbid = alasql.databases[databaseid].ixdbid; var request = indexedDB.open(ixdbid); request.onsuccess = function(event) { @@ -467,7 +467,7 @@ IDB.deleteFromTable = function(databaseid, tableid, wherefn,params, cb){ IDB.updateTable = function(databaseid, tableid, assignfn, wherefn, params, cb){ // console.log(arguments); // console.trace(); - var indexedDB = utils.getGlobal().indexedDB; + var indexedDB = utils.global.indexedDB; var ixdbid = alasql.databases[databaseid].ixdbid; var request = indexedDB.open(ixdbid); request.onsuccess = function(event) { diff --git a/test/test.js b/test/test.js index 0312287102..610ab443c8 100644 --- a/test/test.js +++ b/test/test.js @@ -8,13 +8,13 @@ console.log(' Running tests on alasql@'+alasql.version); console.log(''); console.log(' Environment detected:',JSON.stringify({ alasqlPath: alasql.path, - isBrowser: alasql.utils.isBrowser(), - isCordova: alasql.utils.isCordova(), - isMeteor: alasql.utils.isMeteor(), - isMeteorClient: alasql.utils.isMeteorClient(), - isMeteorServer: alasql.utils.isMeteorServer(), - isNode: alasql.utils.isNode(), - isWebWorker: alasql.utils.isWebWorker() + isBrowser: alasql.utils.isBrowser, + isCordova: alasql.utils.isCordova, + isMeteor: alasql.utils.isMeteor, + isMeteorClient: alasql.utils.isMeteorClient, + isMeteorServer: alasql.utils.isMeteorServer, + isNode: alasql.utils.isNode, + isWebWorker: alasql.utils.isWebWorker },null,4)); From 2c69a4ce0eee41bdbc99e1d845eded223f4f667a Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Thu, 4 Feb 2016 11:39:29 +0100 Subject: [PATCH 13/54] Use cached environment information --- src/15utility.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/15utility.js b/src/15utility.js index fe70839420..fca372786c 100755 --- a/src/15utility.js +++ b/src/15utility.js @@ -496,10 +496,10 @@ var loadBinaryFile = utils.loadBinaryFile = function(path, asy, success, error) var removeFile = utils.removeFile = function(path,cb) { - if(isNode) { + if(utils.isNode) { var fs = require('fs'); fs.remove(path,cb); - } else if(isCordova) { + } else if(utils.isCordova) { utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:false}, function (fileEntry) { fileEntry.remove(cb); @@ -515,17 +515,17 @@ var removeFile = utils.removeFile = function(path,cb) { // Todo: check if it makes sense to support cordova and Meteor server var deleteFile = utils.deleteFile = function(path,cb){ - if(isNode) { + if(utils.isNode) { var fs = require('fs'); fs.unlink(path, cb); } }; var fileExists = utils.fileExists = function(path,cb){ - if(isNode) { + if(utils.isNode) { var fs = require('fs'); fs.exists(path,cb); - } else if(isCordova) { + } else if(utils.isCordova) { utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:false}, function (fileEntry) { cb(true); @@ -580,14 +580,14 @@ var saveFile = utils.saveFile = function(path, data, cb) { } } else { - if(isNode) { + if(utils.isNode) { // For Node.js var fs = require('fs'); data = fs.writeFileSync(path,data); if(cb){ res = cb(res); } - } else if(isCordova) { + } else if(utils.isCordova) { // For Apache Cordova utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { // alasql.utils.removeFile(path,function(){ @@ -1142,19 +1142,19 @@ utils.glob = function (value,pattern) { utils.findAlaSQLPath = function() { /** type {string} Path to alasql library and plugins */ - if (isWebWorker()) { + if (utils.isWebWorker()) { return ''; /** @todo Check how to get path in worker */ - } else if(isNode) { + } else if(utils.isNode) { return __dirname; - } else if(isMeteorClient) { + } else if(utils.isMeteorClient) { return '/packages/dist/'; - } else if(isMeteorServer) { + } else if(utils.isMeteorServer) { return 'assets/packages/dist/'; - } else if(isBrowser()) { + } else if(utils.isBrowser) { var sc = document.getElementsByTagName('script'); for(var i=0;i Date: Thu, 4 Feb 2016 11:45:04 +0100 Subject: [PATCH 14/54] Use cached info about environment --- dist/alasql-worker.js | 4 ++-- dist/alasql.js | 30 +++++++++++++++--------------- dist/alasql.min.js | 14 +++++++------- src/15utility.js | 2 +- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/dist/alasql-worker.js b/dist/alasql-worker.js index 4e800c4f88..f69f1eafe2 100755 --- a/dist/alasql-worker.js +++ b/dist/alasql-worker.js @@ -1,7 +1,7 @@ -/*! AlaSQL v0.2.3-develop-1181 © 2014-2015 Andrey Gershun & M. Rangel Wulff | alasql.org/license */ +/*! AlaSQL v0.2.3-develop-1183 © 2014-2015 Andrey Gershun & M. Rangel Wulff | alasql.org/license */ /* @module alasql -@version 0.2.3-develop-1181 +@version 0.2.3-develop-1183 AlaSQL - JavaScript SQL database © 2014-2015 Andrey Gershun & M. Rangel Wulff diff --git a/dist/alasql.js b/dist/alasql.js index 99180c7c52..22c35420c7 100755 --- a/dist/alasql.js +++ b/dist/alasql.js @@ -1,7 +1,7 @@ -/*! AlaSQL v0.2.3-develop-1181 © 2014-2015 Andrey Gershun & M. Rangel Wulff | alasql.org/license */ +/*! AlaSQL v0.2.3-develop-1183 © 2014-2015 Andrey Gershun & M. Rangel Wulff | alasql.org/license */ /* @module alasql -@version 0.2.3-develop-1181 +@version 0.2.3-develop-1183 AlaSQL - JavaScript SQL database © 2014-2015 Andrey Gershun & M. Rangel Wulff @@ -126,7 +126,7 @@ var alasql = function alasql(sql, params, cb, scope) { Current version of alasql @constant {string} */ -alasql.version = '0.2.3-develop-1181'; +alasql.version = '0.2.3-develop-1183'; /** Debug flag @@ -3438,10 +3438,10 @@ var loadBinaryFile = utils.loadBinaryFile = function(path, asy, success, error) }; var removeFile = utils.removeFile = function(path,cb) { - if(isNode) { + if(utils.isNode) { var fs = require('fs'); fs.remove(path,cb); - } else if(isCordova) { + } else if(utils.isCordova) { utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:false}, function (fileEntry) { fileEntry.remove(cb); @@ -3457,17 +3457,17 @@ var removeFile = utils.removeFile = function(path,cb) { // Todo: check if it makes sense to support cordova and Meteor server var deleteFile = utils.deleteFile = function(path,cb){ - if(isNode) { + if(utils.isNode) { var fs = require('fs'); fs.unlink(path, cb); } }; var fileExists = utils.fileExists = function(path,cb){ - if(isNode) { + if(utils.isNode) { var fs = require('fs'); fs.exists(path,cb); - } else if(isCordova) { + } else if(utils.isCordova) { utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { fileSystem.root.getFile(path, {create:false}, function (fileEntry) { cb(true); @@ -3502,14 +3502,14 @@ var saveFile = utils.saveFile = function(path, data, cb) { } } else { - if(isNode) { + if(utils.isNode) { // For Node.js var fs = require('fs'); data = fs.writeFileSync(path,data); if(cb){ res = cb(res); } - } else if(isCordova) { + } else if(utils.isCordova) { // For Apache Cordova utils.global.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { @@ -3941,19 +3941,19 @@ utils.glob = function (value,pattern) { utils.findAlaSQLPath = function() { /** type {string} Path to alasql library and plugins */ - if (isWebWorker()) { + if (utils.isWebWorker) { return ''; /** @todo Check how to get path in worker */ - } else if(isNode) { + } else if(utils.isNode) { return __dirname; - } else if(isMeteorClient) { + } else if(utils.isMeteorClient) { return '/packages/dist/'; - } else if(isMeteorServer) { + } else if(utils.isMeteorServer) { return 'assets/packages/dist/'; - } else if(isBrowser()) { + } else if(utils.isBrowser) { var sc = document.getElementsByTagName('script'); for(var i=0;i0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?W(a):r(l.args,0,a),0===u.length)return[];var E=W(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=W(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof te.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof te.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?J(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=Y(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=_(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=G(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='

',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:de(e[a][n])});t+=""}else t+="

"+de(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function ye(e,t,n,r){if("function"==typeof importScripts||!ye.webworker){if(0===arguments.length)return new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),ye.exec(e,t,n,r)}var s=ye.lastid++;ye.buffer[s]=n,ye.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1181",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?W(a):r(l.args,0,a),0===u.length)return[];var E=W(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=W(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof te.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof te.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?J(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=Y(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=_(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=G(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:de(e[a][n])});t+=""}else t+="

"+de(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function ye(e,t,n,r){if("function"==typeof importScripts||!ye.webworker){if(0===arguments.length)return new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),ye.exec(e,t,n,r)}var s=ye.lastid++;ye.buffer[s]=n,ye.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1183",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] });break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, 410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ 74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:Ve,414:je},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:Tt,113:wt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:804,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:dr,75:[1,805]},{71:dr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:dt,134:ft,141:821,142:Ke,149:pt,409:185,410:Ve,414:je,466:820,484:306,488:308},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(Tr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(Tr,[2,733]),t(Tr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:ha,330:da,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,368],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,369],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,371],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:Tt,113:wt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,381],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,382],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,383],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:858,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:dr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,Sa),t(Ta,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:Br,298:672,299:on,301:Gr},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:877,413:410,414:je,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:jr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:hn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:882,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:883,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:884,413:410,414:je},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:885,409:185,410:Ve,414:je},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:893,409:185,410:Ve,414:je},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:913,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,915],109:wn,111:459,112:Tt,113:wt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:925,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:d},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{111:954,112:Tt,113:wt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:970,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:971,4:r,5:a},{71:dr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, 285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:Ve,414:je}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],wr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,Va,{76:74,181:99,459:995,38:998,86:u,143:ja,186:d,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(_a,[2,753]),t(_a,[2,754]),t(_a,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(gt,[2,674],{121:[1,1002]}),{128:Ba,377:1003,379:Ga},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:Ve,414:je},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1012],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1015,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1016]},{71:dr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1020,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(Ta,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:Ve,414:je},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:d},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Ge,76:74,86:u,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,181:99,186:d,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:dr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1074],109:wn,111:459,112:Tt,113:wt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:dr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1081],109:wn,111:459,112:Tt,113:wt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1083],109:wn,111:459,112:Tt,113:wt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1085],109:wn,111:459,112:Tt,113:wt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1087],109:wn,111:459,112:Tt,113:wt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1089]},t(hs,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1093],109:wn,111:459,112:Tt,113:wt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1095],109:wn,111:459,112:Tt,113:wt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(ds,[2,643]),t(ds,[2,644]),t(ds,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:dr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1125,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:d},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1141,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:ha,330:da,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:[1,1145],75:[1,1146]},t(hs,[2,528]),t(hs,[2,529]),{128:Ba,377:1147,379:Ga},{71:fs,75:[1,1148]},t(hs,[2,463],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,372],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:dr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:dr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(Ta,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:de,178:ge,198:1164,293:qe,409:185,410:Ve,414:je},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:d},{3:718,4:r,5:a,108:1168},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1169,409:185,410:Ve,414:je},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:he,149:de,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1212,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, 198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column -},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=I();var L=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=L();var q=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=q();var U=function(){return"object"==typeof cordova};x.isCordova=U();var F=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},M=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},X=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},Y=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(t||"").toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(e||"").toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(N())return"";if($)return __dirname;if(L)return"/packages/dist/";if(q)return"assets/packages/dist/";if(D())for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=M(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new K(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var K=x.global.Promise;else{if(!x.isNode)throw new Error("Please include a Promise library");var K=require("es6-promise").Promise}T.promise=function(e,t){return new K(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var Q=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};Q.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},Q.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Q.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.executeSQL=z.prototype.exec;var Z=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},X(this,e)};Z.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var ee=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],X(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},X(this,e)}),te=(T.Recordset=function(e){X(this,e)},w.yy=T.yy={});te.extend=X,te.casesensitive=T.options.casesensitive;var ne=te.Base=function(e){return te.extend(this,e)};ne.prototype.toString=function(){},ne.prototype.toType=function(){},ne.prototype.toJS=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},te.Statements=function(e){return te.extend(this,e)},te.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},te.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},te.Search=function(e){return te.extend(this,e)},te.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},te.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{ -status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=J(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var re=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof te.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof te.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(re(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},te.Select=function(e){return te.extend(this,e)},te.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof te.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},te.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},te.Select.prototype.compile=function(e){var t=T.databases[e],n=new ee;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof te.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof te.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof te.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof te.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},te.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.ExistsValue=function(e){return te.extend(this,e)},te.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},te.ExistsValue.prototype.toType=function(){return"boolean"},te.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},te.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},te.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},te.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof te.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof te.Select)e.aliases[r]={type:"subquery"};else if(t instanceof te.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof te.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof te.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof te.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof te.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof te.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof te.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof te.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof te.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},te.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof te.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=P(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof te.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},te.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileWhereJoins=function(e){},te.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=V(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=j(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof te.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof te.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},te.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof te.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof te.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},te.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof te.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},te.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof te.Column&&"*"===n.columnid)){var a;a=A(n instanceof te.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},te.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof te.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof te.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof te.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},te.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},te.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof te.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof te.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},te.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0), -d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=J(p);n.columnid=t,e.columns.push(n)})}},te.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var ae=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof te.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},te.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},te.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},te.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof te.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},te.VarValue=function(e){return te.extend(this,e)},te.VarValue.prototype.toString=function(){return"@"+this.variable},te.VarValue.prototype.toType=function(){return"unknown"},te.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},te.NumValue=function(e){return te.extend(this,e)},te.NumValue.prototype.toString=function(){return this.value.toString()},te.NumValue.prototype.toType=function(){return"number"},te.NumValue.prototype.toJS=function(){return""+this.value},te.StringValue=function(e){return te.extend(this,e)},te.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},te.StringValue.prototype.toType=function(){return"string"},te.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},te.LogicValue=function(e){return te.extend(this,e)},te.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},te.LogicValue.prototype.toType=function(){return"boolean"},te.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},te.NullValue=function(e){return te.extend(this,e)},te.NullValue.prototype.toString=function(){return"NULL"},te.NullValue.prototype.toJS=function(){return"undefined"},te.ParamValue=function(e){return te.extend(this,e)},te.ParamValue.prototype.toString=function(){return"$"+this.param},te.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},te.UniOp=function(e){return te.extend(this,e)},te.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},te.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},te.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},te.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof te.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},te.Column=function(e){return te.extend(this,e)},te.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},te.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},te.AggrValue=function(e){return te.extend(this,e)},te.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},te.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},te.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},te.OrderExpression=function(e){return te.extend(this,e)},te.OrderExpression.prototype.toString=te.Expression.prototype.toString,te.GroupExpression=function(e){return te.extend(this,e)},te.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},te.FromData=function(e){return te.extend(this,e)},te.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},te.FromData.prototype.toJS=function(){},te.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=M(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},te.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new te.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new te.Column({columnid:"*",func:t,param:n}))}}),e},te.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new te.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new te.Table({tableid:e}))}return t},te.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new te.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new te.OrderExpression({expression:n,direction:"ASC"}))}),e},te.Select.prototype.Top=function(e){var t=this;return t.top=new te.NumValue({value:e}),t},te.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new te.Column({columnid:t});e.group.push(n)}),e},te.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},te.FuncValue=function(e){return te.extend(this,e)},te.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},te.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},te.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},te.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ue=T.stdlib={},ce=T.stdfn={};ue.ABS=function(e){return"Math.abs("+e+")"},ue.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},ce.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ue.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ue.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ue.IFNULL=function(e,t){return"("+e+"||"+t+")"},ue.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ue.LEN=ue.LENGTH=function(e){return t(e,"y.length")},ue.LOWER=ue.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ue.MAX=ue.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ue.MIN=ue.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ue.SUBSTRING=ue.SUBSTR=ue.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},ce.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ue.ISNULL=ue.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ue.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ue.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ue.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},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.SQRT=function(e){return"Math.sqrt("+e+")"},ue.TRIM=function(e){return t(e,"y.trim()")},ue.UPPER=ue.UCASE=function(e){return t(e,"String(y).toUpperCase()")},ce.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},ce.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var le=[],he=0;256>he;he++)le[he]=(16>he?"0":"")+he.toString(16);ce.NEWID=ce.UUID=ce.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return le[255&e]+le[e>>8&255]+le[e>>16&255]+le[e>>24&255]+"-"+le[255&t]+le[t>>8&255]+"-"+le[t>>16&15|64]+le[t>>24&255]+"-"+le[63&n|128]+le[n>>8&255]+"-"+le[n>>16&255]+le[n>>24&255]+le[255&r]+le[r>>8&255]+le[r>>16&255]+le[r>>24&255]},te.CaseValue=function(e){return te.extend(this,e)},te.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},te.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},te.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},te.Json=function(e){return te.extend(this,e)},te.Json.prototype.toString=function(){var e="";return e+=de(this.value),e+=""};var de=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return de(e)}).join(",")+"]";else if(!e.toJS||e instanceof te.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+de(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};te.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},te.Convert=function(e){return te.extend(this,e)},te.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},te.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},te.ColumnDef=function(e){return te.extend(this,e)},te.ColumnDef.prototype.toString=function(){var 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},te.CreateTable=function(e){return te.extend(this,e)},te.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},te.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=M(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=M(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists"); -var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=M(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=M(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=J(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,ce.EXTEND=T.utils.extend,ce.CHAR=String.fromCharCode.bind(String),ce.ASCII=function(e){return e.charCodeAt(0)},ce.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},te.CreateEdge=function(e){return te.extend(this,e)},te.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.CreateGraph=function(e){return te.extend(this,e)},te.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&X(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&X(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},te.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.AlterTable=function(e){return te.extend(this,e)},te.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},te.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},te.CreateIndex=function(e){return te.extend(this,e)},te.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},te.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=M(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},te.Reindex=function(e){return te.extend(this,e)},te.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},te.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},te.DropIndex=function(e){return te.extend(this,e)},te.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},te.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},te.WithSelect=function(e){return te.extend(this,e)},te.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},te.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new Z({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},te.If=function(e){return te.extend(this,e)},te.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},te.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},te.While=function(e){return te.extend(this,e)},te.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},te.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},te.Break=function(e){return te.extend(this,e)},te.Break.prototype.toString=function(){var e="BREAK";return e},te.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.Continue=function(e){return te.extend(this,e)},te.Continue.prototype.toString=function(){var e="CONTINUE";return e},te.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.BeginEnd=function(e){return te.extend(this,e)},te.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},te.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=J(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},te.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.CreateTrigger=function(e){return te.extend(this,e)},te.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()},te.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},te.DropTrigger=function(e){return te.extend(this,e)},te.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},te.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},te.Delete=function(e){return te.extend(this,e)},te.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},te.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},te.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Update=function(e){return te.extend(this,e)},te.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()),e},te.SetColumn=function(e){return te.extend(this,e)},te.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},te.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},te.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Merge=function(e){return te.extend(this,e)},te.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},te.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},te.CreateDatabase=function(e){return te.extend(this,e)},te.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},te.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},te.AttachDatabase=function(e){return te.extend(this,e)},te.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},te.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},te.DetachDatabase=function(e){return te.extend(this,e)},te.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid},te.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.'); -var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.UseDatabase=function(e){return te.extend(this,e)},te.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},te.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},te.DropDatabase=function(e){return te.extend(this,e)},te.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},te.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.Declare=function(e){return te.extend(this,e)},te.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},te.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},te.ShowDatabases=function(e){return te.extend(this,e)},te.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},te.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},te.ShowTables=function(e){return te.extend(this,e)},te.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},te.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},te.ShowColumns=function(e){return te.extend(this,e)},te.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},te.ShowIndex=function(e){return te.extend(this,e)},te.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},te.ShowCreateTable=function(e){return te.extend(this,e)},te.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},te.SetVariable=function(e){return te.extend(this,e)},te.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},te.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;"object"==typeof exports&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(de(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="
"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},te.BeginTransaction=function(e){return te.extend(this,e)},te.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},te.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},te.CommitTransaction=function(e){return te.extend(this,e)},te.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},te.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},te.RollbackTransaction=function(e){return te.extend(this,e)},te.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},te.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&X(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=M(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&X(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(X(s,h.row),h.rows&&h.rows[a]&&X(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library is not attached");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library is not attached");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},te.Help=function(e){return te.extend(this,e)},te.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],te.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},te.Print=function(e){return te.extend(this,e)},te.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},te.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return de(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(de(i))}else console.log();return n&&(a=n(a)),a},te.Source=function(e){return te.extend(this,e)},te.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},te.Source.prototype.execute=function(e,t,n){var r;return F(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},te.Require=function(e){return te.extend(this,e)},te.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},te.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){F(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||F(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},be.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},be.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},be.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var ge=T.engines.LOCALSTORAGE=function(){};ge.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},ge.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},ge.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,ge.set(n.lsdbid+"."+t,a)},ge.restoreTable=function(e,t){var n=T.databases[e],r=ge.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},ge.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},ge.createDatabase=function(e,t,n,r,a){var s=1,i=ge.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,ge.set("alasql",i),ge.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},ge.dropDatabase=function(e,t,n){var r=1,a=ge.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],ge.set("alasql",a);var s=ge.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},ge.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=ge.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)ge.restoreTable(t,o);return a&&(s=a(s)),s},ge.showDatabases=function(e,t){var n=[],r=ge.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},ge.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=ge.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=ge.get(s);T.databases[e].tables[t];return o.tables[t]=!0,ge.set(s,o),ge.storeTable(e,t),r&&r(a),a},ge.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=ge.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],ge.set(s,i),ge.removeTable(e,t),r&&r(a),a},ge.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,ge.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},ge.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=ge.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),ge.storeTable(e,t),a&&a(s),s},ge.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;ge.restoreTable(e,t)},ge.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;ge.storeTable(r,t),n.tables[t].data=void 0},ge.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,ge.storeTable(e,s);return ge.set(r,a),1},ge.begin=ge.commit,ge.rollback=function(e,t){return};var me=T.engines.SQLITE=function(){};me.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},me.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof te.StringValue||n[0]instanceof te.ParamValue){if(n[0]instanceof te.StringValue)var i=n[0].value;else if(n[0]instanceof te.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},me.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},me.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var ve=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(ve.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},ve.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,F(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},ve.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],ve.updateFile(e),r&&r(i),i},ve.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){ve.updateFile(e)},50)}))},ve.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],ve.updateFile(e),r&&r(a),a},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},ve.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),ve.updateFile(e),a&&a(i),i},ve.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},ve.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,ve.updateFile(e)},ve.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return ve.updateFile(e),1},ve.begin=ve.commit,ve.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});X(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),X(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},"object"!=typeof exports&&"function"!=typeof importScripts&&"object"==typeof document){var Ee=Ee||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=Ee:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return Ee}),T.utils.saveAs=Ee}return new Q("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file +},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=I();var L=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=L();var q=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=q();var U=function(){return"object"==typeof cordova};x.isCordova=U();var F=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},M=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},X=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},Y=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(t||"").toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(e||"").toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=M(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new K(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var K=x.global.Promise;else{if(!x.isNode)throw new Error("Please include a Promise library");var K=require("es6-promise").Promise}T.promise=function(e,t){return new K(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var Q=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};Q.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},Q.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Q.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.executeSQL=z.prototype.exec;var Z=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},X(this,e)};Z.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var ee=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],X(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},X(this,e)}),te=(T.Recordset=function(e){X(this,e)},w.yy=T.yy={});te.extend=X,te.casesensitive=T.options.casesensitive;var ne=te.Base=function(e){return te.extend(this,e)};ne.prototype.toString=function(){},ne.prototype.toType=function(){},ne.prototype.toJS=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},te.Statements=function(e){return te.extend(this,e)},te.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},te.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},te.Search=function(e){return te.extend(this,e)},te.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},te.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){ +var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=J(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var re=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof te.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof te.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(re(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},te.Select=function(e){return te.extend(this,e)},te.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof te.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},te.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},te.Select.prototype.compile=function(e){var t=T.databases[e],n=new ee;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof te.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof te.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof te.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof te.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},te.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.ExistsValue=function(e){return te.extend(this,e)},te.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},te.ExistsValue.prototype.toType=function(){return"boolean"},te.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},te.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},te.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},te.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof te.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof te.Select)e.aliases[r]={type:"subquery"};else if(t instanceof te.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof te.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof te.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof te.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof te.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof te.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof te.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof te.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof te.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},te.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof te.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=P(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof te.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},te.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileWhereJoins=function(e){},te.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=V(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=j(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof te.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof te.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},te.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof te.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof te.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},te.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof te.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},te.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof te.Column&&"*"===n.columnid)){var a;a=A(n instanceof te.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},te.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof te.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof te.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof te.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},te.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},te.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof te.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof te.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},te.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1, +o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=J(p);n.columnid=t,e.columns.push(n)})}},te.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var ae=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof te.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},te.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},te.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},te.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof te.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},te.VarValue=function(e){return te.extend(this,e)},te.VarValue.prototype.toString=function(){return"@"+this.variable},te.VarValue.prototype.toType=function(){return"unknown"},te.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},te.NumValue=function(e){return te.extend(this,e)},te.NumValue.prototype.toString=function(){return this.value.toString()},te.NumValue.prototype.toType=function(){return"number"},te.NumValue.prototype.toJS=function(){return""+this.value},te.StringValue=function(e){return te.extend(this,e)},te.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},te.StringValue.prototype.toType=function(){return"string"},te.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},te.LogicValue=function(e){return te.extend(this,e)},te.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},te.LogicValue.prototype.toType=function(){return"boolean"},te.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},te.NullValue=function(e){return te.extend(this,e)},te.NullValue.prototype.toString=function(){return"NULL"},te.NullValue.prototype.toJS=function(){return"undefined"},te.ParamValue=function(e){return te.extend(this,e)},te.ParamValue.prototype.toString=function(){return"$"+this.param},te.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},te.UniOp=function(e){return te.extend(this,e)},te.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},te.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},te.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},te.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof te.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},te.Column=function(e){return te.extend(this,e)},te.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},te.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},te.AggrValue=function(e){return te.extend(this,e)},te.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},te.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},te.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},te.OrderExpression=function(e){return te.extend(this,e)},te.OrderExpression.prototype.toString=te.Expression.prototype.toString,te.GroupExpression=function(e){return te.extend(this,e)},te.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},te.FromData=function(e){return te.extend(this,e)},te.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},te.FromData.prototype.toJS=function(){},te.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=M(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},te.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new te.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new te.Column({columnid:"*",func:t,param:n}))}}),e},te.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new te.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new te.Table({tableid:e}))}return t},te.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new te.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new te.OrderExpression({expression:n,direction:"ASC"}))}),e},te.Select.prototype.Top=function(e){var t=this;return t.top=new te.NumValue({value:e}),t},te.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new te.Column({columnid:t});e.group.push(n)}),e},te.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},te.FuncValue=function(e){return te.extend(this,e)},te.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},te.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},te.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},te.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ue=T.stdlib={},ce=T.stdfn={};ue.ABS=function(e){return"Math.abs("+e+")"},ue.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},ce.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ue.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ue.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ue.IFNULL=function(e,t){return"("+e+"||"+t+")"},ue.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ue.LEN=ue.LENGTH=function(e){return t(e,"y.length")},ue.LOWER=ue.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ue.MAX=ue.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ue.MIN=ue.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ue.SUBSTRING=ue.SUBSTR=ue.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},ce.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ue.ISNULL=ue.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ue.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ue.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ue.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},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.SQRT=function(e){return"Math.sqrt("+e+")"},ue.TRIM=function(e){return t(e,"y.trim()")},ue.UPPER=ue.UCASE=function(e){return t(e,"String(y).toUpperCase()")},ce.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},ce.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var le=[],he=0;256>he;he++)le[he]=(16>he?"0":"")+he.toString(16);ce.NEWID=ce.UUID=ce.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return le[255&e]+le[e>>8&255]+le[e>>16&255]+le[e>>24&255]+"-"+le[255&t]+le[t>>8&255]+"-"+le[t>>16&15|64]+le[t>>24&255]+"-"+le[63&n|128]+le[n>>8&255]+"-"+le[n>>16&255]+le[n>>24&255]+le[255&r]+le[r>>8&255]+le[r>>16&255]+le[r>>24&255]},te.CaseValue=function(e){return te.extend(this,e)},te.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},te.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},te.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},te.Json=function(e){return te.extend(this,e)},te.Json.prototype.toString=function(){var e="";return e+=de(this.value),e+=""};var de=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return de(e)}).join(",")+"]";else if(!e.toJS||e instanceof te.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+de(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};te.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},te.Convert=function(e){return te.extend(this,e)},te.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},te.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},te.ColumnDef=function(e){return te.extend(this,e)},te.ColumnDef.prototype.toString=function(){var 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},te.CreateTable=function(e){return te.extend(this,e)},te.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},te.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=M(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=M(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","), +o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=M(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=M(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=J(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,ce.EXTEND=T.utils.extend,ce.CHAR=String.fromCharCode.bind(String),ce.ASCII=function(e){return e.charCodeAt(0)},ce.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},te.CreateEdge=function(e){return te.extend(this,e)},te.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.CreateGraph=function(e){return te.extend(this,e)},te.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&X(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&X(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},te.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.AlterTable=function(e){return te.extend(this,e)},te.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},te.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},te.CreateIndex=function(e){return te.extend(this,e)},te.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},te.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=M(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},te.Reindex=function(e){return te.extend(this,e)},te.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},te.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},te.DropIndex=function(e){return te.extend(this,e)},te.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},te.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},te.WithSelect=function(e){return te.extend(this,e)},te.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},te.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new Z({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},te.If=function(e){return te.extend(this,e)},te.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},te.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},te.While=function(e){return te.extend(this,e)},te.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},te.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},te.Break=function(e){return te.extend(this,e)},te.Break.prototype.toString=function(){var e="BREAK";return e},te.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.Continue=function(e){return te.extend(this,e)},te.Continue.prototype.toString=function(){var e="CONTINUE";return e},te.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.BeginEnd=function(e){return te.extend(this,e)},te.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},te.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=J(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},te.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.CreateTrigger=function(e){return te.extend(this,e)},te.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()},te.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},te.DropTrigger=function(e){return te.extend(this,e)},te.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},te.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},te.Delete=function(e){return te.extend(this,e)},te.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},te.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},te.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Update=function(e){return te.extend(this,e)},te.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()),e},te.SetColumn=function(e){return te.extend(this,e)},te.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},te.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},te.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Merge=function(e){return te.extend(this,e)},te.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},te.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},te.CreateDatabase=function(e){return te.extend(this,e)},te.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},te.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},te.AttachDatabase=function(e){return te.extend(this,e)},te.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},te.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},te.DetachDatabase=function(e){return te.extend(this,e)},te.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid},te.DetachDatabase.prototype.execute=function(e,t,n){ +if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.UseDatabase=function(e){return te.extend(this,e)},te.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},te.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},te.DropDatabase=function(e){return te.extend(this,e)},te.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},te.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.Declare=function(e){return te.extend(this,e)},te.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},te.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},te.ShowDatabases=function(e){return te.extend(this,e)},te.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},te.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},te.ShowTables=function(e){return te.extend(this,e)},te.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},te.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},te.ShowColumns=function(e){return te.extend(this,e)},te.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},te.ShowIndex=function(e){return te.extend(this,e)},te.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},te.ShowCreateTable=function(e){return te.extend(this,e)},te.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},te.SetVariable=function(e){return te.extend(this,e)},te.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},te.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;"object"==typeof exports&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(de(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="

"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},te.BeginTransaction=function(e){return te.extend(this,e)},te.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},te.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},te.CommitTransaction=function(e){return te.extend(this,e)},te.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},te.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},te.RollbackTransaction=function(e){return te.extend(this,e)},te.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},te.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&X(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=M(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&X(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(X(s,h.row),h.rows&&h.rows[a]&&X(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library is not attached");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library is not attached");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},te.Help=function(e){return te.extend(this,e)},te.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],te.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},te.Print=function(e){return te.extend(this,e)},te.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},te.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return de(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(de(i))}else console.log();return n&&(a=n(a)),a},te.Source=function(e){return te.extend(this,e)},te.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},te.Source.prototype.execute=function(e,t,n){var r;return F(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},te.Require=function(e){return te.extend(this,e)},te.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},te.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){F(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||F(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},be.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},be.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},be.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var ge=T.engines.LOCALSTORAGE=function(){};ge.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},ge.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},ge.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,ge.set(n.lsdbid+"."+t,a)},ge.restoreTable=function(e,t){var n=T.databases[e],r=ge.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},ge.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},ge.createDatabase=function(e,t,n,r,a){var s=1,i=ge.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,ge.set("alasql",i),ge.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},ge.dropDatabase=function(e,t,n){var r=1,a=ge.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],ge.set("alasql",a);var s=ge.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},ge.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=ge.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)ge.restoreTable(t,o);return a&&(s=a(s)),s},ge.showDatabases=function(e,t){var n=[],r=ge.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},ge.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=ge.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=ge.get(s);T.databases[e].tables[t];return o.tables[t]=!0,ge.set(s,o),ge.storeTable(e,t),r&&r(a),a},ge.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=ge.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],ge.set(s,i),ge.removeTable(e,t),r&&r(a),a},ge.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,ge.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},ge.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=ge.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),ge.storeTable(e,t),a&&a(s),s},ge.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;ge.restoreTable(e,t)},ge.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;ge.storeTable(r,t),n.tables[t].data=void 0},ge.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,ge.storeTable(e,s);return ge.set(r,a),1},ge.begin=ge.commit,ge.rollback=function(e,t){return};var me=T.engines.SQLITE=function(){};me.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},me.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof te.StringValue||n[0]instanceof te.ParamValue){if(n[0]instanceof te.StringValue)var i=n[0].value;else if(n[0]instanceof te.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},me.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},me.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var ve=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(ve.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},ve.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,F(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},ve.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],ve.updateFile(e),r&&r(i),i},ve.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){ve.updateFile(e)},50)}))},ve.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],ve.updateFile(e),r&&r(a),a},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},ve.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),ve.updateFile(e),a&&a(i),i},ve.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},ve.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,ve.updateFile(e)},ve.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return ve.updateFile(e),1},ve.begin=ve.commit,ve.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});X(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),X(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},"object"!=typeof exports&&"function"!=typeof importScripts&&"object"==typeof document){var Ee=Ee||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=Ee:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return Ee}),T.utils.saveAs=Ee}return new Q("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file diff --git a/src/15utility.js b/src/15utility.js index fca372786c..86034b5b45 100755 --- a/src/15utility.js +++ b/src/15utility.js @@ -1142,7 +1142,7 @@ utils.glob = function (value,pattern) { utils.findAlaSQLPath = function() { /** type {string} Path to alasql library and plugins */ - if (utils.isWebWorker()) { + if (utils.isWebWorker) { return ''; /** @todo Check how to get path in worker */ } else if(utils.isNode) { From 9fc2154e227cb087046b5e371be2087b9c61e587 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Thu, 4 Feb 2016 15:08:08 +0100 Subject: [PATCH 15/54] Update copyright notice --- dist/alasql-worker.js | 9 ++++----- dist/alasql-worker.min.js | 1 + dist/alasql.js | 10 +++++----- dist/alasql.min.js | 3 ++- gulpfile.js | 14 ++------------ src/05copyright.js | 7 +++---- 6 files changed, 17 insertions(+), 27 deletions(-) mode change 100755 => 100644 dist/alasql-worker.js mode change 100755 => 100644 dist/alasql-worker.min.js mode change 100755 => 100644 dist/alasql.js mode change 100755 => 100644 dist/alasql.min.js diff --git a/dist/alasql-worker.js b/dist/alasql-worker.js old mode 100755 new mode 100644 index f69f1eafe2..93b79a62f2 --- a/dist/alasql-worker.js +++ b/dist/alasql-worker.js @@ -1,16 +1,15 @@ -/*! AlaSQL v0.2.3-develop-1183 © 2014-2015 Andrey Gershun & M. Rangel Wulff | alasql.org/license */ +//! AlaSQL v0.2.3-develop-1184 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1183 +@version 0.2.3-develop-1184 AlaSQL - JavaScript SQL database -© 2014-2015 Andrey Gershun & M. Rangel Wulff - +© 2014-2016 Andrey Gershun & Mathias Rangel Wulff @license The MIT License (MIT) -Copyright © 2014-2015 Andrey Gershun (agershun@gmail.com) & M. Rangel Wulff (m@rawu.dk) +Copyright 2014-2016 Andrey Gershun (agershun@gmail.com) & Mathias Rangel Wulff (m@rawu.dk) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/dist/alasql-worker.min.js b/dist/alasql-worker.min.js old mode 100755 new mode 100644 index b4fd276a78..a059ae3aeb --- a/dist/alasql-worker.min.js +++ b/dist/alasql-worker.min.js @@ -1 +1,2 @@ +//! AlaSQL v0.2.3-develop-1184 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT !function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?module.exports=r():e.alasql=r()}(this,function(){function e(r,t,s){var a=e.lastid++;e.buffer[a]=s,e.webworker.postMessage({id:a,sql:r,params:t})}return"object"!=typeof exports&&(e.worker=function(r,t,s){if(r===!0&&(r=void 0),"undefined"==typeof r)for(var a=document.getElementsByTagName("script"),o=0;o1){var f="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");e(f,[],s)}}else if(r===!1)return void delete e.webworker}),e.lastid=0,e.buffer={},e.worker(),e}); \ No newline at end of file diff --git a/dist/alasql.js b/dist/alasql.js old mode 100755 new mode 100644 index 22c35420c7..30a2e4b542 --- a/dist/alasql.js +++ b/dist/alasql.js @@ -1,15 +1,15 @@ -/*! AlaSQL v0.2.3-develop-1183 © 2014-2015 Andrey Gershun & M. Rangel Wulff | alasql.org/license */ +//! AlaSQL v0.2.3-develop-1184 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1183 +@version 0.2.3-develop-1184 AlaSQL - JavaScript SQL database -© 2014-2015 Andrey Gershun & M. Rangel Wulff +© 2014-2016 Andrey Gershun & Mathias Rangel Wulff @license The MIT License (MIT) -Copyright © 2014-2015 Andrey Gershun (agershun@gmail.com) & M. Rangel Wulff (m@rawu.dk) +Copyright 2014-2016 Andrey Gershun (agershun@gmail.com) & Mathias Rangel Wulff (m@rawu.dk) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -126,7 +126,7 @@ var alasql = function alasql(sql, params, cb, scope) { Current version of alasql @constant {string} */ -alasql.version = '0.2.3-develop-1183'; +alasql.version = '0.2.3-develop-1184'; /** Debug flag diff --git a/dist/alasql.min.js b/dist/alasql.min.js old mode 100755 new mode 100644 index a6c7f46f93..fb539f665e --- a/dist/alasql.min.js +++ b/dist/alasql.min.js @@ -1,4 +1,5 @@ -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?W(a):r(l.args,0,a),0===u.length)return[];var E=W(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=W(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof te.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof te.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?J(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=Y(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=_(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=G(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='

',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:de(e[a][n])});t+=""}else t+="

"+de(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function ye(e,t,n,r){if("function"==typeof importScripts||!ye.webworker){if(0===arguments.length)return new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),ye.exec(e,t,n,r)}var s=ye.lastid++;ye.buffer[s]=n,ye.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1183",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +//! AlaSQL v0.2.3-develop-1184 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?W(a):r(l.args,0,a),0===u.length)return[];var E=W(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=W(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof te.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof te.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?J(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=Y(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=_(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=G(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:de(e[a][n])});t+=""}else t+="

"+de(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function ye(e,t,n,r){if("function"==typeof importScripts||!ye.webworker){if(0===arguments.length)return new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),ye.exec(e,t,n,r)}var s=ye.lastid++;ye.buffer[s]=n,ye.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1184",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] });break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, 410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ diff --git a/gulpfile.js b/gulpfile.js index fb0a0cdc05..d7e223796a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -10,14 +10,8 @@ var closure = false; var fs = require('fs'); var gulp = require('gulp'); module.exports = gulp; -//var connect = require('gulp-connect'); -//var livereload = require('gulp-livereload'); -//var changed = require('gulp-changed'); -//var jison = require('gulp-jison'); -//var concat = require('gulp-concat-sourcemap'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); -//var jisonLex = require('gulp-jison-lex'); var shell = require('gulp-shell'); var rename = require('gulp-rename'); var dereserve = require('gulp-dereserve'); @@ -33,8 +27,6 @@ var branch = execSync('git --work-tree="' + __dirname +'" --git-dir="' + __dirna .match(/^\*\s+(.*)/m)[1] .trim() var commits = parseInt(execSync('git rev-list HEAD --count', {encoding:'utf8'})) | 0; - - if(!(/^master|^release\//.test(branch))){ version += '-' + branch.replace(/[^0-9a-z-]/ig,'.').replace(/^\.+|\.+$/g,'') @@ -42,7 +34,6 @@ if(!(/^master|^release\//.test(branch))){ + commits; } - gulp.task('js-merge-worker', function () { return gulp.src([ './src/05copyright.js', @@ -54,7 +45,7 @@ gulp.task('js-merge-worker', function () { .pipe(replace(/PACKAGE_VERSION_NUMBER/g, version)) .pipe(gulp.dest('./dist')) .pipe(rename('alasql-worker.min.js')) - .pipe(uglify()) + .pipe(uglify({preserveComments:function(a,b){return 1===b.line && /^!/.test(b.value)}})) // leave first line of comment if starts with a "!" .pipe(gulp.dest('./dist')); }); @@ -160,9 +151,8 @@ gulp.task('js-merge', function () { .pipe(gulp.dest('./dist')) .pipe(dereserve()) .pipe(rename('alasql.min.js')) - .pipe(uglify()) + .pipe(uglify({preserveComments:function(a,b){return 1===b.line && /^!/.test(b.value)}})) // leave first line of comment if starts with a "!" .pipe(gulp.dest('./dist')) - //.pipe(shell(['cd test && (mocha . --reporter dot || if [ $? -ne 0 ] ; then say -v bell Tests failed ; else say -v bell All tests OK; fi)'])) ; }); diff --git a/src/05copyright.js b/src/05copyright.js index 2478daedad..9f539ab079 100644 --- a/src/05copyright.js +++ b/src/05copyright.js @@ -1,16 +1,15 @@ -/*! AlaSQL vPACKAGE_VERSION_NUMBER © 2014-2015 Andrey Gershun & M. Rangel Wulff | alasql.org/license */ +//! AlaSQL vPACKAGE_VERSION_NUMBER | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql @version PACKAGE_VERSION_NUMBER AlaSQL - JavaScript SQL database -© 2014-2015 Andrey Gershun & M. Rangel Wulff - +© 2014-2016 Andrey Gershun & Mathias Rangel Wulff @license The MIT License (MIT) -Copyright © 2014-2015 Andrey Gershun (agershun@gmail.com) & M. Rangel Wulff (m@rawu.dk) +Copyright 2014-2016 Andrey Gershun (agershun@gmail.com) & Mathias Rangel Wulff (m@rawu.dk) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From d45d4616f8b5c348a9a207762c22777cf37c081c Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Thu, 4 Feb 2016 15:13:26 +0100 Subject: [PATCH 16/54] Avoid error if Promise never used --- .jshintrc | 1 + dist/alasql-worker.js | 4 ++-- dist/alasql-worker.min.js | 2 +- dist/alasql.js | 15 +++++++++------ dist/alasql.min.js | 14 +++++++------- src/18promise.js | 9 ++++++--- 6 files changed, 26 insertions(+), 19 deletions(-) mode change 100644 => 100755 dist/alasql.js mode change 100644 => 100755 dist/alasql.min.js diff --git a/.jshintrc b/.jshintrc index f0f6e90c18..c479df673a 100644 --- a/.jshintrc +++ b/.jshintrc @@ -26,6 +26,7 @@ "NL", "ID", "P", + “utils”, "n2u", "LocalFileSystem", "Meteor", diff --git a/dist/alasql-worker.js b/dist/alasql-worker.js index 93b79a62f2..e4f37ec19a 100644 --- a/dist/alasql-worker.js +++ b/dist/alasql-worker.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1184 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1185 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1184 +@version 0.2.3-develop-1185 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff diff --git a/dist/alasql-worker.min.js b/dist/alasql-worker.min.js index a059ae3aeb..def8007a08 100644 --- a/dist/alasql-worker.min.js +++ b/dist/alasql-worker.min.js @@ -1,2 +1,2 @@ -//! AlaSQL v0.2.3-develop-1184 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1185 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT !function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?module.exports=r():e.alasql=r()}(this,function(){function e(r,t,s){var a=e.lastid++;e.buffer[a]=s,e.webworker.postMessage({id:a,sql:r,params:t})}return"object"!=typeof exports&&(e.worker=function(r,t,s){if(r===!0&&(r=void 0),"undefined"==typeof r)for(var a=document.getElementsByTagName("script"),o=0;o1){var f="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");e(f,[],s)}}else if(r===!1)return void delete e.webworker}),e.lastid=0,e.buffer={},e.worker(),e}); \ No newline at end of file diff --git a/dist/alasql.js b/dist/alasql.js old mode 100644 new mode 100755 index 30a2e4b542..2cdcf00e93 --- a/dist/alasql.js +++ b/dist/alasql.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1184 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1185 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1184 +@version 0.2.3-develop-1185 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff @@ -126,7 +126,7 @@ var alasql = function alasql(sql, params, cb, scope) { Current version of alasql @constant {string} */ -alasql.version = '0.2.3-develop-1184'; +alasql.version = '0.2.3-develop-1185'; /** Debug flag @@ -4395,19 +4395,22 @@ alasql.compile = function(sql, databaseid) { // Promises for AlaSQL // //nodejs now has Promises + if(typeof utils.global.Promise === "object") { var Promise = utils.global.Promise; } else if(utils.isNode){ var Promise = require('es6-promise').Promise; -} else { - throw new Error('Please include a Promise library'); -} +} // // Only for browsers with Promise support // //if(typeof window !== 'undefined' && typeof window.Promise === 'function') { alasql.promise = function(sql, params) { + if(!utils.global.Promise){ + throw new Error('Please include a Promise library'); + } + return new Promise(function(resolve, reject){ alasql(sql, params, function(data,err) { if(err) { diff --git a/dist/alasql.min.js b/dist/alasql.min.js old mode 100644 new mode 100755 index fb539f665e..d87445b3c3 --- a/dist/alasql.min.js +++ b/dist/alasql.min.js @@ -1,14 +1,14 @@ -//! AlaSQL v0.2.3-develop-1184 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?W(a):r(l.args,0,a),0===u.length)return[];var E=W(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=W(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof te.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof te.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?J(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=Y(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=_(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=G(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:de(e[a][n])});t+=""}else t+="

"+de(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function ye(e,t,n,r){if("function"==typeof importScripts||!ye.webworker){if(0===arguments.length)return new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),ye.exec(e,t,n,r)}var s=ye.lastid++;ye.buffer[s]=n,ye.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1184",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +//! AlaSQL v0.2.3-develop-1185 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?W(a):r(l.args,0,a),0===u.length)return[];var E=W(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=W(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof te.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof te.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?J(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=Y(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=_(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=G(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:de(e[a][n])});t+=""}else t+="

"+de(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function ye(e,t,n,r){if("function"==typeof importScripts||!ye.webworker){if(0===arguments.length)return new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),ye.exec(e,t,n,r)}var s=ye.lastid++;ye.buffer[s]=n,ye.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1185",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] });break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, 410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ 74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:Ve,414:je},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:Tt,113:wt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:804,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:dr,75:[1,805]},{71:dr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:dt,134:ft,141:821,142:Ke,149:pt,409:185,410:Ve,414:je,466:820,484:306,488:308},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(Tr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(Tr,[2,733]),t(Tr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:ha,330:da,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,368],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,369],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,371],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:Tt,113:wt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,381],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,382],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,383],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:858,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:dr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,Sa),t(Ta,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:Br,298:672,299:on,301:Gr},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:877,413:410,414:je,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:jr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:hn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:882,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:883,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:884,413:410,414:je},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:885,409:185,410:Ve,414:je},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:893,409:185,410:Ve,414:je},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:913,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,915],109:wn,111:459,112:Tt,113:wt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:925,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:d},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{111:954,112:Tt,113:wt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:970,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:971,4:r,5:a},{71:dr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, 285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:Ve,414:je}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],wr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,Va,{76:74,181:99,459:995,38:998,86:u,143:ja,186:d,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(_a,[2,753]),t(_a,[2,754]),t(_a,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(gt,[2,674],{121:[1,1002]}),{128:Ba,377:1003,379:Ga},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:Ve,414:je},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1012],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1015,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1016]},{71:dr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1020,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(Ta,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:Ve,414:je},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:d},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Ge,76:74,86:u,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,181:99,186:d,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:dr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1074],109:wn,111:459,112:Tt,113:wt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:dr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1081],109:wn,111:459,112:Tt,113:wt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1083],109:wn,111:459,112:Tt,113:wt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1085],109:wn,111:459,112:Tt,113:wt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1087],109:wn,111:459,112:Tt,113:wt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1089]},t(hs,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1093],109:wn,111:459,112:Tt,113:wt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1095],109:wn,111:459,112:Tt,113:wt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(ds,[2,643]),t(ds,[2,644]),t(ds,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:dr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1125,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:d},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1141,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:ha,330:da,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:[1,1145],75:[1,1146]},t(hs,[2,528]),t(hs,[2,529]),{128:Ba,377:1147,379:Ga},{71:fs,75:[1,1148]},t(hs,[2,463],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,372],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:dr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:dr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(Ta,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:de,178:ge,198:1164,293:qe,409:185,410:Ve,414:je},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:d},{3:718,4:r,5:a,108:1168},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1169,409:185,410:Ve,414:je},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:he,149:de,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1212,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, 198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column -},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=I();var L=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=L();var q=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=q();var U=function(){return"object"==typeof cordova};x.isCordova=U();var F=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},M=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},X=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},Y=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(t||"").toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(e||"").toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=M(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new K(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var K=x.global.Promise;else{if(!x.isNode)throw new Error("Please include a Promise library");var K=require("es6-promise").Promise}T.promise=function(e,t){return new K(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var Q=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};Q.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},Q.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Q.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.executeSQL=z.prototype.exec;var Z=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},X(this,e)};Z.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var ee=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],X(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},X(this,e)}),te=(T.Recordset=function(e){X(this,e)},w.yy=T.yy={});te.extend=X,te.casesensitive=T.options.casesensitive;var ne=te.Base=function(e){return te.extend(this,e)};ne.prototype.toString=function(){},ne.prototype.toType=function(){},ne.prototype.toJS=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},te.Statements=function(e){return te.extend(this,e)},te.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},te.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},te.Search=function(e){return te.extend(this,e)},te.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},te.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){ -var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=J(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var re=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof te.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof te.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(re(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},te.Select=function(e){return te.extend(this,e)},te.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof te.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},te.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},te.Select.prototype.compile=function(e){var t=T.databases[e],n=new ee;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof te.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof te.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof te.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof te.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},te.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.ExistsValue=function(e){return te.extend(this,e)},te.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},te.ExistsValue.prototype.toType=function(){return"boolean"},te.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},te.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},te.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},te.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof te.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof te.Select)e.aliases[r]={type:"subquery"};else if(t instanceof te.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof te.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof te.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof te.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof te.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof te.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof te.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof te.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof te.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},te.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof te.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=P(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof te.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},te.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileWhereJoins=function(e){},te.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=V(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=j(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof te.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof te.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},te.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof te.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof te.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},te.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof te.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},te.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof te.Column&&"*"===n.columnid)){var a;a=A(n instanceof te.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},te.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof te.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof te.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof te.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},te.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},te.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof te.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof te.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},te.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1, -o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=J(p);n.columnid=t,e.columns.push(n)})}},te.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var ae=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof te.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},te.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},te.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},te.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof te.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},te.VarValue=function(e){return te.extend(this,e)},te.VarValue.prototype.toString=function(){return"@"+this.variable},te.VarValue.prototype.toType=function(){return"unknown"},te.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},te.NumValue=function(e){return te.extend(this,e)},te.NumValue.prototype.toString=function(){return this.value.toString()},te.NumValue.prototype.toType=function(){return"number"},te.NumValue.prototype.toJS=function(){return""+this.value},te.StringValue=function(e){return te.extend(this,e)},te.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},te.StringValue.prototype.toType=function(){return"string"},te.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},te.LogicValue=function(e){return te.extend(this,e)},te.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},te.LogicValue.prototype.toType=function(){return"boolean"},te.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},te.NullValue=function(e){return te.extend(this,e)},te.NullValue.prototype.toString=function(){return"NULL"},te.NullValue.prototype.toJS=function(){return"undefined"},te.ParamValue=function(e){return te.extend(this,e)},te.ParamValue.prototype.toString=function(){return"$"+this.param},te.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},te.UniOp=function(e){return te.extend(this,e)},te.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},te.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},te.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},te.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof te.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},te.Column=function(e){return te.extend(this,e)},te.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},te.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},te.AggrValue=function(e){return te.extend(this,e)},te.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},te.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},te.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},te.OrderExpression=function(e){return te.extend(this,e)},te.OrderExpression.prototype.toString=te.Expression.prototype.toString,te.GroupExpression=function(e){return te.extend(this,e)},te.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},te.FromData=function(e){return te.extend(this,e)},te.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},te.FromData.prototype.toJS=function(){},te.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=M(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},te.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new te.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new te.Column({columnid:"*",func:t,param:n}))}}),e},te.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new te.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new te.Table({tableid:e}))}return t},te.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new te.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new te.OrderExpression({expression:n,direction:"ASC"}))}),e},te.Select.prototype.Top=function(e){var t=this;return t.top=new te.NumValue({value:e}),t},te.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new te.Column({columnid:t});e.group.push(n)}),e},te.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},te.FuncValue=function(e){return te.extend(this,e)},te.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},te.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},te.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},te.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ue=T.stdlib={},ce=T.stdfn={};ue.ABS=function(e){return"Math.abs("+e+")"},ue.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},ce.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ue.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ue.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ue.IFNULL=function(e,t){return"("+e+"||"+t+")"},ue.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ue.LEN=ue.LENGTH=function(e){return t(e,"y.length")},ue.LOWER=ue.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ue.MAX=ue.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ue.MIN=ue.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ue.SUBSTRING=ue.SUBSTR=ue.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},ce.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ue.ISNULL=ue.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ue.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ue.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ue.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},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.SQRT=function(e){return"Math.sqrt("+e+")"},ue.TRIM=function(e){return t(e,"y.trim()")},ue.UPPER=ue.UCASE=function(e){return t(e,"String(y).toUpperCase()")},ce.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},ce.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var le=[],he=0;256>he;he++)le[he]=(16>he?"0":"")+he.toString(16);ce.NEWID=ce.UUID=ce.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return le[255&e]+le[e>>8&255]+le[e>>16&255]+le[e>>24&255]+"-"+le[255&t]+le[t>>8&255]+"-"+le[t>>16&15|64]+le[t>>24&255]+"-"+le[63&n|128]+le[n>>8&255]+"-"+le[n>>16&255]+le[n>>24&255]+le[255&r]+le[r>>8&255]+le[r>>16&255]+le[r>>24&255]},te.CaseValue=function(e){return te.extend(this,e)},te.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},te.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},te.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},te.Json=function(e){return te.extend(this,e)},te.Json.prototype.toString=function(){var e="";return e+=de(this.value),e+=""};var de=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return de(e)}).join(",")+"]";else if(!e.toJS||e instanceof te.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+de(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};te.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},te.Convert=function(e){return te.extend(this,e)},te.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},te.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},te.ColumnDef=function(e){return te.extend(this,e)},te.ColumnDef.prototype.toString=function(){var 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},te.CreateTable=function(e){return te.extend(this,e)},te.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},te.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=M(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=M(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","), -o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=M(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=M(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=J(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,ce.EXTEND=T.utils.extend,ce.CHAR=String.fromCharCode.bind(String),ce.ASCII=function(e){return e.charCodeAt(0)},ce.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},te.CreateEdge=function(e){return te.extend(this,e)},te.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.CreateGraph=function(e){return te.extend(this,e)},te.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&X(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&X(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},te.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.AlterTable=function(e){return te.extend(this,e)},te.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},te.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},te.CreateIndex=function(e){return te.extend(this,e)},te.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},te.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=M(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},te.Reindex=function(e){return te.extend(this,e)},te.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},te.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},te.DropIndex=function(e){return te.extend(this,e)},te.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},te.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},te.WithSelect=function(e){return te.extend(this,e)},te.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},te.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new Z({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},te.If=function(e){return te.extend(this,e)},te.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},te.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},te.While=function(e){return te.extend(this,e)},te.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},te.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},te.Break=function(e){return te.extend(this,e)},te.Break.prototype.toString=function(){var e="BREAK";return e},te.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.Continue=function(e){return te.extend(this,e)},te.Continue.prototype.toString=function(){var e="CONTINUE";return e},te.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.BeginEnd=function(e){return te.extend(this,e)},te.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},te.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=J(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},te.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.CreateTrigger=function(e){return te.extend(this,e)},te.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()},te.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},te.DropTrigger=function(e){return te.extend(this,e)},te.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},te.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},te.Delete=function(e){return te.extend(this,e)},te.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},te.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},te.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Update=function(e){return te.extend(this,e)},te.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()),e},te.SetColumn=function(e){return te.extend(this,e)},te.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},te.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},te.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Merge=function(e){return te.extend(this,e)},te.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},te.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},te.CreateDatabase=function(e){return te.extend(this,e)},te.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},te.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},te.AttachDatabase=function(e){return te.extend(this,e)},te.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},te.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},te.DetachDatabase=function(e){return te.extend(this,e)},te.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid},te.DetachDatabase.prototype.execute=function(e,t,n){ -if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.UseDatabase=function(e){return te.extend(this,e)},te.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},te.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},te.DropDatabase=function(e){return te.extend(this,e)},te.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},te.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.Declare=function(e){return te.extend(this,e)},te.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},te.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},te.ShowDatabases=function(e){return te.extend(this,e)},te.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},te.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},te.ShowTables=function(e){return te.extend(this,e)},te.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},te.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},te.ShowColumns=function(e){return te.extend(this,e)},te.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},te.ShowIndex=function(e){return te.extend(this,e)},te.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},te.ShowCreateTable=function(e){return te.extend(this,e)},te.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},te.SetVariable=function(e){return te.extend(this,e)},te.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},te.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;"object"==typeof exports&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(de(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="
"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},te.BeginTransaction=function(e){return te.extend(this,e)},te.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},te.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},te.CommitTransaction=function(e){return te.extend(this,e)},te.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},te.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},te.RollbackTransaction=function(e){return te.extend(this,e)},te.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},te.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&X(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=M(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&X(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(X(s,h.row),h.rows&&h.rows[a]&&X(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library is not attached");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library is not attached");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},te.Help=function(e){return te.extend(this,e)},te.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],te.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},te.Print=function(e){return te.extend(this,e)},te.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},te.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return de(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(de(i))}else console.log();return n&&(a=n(a)),a},te.Source=function(e){return te.extend(this,e)},te.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},te.Source.prototype.execute=function(e,t,n){var r;return F(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},te.Require=function(e){return te.extend(this,e)},te.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},te.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){F(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||F(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,a20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=I();var L=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=L();var q=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=q();var U=function(){return"object"==typeof cordova};x.isCordova=U();var F=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},M=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},X=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},Y=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(t||"").toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(e||"").toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=M(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new K(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var K=x.global.Promise;else if(x.isNode)var K=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new K(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var Q=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};Q.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},Q.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Q.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.executeSQL=z.prototype.exec;var Z=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},X(this,e)};Z.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var ee=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],X(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},X(this,e)}),te=(T.Recordset=function(e){X(this,e)},w.yy=T.yy={});te.extend=X,te.casesensitive=T.options.casesensitive;var ne=te.Base=function(e){return te.extend(this,e)};ne.prototype.toString=function(){},ne.prototype.toType=function(){},ne.prototype.toJS=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},te.Statements=function(e){return te.extend(this,e)},te.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},te.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},te.Search=function(e){return te.extend(this,e)},te.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},te.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){ +if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=J(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var re=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof te.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof te.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(re(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},te.Select=function(e){return te.extend(this,e)},te.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof te.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},te.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},te.Select.prototype.compile=function(e){var t=T.databases[e],n=new ee;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof te.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof te.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof te.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof te.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},te.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.ExistsValue=function(e){return te.extend(this,e)},te.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},te.ExistsValue.prototype.toType=function(){return"boolean"},te.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},te.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},te.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},te.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof te.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof te.Select)e.aliases[r]={type:"subquery"};else if(t instanceof te.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof te.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof te.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof te.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof te.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof te.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof te.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof te.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof te.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},te.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof te.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=P(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof te.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},te.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileWhereJoins=function(e){},te.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=V(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=j(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof te.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof te.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},te.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof te.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof te.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},te.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof te.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},te.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof te.Column&&"*"===n.columnid)){var a;a=A(n instanceof te.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},te.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof te.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof te.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof te.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},te.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},te.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof te.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof te.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},te.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})), +c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=J(p);n.columnid=t,e.columns.push(n)})}},te.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var ae=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof te.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},te.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},te.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},te.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof te.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},te.VarValue=function(e){return te.extend(this,e)},te.VarValue.prototype.toString=function(){return"@"+this.variable},te.VarValue.prototype.toType=function(){return"unknown"},te.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},te.NumValue=function(e){return te.extend(this,e)},te.NumValue.prototype.toString=function(){return this.value.toString()},te.NumValue.prototype.toType=function(){return"number"},te.NumValue.prototype.toJS=function(){return""+this.value},te.StringValue=function(e){return te.extend(this,e)},te.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},te.StringValue.prototype.toType=function(){return"string"},te.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},te.LogicValue=function(e){return te.extend(this,e)},te.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},te.LogicValue.prototype.toType=function(){return"boolean"},te.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},te.NullValue=function(e){return te.extend(this,e)},te.NullValue.prototype.toString=function(){return"NULL"},te.NullValue.prototype.toJS=function(){return"undefined"},te.ParamValue=function(e){return te.extend(this,e)},te.ParamValue.prototype.toString=function(){return"$"+this.param},te.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},te.UniOp=function(e){return te.extend(this,e)},te.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},te.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},te.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},te.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof te.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},te.Column=function(e){return te.extend(this,e)},te.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},te.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},te.AggrValue=function(e){return te.extend(this,e)},te.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},te.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},te.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},te.OrderExpression=function(e){return te.extend(this,e)},te.OrderExpression.prototype.toString=te.Expression.prototype.toString,te.GroupExpression=function(e){return te.extend(this,e)},te.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},te.FromData=function(e){return te.extend(this,e)},te.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},te.FromData.prototype.toJS=function(){},te.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=M(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},te.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new te.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new te.Column({columnid:"*",func:t,param:n}))}}),e},te.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new te.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new te.Table({tableid:e}))}return t},te.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new te.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new te.OrderExpression({expression:n,direction:"ASC"}))}),e},te.Select.prototype.Top=function(e){var t=this;return t.top=new te.NumValue({value:e}),t},te.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new te.Column({columnid:t});e.group.push(n)}),e},te.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},te.FuncValue=function(e){return te.extend(this,e)},te.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},te.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},te.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},te.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ue=T.stdlib={},ce=T.stdfn={};ue.ABS=function(e){return"Math.abs("+e+")"},ue.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},ce.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ue.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ue.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ue.IFNULL=function(e,t){return"("+e+"||"+t+")"},ue.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ue.LEN=ue.LENGTH=function(e){return t(e,"y.length")},ue.LOWER=ue.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ue.MAX=ue.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ue.MIN=ue.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ue.SUBSTRING=ue.SUBSTR=ue.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},ce.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ue.ISNULL=ue.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ue.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ue.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ue.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},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.SQRT=function(e){return"Math.sqrt("+e+")"},ue.TRIM=function(e){return t(e,"y.trim()")},ue.UPPER=ue.UCASE=function(e){return t(e,"String(y).toUpperCase()")},ce.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},ce.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var le=[],he=0;256>he;he++)le[he]=(16>he?"0":"")+he.toString(16);ce.NEWID=ce.UUID=ce.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return le[255&e]+le[e>>8&255]+le[e>>16&255]+le[e>>24&255]+"-"+le[255&t]+le[t>>8&255]+"-"+le[t>>16&15|64]+le[t>>24&255]+"-"+le[63&n|128]+le[n>>8&255]+"-"+le[n>>16&255]+le[n>>24&255]+le[255&r]+le[r>>8&255]+le[r>>16&255]+le[r>>24&255]},te.CaseValue=function(e){return te.extend(this,e)},te.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},te.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},te.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},te.Json=function(e){return te.extend(this,e)},te.Json.prototype.toString=function(){var e="";return e+=de(this.value),e+=""};var de=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return de(e)}).join(",")+"]";else if(!e.toJS||e instanceof te.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+de(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};te.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},te.Convert=function(e){return te.extend(this,e)},te.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},te.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},te.ColumnDef=function(e){return te.extend(this,e)},te.ColumnDef.prototype.toString=function(){var 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},te.CreateTable=function(e){return te.extend(this,e)},te.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},te.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=M(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=M(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n), +o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=M(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=M(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=J(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,ce.EXTEND=T.utils.extend,ce.CHAR=String.fromCharCode.bind(String),ce.ASCII=function(e){return e.charCodeAt(0)},ce.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},te.CreateEdge=function(e){return te.extend(this,e)},te.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.CreateGraph=function(e){return te.extend(this,e)},te.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&X(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&X(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},te.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.AlterTable=function(e){return te.extend(this,e)},te.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},te.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},te.CreateIndex=function(e){return te.extend(this,e)},te.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},te.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=M(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},te.Reindex=function(e){return te.extend(this,e)},te.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},te.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},te.DropIndex=function(e){return te.extend(this,e)},te.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},te.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},te.WithSelect=function(e){return te.extend(this,e)},te.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},te.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new Z({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},te.If=function(e){return te.extend(this,e)},te.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},te.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},te.While=function(e){return te.extend(this,e)},te.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},te.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},te.Break=function(e){return te.extend(this,e)},te.Break.prototype.toString=function(){var e="BREAK";return e},te.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.Continue=function(e){return te.extend(this,e)},te.Continue.prototype.toString=function(){var e="CONTINUE";return e},te.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.BeginEnd=function(e){return te.extend(this,e)},te.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},te.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=J(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},te.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.CreateTrigger=function(e){return te.extend(this,e)},te.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()},te.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},te.DropTrigger=function(e){return te.extend(this,e)},te.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},te.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},te.Delete=function(e){return te.extend(this,e)},te.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},te.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},te.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Update=function(e){return te.extend(this,e)},te.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()),e},te.SetColumn=function(e){return te.extend(this,e)},te.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},te.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},te.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Merge=function(e){return te.extend(this,e)},te.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},te.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},te.CreateDatabase=function(e){return te.extend(this,e)},te.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},te.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},te.AttachDatabase=function(e){return te.extend(this,e)},te.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},te.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},te.DetachDatabase=function(e){return te.extend(this,e)},te.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid; +},te.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.UseDatabase=function(e){return te.extend(this,e)},te.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},te.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},te.DropDatabase=function(e){return te.extend(this,e)},te.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},te.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.Declare=function(e){return te.extend(this,e)},te.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},te.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},te.ShowDatabases=function(e){return te.extend(this,e)},te.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},te.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},te.ShowTables=function(e){return te.extend(this,e)},te.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},te.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},te.ShowColumns=function(e){return te.extend(this,e)},te.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},te.ShowIndex=function(e){return te.extend(this,e)},te.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},te.ShowCreateTable=function(e){return te.extend(this,e)},te.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},te.SetVariable=function(e){return te.extend(this,e)},te.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},te.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;"object"==typeof exports&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(de(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="

"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},te.BeginTransaction=function(e){return te.extend(this,e)},te.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},te.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},te.CommitTransaction=function(e){return te.extend(this,e)},te.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},te.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},te.RollbackTransaction=function(e){return te.extend(this,e)},te.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},te.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&X(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=M(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&X(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(X(s,h.row),h.rows&&h.rows[a]&&X(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library is not attached");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library is not attached");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},te.Help=function(e){return te.extend(this,e)},te.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],te.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},te.Print=function(e){return te.extend(this,e)},te.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},te.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return de(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(de(i))}else console.log();return n&&(a=n(a)),a},te.Source=function(e){return te.extend(this,e)},te.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},te.Source.prototype.execute=function(e,t,n){var r;return F(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},te.Require=function(e){return te.extend(this,e)},te.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},te.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){F(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||F(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},be.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},be.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},be.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var ge=T.engines.LOCALSTORAGE=function(){};ge.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},ge.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},ge.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,ge.set(n.lsdbid+"."+t,a)},ge.restoreTable=function(e,t){var n=T.databases[e],r=ge.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},ge.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},ge.createDatabase=function(e,t,n,r,a){var s=1,i=ge.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,ge.set("alasql",i),ge.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},ge.dropDatabase=function(e,t,n){var r=1,a=ge.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],ge.set("alasql",a);var s=ge.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},ge.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=ge.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)ge.restoreTable(t,o);return a&&(s=a(s)),s},ge.showDatabases=function(e,t){var n=[],r=ge.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},ge.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=ge.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=ge.get(s);T.databases[e].tables[t];return o.tables[t]=!0,ge.set(s,o),ge.storeTable(e,t),r&&r(a),a},ge.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=ge.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],ge.set(s,i),ge.removeTable(e,t),r&&r(a),a},ge.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,ge.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},ge.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=ge.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),ge.storeTable(e,t),a&&a(s),s},ge.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;ge.restoreTable(e,t)},ge.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;ge.storeTable(r,t),n.tables[t].data=void 0},ge.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,ge.storeTable(e,s);return ge.set(r,a),1},ge.begin=ge.commit,ge.rollback=function(e,t){return};var me=T.engines.SQLITE=function(){};me.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},me.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof te.StringValue||n[0]instanceof te.ParamValue){if(n[0]instanceof te.StringValue)var i=n[0].value;else if(n[0]instanceof te.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},me.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},me.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var ve=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(ve.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},ve.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,F(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},ve.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],ve.updateFile(e),r&&r(i),i},ve.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){ve.updateFile(e)},50)}))},ve.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],ve.updateFile(e),r&&r(a),a},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},ve.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),ve.updateFile(e),a&&a(i),i},ve.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},ve.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,ve.updateFile(e)},ve.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return ve.updateFile(e),1},ve.begin=ve.commit,ve.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});X(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),X(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},"object"!=typeof exports&&"function"!=typeof importScripts&&"object"==typeof document){var Ee=Ee||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=Ee:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return Ee}),T.utils.saveAs=Ee}return new Q("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file diff --git a/src/18promise.js b/src/18promise.js index 92ef56e8e9..b7489c2d24 100755 --- a/src/18promise.js +++ b/src/18promise.js @@ -3,19 +3,22 @@ // Promises for AlaSQL // //nodejs now has Promises + if(typeof utils.global.Promise === "object") { var Promise = utils.global.Promise; } else if(utils.isNode){ var Promise = require('es6-promise').Promise; -} else { - throw new Error('Please include a Promise library'); -} +} // // Only for browsers with Promise support // //if(typeof window !== 'undefined' && typeof window.Promise === 'function') { alasql.promise = function(sql, params) { + if(!utils.global.Promise){ + throw new Error('Please include a Promise library'); + } + return new Promise(function(resolve, reject){ alasql(sql, params, function(data,err) { if(err) { From 883996162117d9e680a914138a47f50268c6dfda Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Thu, 4 Feb 2016 20:58:16 +0100 Subject: [PATCH 17/54] Use central enviroment detection --- src/15utility.js | 2 +- src/80console.js | 10 +++++----- src/830into.js | 2 +- src/833xlsx.js | 4 ++-- src/84from.js | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/15utility.js b/src/15utility.js index 86034b5b45..90a91dca21 100755 --- a/src/15utility.js +++ b/src/15utility.js @@ -703,7 +703,7 @@ function isIE () { // For LOAD // var saveBinaryFile = utils.saveFile = function(path, data, cb) { -// if(typeof exports == 'object') { +// if(utils.isNode) { // // For Node.js // var fs = require('fs'); // var data = fs.writeFileSync(path,data); diff --git a/src/80console.js b/src/80console.js index 61ca116de0..127214ed82 100755 --- a/src/80console.js +++ b/src/80console.js @@ -6,7 +6,7 @@ alasql.con = { alasql.con.open = function(el) { // For browser only - if(typeof exports === 'object') return; + if(utils.isNode) return; // Find parent element el = el || document.getElementById('alasql-con') || document.getElementsByTagName('body'); @@ -38,14 +38,14 @@ alasql.con.open = function(el) { alasql.con.clear = function() { // For browser only - if(typeof exports === 'object') return; + if(utils.isNode) return; alasql.con.conel.innerHTML = ''; }; alasql.con.close = function() { // For browser only - if(typeof exports === 'object') return; + if(utils.isNode) return; alasql.con.conel.removeChild(alasql.con.lenta); alasql.con.conel.removeChild(alasql.con.inel); @@ -54,7 +54,7 @@ alasql.con.close = function() { alasql.con.log = function() { // For browser only - if(typeof exports === 'object') { + if(utils.isNode) { console.log.bind(console).apply(this, arguments); } else { var s = '

'; @@ -114,7 +114,7 @@ alasql.log = function(sql, params) { var olduseid = alasql.useid; var target = alasql.options.logtarget; // For node other - if(typeof exports === 'object') { + if(utils.isNode) { target = 'console'; } diff --git a/src/830into.js b/src/830into.js index f21abbed42..afdf472795 100755 --- a/src/830into.js +++ b/src/830into.js @@ -142,7 +142,7 @@ alasql.into.TXT = function(filename, opts, data, columns, cb) { } // } else { -// if(typeof exports == 'object') { +// if(utils.isNode) { // process.stdout.write(s); // } else { // console.log(s); diff --git a/src/833xlsx.js b/src/833xlsx.js index 5b0744f7e3..a6de05f265 100755 --- a/src/833xlsx.js +++ b/src/833xlsx.js @@ -25,7 +25,7 @@ alasql.into.XLSX = function(filename, opts, data, columns, cb) { //console.log(data); /* If Node.js then require() else in browser take a global */ - if(typeof exports == 'object') { + if(utils.isNode) { var XLSX = require('xlsx'); } else { var XLSX = utils.global.XLSX; @@ -169,7 +169,7 @@ alasql.into.XLSX = function(filename, opts, data, columns, cb) { if(typeof filename == 'undefined') { res = wb; } else { - if(typeof exports == 'object') { + if(utils.isNode) { /* For Node.js */ XLSX.writeFile(wb, filename); } else { diff --git a/src/84from.js b/src/84from.js index 8447df7238..8aba5ffa67 100755 --- a/src/84from.js +++ b/src/84from.js @@ -404,7 +404,7 @@ function XLSXLSX(X,filename, opts, cb, idx, query) { alasql.from.XLS = function(filename, opts, cb, idx, query) { var X; - if(typeof exports === 'object') { + if(utils.isNode) { X = require('xlsjs'); } else { X = utils.global.XLS; @@ -417,7 +417,7 @@ alasql.from.XLS = function(filename, opts, cb, idx, query) { alasql.from.XLSX = function(filename, opts, cb, idx, query) { var X; - if(typeof exports === 'object') { + if(utils.isNode) { X = require('xlsx'); } else { X = utils.global.XLSX; From d356a0f109c8358d5a559a8900f2753f7c678b98 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 5 Feb 2016 10:39:39 +0100 Subject: [PATCH 18/54] Better error text --- src/84from.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/84from.js b/src/84from.js index 8aba5ffa67..cc236d6f3f 100755 --- a/src/84from.js +++ b/src/84from.js @@ -422,7 +422,7 @@ alasql.from.XLSX = function(filename, opts, cb, idx, query) { } else { X = utils.global.XLSX; if(!X) { - throw new Error('XLSX library is not attached'); + throw new Error('XLSX library not found'); } } return XLSXLSX(X,filename, opts, cb, idx, query); From a7042f35fd91b9ededaa5dfae2a5220cec9c7c61 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 5 Feb 2016 11:00:54 +0100 Subject: [PATCH 19/54] Throw error on missing XLSX lib --- src/833xlsx.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/833xlsx.js b/src/833xlsx.js index a6de05f265..8d44a88a13 100755 --- a/src/833xlsx.js +++ b/src/833xlsx.js @@ -165,15 +165,22 @@ alasql.into.XLSX = function(filename, opts, data, columns, cb) { function saveWorkbook(cb) { //console.log(wb); - + var XLSX; + if(typeof filename == 'undefined') { res = wb; } else { if(utils.isNode) { - /* For Node.js */ + XLSX = require('xlsx'); XLSX.writeFile(wb, filename); + } else { - /* For browser */ + XLSX = utils.global.XLSX; + + if(!XLSX) { + throw new Error('XLSX library not found'); + } + var wopts = { bookType:'xlsx', bookSST:false, type:'binary' }; var wbout = XLSX.write(wb,wopts); @@ -223,4 +230,4 @@ alasql.into.XLSX = function(filename, opts, data, columns, cb) { // alasql.utils.saveFile(filename,s); */ }; -}; \ No newline at end of file +}; From 191958131dc57bbed07a340f2e981ddfa29a0ca1 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 5 Feb 2016 11:21:41 +0100 Subject: [PATCH 20/54] Updates from nickdeis --- README.md | 144 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 85 insertions(+), 59 deletions(-) diff --git a/README.md b/README.md index 9776f6feda..5152b80868 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -[![bitHound Score](https://www.bithound.io/github/agershun/alasql/badges/score.svg?123)](https://www.bithound.io/github/agershun/alasql) -[![Build status](https://api.travis-ci.org/agershun/alasql.svg)](https://travis-ci.org/agershun/alasql?123) -[![NPM downloads](http://img.shields.io/npm/dm/alasql.svg?style=flat&label=npm%20downloads)](https://npmjs.org/package/alasql?) -[![Inline docs](http://inch-ci.org/github/agershun/alasql.svg?branch=develop)](http://inch-ci.org/github/agershun/alasql) -![Stars](https://img.shields.io/github/stars/agershun/alasql.svg?label=Github%20%E2%98%85&a) -![Release](https://img.shields.io/github/release/agershun/alasql.svg?label=Last%20release&a) -![NPM version](https://img.shields.io/npm/l/alasql.svg?123) +[![bitHound Score](https://www.bithound.io/github/agershun/alasql/badges/score.svg?123)](https://www.bithound.io/github/agershun/alasql) +[![Build status](https://api.travis-ci.org/agershun/alasql.svg)](https://travis-ci.org/agershun/alasql?123) +[![NPM downloads](http://img.shields.io/npm/dm/alasql.svg?style=flat&label=npm%20downloads)](https://npmjs.org/package/alasql?) +[![Inline docs](http://inch-ci.org/github/agershun/alasql.svg?branch=develop)](http://inch-ci.org/github/agershun/alasql) +![Stars](https://img.shields.io/github/stars/agershun/alasql.svg?label=Github%20%E2%98%85&a) +![Release](https://img.shields.io/github/release/agershun/alasql.svg?label=Last%20release&a) +![NPM version](https://img.shields.io/npm/l/alasql.svg?) _AlaSQL is an open source project and we appreciate any and all contributions we can get. Please help out._ @@ -15,7 +15,7 @@ _Got a question? Ask on [Stack Overflow](http://stackoverflow.com/questions/ask? # AlaSQL -_( [à la](http://en.wiktionary.org/wiki/%C3%A0_la) [SQL](http://en.wikipedia.org/wiki/SQL) ) [ælæ ɛskju:ɛl]_ - AlaSQL is an open source SQL database for Javascript with a strong foucus on query speed and datasource flexibillity for relational data, schemaless data, and graph data. It works in your browser, Node.js, IO.js and Cordova. +_( [à la](http://en.wiktionary.org/wiki/%C3%A0_la) [SQL](http://en.wikipedia.org/wiki/SQL) ) [ælæ ?skju:?l]_ - AlaSQL is an open source SQL database for Javascript with a strong foucus on query speed and datasource flexibillity for relational data, schemaless data, and graph data. It works in your browser, Node.js, IO.js and Cordova. The library is designed for: @@ -26,9 +26,9 @@ The library is designed for: We focus on [speed](https://github.com/agershun/alasql/wiki/Speed) by taking advantage of the dynamic nature of javascript when building up queries. Real world solutions demands flexibility regarding where data comes from and where it is to be stored. We focus on flexibility by making sure you can [import/export](https://github.com/agershun/alasql/wiki/Import-export) and query directly on data stored in Excel (both `xls` and `.xlsx`), CSV, JSON, TAB, IndexedDB, LocalStorage, and SQLite files. -The library brings you the comfort of a full database engine to your javascript app. No, really - its working towards a full database engine complying with [most of SQL-99](https://github.com/agershun/alasql/wiki/Supported-SQL-statements) spiced up with additional syntax for handling noSQL (schema less) data and graph networks. +The library brings you the comfort of a full database engine to your javascript app. No, really - its working towards a full database engine complying with [most of SQL-99](https://github.com/agershun/alasql/wiki/Supported-SQL-statements) spiced up with additional syntax for handling noSQL (schema less) data and graph networks. + - ```js // A) Traditional SQL alasql("CREATE TABLE cities (city string, population number)"); @@ -39,7 +39,7 @@ var res = alasql("SELECT * FROM cities WHERE population < 3500000 ORDER BY popul console.log(res); -/* +/* [ { "city": "Madrid", @@ -54,7 +54,7 @@ console.log(res); "population": 2249975 } ] -*/ +*/ ``` ```js @@ -89,13 +89,13 @@ alasql.tables.example1.data = [ // Insert data directly from javas {a:3,b:4} ]; -alasql("INSERT INTO example1 VALUES (1,5)"); // ...or you insert data with normal SQL +alasql("INSERT INTO example1 VALUES (1,5)"); // ...or you insert data with normal SQL var res = alasql("SELECT * FROM example1 ORDER BY b DESC"); console.log(res); // [{a:2,b:6},{a:1,b:5},{a:3,b:4}] ``` - + jsFiddle with [example A)](http://jsfiddle.net/hguw3LLk/) and [example B)](http://jsfiddle.net/c1hbytf1/) ## Install @@ -111,13 +111,13 @@ npm install -g alasql # command line For the browser: include [alasql.min.js](http://cdn.jsdelivr.net/alasql/latest/alasql.min.js) ```html - + ``` ## Get started -The wiki has a great section on [how to get started](https://github.com/agershun/alasql/wiki/Getting%20started) +The wiki has a great section on [how to get started](https://github.com/agershun/alasql/wiki/Getting%20started) When you feel you got the grip you can check out the wiki section about [data manipulation](https://github.com/agershun/alasql/wiki/Data-manipulation) or getting inspired by the [list of Q&As](http://stackoverflow.com/questions/tagged/alasql) @@ -141,7 +141,7 @@ When you feel you got the grip you can check out the wiki section about [data ma ## Please note -**All contributions are much welcome and greatly appreciated(!)** - +**All contributions are much welcome and greatly appreciated(!)** - The project has never received any funding and is based on unpaid voluntary work: [We really (really) love pull requests](https://github.com/agershun/alasql/blob/develop/CONTRIBUTING.md) @@ -153,11 +153,11 @@ Please chekout the [limitations of the library](https://github.com/agershun/alas ## Peformance AlaSQL is very focused on speed and we make sure to use all the tricks we can find to make javascript spit out your results as quick as possible. For example: -* Queries are cached as compiled functions. +* Queries are cached as compiled functions. * Joined tables are pre-indexed * ```WHERE``` expressions are pre-filtered for joins -The results are good. Check out AlaSQL vs. other javaScript SQL databases: +The results are good. Check out AlaSQL vs. other javaScript SQL databases: * **3x speed** [compared to SQL.js](http://jsperf.com/sql-js-vs-alasql-js/11) selecting with `SUM`, `JOIN`, and `GROUP BY`. @@ -166,7 +166,7 @@ The results are good. Check out AlaSQL vs. other javaScript SQL databases: * **2x speed** [compared to Linq](http://jsperf.com/alasql-vs-linq-on-groupby/3) for `GROUP BY` on 1,048,576 rows -See more [speed related info on the wiki](https://github.com/agershun/alasql/wiki/Speed) +See more [speed related info on the wiki](https://github.com/agershun/alasql/wiki/Speed) @@ -204,7 +204,7 @@ See more [in the wiki](https://github.com/agershun/alasql/wiki/User-Defined-Func ### Compiled statements and functions ```js -var ins = alasql.compile('INSERT INTO one VALUES (?,?)'); +var ins = alasql.compile('INSERT INTO one VALUES (?,?)'); ins(1,10); ins(2,20); ``` @@ -221,7 +221,7 @@ var data = [{a:1,b:1,c:1},{a:1,b:2,c:1},{a:1,b:3,c:1}, {a:2,b:1,c:1}]; var res = alasql('SELECT a, COUNT(*) AS b FROM ? GROUP BY a',[data]); console.log(res); ``` -See more ideas of creative datamanipulation [in the wiki](https://github.com/agershun/alasql/wiki/Getting-started) +See more ideas of creative datamanipulation [in the wiki](https://github.com/agershun/alasql/wiki/Getting-started) @@ -240,41 +240,41 @@ After globally installing AlaSQL `npm install alasql -g` you can access AlaSQL v > alasql "VALUE OF SELECT COUNT(*) as abc FROM TXT('README.md') WHERE LENGTH([0]) > ?" 140 // Number of lines with more than 140 characters in README.md -``` +``` See more [in the wiki](https://github.com/agershun/alasql/wiki/AlaSQL-CLI) -### AlaSQL ♥ D3.js +### AlaSQL ? D3.js AlaSQL plays nice with d3.js and gives you a convinient way to integrate a specifik subset of your data vis the visual powers of d3. See more about [D3.js and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/d3.js) -### AlaSQL ♥ Excel +### AlaSQL ? Excel AlaSQL can export data to both [Excel 2003 (.xls)](https://github.com/agershun/alasql/wiki/XLS) and [Excel 2007 (.xlsx)](https://github.com/agershun/alasql/wiki/XLSX) with coloring of cells and other Excel formatting functions. -### AlaSQL ♥ Meteor +### AlaSQL ? Meteor Meteor is amazing. You can now query directly on your Meteor collections with SQL - simple and easy. See more about [Meteor and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Meteor) -### AlaSQL ♥ Angular.js +### AlaSQL ? Angular.js Angular is great. Besides using AlaSQL for normal data manipulation it works like a charm for exporting you present scope to Excel. See more about [Angular and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Angular.js) -### AlaSQL ♥ Google Maps +### AlaSQL ? Google Maps Pinpointing data on a map should be easy. AlaSQL is great to prepare source data for Google Maps from for example Excel or CSV making a one unif of work for fetching and identifying whats relevant. See more about [Google Maps and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) -### AlaSQL ♥ Google Spreadsheets +### AlaSQL ? Google Spreadsheets AlaSQL can query data directly from a google spreadsheet. A good "partnership" for easy editing and powerfull data manipulation. See more about [Google Spreadsheets and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) @@ -303,9 +303,9 @@ AlaSQL supports plugins. To install the plugin you need to use the `REQUIRE` sta -### Graphs +### Graphs -AlaSQL is a multi-paradigm database with support for graphs that can be searched or manipulated. +AlaSQL is a multi-paradigm database with support for graphs that can be searched or manipulated. ```js @@ -392,7 +392,7 @@ See more detailed [the example](http://alasql.org/demo/004sqlite/). ### ETL sample: CSV and IndexedDB database -Upload CSV file with headers to IndexedDB database, and then save only asian countries +Upload CSV file with headers to IndexedDB database, and then save only asian countries to Excel file: ```js alasql('ATTACH INDEXEDDB DATABASE geo; \ @@ -400,7 +400,7 @@ to Excel file: SELECT * INTO geo.country FROM CSV("country.csv",{headers:true}); \ SELECT * INTO XLSX("asia.xlsx") FROM geo.country WHERE continent_name = "Asia"'); ``` -See [the example](http://alasql.org/demo/001csv/). +See [the example](http://alasql.org/demo/001csv/). @@ -431,14 +431,14 @@ You can use browser localStorage and [DOM-storage](https://github.com/node-brows alasql('CREATE localStorage DATABASE IF NOT EXISTS Atlas'); alasql('ATTACH localStorage DATABASE Atlas AS MyAtlas'); alasql('CREATE TABLE IF NOT EXISTS MyAtlas.City (city string, population number)'); - alasql('SELECT * INTO MyAtlas.City FROM ?',[[{city:'Vienna', population:1731000}, + alasql('SELECT * INTO MyAtlas.City FROM ?',[[{city:'Vienna', population:1731000}, {city:'Budapest', population:1728000}]]); var res = alasql('SELECT * FROM MyAtlas.City'); console.log(res); ``` -Try this sample in [jsFiddle](http://jsfiddle.net/agershun/x1gq3wf2/). Run this sample -two or three times, and AlaSQL store more and more data in localStorage. Here, "Atlas" is +Try this sample in [jsFiddle](http://jsfiddle.net/agershun/x1gq3wf2/). Run this sample +two or three times, and AlaSQL store more and more data in localStorage. Here, "Atlas" is the name of localStorage database, where "MyAtlas" is a memory AlaSQL database. You can use localStorage in two modes: SET AUTOCOMMIT ON to immediate save data @@ -452,7 +452,7 @@ You can use files in these formats directly from AlaSQL (in sync and async modes var res1 = alasq("select * from txt('mytext.txt') where [0] like 'M%'"); var res2 = alasq("select * from tab('mydata.tab') order by [1]"); var res3 = alasq("select [3] as city,[4] as population from csv('cities.csv')"); - + alasq("select * from json('array.json')",[],function(res4){ console.log(res4) }); @@ -466,25 +466,25 @@ You can use JSON objects in your databases (do not forget use == and !== operato ```sql -alasql> SELECT VALUE @{a:'1',b:'2'} +alasql> SELECT VALUE {a:'1',b:'2'} {a:1,b:2} -alasql> SELECT VALUE @{a:'1',b:'2'} == @{a:'1',b:'2'} +alasql> SELECT VALUE {a:'1',b:'2'} == {a:'1',b:'2'} true -alasql> SELECT VALUE @{a:'1',b:'2'}->b +alasql> SELECT VALUE {a:'1',b:'2'}->b 2 -alasql> SELECT VALUE @{a:'1',b:(2*2)}->b +alasql> SELECT VALUE {a:'1',b:(2*2)}->b 4 ``` -Try AlaSQL JSON objects in Console [sample](http://alasql.org/console?drop table if exists one;create table one;insert into one values @{a:@[1,2,3],c:{e:23}}, @{a:@[{b:@[1,2,3]}]};select * from one) +Try AlaSQL JSON objects in Console [sample](http://alasql.org/console?drop table if exists one;create table one;insert into one values {a:@[1,2,3],c:{e:23}}, {a:@[{b:@[1,2,3]}]};select * from one) @@ -492,32 +492,58 @@ Try AlaSQL JSON objects in Console [sample](http://alasql.org/console?drop tabl Yes, you can even use AlaSQL as a very simple server for tests. -To run enter the command: +To run enter the command: ``` alaserver [port] ``` -then type in browser something like "http://127.0.0.1:1337/?SELECT VALUE 2*2" +then type in browser something like "http://127.0.0.1:1337/?SELECT VALUE 2*2" Warning: Alaserver is not multi-thread, not concurent, and not secured. -### Webpack +### Webpack and Browserify + +When targeting the browser, several code bundlers like Webpack and Browserify will pick up modules you might not want. + +Here's a list of modules that alasql requires +* fs +* cptable +* jszip +* xlsx +* xls +* cpexcel +* path +* es6-promise -To use alasql with webpack, get [script-loader](https://github.com/webpack/script-loader). +#### Webpack + +Use the built-in IgnorePlugin -Then: ```js -require("script!alasql"); +var IgnorePlugin = require("webpack").IgnorePlugin; + +module.exports = { + ... + //Will ignore the modules fs, path, xlsx, xls + plugins:[new IgnorePlugin(/(^fs$|xlsx|xls|^path$)/)] +}; ``` -Warning: This is a bad idea if you are using babel-loader +#### Browserify + +Read up on [excluding](https://github.com/substack/browserify-handbook#excluding), [ignoring](https://github.com/substack/browserify-handbook#ignoring), and [shimming](https://github.com/substack/browserify-handbook#shimming) + +Example (using excluding) + ```js -import alasql from "script!alasql"; +var browserify = require("browserify"); +var b = browserify("./main.js").bundle(); +//Will ignore the modules fs, path, xlsx, xls +["fs","path","xlsx","xls"].map(ignore => b.ignore(ignore)); ``` -as script-loader does not return the global instance of alasql. -### Miss a feature? +### Miss a feature? Take charge and [add your idea](http://feathub.com/agershun/alasql/features/new) or [vote on your favorite feature](http://feathub.com/agershun/alasql) to be implemented: [![Feature Requests](http://feathub.com/agershun/alasql?format=svg)](http://feathub.com/agershun/alasql) @@ -531,14 +557,14 @@ Please be aware that AlaSQL ~~may~~ have [bugs](https://github.com/agershun/alas 0. AlaSQL has a (long) list of keywords that must be escaped if used for column names. When selecting a field named `key` please write ``` SELECT `key` FROM ... ``` instead. This is also the case for words like ``` `value` ```, ``` `read` ```, ``` `count` ```, ``` `by` ```, ``` `top` ```, ``` `path` ```, ``` `deleted` ```, ``` `work` ``` and ``` `offset` ```. Please consult the [full list of keywords](https://github.com/agershun/alasql/wiki/AlaSQL-Keywords). -0. It is Ok with select for 1000000 records or to join two tables by 10000 records in each (You can use streamming functions to work with longer datasources - see [test/test143.js](test/test143.js)) but be aware that the workload is multiplied so selecting from more than 8 tables with just 100 rows in each will show bad performance. This is one of our top priorities to make better. +0. It is Ok with select for 1000000 records or to join two tables by 10000 records in each (You can use streamming functions to work with longer datasources - see [test/test143.js](test/test143.js)) but be aware that the workload is multiplied so selecting from more than 8 tables with just 100 rows in each will show bad performance. This is one of our top priorities to make better. 0. Limited functionality for transactions (supports only for localStorage) - Sorry, transactions are limited, because AlaSQL started to use more complex approach for PRIMARY KEYS / FOREIGN KEYS. Transactions will be fully turned on again in future version. -0. A `(FULL) OUTER JOIN` on more than 2 tables will not give the expected results +0. A `(FULL) OUTER JOIN` and `RIGHT JOIN` on more than 2 tables will not give the expected results. `INNER JOIN` and `LEFT JOIN` are ok. Probably, there are many of others. Please, help us to fix them by [submitting it as an issue](https://github.com/agershun/alasql/issues). Thank you! - + @@ -594,19 +620,19 @@ MIT - see [MIT licence information](LICENSE) ## Credits -Many thanks to Zach Carter for [Jison](http://zaach.github.io/jison/) parser generator, to the author of FileSaver.js, Andrew Kent for his [SQL Parser](https://github.com/forward/sql-parser), +Many thanks to Zach Carter for [Jison](http://zaach.github.io/jison/) parser generator, to the author of FileSaver.js, Andrew Kent for his [SQL Parser](https://github.com/forward/sql-parser), authors of [XLSX](https://github.com/SheetJS/js-xlsx) library, and other people for useful tools, which make our work much easier. ### Related projects that have inspired us -* [AlaX](http://github.com/agershun/alax) - Export to Excel with colors and formats +* [AlaX](http://github.com/agershun/alax) - Export to Excel with colors and formats * [WebSQLShim](http://github.com/agershun/WebSQLShim) - WebSQL shim over IndexedDB (work in progress) -* [AlaMDX](http://github.com/agershun/alamdx) - JavaScript MDX OLAP library (work in progresss) +* [AlaMDX](http://github.com/agershun/alamdx) - JavaScript MDX OLAP library (work in progresss) * [Other similar projects](http://github.com/agershun/alasql/wiki/Similar-Projects.md) - list of databases on JavaScript [![ghit.me](https://ghit.me/badge.svg?repo=agershun/alasql)](https://ghit.me/repo/agershun/alasql) ---- -© 2014-2015, Andrey Gershun (agershun@gmail.com) & M. Rangel Wulff (m@rawu.dk) \ No newline at end of file +© 2014-2015, Andrey Gershun (agershun@gmail.com) & M. Rangel Wulff (m@rawu.dk) From 80631bca62b27f93fdc4e28d58401d5475c019f0 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 5 Feb 2016 17:11:38 +0100 Subject: [PATCH 21/54] Let LIKE work on numbers --- src/15utility.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/15utility.js b/src/15utility.js index 90a91dca21..67bb4f5728 100755 --- a/src/15utility.js +++ b/src/15utility.js @@ -1100,7 +1100,7 @@ var like = utils.like = function (pattern,value,escape) { s += '$'; // if(value == undefined) return false; //console.log(s,value,(value||'').search(RegExp(s))>-1); - return (value||'').toUpperCase().search(RegExp(s.toUpperCase()))>-1; + return (''+(value||'')).toUpperCase().search(RegExp(s.toUpperCase()))>-1; }; @@ -1131,7 +1131,7 @@ utils.glob = function (value,pattern) { } s += '$'; - return (value||'').toUpperCase().search(RegExp(s.toUpperCase()))>-1; + return (''+(value||'')).toUpperCase().search(RegExp(s.toUpperCase()))>-1; }; From 045ade1c96a4d1624c320a756d8ed792eba40822 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 5 Feb 2016 16:31:50 +0000 Subject: [PATCH 22/54] Support browserify requires --- dist/alasql-worker.js | 4 ++-- dist/alasql-worker.min.js | 2 +- dist/alasql.js | 49 ++++++++++++++++++++++++++++----------- dist/alasql.min.js | 16 ++++++------- src/15utility.js | 11 +++++++++ src/833xlsx.js | 16 +++++++++---- 6 files changed, 69 insertions(+), 29 deletions(-) mode change 100644 => 100755 dist/alasql-worker.js mode change 100644 => 100755 dist/alasql-worker.min.js diff --git a/dist/alasql-worker.js b/dist/alasql-worker.js old mode 100644 new mode 100755 index e4f37ec19a..27cbfec0af --- a/dist/alasql-worker.js +++ b/dist/alasql-worker.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1185 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1191 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1185 +@version 0.2.3-develop-1191 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff diff --git a/dist/alasql-worker.min.js b/dist/alasql-worker.min.js old mode 100644 new mode 100755 index def8007a08..c1d8c6ba52 --- a/dist/alasql-worker.min.js +++ b/dist/alasql-worker.min.js @@ -1,2 +1,2 @@ -//! AlaSQL v0.2.3-develop-1185 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1191 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT !function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?module.exports=r():e.alasql=r()}(this,function(){function e(r,t,s){var a=e.lastid++;e.buffer[a]=s,e.webworker.postMessage({id:a,sql:r,params:t})}return"object"!=typeof exports&&(e.worker=function(r,t,s){if(r===!0&&(r=void 0),"undefined"==typeof r)for(var a=document.getElementsByTagName("script"),o=0;o1){var f="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");e(f,[],s)}}else if(r===!1)return void delete e.webworker}),e.lastid=0,e.buffer={},e.worker(),e}); \ No newline at end of file diff --git a/dist/alasql.js b/dist/alasql.js index 2cdcf00e93..9a5616ade9 100755 --- a/dist/alasql.js +++ b/dist/alasql.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1185 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1191 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1185 +@version 0.2.3-develop-1191 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff @@ -126,7 +126,7 @@ var alasql = function alasql(sql, params, cb, scope) { Current version of alasql @constant {string} */ -alasql.version = '0.2.3-develop-1185'; +alasql.version = '0.2.3-develop-1191'; /** Debug flag @@ -3171,6 +3171,15 @@ var isBrowser = function(){ } utils.isBrowser = isBrowser(); +/** + Find out if code is running in a browser with a browserify setup + @return {boolean} True if code is running in a browser with a browserify setup +*/ +var isBrowserify = function(){ + return utils.isBrowser && (typeof exports === 'object'); +} +utils.isBrowserify = isBrowserify(); + /** Find out if code is running with Meteor in the enviroment @return {boolean} True if code is running with Meteor in the enviroment @@ -3901,7 +3910,7 @@ var like = utils.like = function (pattern,value,escape) { s += '$'; - return (value||'').toUpperCase().search(RegExp(s.toUpperCase()))>-1; + return (''+(value||'')).toUpperCase().search(RegExp(s.toUpperCase()))>-1; }; utils.glob = function (value,pattern) { @@ -3931,7 +3940,7 @@ utils.glob = function (value,pattern) { } s += '$'; - return (value||'').toUpperCase().search(RegExp(s.toUpperCase()))>-1; + return (''+(value||'')).toUpperCase().search(RegExp(s.toUpperCase()))>-1; }; /** @@ -13419,7 +13428,7 @@ alasql.log = function(sql, params) { var olduseid = alasql.useid; var target = alasql.options.logtarget; // For node other - if(typeof exports === 'object') { + if(utils.isNode) { target = 'console'; } @@ -14674,7 +14683,7 @@ alasql.into.XLSX = function(filename, opts, data, columns, cb) { } /* If Node.js then require() else in browser take a global */ - if(typeof exports == 'object') { + if(utils.isNode) { var XLSX = require('xlsx'); } else { var XLSX = utils.global.XLSX; @@ -14809,14 +14818,27 @@ alasql.into.XLSX = function(filename, opts, data, columns, cb) { */ function saveWorkbook(cb) { + var XLSX; + if(typeof filename == 'undefined') { res = wb; } else { - if(typeof exports == 'object') { - /* For Node.js */ + var XLSX; + + if(utils.isNode || utils.isBrowserify || utils.isMeteorServer) { + XLSX = require('xlsx'); + + } else { + XLSX = utils.global.XLSX; + } + + if(utils.isNode || utils.isMeteorServer) { XLSX.writeFile(wb, filename); } else { - /* For browser */ + if(!XLSX) { + throw new Error('XLSX library not found'); + } + var wopts = { bookType:'xlsx', bookSST:false, type:'binary' }; var wbout = XLSX.write(wb,wopts); @@ -14843,6 +14865,7 @@ alasql.into.XLSX = function(filename, opts, data, columns, cb) { }; }; + /* // // FROM functions Alasql.js @@ -15205,7 +15228,7 @@ function XLSXLSX(X,filename, opts, cb, idx, query) { alasql.from.XLS = function(filename, opts, cb, idx, query) { var X; - if(typeof exports === 'object') { + if(utils.isNode) { X = require('xlsjs'); } else { X = utils.global.XLS; @@ -15218,12 +15241,12 @@ alasql.from.XLS = function(filename, opts, cb, idx, query) { alasql.from.XLSX = function(filename, opts, cb, idx, query) { var X; - if(typeof exports === 'object') { + if(utils.isNode) { X = require('xlsx'); } else { X = utils.global.XLSX; if(!X) { - throw new Error('XLSX library is not attached'); + throw new Error('XLSX library not found'); } } return XLSXLSX(X,filename, opts, cb, idx, query); diff --git a/dist/alasql.min.js b/dist/alasql.min.js index d87445b3c3..fca471dc6d 100755 --- a/dist/alasql.min.js +++ b/dist/alasql.min.js @@ -1,14 +1,14 @@ -//! AlaSQL v0.2.3-develop-1185 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?W(a):r(l.args,0,a),0===u.length)return[];var E=W(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=W(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof te.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof te.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?J(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=Y(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=_(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=G(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:de(e[a][n])});t+=""}else t+="

"+de(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function ye(e,t,n,r){if("function"==typeof importScripts||!ye.webworker){if(0===arguments.length)return new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new te.Select({columns:[new te.Column({columnid:"*"})],from:[new te.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),ye.exec(e,t,n,r)}var s=ye.lastid++;ye.buffer[s]=n,ye.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1185",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +//! AlaSQL v0.2.3-develop-1191 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1191",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] });break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, 410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ 74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:Ve,414:je},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:Tt,113:wt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:804,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:dr,75:[1,805]},{71:dr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:dt,134:ft,141:821,142:Ke,149:pt,409:185,410:Ve,414:je,466:820,484:306,488:308},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(Tr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(Tr,[2,733]),t(Tr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:ha,330:da,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,368],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,369],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,371],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:Tt,113:wt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,381],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,382],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,383],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:858,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:dr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,Sa),t(Ta,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:Br,298:672,299:on,301:Gr},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:877,413:410,414:je,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:jr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:hn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:882,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:883,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:884,413:410,414:je},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:885,409:185,410:Ve,414:je},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:893,409:185,410:Ve,414:je},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:913,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,915],109:wn,111:459,112:Tt,113:wt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:925,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:d},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{111:954,112:Tt,113:wt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:970,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:971,4:r,5:a},{71:dr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, 285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:Ve,414:je}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],wr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,Va,{76:74,181:99,459:995,38:998,86:u,143:ja,186:d,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(_a,[2,753]),t(_a,[2,754]),t(_a,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(gt,[2,674],{121:[1,1002]}),{128:Ba,377:1003,379:Ga},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:Ve,414:je},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1012],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1015,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1016]},{71:dr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1020,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(Ta,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:Ve,414:je},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:d},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Ge,76:74,86:u,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,181:99,186:d,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:dr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1074],109:wn,111:459,112:Tt,113:wt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:dr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1081],109:wn,111:459,112:Tt,113:wt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1083],109:wn,111:459,112:Tt,113:wt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1085],109:wn,111:459,112:Tt,113:wt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1087],109:wn,111:459,112:Tt,113:wt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1089]},t(hs,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1093],109:wn,111:459,112:Tt,113:wt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1095],109:wn,111:459,112:Tt,113:wt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(ds,[2,643]),t(ds,[2,644]),t(ds,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:dr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1125,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:d},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1141,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:ha,330:da,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:[1,1145],75:[1,1146]},t(hs,[2,528]),t(hs,[2,529]),{128:Ba,377:1147,379:Ga},{71:fs,75:[1,1148]},t(hs,[2,463],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,372],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:dr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:dr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(Ta,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:de,178:ge,198:1164,293:qe,409:185,410:Ve,414:je},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:d},{3:718,4:r,5:a,108:1168},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1169,409:185,410:Ve,414:je},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:he,149:de,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1212,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, 198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column -},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=I();var L=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=L();var q=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=q();var U=function(){return"object"==typeof cordova};x.isCordova=U();var F=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},M=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},X=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},Y=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(t||"").toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(e||"").toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=M(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new K(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var K=x.global.Promise;else if(x.isNode)var K=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new K(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var Q=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};Q.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},Q.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Q.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.executeSQL=z.prototype.exec;var Z=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},X(this,e)};Z.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var ee=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],X(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},X(this,e)}),te=(T.Recordset=function(e){X(this,e)},w.yy=T.yy={});te.extend=X,te.casesensitive=T.options.casesensitive;var ne=te.Base=function(e){return te.extend(this,e)};ne.prototype.toString=function(){},ne.prototype.toType=function(){},ne.prototype.toJS=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},ne.prototype.compile=r,ne.prototype.exec=function(){},te.Statements=function(e){return te.extend(this,e)},te.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},te.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},te.Search=function(e){return te.extend(this,e)},te.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},te.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){ -if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=J(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var re=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof te.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof te.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(re(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[M(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[M(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},te.Select=function(e){return te.extend(this,e)},te.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof te.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},te.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},te.Select.prototype.compile=function(e){var t=T.databases[e],n=new ee;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof te.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof te.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof te.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof te.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},te.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.ExistsValue=function(e){return te.extend(this,e)},te.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},te.ExistsValue.prototype.toType=function(){return"boolean"},te.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},te.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},te.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},te.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof te.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof te.Select)e.aliases[r]={type:"subquery"};else if(t instanceof te.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof te.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof te.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof te.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof te.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof te.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof te.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof te.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof te.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof te.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof te.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},te.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof te.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=P(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof te.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},te.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileWhereJoins=function(e){},te.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=V(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=j(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof te.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof te.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},te.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof te.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof te.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},te.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof te.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},te.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof te.Column&&"*"===n.columnid)){var a;a=A(n instanceof te.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},te.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof te.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof te.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof te.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},te.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},te.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},te.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof te.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof te.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},te.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})), -c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=J(p);n.columnid=t,e.columns.push(n)})}},te.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var ae=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof te.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},te.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},te.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},te.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof te.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof te.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof te.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},te.VarValue=function(e){return te.extend(this,e)},te.VarValue.prototype.toString=function(){return"@"+this.variable},te.VarValue.prototype.toType=function(){return"unknown"},te.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},te.NumValue=function(e){return te.extend(this,e)},te.NumValue.prototype.toString=function(){return this.value.toString()},te.NumValue.prototype.toType=function(){return"number"},te.NumValue.prototype.toJS=function(){return""+this.value},te.StringValue=function(e){return te.extend(this,e)},te.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},te.StringValue.prototype.toType=function(){return"string"},te.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},te.LogicValue=function(e){return te.extend(this,e)},te.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},te.LogicValue.prototype.toType=function(){return"boolean"},te.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},te.NullValue=function(e){return te.extend(this,e)},te.NullValue.prototype.toString=function(){return"NULL"},te.NullValue.prototype.toJS=function(){return"undefined"},te.ParamValue=function(e){return te.extend(this,e)},te.ParamValue.prototype.toString=function(){return"$"+this.param},te.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},te.UniOp=function(e){return te.extend(this,e)},te.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},te.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},te.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},te.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof te.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},te.Column=function(e){return te.extend(this,e)},te.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},te.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},te.AggrValue=function(e){return te.extend(this,e)},te.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},te.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},te.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},te.OrderExpression=function(e){return te.extend(this,e)},te.OrderExpression.prototype.toString=te.Expression.prototype.toString,te.GroupExpression=function(e){return te.extend(this,e)},te.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},te.FromData=function(e){return te.extend(this,e)},te.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},te.FromData.prototype.toJS=function(){},te.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=M(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},te.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new te.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new te.Column({columnid:"*",func:t,param:n}))}}),e},te.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new te.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new te.Table({tableid:e}))}return t},te.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new te.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new te.OrderExpression({expression:n,direction:"ASC"}))}),e},te.Select.prototype.Top=function(e){var t=this;return t.top=new te.NumValue({value:e}),t},te.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new te.Column({columnid:t});e.group.push(n)}),e},te.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},te.FuncValue=function(e){return te.extend(this,e)},te.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},te.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},te.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},te.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ue=T.stdlib={},ce=T.stdfn={};ue.ABS=function(e){return"Math.abs("+e+")"},ue.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},ce.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ue.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ue.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ue.IFNULL=function(e,t){return"("+e+"||"+t+")"},ue.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ue.LEN=ue.LENGTH=function(e){return t(e,"y.length")},ue.LOWER=ue.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ue.MAX=ue.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ue.MIN=ue.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ue.SUBSTRING=ue.SUBSTR=ue.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},ce.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ue.ISNULL=ue.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ue.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ue.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ue.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},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.SQRT=function(e){return"Math.sqrt("+e+")"},ue.TRIM=function(e){return t(e,"y.trim()")},ue.UPPER=ue.UCASE=function(e){return t(e,"String(y).toUpperCase()")},ce.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},ce.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var le=[],he=0;256>he;he++)le[he]=(16>he?"0":"")+he.toString(16);ce.NEWID=ce.UUID=ce.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return le[255&e]+le[e>>8&255]+le[e>>16&255]+le[e>>24&255]+"-"+le[255&t]+le[t>>8&255]+"-"+le[t>>16&15|64]+le[t>>24&255]+"-"+le[63&n|128]+le[n>>8&255]+"-"+le[n>>16&255]+le[n>>24&255]+le[255&r]+le[r>>8&255]+le[r>>16&255]+le[r>>24&255]},te.CaseValue=function(e){return te.extend(this,e)},te.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},te.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},te.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},te.Json=function(e){return te.extend(this,e)},te.Json.prototype.toString=function(){var e="";return e+=de(this.value),e+=""};var de=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return de(e)}).join(",")+"]";else if(!e.toJS||e instanceof te.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+de(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};te.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},te.Convert=function(e){return te.extend(this,e)},te.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},te.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},te.ColumnDef=function(e){return te.extend(this,e)},te.ColumnDef.prototype.toString=function(){var 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},te.CreateTable=function(e){return te.extend(this,e)},te.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},te.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=M(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=M(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n), -o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=M(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=M(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=J(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,ce.EXTEND=T.utils.extend,ce.CHAR=String.fromCharCode.bind(String),ce.ASCII=function(e){return e.charCodeAt(0)},ce.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},te.CreateEdge=function(e){return te.extend(this,e)},te.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},te.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.CreateGraph=function(e){return te.extend(this,e)},te.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},te.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&X(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&X(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},te.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},te.AlterTable=function(e){return te.extend(this,e)},te.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},te.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},te.CreateIndex=function(e){return te.extend(this,e)},te.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},te.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=M(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},te.Reindex=function(e){return te.extend(this,e)},te.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},te.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},te.DropIndex=function(e){return te.extend(this,e)},te.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},te.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},te.WithSelect=function(e){return te.extend(this,e)},te.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},te.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new Z({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},te.If=function(e){return te.extend(this,e)},te.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},te.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},te.While=function(e){return te.extend(this,e)},te.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},te.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},te.Break=function(e){return te.extend(this,e)},te.Break.prototype.toString=function(){var e="BREAK";return e},te.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.Continue=function(e){return te.extend(this,e)},te.Continue.prototype.toString=function(){var e="CONTINUE";return e},te.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},te.BeginEnd=function(e){return te.extend(this,e)},te.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},te.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=J(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},te.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.CreateTrigger=function(e){return te.extend(this,e)},te.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()},te.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},te.DropTrigger=function(e){return te.extend(this,e)},te.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},te.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},te.Delete=function(e){return te.extend(this,e)},te.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},te.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},te.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Update=function(e){return te.extend(this,e)},te.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()),e},te.SetColumn=function(e){return te.extend(this,e)},te.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},te.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},te.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},te.Merge=function(e){return te.extend(this,e)},te.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},te.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},te.CreateDatabase=function(e){return te.extend(this,e)},te.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},te.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},te.AttachDatabase=function(e){return te.extend(this,e)},te.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},te.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},te.DetachDatabase=function(e){return te.extend(this,e)},te.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid; -},te.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.UseDatabase=function(e){return te.extend(this,e)},te.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},te.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},te.DropDatabase=function(e){return te.extend(this,e)},te.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},te.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},te.Declare=function(e){return te.extend(this,e)},te.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},te.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},te.ShowDatabases=function(e){return te.extend(this,e)},te.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},te.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},te.ShowTables=function(e){return te.extend(this,e)},te.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},te.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},te.ShowColumns=function(e){return te.extend(this,e)},te.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},te.ShowIndex=function(e){return te.extend(this,e)},te.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},te.ShowCreateTable=function(e){return te.extend(this,e)},te.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},te.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},te.SetVariable=function(e){return te.extend(this,e)},te.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},te.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;"object"==typeof exports&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(de(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="
"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},te.BeginTransaction=function(e){return te.extend(this,e)},te.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},te.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},te.CommitTransaction=function(e){return te.extend(this,e)},te.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},te.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},te.RollbackTransaction=function(e){return te.extend(this,e)},te.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},te.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&X(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=M(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&X(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(X(s,h.row),h.rows&&h.rows[a]&&X(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library is not attached");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library is not attached");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},te.Help=function(e){return te.extend(this,e)},te.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],te.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},te.Print=function(e){return te.extend(this,e)},te.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},te.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return de(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(de(i))}else console.log();return n&&(a=n(a)),a},te.Source=function(e){return te.extend(this,e)},te.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},te.Source.prototype.execute=function(e,t,n){var r;return F(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},te.Require=function(e){return te.extend(this,e)},te.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},te.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){F(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||F(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},be.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},be.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},be.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var ge=T.engines.LOCALSTORAGE=function(){};ge.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},ge.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},ge.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,ge.set(n.lsdbid+"."+t,a)},ge.restoreTable=function(e,t){var n=T.databases[e],r=ge.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},ge.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},ge.createDatabase=function(e,t,n,r,a){var s=1,i=ge.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,ge.set("alasql",i),ge.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},ge.dropDatabase=function(e,t,n){var r=1,a=ge.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],ge.set("alasql",a);var s=ge.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},ge.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=ge.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)ge.restoreTable(t,o);return a&&(s=a(s)),s},ge.showDatabases=function(e,t){var n=[],r=ge.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},ge.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=ge.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=ge.get(s);T.databases[e].tables[t];return o.tables[t]=!0,ge.set(s,o),ge.storeTable(e,t),r&&r(a),a},ge.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=ge.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],ge.set(s,i),ge.removeTable(e,t),r&&r(a),a},ge.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,ge.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},ge.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=ge.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),ge.storeTable(e,t),a&&a(s),s},ge.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;ge.restoreTable(e,t)},ge.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;ge.storeTable(r,t),n.tables[t].data=void 0},ge.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,ge.storeTable(e,s);return ge.set(r,a),1},ge.begin=ge.commit,ge.rollback=function(e,t){return};var me=T.engines.SQLITE=function(){};me.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},me.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof te.StringValue||n[0]instanceof te.ParamValue){if(n[0]instanceof te.StringValue)var i=n[0].value;else if(n[0]instanceof te.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},me.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},me.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var ve=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(ve.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},ve.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,F(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},ve.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],ve.updateFile(e),r&&r(i),i},ve.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){ve.updateFile(e)},50)}))},ve.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],ve.updateFile(e),r&&r(a),a},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},ve.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),ve.updateFile(e),a&&a(i),i},ve.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},ve.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,ve.updateFile(e)},ve.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return ve.updateFile(e),1},ve.begin=ve.commit,ve.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});X(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),X(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},"object"!=typeof exports&&"function"!=typeof importScripts&&"object"==typeof document){var Ee=Ee||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=Ee:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return Ee}),T.utils.saveAs=Ee}return new Q("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file +},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&"object"==typeof exports};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ +s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=H(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var ae=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof ne.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof ne.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(ae(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},ne.Select=function(e){return ne.extend(this,e)},ne.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof ne.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},ne.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},ne.Select.prototype.compile=function(e){var t=T.databases[e],n=new te;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof ne.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof ne.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof ne.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof ne.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},ne.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.ExistsValue=function(e){return ne.extend(this,e)},ne.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},ne.ExistsValue.prototype.toType=function(){return"boolean"},ne.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},ne.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},ne.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},ne.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof ne.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof ne.Select)e.aliases[r]={type:"subquery"};else if(t instanceof ne.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof ne.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof ne.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof ne.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof ne.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof ne.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof ne.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof ne.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof ne.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},ne.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof ne.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=_(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof ne.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},ne.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileWhereJoins=function(e){},ne.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=j(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=P(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof ne.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof ne.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},ne.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof ne.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof ne.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},ne.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof ne.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},ne.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof ne.Column&&"*"===n.columnid)){var a;a=A(n instanceof ne.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},ne.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof ne.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof ne.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof ne.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},ne.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},ne.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof ne.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof ne.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},ne.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]; +}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=H(p);n.columnid=t,e.columns.push(n)})}},ne.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var se=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof ne.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},ne.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},ne.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},ne.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof ne.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},ne.VarValue=function(e){return ne.extend(this,e)},ne.VarValue.prototype.toString=function(){return"@"+this.variable},ne.VarValue.prototype.toType=function(){return"unknown"},ne.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},ne.NumValue=function(e){return ne.extend(this,e)},ne.NumValue.prototype.toString=function(){return this.value.toString()},ne.NumValue.prototype.toType=function(){return"number"},ne.NumValue.prototype.toJS=function(){return""+this.value},ne.StringValue=function(e){return ne.extend(this,e)},ne.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},ne.StringValue.prototype.toType=function(){return"string"},ne.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},ne.LogicValue=function(e){return ne.extend(this,e)},ne.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},ne.LogicValue.prototype.toType=function(){return"boolean"},ne.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},ne.NullValue=function(e){return ne.extend(this,e)},ne.NullValue.prototype.toString=function(){return"NULL"},ne.NullValue.prototype.toJS=function(){return"undefined"},ne.ParamValue=function(e){return ne.extend(this,e)},ne.ParamValue.prototype.toString=function(){return"$"+this.param},ne.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},ne.UniOp=function(e){return ne.extend(this,e)},ne.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},ne.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},ne.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},ne.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof ne.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},ne.Column=function(e){return ne.extend(this,e)},ne.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},ne.AggrValue=function(e){return ne.extend(this,e)},ne.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},ne.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},ne.OrderExpression=function(e){return ne.extend(this,e)},ne.OrderExpression.prototype.toString=ne.Expression.prototype.toString,ne.GroupExpression=function(e){return ne.extend(this,e)},ne.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},ne.FromData=function(e){return ne.extend(this,e)},ne.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},ne.FromData.prototype.toJS=function(){},ne.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=V(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},ne.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new ne.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new ne.Column({columnid:"*",func:t,param:n}))}}),e},ne.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new ne.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new ne.Table({tableid:e}))}return t},ne.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new ne.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new ne.OrderExpression({expression:n,direction:"ASC"}))}),e},ne.Select.prototype.Top=function(e){var t=this;return t.top=new ne.NumValue({value:e}),t},ne.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new ne.Column({columnid:t});e.group.push(n)}),e},ne.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},ne.FuncValue=function(e){return ne.extend(this,e)},ne.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},ne.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},ne.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},ne.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ce=T.stdlib={},le=T.stdfn={};ce.ABS=function(e){return"Math.abs("+e+")"},ce.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},le.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ce.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ce.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ce.IFNULL=function(e,t){return"("+e+"||"+t+")"},ce.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ce.LEN=ce.LENGTH=function(e){return t(e,"y.length")},ce.LOWER=ce.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ce.MAX=ce.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ce.MIN=ce.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ce.SUBSTRING=ce.SUBSTR=ce.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},le.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ce.ISNULL=ce.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ce.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ce.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ce.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},ce.CEIL=ce.CEILING=function(e){return"Math.ceil("+e+")"},ce.FLOOR=function(e){return"Math.floor("+e+")"},ce.ROWNUM=function(){return"1"},ce.ROW_NUMBER=function(){return"1"},ce.SQRT=function(e){return"Math.sqrt("+e+")"},ce.TRIM=function(e){return t(e,"y.trim()")},ce.UPPER=ce.UCASE=function(e){return t(e,"String(y).toUpperCase()")},le.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},le.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var he=[],de=0;256>de;de++)he[de]=(16>de?"0":"")+de.toString(16);le.NEWID=le.UUID=le.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return he[255&e]+he[e>>8&255]+he[e>>16&255]+he[e>>24&255]+"-"+he[255&t]+he[t>>8&255]+"-"+he[t>>16&15|64]+he[t>>24&255]+"-"+he[63&n|128]+he[n>>8&255]+"-"+he[n>>16&255]+he[n>>24&255]+he[255&r]+he[r>>8&255]+he[r>>16&255]+he[r>>24&255]},ne.CaseValue=function(e){return ne.extend(this,e)},ne.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},ne.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},ne.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},ne.Json=function(e){return ne.extend(this,e)},ne.Json.prototype.toString=function(){var e="";return e+=fe(this.value),e+=""};var fe=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return fe(e)}).join(",")+"]";else if(!e.toJS||e instanceof ne.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+fe(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};ne.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},ne.Convert=function(e){return ne.extend(this,e)},ne.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},ne.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},ne.ColumnDef=function(e){return ne.extend(this,e)},ne.ColumnDef.prototype.toString=function(){var 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},ne.CreateTable=function(e){return ne.extend(this,e)},ne.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},ne.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=V(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=V(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l); +}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=V(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=V(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=H(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,le.EXTEND=T.utils.extend,le.CHAR=String.fromCharCode.bind(String),le.ASCII=function(e){return e.charCodeAt(0)},le.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},ne.CreateEdge=function(e){return ne.extend(this,e)},ne.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.CreateGraph=function(e){return ne.extend(this,e)},ne.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&Y(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&Y(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},ne.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.AlterTable=function(e){return ne.extend(this,e)},ne.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},ne.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},ne.CreateIndex=function(e){return ne.extend(this,e)},ne.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},ne.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=V(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},ne.Reindex=function(e){return ne.extend(this,e)},ne.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},ne.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},ne.DropIndex=function(e){return ne.extend(this,e)},ne.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},ne.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},ne.WithSelect=function(e){return ne.extend(this,e)},ne.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},ne.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new ee({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},ne.If=function(e){return ne.extend(this,e)},ne.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},ne.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},ne.While=function(e){return ne.extend(this,e)},ne.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},ne.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},ne.Break=function(e){return ne.extend(this,e)},ne.Break.prototype.toString=function(){var e="BREAK";return e},ne.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.Continue=function(e){return ne.extend(this,e)},ne.Continue.prototype.toString=function(){var e="CONTINUE";return e},ne.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.BeginEnd=function(e){return ne.extend(this,e)},ne.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},ne.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=H(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},ne.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.CreateTrigger=function(e){return ne.extend(this,e)},ne.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()},ne.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},ne.DropTrigger=function(e){return ne.extend(this,e)},ne.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},ne.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},ne.Delete=function(e){return ne.extend(this,e)},ne.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},ne.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},ne.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Update=function(e){return ne.extend(this,e)},ne.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()),e},ne.SetColumn=function(e){return ne.extend(this,e)},ne.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},ne.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},ne.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Merge=function(e){return ne.extend(this,e)},ne.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},ne.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},ne.CreateDatabase=function(e){return ne.extend(this,e)},ne.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},ne.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},ne.AttachDatabase=function(e){return ne.extend(this,e)},ne.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},ne.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},ne.DetachDatabase=function(e){return ne.extend(this,e)},ne.DetachDatabase.prototype.toString=function(){ +var e="DETACH";return e+=" DATABASE "+this.databaseid},ne.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.UseDatabase=function(e){return ne.extend(this,e)},ne.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},ne.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},ne.DropDatabase=function(e){return ne.extend(this,e)},ne.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},ne.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.Declare=function(e){return ne.extend(this,e)},ne.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},ne.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},ne.ShowDatabases=function(e){return ne.extend(this,e)},ne.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},ne.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},ne.ShowTables=function(e){return ne.extend(this,e)},ne.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},ne.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},ne.ShowColumns=function(e){return ne.extend(this,e)},ne.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},ne.ShowIndex=function(e){return ne.extend(this,e)},ne.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},ne.ShowCreateTable=function(e){return ne.extend(this,e)},ne.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},ne.SetVariable=function(e){return ne.extend(this,e)},ne.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},ne.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;x.isNode&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(fe(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="

"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},ne.BeginTransaction=function(e){return ne.extend(this,e)},ne.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},ne.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},ne.CommitTransaction=function(e){return ne.extend(this,e)},ne.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},ne.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},ne.RollbackTransaction=function(e){return ne.extend(this,e)},ne.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},ne.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&Y(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=V(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&Y(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(Y(s,h.row),h.rows&&h.rows[a]&&Y(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if(x.isNode)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library is not attached");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if(x.isNode)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library not found");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},ne.Help=function(e){return ne.extend(this,e)},ne.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],ne.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},ne.Print=function(e){return ne.extend(this,e)},ne.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},ne.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return fe(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(fe(i))}else console.log();return n&&(a=n(a)),a},ne.Source=function(e){return ne.extend(this,e)},ne.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},ne.Source.prototype.execute=function(e,t,n){var r;return M(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},ne.Require=function(e){return ne.extend(this,e)},ne.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},ne.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){M(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||M(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},ge.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},ge.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},ge.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var me=T.engines.LOCALSTORAGE=function(){};me.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},me.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},me.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,me.set(n.lsdbid+"."+t,a)},me.restoreTable=function(e,t){var n=T.databases[e],r=me.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},me.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},me.createDatabase=function(e,t,n,r,a){var s=1,i=me.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,me.set("alasql",i),me.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},me.dropDatabase=function(e,t,n){var r=1,a=me.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],me.set("alasql",a);var s=me.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=me.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)me.restoreTable(t,o);return a&&(s=a(s)),s},me.showDatabases=function(e,t){var n=[],r=me.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},me.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=me.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=me.get(s);T.databases[e].tables[t];return o.tables[t]=!0,me.set(s,o),me.storeTable(e,t),r&&r(a),a},me.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=me.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],me.set(s,i),me.removeTable(e,t),r&&r(a),a},me.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,me.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},me.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=me.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),me.storeTable(e,t),a&&a(s),s},me.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;me.restoreTable(e,t)},me.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;me.storeTable(r,t),n.tables[t].data=void 0},me.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,me.storeTable(e,s);return me.set(r,a),1},me.begin=me.commit,me.rollback=function(e,t){return};var ve=T.engines.SQLITE=function(){};ve.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},ve.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof ne.StringValue||n[0]instanceof ne.ParamValue){if(n[0]instanceof ne.StringValue)var i=n[0].value;else if(n[0]instanceof ne.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},ve.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var Ee=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(Ee.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},Ee.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},Ee.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,M(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},Ee.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],Ee.updateFile(e),r&&r(i),i},Ee.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){Ee.updateFile(e)},50)}))},Ee.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],Ee.updateFile(e),r&&r(a),a},Ee.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},Ee.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),Ee.updateFile(e),a&&a(i),i},Ee.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},Ee.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,Ee.updateFile(e)},Ee.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return Ee.updateFile(e),1},Ee.begin=Ee.commit,Ee.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});Y(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),Y(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},"object"!=typeof exports&&"function"!=typeof importScripts&&"object"==typeof document){var ye=ye||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=ye:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return ye}),T.utils.saveAs=ye}return new z("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file diff --git a/src/15utility.js b/src/15utility.js index 67bb4f5728..86a04aff7e 100755 --- a/src/15utility.js +++ b/src/15utility.js @@ -201,6 +201,17 @@ var isBrowser = function(){ } utils.isBrowser = isBrowser(); +/** + Find out if code is running in a browser with a browserify setup + @return {boolean} True if code is running in a browser with a browserify setup +*/ +var isBrowserify = function(){ + return utils.isBrowser && (typeof exports === 'object'); +} +utils.isBrowserify = isBrowserify(); + + + /** Find out if code is running with Meteor in the enviroment @return {boolean} True if code is running with Meteor in the enviroment diff --git a/src/833xlsx.js b/src/833xlsx.js index 8d44a88a13..ede3cb2650 100755 --- a/src/833xlsx.js +++ b/src/833xlsx.js @@ -170,13 +170,19 @@ alasql.into.XLSX = function(filename, opts, data, columns, cb) { if(typeof filename == 'undefined') { res = wb; } else { - if(utils.isNode) { - XLSX = require('xlsx'); + var XLSX; + + if(utils.isNode || utils.isBrowserify || utils.isMeteorServer) { + XLSX = require('xlsx'); + + } else { + XLSX = utils.global.XLSX; + } + + + if(utils.isNode || utils.isMeteorServer) { XLSX.writeFile(wb, filename); - } else { - XLSX = utils.global.XLSX; - if(!XLSX) { throw new Error('XLSX library not found'); } From eb76fb698e8c9068b1ae0345308e7c8b5e41b34c Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 5 Feb 2016 16:51:21 +0000 Subject: [PATCH 23/54] Better Browserify detection --- src/15utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/15utility.js b/src/15utility.js index 86a04aff7e..8363fec41b 100755 --- a/src/15utility.js +++ b/src/15utility.js @@ -206,7 +206,7 @@ utils.isBrowser = isBrowser(); @return {boolean} True if code is running in a browser with a browserify setup */ var isBrowserify = function(){ - return utils.isBrowser && (typeof exports === 'object'); + return utils.isBrowser && utils.global.process && utils.global.process.browser } utils.isBrowserify = isBrowserify(); From d7473a3dfd1292b55c2bd06bb9cefe5ff3743b19 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 5 Feb 2016 17:36:41 +0000 Subject: [PATCH 24/54] Test for LIKE on numbers --- dist/alasql-worker.js | 4 ++-- dist/alasql-worker.min.js | 2 +- dist/alasql.js | 8 ++++---- dist/alasql.min.js | 6 +++--- test/test032.js | 23 +++++++++++++++++++++-- 5 files changed, 31 insertions(+), 12 deletions(-) diff --git a/dist/alasql-worker.js b/dist/alasql-worker.js index 27cbfec0af..fddd8ef9d0 100755 --- a/dist/alasql-worker.js +++ b/dist/alasql-worker.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1191 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1193 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1191 +@version 0.2.3-develop-1193 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff diff --git a/dist/alasql-worker.min.js b/dist/alasql-worker.min.js index c1d8c6ba52..141b76d3de 100755 --- a/dist/alasql-worker.min.js +++ b/dist/alasql-worker.min.js @@ -1,2 +1,2 @@ -//! AlaSQL v0.2.3-develop-1191 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1193 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT !function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?module.exports=r():e.alasql=r()}(this,function(){function e(r,t,s){var a=e.lastid++;e.buffer[a]=s,e.webworker.postMessage({id:a,sql:r,params:t})}return"object"!=typeof exports&&(e.worker=function(r,t,s){if(r===!0&&(r=void 0),"undefined"==typeof r)for(var a=document.getElementsByTagName("script"),o=0;o1){var f="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");e(f,[],s)}}else if(r===!1)return void delete e.webworker}),e.lastid=0,e.buffer={},e.worker(),e}); \ No newline at end of file diff --git a/dist/alasql.js b/dist/alasql.js index 9a5616ade9..ee157869f2 100755 --- a/dist/alasql.js +++ b/dist/alasql.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1191 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1193 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1191 +@version 0.2.3-develop-1193 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff @@ -126,7 +126,7 @@ var alasql = function alasql(sql, params, cb, scope) { Current version of alasql @constant {string} */ -alasql.version = '0.2.3-develop-1191'; +alasql.version = '0.2.3-develop-1193'; /** Debug flag @@ -3176,7 +3176,7 @@ utils.isBrowser = isBrowser(); @return {boolean} True if code is running in a browser with a browserify setup */ var isBrowserify = function(){ - return utils.isBrowser && (typeof exports === 'object'); + return utils.isBrowser && utils.global.process && utils.global.process.browser } utils.isBrowserify = isBrowserify(); diff --git a/dist/alasql.min.js b/dist/alasql.min.js index fca471dc6d..5b820ac70b 100755 --- a/dist/alasql.min.js +++ b/dist/alasql.min.js @@ -1,12 +1,12 @@ -//! AlaSQL v0.2.3-develop-1191 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='

',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1191",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +//! AlaSQL v0.2.3-develop-1193 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1193",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] });break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, 410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ 74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:Ve,414:je},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:Tt,113:wt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:804,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:dr,75:[1,805]},{71:dr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:dt,134:ft,141:821,142:Ke,149:pt,409:185,410:Ve,414:je,466:820,484:306,488:308},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(Tr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(Tr,[2,733]),t(Tr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:ha,330:da,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,368],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,369],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,371],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:Tt,113:wt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,381],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,382],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,383],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:858,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:dr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,Sa),t(Ta,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:Br,298:672,299:on,301:Gr},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:877,413:410,414:je,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:jr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:hn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:882,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:883,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:884,413:410,414:je},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:885,409:185,410:Ve,414:je},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:893,409:185,410:Ve,414:je},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:913,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,915],109:wn,111:459,112:Tt,113:wt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:925,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:d},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{111:954,112:Tt,113:wt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:970,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:971,4:r,5:a},{71:dr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, 285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:Ve,414:je}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],wr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,Va,{76:74,181:99,459:995,38:998,86:u,143:ja,186:d,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(_a,[2,753]),t(_a,[2,754]),t(_a,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(gt,[2,674],{121:[1,1002]}),{128:Ba,377:1003,379:Ga},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:Ve,414:je},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1012],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1015,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1016]},{71:dr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1020,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(Ta,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:Ve,414:je},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:d},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Ge,76:74,86:u,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,181:99,186:d,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:dr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1074],109:wn,111:459,112:Tt,113:wt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:dr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1081],109:wn,111:459,112:Tt,113:wt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1083],109:wn,111:459,112:Tt,113:wt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1085],109:wn,111:459,112:Tt,113:wt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1087],109:wn,111:459,112:Tt,113:wt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1089]},t(hs,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1093],109:wn,111:459,112:Tt,113:wt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1095],109:wn,111:459,112:Tt,113:wt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(ds,[2,643]),t(ds,[2,644]),t(ds,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:dr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1125,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:d},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1141,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:ha,330:da,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:[1,1145],75:[1,1146]},t(hs,[2,528]),t(hs,[2,529]),{128:Ba,377:1147,379:Ga},{71:fs,75:[1,1148]},t(hs,[2,463],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,372],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:dr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:dr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(Ta,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:de,178:ge,198:1164,293:qe,409:185,410:Ve,414:je},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:d},{3:718,4:r,5:a,108:1168},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1169,409:185,410:Ve,414:je},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:he,149:de,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1212,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, 198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column -},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&"object"==typeof exports};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ +},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&x.global.process&&x.global.process.browser};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=H(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var ae=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof ne.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof ne.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(ae(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},ne.Select=function(e){return ne.extend(this,e)},ne.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof ne.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},ne.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},ne.Select.prototype.compile=function(e){var t=T.databases[e],n=new te;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof ne.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof ne.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof ne.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof ne.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},ne.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.ExistsValue=function(e){return ne.extend(this,e)},ne.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},ne.ExistsValue.prototype.toType=function(){return"boolean"},ne.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},ne.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},ne.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},ne.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof ne.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof ne.Select)e.aliases[r]={type:"subquery"};else if(t instanceof ne.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof ne.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof ne.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof ne.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof ne.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof ne.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof ne.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof ne.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof ne.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},ne.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof ne.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=_(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof ne.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},ne.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileWhereJoins=function(e){},ne.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=j(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=P(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof ne.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof ne.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},ne.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof ne.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof ne.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},ne.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof ne.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},ne.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof ne.Column&&"*"===n.columnid)){var a;a=A(n instanceof ne.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},ne.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof ne.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof ne.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof ne.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},ne.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},ne.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof ne.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof ne.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},ne.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]; }).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=H(p);n.columnid=t,e.columns.push(n)})}},ne.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var se=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof ne.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},ne.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},ne.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},ne.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof ne.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},ne.VarValue=function(e){return ne.extend(this,e)},ne.VarValue.prototype.toString=function(){return"@"+this.variable},ne.VarValue.prototype.toType=function(){return"unknown"},ne.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},ne.NumValue=function(e){return ne.extend(this,e)},ne.NumValue.prototype.toString=function(){return this.value.toString()},ne.NumValue.prototype.toType=function(){return"number"},ne.NumValue.prototype.toJS=function(){return""+this.value},ne.StringValue=function(e){return ne.extend(this,e)},ne.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},ne.StringValue.prototype.toType=function(){return"string"},ne.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},ne.LogicValue=function(e){return ne.extend(this,e)},ne.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},ne.LogicValue.prototype.toType=function(){return"boolean"},ne.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},ne.NullValue=function(e){return ne.extend(this,e)},ne.NullValue.prototype.toString=function(){return"NULL"},ne.NullValue.prototype.toJS=function(){return"undefined"},ne.ParamValue=function(e){return ne.extend(this,e)},ne.ParamValue.prototype.toString=function(){return"$"+this.param},ne.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},ne.UniOp=function(e){return ne.extend(this,e)},ne.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},ne.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},ne.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},ne.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof ne.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},ne.Column=function(e){return ne.extend(this,e)},ne.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},ne.AggrValue=function(e){return ne.extend(this,e)},ne.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},ne.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},ne.OrderExpression=function(e){return ne.extend(this,e)},ne.OrderExpression.prototype.toString=ne.Expression.prototype.toString,ne.GroupExpression=function(e){return ne.extend(this,e)},ne.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},ne.FromData=function(e){return ne.extend(this,e)},ne.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},ne.FromData.prototype.toJS=function(){},ne.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=V(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},ne.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new ne.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new ne.Column({columnid:"*",func:t,param:n}))}}),e},ne.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new ne.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new ne.Table({tableid:e}))}return t},ne.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new ne.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new ne.OrderExpression({expression:n,direction:"ASC"}))}),e},ne.Select.prototype.Top=function(e){var t=this;return t.top=new ne.NumValue({value:e}),t},ne.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new ne.Column({columnid:t});e.group.push(n)}),e},ne.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},ne.FuncValue=function(e){return ne.extend(this,e)},ne.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},ne.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},ne.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},ne.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ce=T.stdlib={},le=T.stdfn={};ce.ABS=function(e){return"Math.abs("+e+")"},ce.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},le.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ce.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ce.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ce.IFNULL=function(e,t){return"("+e+"||"+t+")"},ce.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ce.LEN=ce.LENGTH=function(e){return t(e,"y.length")},ce.LOWER=ce.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ce.MAX=ce.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ce.MIN=ce.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ce.SUBSTRING=ce.SUBSTR=ce.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},le.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ce.ISNULL=ce.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ce.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ce.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ce.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},ce.CEIL=ce.CEILING=function(e){return"Math.ceil("+e+")"},ce.FLOOR=function(e){return"Math.floor("+e+")"},ce.ROWNUM=function(){return"1"},ce.ROW_NUMBER=function(){return"1"},ce.SQRT=function(e){return"Math.sqrt("+e+")"},ce.TRIM=function(e){return t(e,"y.trim()")},ce.UPPER=ce.UCASE=function(e){return t(e,"String(y).toUpperCase()")},le.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},le.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var he=[],de=0;256>de;de++)he[de]=(16>de?"0":"")+de.toString(16);le.NEWID=le.UUID=le.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return he[255&e]+he[e>>8&255]+he[e>>16&255]+he[e>>24&255]+"-"+he[255&t]+he[t>>8&255]+"-"+he[t>>16&15|64]+he[t>>24&255]+"-"+he[63&n|128]+he[n>>8&255]+"-"+he[n>>16&255]+he[n>>24&255]+he[255&r]+he[r>>8&255]+he[r>>16&255]+he[r>>24&255]},ne.CaseValue=function(e){return ne.extend(this,e)},ne.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},ne.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},ne.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},ne.Json=function(e){return ne.extend(this,e)},ne.Json.prototype.toString=function(){var e="";return e+=fe(this.value),e+=""};var fe=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return fe(e)}).join(",")+"]";else if(!e.toJS||e instanceof ne.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+fe(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};ne.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},ne.Convert=function(e){return ne.extend(this,e)},ne.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},ne.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},ne.ColumnDef=function(e){return ne.extend(this,e)},ne.ColumnDef.prototype.toString=function(){var 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},ne.CreateTable=function(e){return ne.extend(this,e)},ne.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},ne.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=V(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=V(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l); }e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=V(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=V(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=H(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,le.EXTEND=T.utils.extend,le.CHAR=String.fromCharCode.bind(String),le.ASCII=function(e){return e.charCodeAt(0)},le.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},ne.CreateEdge=function(e){return ne.extend(this,e)},ne.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.CreateGraph=function(e){return ne.extend(this,e)},ne.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&Y(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&Y(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},ne.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.AlterTable=function(e){return ne.extend(this,e)},ne.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},ne.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},ne.CreateIndex=function(e){return ne.extend(this,e)},ne.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},ne.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=V(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},ne.Reindex=function(e){return ne.extend(this,e)},ne.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},ne.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},ne.DropIndex=function(e){return ne.extend(this,e)},ne.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},ne.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},ne.WithSelect=function(e){return ne.extend(this,e)},ne.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},ne.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new ee({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},ne.If=function(e){return ne.extend(this,e)},ne.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},ne.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},ne.While=function(e){return ne.extend(this,e)},ne.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},ne.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},ne.Break=function(e){return ne.extend(this,e)},ne.Break.prototype.toString=function(){var e="BREAK";return e},ne.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.Continue=function(e){return ne.extend(this,e)},ne.Continue.prototype.toString=function(){var e="CONTINUE";return e},ne.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.BeginEnd=function(e){return ne.extend(this,e)},ne.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},ne.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=H(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},ne.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.CreateTrigger=function(e){return ne.extend(this,e)},ne.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()},ne.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},ne.DropTrigger=function(e){return ne.extend(this,e)},ne.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},ne.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},ne.Delete=function(e){return ne.extend(this,e)},ne.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},ne.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},ne.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Update=function(e){return ne.extend(this,e)},ne.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()),e},ne.SetColumn=function(e){return ne.extend(this,e)},ne.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},ne.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},ne.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Merge=function(e){return ne.extend(this,e)},ne.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},ne.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},ne.CreateDatabase=function(e){return ne.extend(this,e)},ne.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},ne.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},ne.AttachDatabase=function(e){return ne.extend(this,e)},ne.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},ne.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},ne.DetachDatabase=function(e){return ne.extend(this,e)},ne.DetachDatabase.prototype.toString=function(){ diff --git a/test/test032.js b/test/test032.js index ddc45c93d8..5d6c5e9231 100644 --- a/test/test032.js +++ b/test/test032.js @@ -4,9 +4,10 @@ if(typeof exports === 'object') { }; describe('Test 32', function() { + var db = new alasql.Database("db"); + it('LIKE and NOT LIKE', function(done){ - var db = new alasql.Database("db"); db.exec('CREATE TABLE test (a STRING, b INT, t DATETIME)'); db.exec("INSERT INTO test (a) VALUES ('a')"); db.exec("INSERT INTO test (a) VALUES ('ab')"); @@ -40,6 +41,24 @@ describe('Test 32', function() { done(); }); - + + it('2. Can do LIKE on numbers',function(done){ + db.exec('CREATE TABLE test32 (a int)'); + db.exec("INSERT INTO test32 (a) VALUES (4)"); + db.exec("INSERT INTO test32 (a) VALUES (44)"); + db.exec("INSERT INTO test32 (a) VALUES (404)"); + db.exec("INSERT INTO test32 (a) VALUES (444)"); + db.exec("INSERT INTO test32 (a) VALUES (1234)"); + + var sql = "value of SELECT COUNT(a) FROM test32 WHERE a LIKE '4%'"; + assert.deepEqual(4,db.exec(sql)); + + var sql = "value of SELECT a FROM test32 WHERE a LIKE '_4_'"; + // assert.deepEqual(444,db.exec(sql)); + + var sql = "value of SELECT a FROM test32 WHERE a LIKE '%2_4'"; + assert.deepEqual(1234,db.exec(sql)); + done(); + }); }); From 25d2758423c944f94cf64b171a4361a70a6d26ed Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Sat, 6 Feb 2016 11:16:49 +0100 Subject: [PATCH 25/54] Fix #576 --- test/test140.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/test/test140.js b/test/test140.js index c87c868aa3..7aa8e01d26 100644 --- a/test/test140.js +++ b/test/test140.js @@ -10,14 +10,14 @@ describe('Test 140 JavaScript Functions', function() { it("1. Simple Date functions", function(done){ alasql('CREATE DATABASE test140; use test140'); - var res = alasql('SELECT * FROM ?', [[{d: new Date(2014,0,1)},{d: new Date(2015,11,31)} ]]); + var res = alasql('SELECT * FROM ?', [[{d: new Date(2014,0,1)},{d: new Date(2015,11,31)} ]]); assert(res.length == 2); - assert(res[0].d.getFullYear); + assert(res[0].d.getFullYear); // be aware This can cause same year for both data here depending on locale settings - var res = alasql('SELECT COLUMN d->getFullYear() FROM ?', [[{d: new Date(2014,0,1)},{d: new Date(2015,11,31)} ]]); + var res = alasql('SELECT COLUMN d->getFullYear() FROM ?', [[{d: new Date(2014,6,1)},{d: new Date(2015,6,31)} ]]); assert.deepEqual(res,[2014,2015]); - var res = alasql('SELECT d->getFullYear() AS d FROM ?', [[{d: new Date(2014,0,1)},{d: new Date(2015,11,31)} ]]); + var res = alasql('SELECT d->getFullYear() AS d FROM ?', [[{d: new Date(2014,6,1)},{d: new Date(2015,6,31)} ]]); assert.deepEqual(res, [{d:2014},{d:2015}]); done(); @@ -36,10 +36,10 @@ describe('Test 140 JavaScript Functions', function() { it("3. NEW keyword", function(done){ alasql.fn.Date = Date; - var res = alasql("SELECT VALUE new Date(2014,0,1)"); + var res = alasql("SELECT VALUE new Date(2014,6,1)"); assert(res.getFullYear() == 2014); - var res = alasql("SELECT VALUE new Date(2014,0,1)->getFullYear()"); + var res = alasql("SELECT VALUE new Date(2014,6,1)->getFullYear()"); assert(res == 2014); done(); @@ -50,15 +50,15 @@ describe('Test 140 JavaScript Functions', function() { alasql('CREATE TABLE one (d Date)'); - alasql('INSERT INTO one VALUES (new Date(2014,0,1)), (new Date(2015,0,2))'); + alasql('INSERT INTO one VALUES (new Date(2014,6,1)), (new Date(2015,6,2))'); var res = alasql("SELECT COLUMN d->getFullYear() FROM one"); assert.deepEqual(res,[2014,2015]); - var res = alasql("SELECT COLUMN d->getFullYear() FROM one WHERE d === new Date(2015,0,1)"); + var res = alasql("SELECT COLUMN d->getFullYear() FROM one WHERE d === new Date(2015,6,1)"); assert.deepEqual(res,[]); - var res = alasql("SELECT COLUMN d->getFullYear() FROM one WHERE d === new Date(2015,0,2)"); + var res = alasql("SELECT COLUMN d->getFullYear() FROM one WHERE d === new Date(2015,6,2)"); assert.deepEqual(res,[2015]); done(); }); @@ -67,15 +67,15 @@ describe('Test 140 JavaScript Functions', function() { it("5. Create table with default conversion Date", function(done){ alasql('CREATE TABLE two (d DATE)'); - alasql('INSERT INTO two VALUES ("2014-01-01"), ("2015-01-02")'); + alasql('INSERT INTO two VALUES ("2014-06-01"), ("2015-06-02")'); var res = alasql("SELECT COLUMN d FROM two"); - assert.deepEqual(res,["2014-01-01", "2015-01-02"]); + assert.deepEqual(res,["2014-06-01", "2015-06-02"]); // assert.deepEqual(res,[2014,2015]); // console.log(res); var res = alasql("SELECT COLUMN d FROM two"); - assert.deepEqual(res,["2014-01-01","2015-01-02"]); + assert.deepEqual(res,["2014-06-01","2015-06-02"]); done(); }); @@ -83,7 +83,7 @@ describe('Test 140 JavaScript Functions', function() { alasql('CREATE TABLE three (d Date)'); - alasql('INSERT INTO three VALUES ("2014-01-01"), ("2015-01-02")'); + alasql('INSERT INTO three VALUES ("2014-06-01"), ("2015-06-02")'); var res = alasql("SELECT COLUMN d->getFullYear() FROM three"); assert.deepEqual(res,[2014,2015]); @@ -96,7 +96,7 @@ describe('Test 140 JavaScript Functions', function() { delete alasql.fn.Date; alasql('CREATE TABLE four (d Date)'); - alasql('INSERT INTO four VALUES ("2014-01-01"), ("2015-01-02")'); + alasql('INSERT INTO four VALUES ("2014-06-01"), ("2015-06-02")'); var res = alasql("SELECT COLUMN YEAR(d) FROM four"); assert.deepEqual(res,[2014,2015]); @@ -109,7 +109,7 @@ describe('Test 140 JavaScript Functions', function() { // console.log(res); var res = alasql("SELECT COLUMN d FROM four"); - assert.deepEqual(res,["2014-01-01","2015-01-02"]); + assert.deepEqual(res,["2014-06-01","2015-06-02"]); done(); }); From 80eb181d9912422804d76e8699257f32acedd4bd Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Sat, 6 Feb 2016 11:33:11 +0100 Subject: [PATCH 26/54] Test for correct month --- test/test140.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test140.js b/test/test140.js index 7aa8e01d26..08c5702277 100644 --- a/test/test140.js +++ b/test/test140.js @@ -102,7 +102,7 @@ describe('Test 140 JavaScript Functions', function() { assert.deepEqual(res,[2014,2015]); var res = alasql("SELECT COLUMN MONTH(d) FROM four"); - assert.deepEqual(res,[1,1]); + assert.deepEqual(res,[6,6]); var res = alasql("SELECT COLUMN DAY(d) FROM four"); assert.deepEqual(res,[1,2]); From bc52ccd5f9acbd29832052ae1e0910d308fa500c Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Sat, 6 Feb 2016 16:39:30 +0100 Subject: [PATCH 27/54] Update CHANGELOG.md --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bdf59d25f0..8fb8563475 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ # Changelog * Check https://trello.com/b/qxz65pVi/alasql-roadmap for roadmap - + ### 0.2.4 "Exogi" (xx.xx.2016) -* ... +* Added: Central enviroment detection +* Changed: Better support for phonegap, cordova and browserify ### 0.2.3 "Spetses" (02.01.2016) * Changed: New fast way to calculate aggregators (some parameters changed) From 0bd60d39e2e1e48bd3238168b36841f2420730f3 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Mon, 8 Feb 2016 18:42:12 +0000 Subject: [PATCH 28/54] Better browserify Support --- dist/alasql-worker.js | 4 ++-- dist/alasql-worker.min.js | 2 +- dist/alasql.js | 14 +++++++------- dist/alasql.min.js | 8 ++++---- src/84from.js | 6 +++--- src/97saveas.js | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/dist/alasql-worker.js b/dist/alasql-worker.js index fddd8ef9d0..bd8e996c90 100755 --- a/dist/alasql-worker.js +++ b/dist/alasql-worker.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1193 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1197 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1193 +@version 0.2.3-develop-1197 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff diff --git a/dist/alasql-worker.min.js b/dist/alasql-worker.min.js index 141b76d3de..5120603ac7 100755 --- a/dist/alasql-worker.min.js +++ b/dist/alasql-worker.min.js @@ -1,2 +1,2 @@ -//! AlaSQL v0.2.3-develop-1193 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1197 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT !function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?module.exports=r():e.alasql=r()}(this,function(){function e(r,t,s){var a=e.lastid++;e.buffer[a]=s,e.webworker.postMessage({id:a,sql:r,params:t})}return"object"!=typeof exports&&(e.worker=function(r,t,s){if(r===!0&&(r=void 0),"undefined"==typeof r)for(var a=document.getElementsByTagName("script"),o=0;o1){var f="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");e(f,[],s)}}else if(r===!1)return void delete e.webworker}),e.lastid=0,e.buffer={},e.worker(),e}); \ No newline at end of file diff --git a/dist/alasql.js b/dist/alasql.js index ee157869f2..0e29cadf30 100755 --- a/dist/alasql.js +++ b/dist/alasql.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1193 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1197 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1193 +@version 0.2.3-develop-1197 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff @@ -126,7 +126,7 @@ var alasql = function alasql(sql, params, cb, scope) { Current version of alasql @constant {string} */ -alasql.version = '0.2.3-develop-1193'; +alasql.version = '0.2.3-develop-1197'; /** Debug flag @@ -15228,12 +15228,12 @@ function XLSXLSX(X,filename, opts, cb, idx, query) { alasql.from.XLS = function(filename, opts, cb, idx, query) { var X; - if(utils.isNode) { + if(utils.isNode || utils.isBrowserify) { X = require('xlsjs'); } else { X = utils.global.XLS; if(!X) { - throw new Error('XLS library is not attached'); + throw new Error('XLS library not found'); } } return XLSXLSX(X,filename, opts, cb, idx, query); @@ -15241,7 +15241,7 @@ alasql.from.XLS = function(filename, opts, cb, idx, query) { alasql.from.XLSX = function(filename, opts, cb, idx, query) { var X; - if(utils.isNode) { + if(utils.isNode || utils.isBrowserify) { X = require('xlsx'); } else { X = utils.global.XLSX; @@ -16866,7 +16866,7 @@ FS.rollback = function(databaseid, cb) { } -if((typeof exports != 'object') && (typeof importScripts != 'function') && (typeof document == 'object')) { +if(utils.isBrowser && !utils.isWebWorker && !utils.isBrowserify) { /* FileSaver.js * A saveAs() FileSaver implementation. diff --git a/dist/alasql.min.js b/dist/alasql.min.js index 5b820ac70b..593d83029c 100755 --- a/dist/alasql.min.js +++ b/dist/alasql.min.js @@ -1,5 +1,5 @@ -//! AlaSQL v0.2.3-develop-1193 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1193",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +//! AlaSQL v0.2.3-develop-1197 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1197",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] });break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, 410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ @@ -10,5 +10,5 @@ trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=H(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var ae=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof ne.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof ne.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(ae(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},ne.Select=function(e){return ne.extend(this,e)},ne.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof ne.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},ne.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},ne.Select.prototype.compile=function(e){var t=T.databases[e],n=new te;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof ne.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof ne.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof ne.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof ne.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},ne.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.ExistsValue=function(e){return ne.extend(this,e)},ne.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},ne.ExistsValue.prototype.toType=function(){return"boolean"},ne.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},ne.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},ne.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},ne.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof ne.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof ne.Select)e.aliases[r]={type:"subquery"};else if(t instanceof ne.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof ne.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof ne.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof ne.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof ne.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof ne.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof ne.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof ne.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof ne.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},ne.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof ne.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=_(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof ne.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},ne.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileWhereJoins=function(e){},ne.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=j(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=P(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof ne.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof ne.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},ne.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof ne.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof ne.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},ne.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof ne.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},ne.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof ne.Column&&"*"===n.columnid)){var a;a=A(n instanceof ne.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},ne.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof ne.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof ne.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof ne.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},ne.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},ne.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof ne.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof ne.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},ne.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]; }).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=H(p);n.columnid=t,e.columns.push(n)})}},ne.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var se=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof ne.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},ne.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},ne.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},ne.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof ne.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},ne.VarValue=function(e){return ne.extend(this,e)},ne.VarValue.prototype.toString=function(){return"@"+this.variable},ne.VarValue.prototype.toType=function(){return"unknown"},ne.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},ne.NumValue=function(e){return ne.extend(this,e)},ne.NumValue.prototype.toString=function(){return this.value.toString()},ne.NumValue.prototype.toType=function(){return"number"},ne.NumValue.prototype.toJS=function(){return""+this.value},ne.StringValue=function(e){return ne.extend(this,e)},ne.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},ne.StringValue.prototype.toType=function(){return"string"},ne.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},ne.LogicValue=function(e){return ne.extend(this,e)},ne.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},ne.LogicValue.prototype.toType=function(){return"boolean"},ne.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},ne.NullValue=function(e){return ne.extend(this,e)},ne.NullValue.prototype.toString=function(){return"NULL"},ne.NullValue.prototype.toJS=function(){return"undefined"},ne.ParamValue=function(e){return ne.extend(this,e)},ne.ParamValue.prototype.toString=function(){return"$"+this.param},ne.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},ne.UniOp=function(e){return ne.extend(this,e)},ne.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},ne.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},ne.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},ne.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof ne.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},ne.Column=function(e){return ne.extend(this,e)},ne.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},ne.AggrValue=function(e){return ne.extend(this,e)},ne.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},ne.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},ne.OrderExpression=function(e){return ne.extend(this,e)},ne.OrderExpression.prototype.toString=ne.Expression.prototype.toString,ne.GroupExpression=function(e){return ne.extend(this,e)},ne.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},ne.FromData=function(e){return ne.extend(this,e)},ne.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},ne.FromData.prototype.toJS=function(){},ne.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=V(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},ne.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new ne.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new ne.Column({columnid:"*",func:t,param:n}))}}),e},ne.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new ne.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new ne.Table({tableid:e}))}return t},ne.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new ne.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new ne.OrderExpression({expression:n,direction:"ASC"}))}),e},ne.Select.prototype.Top=function(e){var t=this;return t.top=new ne.NumValue({value:e}),t},ne.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new ne.Column({columnid:t});e.group.push(n)}),e},ne.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},ne.FuncValue=function(e){return ne.extend(this,e)},ne.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},ne.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},ne.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},ne.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ce=T.stdlib={},le=T.stdfn={};ce.ABS=function(e){return"Math.abs("+e+")"},ce.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},le.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ce.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ce.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ce.IFNULL=function(e,t){return"("+e+"||"+t+")"},ce.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ce.LEN=ce.LENGTH=function(e){return t(e,"y.length")},ce.LOWER=ce.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ce.MAX=ce.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ce.MIN=ce.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ce.SUBSTRING=ce.SUBSTR=ce.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},le.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ce.ISNULL=ce.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ce.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ce.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ce.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},ce.CEIL=ce.CEILING=function(e){return"Math.ceil("+e+")"},ce.FLOOR=function(e){return"Math.floor("+e+")"},ce.ROWNUM=function(){return"1"},ce.ROW_NUMBER=function(){return"1"},ce.SQRT=function(e){return"Math.sqrt("+e+")"},ce.TRIM=function(e){return t(e,"y.trim()")},ce.UPPER=ce.UCASE=function(e){return t(e,"String(y).toUpperCase()")},le.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},le.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var he=[],de=0;256>de;de++)he[de]=(16>de?"0":"")+de.toString(16);le.NEWID=le.UUID=le.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return he[255&e]+he[e>>8&255]+he[e>>16&255]+he[e>>24&255]+"-"+he[255&t]+he[t>>8&255]+"-"+he[t>>16&15|64]+he[t>>24&255]+"-"+he[63&n|128]+he[n>>8&255]+"-"+he[n>>16&255]+he[n>>24&255]+he[255&r]+he[r>>8&255]+he[r>>16&255]+he[r>>24&255]},ne.CaseValue=function(e){return ne.extend(this,e)},ne.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},ne.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},ne.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},ne.Json=function(e){return ne.extend(this,e)},ne.Json.prototype.toString=function(){var e="";return e+=fe(this.value),e+=""};var fe=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return fe(e)}).join(",")+"]";else if(!e.toJS||e instanceof ne.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+fe(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};ne.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},ne.Convert=function(e){return ne.extend(this,e)},ne.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},ne.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},ne.ColumnDef=function(e){return ne.extend(this,e)},ne.ColumnDef.prototype.toString=function(){var 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},ne.CreateTable=function(e){return ne.extend(this,e)},ne.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},ne.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=V(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=V(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l); }e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=V(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=V(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=H(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,le.EXTEND=T.utils.extend,le.CHAR=String.fromCharCode.bind(String),le.ASCII=function(e){return e.charCodeAt(0)},le.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},ne.CreateEdge=function(e){return ne.extend(this,e)},ne.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.CreateGraph=function(e){return ne.extend(this,e)},ne.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&Y(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&Y(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},ne.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.AlterTable=function(e){return ne.extend(this,e)},ne.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},ne.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},ne.CreateIndex=function(e){return ne.extend(this,e)},ne.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},ne.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=V(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},ne.Reindex=function(e){return ne.extend(this,e)},ne.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},ne.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},ne.DropIndex=function(e){return ne.extend(this,e)},ne.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},ne.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},ne.WithSelect=function(e){return ne.extend(this,e)},ne.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},ne.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new ee({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},ne.If=function(e){return ne.extend(this,e)},ne.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},ne.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},ne.While=function(e){return ne.extend(this,e)},ne.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},ne.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},ne.Break=function(e){return ne.extend(this,e)},ne.Break.prototype.toString=function(){var e="BREAK";return e},ne.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.Continue=function(e){return ne.extend(this,e)},ne.Continue.prototype.toString=function(){var e="CONTINUE";return e},ne.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.BeginEnd=function(e){return ne.extend(this,e)},ne.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},ne.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=H(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},ne.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.CreateTrigger=function(e){return ne.extend(this,e)},ne.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()},ne.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},ne.DropTrigger=function(e){return ne.extend(this,e)},ne.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},ne.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},ne.Delete=function(e){return ne.extend(this,e)},ne.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},ne.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},ne.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Update=function(e){return ne.extend(this,e)},ne.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()),e},ne.SetColumn=function(e){return ne.extend(this,e)},ne.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},ne.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},ne.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Merge=function(e){return ne.extend(this,e)},ne.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},ne.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},ne.CreateDatabase=function(e){return ne.extend(this,e)},ne.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},ne.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},ne.AttachDatabase=function(e){return ne.extend(this,e)},ne.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},ne.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},ne.DetachDatabase=function(e){return ne.extend(this,e)},ne.DetachDatabase.prototype.toString=function(){ -var e="DETACH";return e+=" DATABASE "+this.databaseid},ne.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.UseDatabase=function(e){return ne.extend(this,e)},ne.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},ne.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},ne.DropDatabase=function(e){return ne.extend(this,e)},ne.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},ne.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.Declare=function(e){return ne.extend(this,e)},ne.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},ne.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},ne.ShowDatabases=function(e){return ne.extend(this,e)},ne.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},ne.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},ne.ShowTables=function(e){return ne.extend(this,e)},ne.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},ne.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},ne.ShowColumns=function(e){return ne.extend(this,e)},ne.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},ne.ShowIndex=function(e){return ne.extend(this,e)},ne.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},ne.ShowCreateTable=function(e){return ne.extend(this,e)},ne.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},ne.SetVariable=function(e){return ne.extend(this,e)},ne.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},ne.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;x.isNode&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(fe(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="
"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},ne.BeginTransaction=function(e){return ne.extend(this,e)},ne.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},ne.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},ne.CommitTransaction=function(e){return ne.extend(this,e)},ne.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},ne.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},ne.RollbackTransaction=function(e){return ne.extend(this,e)},ne.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},ne.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&Y(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=V(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&Y(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(Y(s,h.row),h.rows&&h.rows[a]&&Y(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if(x.isNode)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library is not attached");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if(x.isNode)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library not found");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},ne.Help=function(e){return ne.extend(this,e)},ne.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],ne.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},ne.Print=function(e){return ne.extend(this,e)},ne.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},ne.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return fe(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(fe(i))}else console.log();return n&&(a=n(a)),a},ne.Source=function(e){return ne.extend(this,e)},ne.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},ne.Source.prototype.execute=function(e,t,n){var r;return M(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},ne.Require=function(e){return ne.extend(this,e)},ne.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},ne.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){M(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||M(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},ge.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},ge.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},ge.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var me=T.engines.LOCALSTORAGE=function(){};me.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},me.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},me.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,me.set(n.lsdbid+"."+t,a)},me.restoreTable=function(e,t){var n=T.databases[e],r=me.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},me.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},me.createDatabase=function(e,t,n,r,a){var s=1,i=me.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,me.set("alasql",i),me.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},me.dropDatabase=function(e,t,n){var r=1,a=me.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],me.set("alasql",a);var s=me.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=me.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)me.restoreTable(t,o);return a&&(s=a(s)),s},me.showDatabases=function(e,t){var n=[],r=me.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},me.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=me.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=me.get(s);T.databases[e].tables[t];return o.tables[t]=!0,me.set(s,o),me.storeTable(e,t),r&&r(a),a},me.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=me.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],me.set(s,i),me.removeTable(e,t),r&&r(a),a},me.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,me.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},me.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=me.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),me.storeTable(e,t),a&&a(s),s},me.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;me.restoreTable(e,t)},me.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;me.storeTable(r,t),n.tables[t].data=void 0},me.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,me.storeTable(e,s);return me.set(r,a),1},me.begin=me.commit,me.rollback=function(e,t){return};var ve=T.engines.SQLITE=function(){};ve.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},ve.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof ne.StringValue||n[0]instanceof ne.ParamValue){if(n[0]instanceof ne.StringValue)var i=n[0].value;else if(n[0]instanceof ne.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},ve.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var Ee=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(Ee.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},Ee.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},Ee.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,M(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},Ee.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],Ee.updateFile(e),r&&r(i),i},Ee.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){Ee.updateFile(e)},50)}))},Ee.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],Ee.updateFile(e),r&&r(a),a},Ee.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},Ee.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),Ee.updateFile(e),a&&a(i),i},Ee.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},Ee.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,Ee.updateFile(e)},Ee.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return Ee.updateFile(e),1},Ee.begin=Ee.commit,Ee.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});Y(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),Y(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},"object"!=typeof exports&&"function"!=typeof importScripts&&"object"==typeof document){var ye=ye||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=ye:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return ye}),T.utils.saveAs=ye}return new z("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file +var e="DETACH";return e+=" DATABASE "+this.databaseid},ne.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.UseDatabase=function(e){return ne.extend(this,e)},ne.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},ne.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},ne.DropDatabase=function(e){return ne.extend(this,e)},ne.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},ne.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.Declare=function(e){return ne.extend(this,e)},ne.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},ne.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},ne.ShowDatabases=function(e){return ne.extend(this,e)},ne.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},ne.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},ne.ShowTables=function(e){return ne.extend(this,e)},ne.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},ne.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},ne.ShowColumns=function(e){return ne.extend(this,e)},ne.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},ne.ShowIndex=function(e){return ne.extend(this,e)},ne.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},ne.ShowCreateTable=function(e){return ne.extend(this,e)},ne.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},ne.SetVariable=function(e){return ne.extend(this,e)},ne.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},ne.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;x.isNode&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(fe(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="

"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},ne.BeginTransaction=function(e){return ne.extend(this,e)},ne.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},ne.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},ne.CommitTransaction=function(e){return ne.extend(this,e)},ne.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},ne.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},ne.RollbackTransaction=function(e){return ne.extend(this,e)},ne.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},ne.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&Y(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=V(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&Y(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(Y(s,h.row),h.rows&&h.rows[a]&&Y(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library not found");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library not found");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},ne.Help=function(e){return ne.extend(this,e)},ne.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],ne.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},ne.Print=function(e){return ne.extend(this,e)},ne.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},ne.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return fe(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(fe(i))}else console.log();return n&&(a=n(a)),a},ne.Source=function(e){return ne.extend(this,e)},ne.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},ne.Source.prototype.execute=function(e,t,n){var r;return M(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},ne.Require=function(e){return ne.extend(this,e)},ne.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},ne.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){M(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||M(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},ge.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},ge.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},ge.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var me=T.engines.LOCALSTORAGE=function(){};me.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},me.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},me.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,me.set(n.lsdbid+"."+t,a)},me.restoreTable=function(e,t){var n=T.databases[e],r=me.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},me.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},me.createDatabase=function(e,t,n,r,a){var s=1,i=me.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,me.set("alasql",i),me.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},me.dropDatabase=function(e,t,n){var r=1,a=me.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],me.set("alasql",a);var s=me.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=me.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)me.restoreTable(t,o);return a&&(s=a(s)),s},me.showDatabases=function(e,t){var n=[],r=me.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},me.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=me.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=me.get(s);T.databases[e].tables[t];return o.tables[t]=!0,me.set(s,o),me.storeTable(e,t),r&&r(a),a},me.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=me.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],me.set(s,i),me.removeTable(e,t),r&&r(a),a},me.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,me.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},me.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=me.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),me.storeTable(e,t),a&&a(s),s},me.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;me.restoreTable(e,t)},me.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;me.storeTable(r,t),n.tables[t].data=void 0},me.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,me.storeTable(e,s);return me.set(r,a),1},me.begin=me.commit,me.rollback=function(e,t){return};var ve=T.engines.SQLITE=function(){};ve.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},ve.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof ne.StringValue||n[0]instanceof ne.ParamValue){if(n[0]instanceof ne.StringValue)var i=n[0].value;else if(n[0]instanceof ne.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},ve.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var Ee=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(Ee.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},Ee.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},Ee.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,M(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},Ee.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],Ee.updateFile(e),r&&r(i),i},Ee.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){Ee.updateFile(e)},50)}))},Ee.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],Ee.updateFile(e),r&&r(a),a},Ee.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},Ee.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),Ee.updateFile(e),a&&a(i),i},Ee.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},Ee.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,Ee.updateFile(e)},Ee.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return Ee.updateFile(e),1},Ee.begin=Ee.commit,Ee.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});Y(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),Y(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},x.isBrowser&&!x.isWebWorker&&!x.isBrowserify){var ye=ye||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=ye:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return ye}),T.utils.saveAs=ye}return new z("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file diff --git a/src/84from.js b/src/84from.js index cc236d6f3f..42b51d6890 100755 --- a/src/84from.js +++ b/src/84from.js @@ -404,12 +404,12 @@ function XLSXLSX(X,filename, opts, cb, idx, query) { alasql.from.XLS = function(filename, opts, cb, idx, query) { var X; - if(utils.isNode) { + if(utils.isNode || utils.isBrowserify) { X = require('xlsjs'); } else { X = utils.global.XLS; if(!X) { - throw new Error('XLS library is not attached'); + throw new Error('XLS library not found'); } } return XLSXLSX(X,filename, opts, cb, idx, query); @@ -417,7 +417,7 @@ alasql.from.XLS = function(filename, opts, cb, idx, query) { alasql.from.XLSX = function(filename, opts, cb, idx, query) { var X; - if(utils.isNode) { + if(utils.isNode || utils.isBrowserify) { X = require('xlsx'); } else { X = utils.global.XLSX; diff --git a/src/97saveas.js b/src/97saveas.js index e3ce47c4c3..e2ad7fe3c1 100755 --- a/src/97saveas.js +++ b/src/97saveas.js @@ -1 +1 @@ -if((typeof exports != 'object') && (typeof importScripts != 'function') && (typeof document == 'object')) { +if(utils.isBrowser && !utils.isWebWorker && !utils.isBrowserify) { From 095ebf48bc16d03beff1bd5bca4338c2e08395e7 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Tue, 9 Feb 2016 10:23:27 +0000 Subject: [PATCH 29/54] Better Browserify handleing --- dist/alasql-worker.js | 4 ++-- dist/alasql-worker.min.js | 2 +- dist/alasql.js | 10 +++++----- dist/alasql.min.js | 8 ++++---- src/15utility.js | 2 +- src/97saveas.js | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dist/alasql-worker.js b/dist/alasql-worker.js index bd8e996c90..0a7bc3f22e 100755 --- a/dist/alasql-worker.js +++ b/dist/alasql-worker.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1197 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1198 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1197 +@version 0.2.3-develop-1198 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff diff --git a/dist/alasql-worker.min.js b/dist/alasql-worker.min.js index 5120603ac7..0eddb21f9c 100755 --- a/dist/alasql-worker.min.js +++ b/dist/alasql-worker.min.js @@ -1,2 +1,2 @@ -//! AlaSQL v0.2.3-develop-1197 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1198 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT !function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?module.exports=r():e.alasql=r()}(this,function(){function e(r,t,s){var a=e.lastid++;e.buffer[a]=s,e.webworker.postMessage({id:a,sql:r,params:t})}return"object"!=typeof exports&&(e.worker=function(r,t,s){if(r===!0&&(r=void 0),"undefined"==typeof r)for(var a=document.getElementsByTagName("script"),o=0;o1){var f="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");e(f,[],s)}}else if(r===!1)return void delete e.webworker}),e.lastid=0,e.buffer={},e.worker(),e}); \ No newline at end of file diff --git a/dist/alasql.js b/dist/alasql.js index 0e29cadf30..25543afe44 100755 --- a/dist/alasql.js +++ b/dist/alasql.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1197 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1198 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1197 +@version 0.2.3-develop-1198 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff @@ -126,7 +126,7 @@ var alasql = function alasql(sql, params, cb, scope) { Current version of alasql @constant {string} */ -alasql.version = '0.2.3-develop-1197'; +alasql.version = '0.2.3-develop-1198'; /** Debug flag @@ -3176,7 +3176,7 @@ utils.isBrowser = isBrowser(); @return {boolean} True if code is running in a browser with a browserify setup */ var isBrowserify = function(){ - return utils.isBrowser && utils.global.process && utils.global.process.browser + return utils.isBrowser && process && process.browser; } utils.isBrowserify = isBrowserify(); @@ -16866,7 +16866,7 @@ FS.rollback = function(databaseid, cb) { } -if(utils.isBrowser && !utils.isWebWorker && !utils.isBrowserify) { +if(utils.isBrowser && !utils.isWebWorker) { /* FileSaver.js * A saveAs() FileSaver implementation. diff --git a/dist/alasql.min.js b/dist/alasql.min.js index 593d83029c..80ef3c9b55 100755 --- a/dist/alasql.min.js +++ b/dist/alasql.min.js @@ -1,14 +1,14 @@ -//! AlaSQL v0.2.3-develop-1197 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='

',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1197",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +//! AlaSQL v0.2.3-develop-1198 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1198",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] });break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, 410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ 74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:Ve,414:je},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:Tt,113:wt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:804,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:dr,75:[1,805]},{71:dr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:dt,134:ft,141:821,142:Ke,149:pt,409:185,410:Ve,414:je,466:820,484:306,488:308},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(Tr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(Tr,[2,733]),t(Tr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:ha,330:da,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,368],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,369],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,371],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:Tt,113:wt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,381],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,382],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,383],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:858,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:dr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,Sa),t(Ta,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:Br,298:672,299:on,301:Gr},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:877,413:410,414:je,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:jr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:hn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:882,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:883,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:884,413:410,414:je},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:885,409:185,410:Ve,414:je},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:893,409:185,410:Ve,414:je},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:913,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,915],109:wn,111:459,112:Tt,113:wt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:925,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:d},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{111:954,112:Tt,113:wt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:970,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:971,4:r,5:a},{71:dr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, 285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:Ve,414:je}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],wr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,Va,{76:74,181:99,459:995,38:998,86:u,143:ja,186:d,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(_a,[2,753]),t(_a,[2,754]),t(_a,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(gt,[2,674],{121:[1,1002]}),{128:Ba,377:1003,379:Ga},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:Ve,414:je},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1012],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1015,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1016]},{71:dr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1020,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(Ta,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:Ve,414:je},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:d},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Ge,76:74,86:u,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,181:99,186:d,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:dr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1074],109:wn,111:459,112:Tt,113:wt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:dr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1081],109:wn,111:459,112:Tt,113:wt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1083],109:wn,111:459,112:Tt,113:wt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1085],109:wn,111:459,112:Tt,113:wt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1087],109:wn,111:459,112:Tt,113:wt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1089]},t(hs,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1093],109:wn,111:459,112:Tt,113:wt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1095],109:wn,111:459,112:Tt,113:wt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(ds,[2,643]),t(ds,[2,644]),t(ds,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:dr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1125,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:d},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1141,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:ha,330:da,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:[1,1145],75:[1,1146]},t(hs,[2,528]),t(hs,[2,529]),{128:Ba,377:1147,379:Ga},{71:fs,75:[1,1148]},t(hs,[2,463],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,372],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:dr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:dr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(Ta,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:de,178:ge,198:1164,293:qe,409:185,410:Ve,414:je},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:d},{3:718,4:r,5:a,108:1168},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1169,409:185,410:Ve,414:je},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:he,149:de,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1212,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, 198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column -},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&x.global.process&&x.global.process.browser};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ +},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&process&&process.browser};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=H(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var ae=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof ne.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof ne.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(ae(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},ne.Select=function(e){return ne.extend(this,e)},ne.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof ne.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},ne.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},ne.Select.prototype.compile=function(e){var t=T.databases[e],n=new te;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof ne.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof ne.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof ne.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof ne.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},ne.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.ExistsValue=function(e){return ne.extend(this,e)},ne.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},ne.ExistsValue.prototype.toType=function(){return"boolean"},ne.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},ne.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},ne.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},ne.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof ne.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof ne.Select)e.aliases[r]={type:"subquery"};else if(t instanceof ne.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof ne.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof ne.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof ne.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof ne.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof ne.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof ne.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof ne.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof ne.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},ne.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof ne.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=_(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof ne.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},ne.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileWhereJoins=function(e){},ne.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=j(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=P(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof ne.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof ne.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},ne.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof ne.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof ne.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},ne.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof ne.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},ne.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof ne.Column&&"*"===n.columnid)){var a;a=A(n instanceof ne.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},ne.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof ne.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof ne.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof ne.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},ne.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},ne.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof ne.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof ne.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},ne.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]; }).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=H(p);n.columnid=t,e.columns.push(n)})}},ne.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var se=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof ne.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},ne.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},ne.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},ne.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof ne.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},ne.VarValue=function(e){return ne.extend(this,e)},ne.VarValue.prototype.toString=function(){return"@"+this.variable},ne.VarValue.prototype.toType=function(){return"unknown"},ne.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},ne.NumValue=function(e){return ne.extend(this,e)},ne.NumValue.prototype.toString=function(){return this.value.toString()},ne.NumValue.prototype.toType=function(){return"number"},ne.NumValue.prototype.toJS=function(){return""+this.value},ne.StringValue=function(e){return ne.extend(this,e)},ne.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},ne.StringValue.prototype.toType=function(){return"string"},ne.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},ne.LogicValue=function(e){return ne.extend(this,e)},ne.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},ne.LogicValue.prototype.toType=function(){return"boolean"},ne.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},ne.NullValue=function(e){return ne.extend(this,e)},ne.NullValue.prototype.toString=function(){return"NULL"},ne.NullValue.prototype.toJS=function(){return"undefined"},ne.ParamValue=function(e){return ne.extend(this,e)},ne.ParamValue.prototype.toString=function(){return"$"+this.param},ne.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},ne.UniOp=function(e){return ne.extend(this,e)},ne.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},ne.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},ne.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},ne.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof ne.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},ne.Column=function(e){return ne.extend(this,e)},ne.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},ne.AggrValue=function(e){return ne.extend(this,e)},ne.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},ne.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},ne.OrderExpression=function(e){return ne.extend(this,e)},ne.OrderExpression.prototype.toString=ne.Expression.prototype.toString,ne.GroupExpression=function(e){return ne.extend(this,e)},ne.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},ne.FromData=function(e){return ne.extend(this,e)},ne.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},ne.FromData.prototype.toJS=function(){},ne.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=V(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},ne.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new ne.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new ne.Column({columnid:"*",func:t,param:n}))}}),e},ne.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new ne.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new ne.Table({tableid:e}))}return t},ne.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new ne.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new ne.OrderExpression({expression:n,direction:"ASC"}))}),e},ne.Select.prototype.Top=function(e){var t=this;return t.top=new ne.NumValue({value:e}),t},ne.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new ne.Column({columnid:t});e.group.push(n)}),e},ne.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},ne.FuncValue=function(e){return ne.extend(this,e)},ne.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},ne.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},ne.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},ne.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ce=T.stdlib={},le=T.stdfn={};ce.ABS=function(e){return"Math.abs("+e+")"},ce.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},le.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ce.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ce.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ce.IFNULL=function(e,t){return"("+e+"||"+t+")"},ce.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ce.LEN=ce.LENGTH=function(e){return t(e,"y.length")},ce.LOWER=ce.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ce.MAX=ce.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ce.MIN=ce.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ce.SUBSTRING=ce.SUBSTR=ce.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},le.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ce.ISNULL=ce.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ce.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ce.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ce.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},ce.CEIL=ce.CEILING=function(e){return"Math.ceil("+e+")"},ce.FLOOR=function(e){return"Math.floor("+e+")"},ce.ROWNUM=function(){return"1"},ce.ROW_NUMBER=function(){return"1"},ce.SQRT=function(e){return"Math.sqrt("+e+")"},ce.TRIM=function(e){return t(e,"y.trim()")},ce.UPPER=ce.UCASE=function(e){return t(e,"String(y).toUpperCase()")},le.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},le.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var he=[],de=0;256>de;de++)he[de]=(16>de?"0":"")+de.toString(16);le.NEWID=le.UUID=le.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return he[255&e]+he[e>>8&255]+he[e>>16&255]+he[e>>24&255]+"-"+he[255&t]+he[t>>8&255]+"-"+he[t>>16&15|64]+he[t>>24&255]+"-"+he[63&n|128]+he[n>>8&255]+"-"+he[n>>16&255]+he[n>>24&255]+he[255&r]+he[r>>8&255]+he[r>>16&255]+he[r>>24&255]},ne.CaseValue=function(e){return ne.extend(this,e)},ne.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},ne.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},ne.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},ne.Json=function(e){return ne.extend(this,e)},ne.Json.prototype.toString=function(){var e="";return e+=fe(this.value),e+=""};var fe=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return fe(e)}).join(",")+"]";else if(!e.toJS||e instanceof ne.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+fe(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};ne.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},ne.Convert=function(e){return ne.extend(this,e)},ne.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},ne.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},ne.ColumnDef=function(e){return ne.extend(this,e)},ne.ColumnDef.prototype.toString=function(){var 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},ne.CreateTable=function(e){return ne.extend(this,e)},ne.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},ne.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=V(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=V(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l); }e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=V(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=V(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=H(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,le.EXTEND=T.utils.extend,le.CHAR=String.fromCharCode.bind(String),le.ASCII=function(e){return e.charCodeAt(0)},le.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},ne.CreateEdge=function(e){return ne.extend(this,e)},ne.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.CreateGraph=function(e){return ne.extend(this,e)},ne.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&Y(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&Y(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},ne.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.AlterTable=function(e){return ne.extend(this,e)},ne.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},ne.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},ne.CreateIndex=function(e){return ne.extend(this,e)},ne.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},ne.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=V(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},ne.Reindex=function(e){return ne.extend(this,e)},ne.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},ne.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},ne.DropIndex=function(e){return ne.extend(this,e)},ne.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},ne.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},ne.WithSelect=function(e){return ne.extend(this,e)},ne.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},ne.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new ee({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},ne.If=function(e){return ne.extend(this,e)},ne.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},ne.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},ne.While=function(e){return ne.extend(this,e)},ne.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},ne.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},ne.Break=function(e){return ne.extend(this,e)},ne.Break.prototype.toString=function(){var e="BREAK";return e},ne.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.Continue=function(e){return ne.extend(this,e)},ne.Continue.prototype.toString=function(){var e="CONTINUE";return e},ne.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.BeginEnd=function(e){return ne.extend(this,e)},ne.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},ne.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=H(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},ne.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.CreateTrigger=function(e){return ne.extend(this,e)},ne.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()},ne.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},ne.DropTrigger=function(e){return ne.extend(this,e)},ne.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},ne.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},ne.Delete=function(e){return ne.extend(this,e)},ne.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},ne.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},ne.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Update=function(e){return ne.extend(this,e)},ne.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()),e},ne.SetColumn=function(e){return ne.extend(this,e)},ne.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},ne.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},ne.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Merge=function(e){return ne.extend(this,e)},ne.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},ne.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},ne.CreateDatabase=function(e){return ne.extend(this,e)},ne.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},ne.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},ne.AttachDatabase=function(e){return ne.extend(this,e)},ne.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},ne.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},ne.DetachDatabase=function(e){return ne.extend(this,e)},ne.DetachDatabase.prototype.toString=function(){ var e="DETACH";return e+=" DATABASE "+this.databaseid},ne.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.UseDatabase=function(e){return ne.extend(this,e)},ne.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},ne.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},ne.DropDatabase=function(e){return ne.extend(this,e)},ne.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},ne.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.Declare=function(e){return ne.extend(this,e)},ne.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},ne.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},ne.ShowDatabases=function(e){return ne.extend(this,e)},ne.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},ne.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},ne.ShowTables=function(e){return ne.extend(this,e)},ne.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},ne.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},ne.ShowColumns=function(e){return ne.extend(this,e)},ne.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},ne.ShowIndex=function(e){return ne.extend(this,e)},ne.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},ne.ShowCreateTable=function(e){return ne.extend(this,e)},ne.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},ne.SetVariable=function(e){return ne.extend(this,e)},ne.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},ne.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;x.isNode&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(fe(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="
"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},ne.BeginTransaction=function(e){return ne.extend(this,e)},ne.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},ne.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},ne.CommitTransaction=function(e){return ne.extend(this,e)},ne.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},ne.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},ne.RollbackTransaction=function(e){return ne.extend(this,e)},ne.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},ne.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&Y(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=V(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&Y(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(Y(s,h.row),h.rows&&h.rows[a]&&Y(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library not found");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library not found");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},ne.Help=function(e){return ne.extend(this,e)},ne.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],ne.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},ne.Print=function(e){return ne.extend(this,e)},ne.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},ne.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return fe(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(fe(i))}else console.log();return n&&(a=n(a)),a},ne.Source=function(e){return ne.extend(this,e)},ne.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},ne.Source.prototype.execute=function(e,t,n){var r;return M(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},ne.Require=function(e){return ne.extend(this,e)},ne.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},ne.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){M(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||M(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},ge.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},ge.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},ge.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var me=T.engines.LOCALSTORAGE=function(){};me.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},me.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},me.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,me.set(n.lsdbid+"."+t,a)},me.restoreTable=function(e,t){var n=T.databases[e],r=me.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},me.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},me.createDatabase=function(e,t,n,r,a){var s=1,i=me.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,me.set("alasql",i),me.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},me.dropDatabase=function(e,t,n){var r=1,a=me.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],me.set("alasql",a);var s=me.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=me.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)me.restoreTable(t,o);return a&&(s=a(s)),s},me.showDatabases=function(e,t){var n=[],r=me.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},me.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=me.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=me.get(s);T.databases[e].tables[t];return o.tables[t]=!0,me.set(s,o),me.storeTable(e,t),r&&r(a),a},me.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=me.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],me.set(s,i),me.removeTable(e,t),r&&r(a),a},me.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,me.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},me.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=me.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),me.storeTable(e,t),a&&a(s),s},me.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;me.restoreTable(e,t)},me.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;me.storeTable(r,t),n.tables[t].data=void 0},me.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,me.storeTable(e,s);return me.set(r,a),1},me.begin=me.commit,me.rollback=function(e,t){return};var ve=T.engines.SQLITE=function(){};ve.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},ve.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof ne.StringValue||n[0]instanceof ne.ParamValue){if(n[0]instanceof ne.StringValue)var i=n[0].value;else if(n[0]instanceof ne.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},ve.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var Ee=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(Ee.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},Ee.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},Ee.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,M(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},Ee.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],Ee.updateFile(e),r&&r(i),i},Ee.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){Ee.updateFile(e)},50)}))},Ee.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],Ee.updateFile(e),r&&r(a),a},Ee.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},Ee.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),Ee.updateFile(e),a&&a(i),i},Ee.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},Ee.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,Ee.updateFile(e)},Ee.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return Ee.updateFile(e),1},Ee.begin=Ee.commit,Ee.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});Y(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),Y(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},x.isBrowser&&!x.isWebWorker&&!x.isBrowserify){var ye=ye||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=ye:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return ye}),T.utils.saveAs=ye}return new z("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file +ge.showDatabases=function(e,t){var n=ge.getDatabaseNames();n.onsuccess=function(n){var r=n.target.result;if(ge.getDatabaseNamesNotSupported)throw new Error("SHOW DATABASE is not supported in this browser");var a=[];if(e)var s=new RegExp(e.value.replace(/\%/g,".*"),"g");for(var i=0;io;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},ge.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},ge.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},ge.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var me=T.engines.LOCALSTORAGE=function(){};me.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},me.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},me.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,me.set(n.lsdbid+"."+t,a)},me.restoreTable=function(e,t){var n=T.databases[e],r=me.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},me.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},me.createDatabase=function(e,t,n,r,a){var s=1,i=me.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,me.set("alasql",i),me.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},me.dropDatabase=function(e,t,n){var r=1,a=me.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],me.set("alasql",a);var s=me.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=me.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)me.restoreTable(t,o);return a&&(s=a(s)),s},me.showDatabases=function(e,t){var n=[],r=me.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},me.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=me.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=me.get(s);T.databases[e].tables[t];return o.tables[t]=!0,me.set(s,o),me.storeTable(e,t),r&&r(a),a},me.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=me.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],me.set(s,i),me.removeTable(e,t),r&&r(a),a},me.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,me.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},me.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=me.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),me.storeTable(e,t),a&&a(s),s},me.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;me.restoreTable(e,t)},me.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;me.storeTable(r,t),n.tables[t].data=void 0},me.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,me.storeTable(e,s);return me.set(r,a),1},me.begin=me.commit,me.rollback=function(e,t){return};var ve=T.engines.SQLITE=function(){};ve.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},ve.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof ne.StringValue||n[0]instanceof ne.ParamValue){if(n[0]instanceof ne.StringValue)var i=n[0].value;else if(n[0]instanceof ne.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},ve.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var Ee=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(Ee.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},Ee.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},Ee.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,M(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},Ee.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],Ee.updateFile(e),r&&r(i),i},Ee.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){Ee.updateFile(e)},50)}))},Ee.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],Ee.updateFile(e),r&&r(a),a},Ee.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},Ee.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),Ee.updateFile(e),a&&a(i),i},Ee.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},Ee.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,Ee.updateFile(e)},Ee.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return Ee.updateFile(e),1},Ee.begin=Ee.commit,Ee.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});Y(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),Y(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},x.isBrowser&&!x.isWebWorker){var ye=ye||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=ye:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return ye}),T.utils.saveAs=ye}return new z("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file diff --git a/src/15utility.js b/src/15utility.js index 8363fec41b..66977207de 100755 --- a/src/15utility.js +++ b/src/15utility.js @@ -206,7 +206,7 @@ utils.isBrowser = isBrowser(); @return {boolean} True if code is running in a browser with a browserify setup */ var isBrowserify = function(){ - return utils.isBrowser && utils.global.process && utils.global.process.browser + return utils.isBrowser && process && process.browser; } utils.isBrowserify = isBrowserify(); diff --git a/src/97saveas.js b/src/97saveas.js index e2ad7fe3c1..4d8c35cc28 100755 --- a/src/97saveas.js +++ b/src/97saveas.js @@ -1 +1 @@ -if(utils.isBrowser && !utils.isWebWorker && !utils.isBrowserify) { +if(utils.isBrowser && !utils.isWebWorker) { From 0e08aef1f778ca2eea54c4accf0bd01e55a8d555 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Tue, 9 Feb 2016 14:47:18 +0100 Subject: [PATCH 30/54] Update 15utility.js --- src/15utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/15utility.js b/src/15utility.js index 66977207de..35556a3cd1 100755 --- a/src/15utility.js +++ b/src/15utility.js @@ -206,7 +206,7 @@ utils.isBrowser = isBrowser(); @return {boolean} True if code is running in a browser with a browserify setup */ var isBrowserify = function(){ - return utils.isBrowser && process && process.browser; + return utils.isBrowser && (typeof process !== "undefined") && process.browser; } utils.isBrowserify = isBrowserify(); From 8909860643069ac12e3b81bb1c94c2aab051783f Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Tue, 9 Feb 2016 16:35:07 +0100 Subject: [PATCH 31/54] Update .travis.yml --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6851ef44e4..26a45ea7a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,3 +11,5 @@ node_js: - "4" - "0.12" +before_install: + - npm install -g alasql From 4f951ffaaf17b3b73fd8a29240d33771fe35f3bc Mon Sep 17 00:00:00 2001 From: Prayag Verma Date: Mon, 15 Feb 2016 11:47:57 +0530 Subject: [PATCH 32/54] Fix typos in Readme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `foucus` → `focus` `flexibillity` → `flexibility` `chekout` → `checkout` `Peformance` → `Performance` `opperations` → `operations` `Fetures` → `Features` `standarts` → `standarts` `convinient` → `convenient` `specifik` → `specific` `unif` → `unit` `concurent` → `concurrent` `streamming` → `streaming` `progresss` → `progress` --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5152b80868..b2f8cc4f01 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ _Got a question? Ask on [Stack Overflow](http://stackoverflow.com/questions/ask? # AlaSQL -_( [à la](http://en.wiktionary.org/wiki/%C3%A0_la) [SQL](http://en.wikipedia.org/wiki/SQL) ) [ælæ ?skju:?l]_ - AlaSQL is an open source SQL database for Javascript with a strong foucus on query speed and datasource flexibillity for relational data, schemaless data, and graph data. It works in your browser, Node.js, IO.js and Cordova. +_( [à la](http://en.wiktionary.org/wiki/%C3%A0_la) [SQL](http://en.wikipedia.org/wiki/SQL) ) [ælæ ?skju:?l]_ - AlaSQL is an open source SQL database for Javascript with a strong focus on query speed and datasource flexibility for relational data, schemaless data, and graph data. It works in your browser, Node.js, IO.js and Cordova. The library is designed for: @@ -147,10 +147,10 @@ The project has never received any funding and is based on unpaid voluntary work AlaSQL project is very young and still in active development phase, therefore it may have [bugs](https://github.com/agershun/alasql/labels/Bug). Please, submit any bugs and suggestions [as an issue](https://github.com/agershun/alasql/issues/new). AlaSQL uses [Semantic Versioning](http://semver.org/) so please note that major version is zero (0.y.z) and the API can not be considered 100% stable. Consider this before using the library in production. -Please chekout the [limitations of the library](https://github.com/agershun/alasql#limitations) +Please checkout the [limitations of the library](https://github.com/agershun/alasql#limitations) -## Peformance +## Performance AlaSQL is very focused on speed and we make sure to use all the tricks we can find to make javascript spit out your results as quick as possible. For example: * Queries are cached as compiled functions. @@ -161,7 +161,7 @@ The results are good. Check out AlaSQL vs. other javaScript SQL databases: * **3x speed** [compared to SQL.js](http://jsperf.com/sql-js-vs-alasql-js/11) selecting with `SUM`, `JOIN`, and `GROUP BY`. -* **1x speed** [compared to WebSQL](http://jsperf.com/alasql-js-vs-websql/8) selecting with `SUM`, `JOIN`, and `GROUP BY` (in-memory opperations for WebSQL - see [this discussion](https://github.com/agershun/alasql/issues/47)) +* **1x speed** [compared to WebSQL](http://jsperf.com/alasql-js-vs-websql/8) selecting with `SUM`, `JOIN`, and `GROUP BY` (in-memory operations for WebSQL - see [this discussion](https://github.com/agershun/alasql/issues/47)) * **2x speed** [compared to Linq](http://jsperf.com/alasql-vs-linq-on-groupby/3) for `GROUP BY` on 1,048,576 rows @@ -175,14 +175,14 @@ See more [speed related info on the wiki](https://github.com/agershun/alasql/wik -## Fetures you might like +## Features you might like ### Traditional SQL -Use "good old" SQL on your data with multiple levels of: `JOIN`, `VIEW`, `GROUP BY`, ```UNION```, ```PRIMARY KEY```, `ANY`, `ALL`, ```IN```, ```ROLLUP()```, ```CUBE()```, ```GROUPING SETS()```, ```CROSS APPLY```, ```OUTER APPLY```, ```WITH SELECT```, and subqueries. See the wiki to [compare supported features with SQL standarts](https://github.com/agershun/alasql/wiki/SQL%20keywords). +Use "good old" SQL on your data with multiple levels of: `JOIN`, `VIEW`, `GROUP BY`, ```UNION```, ```PRIMARY KEY```, `ANY`, `ALL`, ```IN```, ```ROLLUP()```, ```CUBE()```, ```GROUPING SETS()```, ```CROSS APPLY```, ```OUTER APPLY```, ```WITH SELECT```, and subqueries. See the wiki to [compare supported features with SQL standards](https://github.com/agershun/alasql/wiki/SQL%20keywords). @@ -249,7 +249,7 @@ See more [in the wiki](https://github.com/agershun/alasql/wiki/AlaSQL-CLI) ### AlaSQL ? D3.js -AlaSQL plays nice with d3.js and gives you a convinient way to integrate a specifik subset of your data vis the visual powers of d3. See more about [D3.js and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/d3.js) +AlaSQL plays nice with d3.js and gives you a convenient way to integrate a specific subset of your data vis the visual powers of d3. See more about [D3.js and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/d3.js) ### AlaSQL ? Excel @@ -270,7 +270,7 @@ Angular is great. Besides using AlaSQL for normal data manipulation it works lik ### AlaSQL ? Google Maps -Pinpointing data on a map should be easy. AlaSQL is great to prepare source data for Google Maps from for example Excel or CSV making a one unif of work for fetching and identifying whats relevant. See more about [Google Maps and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) +Pinpointing data on a map should be easy. AlaSQL is great to prepare source data for Google Maps from for example Excel or CSV making a one unit of work for fetching and identifying whats relevant. See more about [Google Maps and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) @@ -498,7 +498,7 @@ To run enter the command: ``` then type in browser something like "http://127.0.0.1:1337/?SELECT VALUE 2*2" -Warning: Alaserver is not multi-thread, not concurent, and not secured. +Warning: Alaserver is not multi-thread, not concurrent, and not secured. ### Webpack and Browserify @@ -557,7 +557,7 @@ Please be aware that AlaSQL ~~may~~ have [bugs](https://github.com/agershun/alas 0. AlaSQL has a (long) list of keywords that must be escaped if used for column names. When selecting a field named `key` please write ``` SELECT `key` FROM ... ``` instead. This is also the case for words like ``` `value` ```, ``` `read` ```, ``` `count` ```, ``` `by` ```, ``` `top` ```, ``` `path` ```, ``` `deleted` ```, ``` `work` ``` and ``` `offset` ```. Please consult the [full list of keywords](https://github.com/agershun/alasql/wiki/AlaSQL-Keywords). -0. It is Ok with select for 1000000 records or to join two tables by 10000 records in each (You can use streamming functions to work with longer datasources - see [test/test143.js](test/test143.js)) but be aware that the workload is multiplied so selecting from more than 8 tables with just 100 rows in each will show bad performance. This is one of our top priorities to make better. +0. It is Ok with select for 1000000 records or to join two tables by 10000 records in each (You can use streaming functions to work with longer datasources - see [test/test143.js](test/test143.js)) but be aware that the workload is multiplied so selecting from more than 8 tables with just 100 rows in each will show bad performance. This is one of our top priorities to make better. 0. Limited functionality for transactions (supports only for localStorage) - Sorry, transactions are limited, because AlaSQL started to use more complex approach for PRIMARY KEYS / FOREIGN KEYS. Transactions will be fully turned on again in future version. @@ -628,7 +628,7 @@ and other people for useful tools, which make our work much easier. * [AlaX](http://github.com/agershun/alax) - Export to Excel with colors and formats * [WebSQLShim](http://github.com/agershun/WebSQLShim) - WebSQL shim over IndexedDB (work in progress) -* [AlaMDX](http://github.com/agershun/alamdx) - JavaScript MDX OLAP library (work in progresss) +* [AlaMDX](http://github.com/agershun/alamdx) - JavaScript MDX OLAP library (work in progress) * [Other similar projects](http://github.com/agershun/alasql/wiki/Similar-Projects.md) - list of databases on JavaScript [![ghit.me](https://ghit.me/badge.svg?repo=agershun/alasql)](https://ghit.me/repo/agershun/alasql) From 48240cf4633202ef8de52335d7f58f69323acc40 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Mon, 15 Feb 2016 21:55:18 +0100 Subject: [PATCH 33/54] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b2f8cc4f01..f3681c72c4 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ _Got a question? Ask on [Stack Overflow](http://stackoverflow.com/questions/ask? # AlaSQL -_( [à la](http://en.wiktionary.org/wiki/%C3%A0_la) [SQL](http://en.wikipedia.org/wiki/SQL) ) [ælæ ?skju:?l]_ - AlaSQL is an open source SQL database for Javascript with a strong focus on query speed and datasource flexibility for relational data, schemaless data, and graph data. It works in your browser, Node.js, IO.js and Cordova. +_( [à la](http://en.wiktionary.org/wiki/%C3%A0_la) [SQL](http://en.wikipedia.org/wiki/SQL) ) [ælæ ɛskju:ɛl]_ - AlaSQL is an open source SQL database for Javascript with a strong focus on query speed and datasource flexibility for relational data, schemaless data, and graph data. It works in your browser, Node.js, IO.js and Cordova. The library is designed for: @@ -247,34 +247,34 @@ See more [in the wiki](https://github.com/agershun/alasql/wiki/AlaSQL-CLI) -### AlaSQL ? D3.js +### AlaSQL ♥ D3.js AlaSQL plays nice with d3.js and gives you a convenient way to integrate a specific subset of your data vis the visual powers of d3. See more about [D3.js and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/d3.js) -### AlaSQL ? Excel +### AlaSQL ♥ Excel AlaSQL can export data to both [Excel 2003 (.xls)](https://github.com/agershun/alasql/wiki/XLS) and [Excel 2007 (.xlsx)](https://github.com/agershun/alasql/wiki/XLSX) with coloring of cells and other Excel formatting functions. -### AlaSQL ? Meteor +### AlaSQL ♥ Meteor Meteor is amazing. You can now query directly on your Meteor collections with SQL - simple and easy. See more about [Meteor and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Meteor) -### AlaSQL ? Angular.js +### AlaSQL ♥ Angular.js Angular is great. Besides using AlaSQL for normal data manipulation it works like a charm for exporting you present scope to Excel. See more about [Angular and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Angular.js) -### AlaSQL ? Google Maps +### AlaSQL ♥ Google Maps Pinpointing data on a map should be easy. AlaSQL is great to prepare source data for Google Maps from for example Excel or CSV making a one unit of work for fetching and identifying whats relevant. See more about [Google Maps and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) -### AlaSQL ? Google Spreadsheets +### AlaSQL ♥ Google Spreadsheets AlaSQL can query data directly from a google spreadsheet. A good "partnership" for easy editing and powerfull data manipulation. See more about [Google Spreadsheets and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) From 537c3f16daf8571262a0fedca94663f676c34648 Mon Sep 17 00:00:00 2001 From: Andrey Gershun Date: Wed, 17 Feb 2016 22:24:49 +0300 Subject: [PATCH 34/54] Changed SELECT * FROM ? GROUP BY a (issue #587) --- CHANGELOG.md | 1 + console/alasql-worker.min.js | 1 + console/alasql.min.js | 27 ++++++++++++++------------- dist/alasql-worker.js | 4 ++-- dist/alasql-worker.min.js | 2 +- dist/alasql.js | 31 +++++++++++++++++++------------ dist/alasql.min.js | 16 ++++++++-------- src/423groupby.js | 19 +++++++++++-------- src/424select.js | 8 +++++++- test/test234.sql | 2 +- test/test429.json | 12 ++++++++++-- test/test432.js | 25 +++++++++++++++++++++++++ 12 files changed, 100 insertions(+), 48 deletions(-) mode change 100755 => 100644 dist/alasql-worker.js mode change 100755 => 100644 dist/alasql-worker.min.js create mode 100644 test/test432.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fb8563475..6100154af3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ * Added: REPLACE() string function (see issue #560) * Added: NEWID(), UUID() and GEN_RANDOM_UUID() functions for GUID * Added: DEFAULT for column can be a function (e.g. DEFAULT NEWID()) +* Changed: SELECT * FROM ? GROUP BY a works as FIRST(*) ### 0.2.2 "Mitilini" (15.01.2016) * Fix: SELECT can use functions from GROUP BY list diff --git a/console/alasql-worker.min.js b/console/alasql-worker.min.js index b4fd276a78..7719d751c9 100644 --- a/console/alasql-worker.min.js +++ b/console/alasql-worker.min.js @@ -1 +1,2 @@ +//! AlaSQL v0.2.3-develop-1204 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT !function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?module.exports=r():e.alasql=r()}(this,function(){function e(r,t,s){var a=e.lastid++;e.buffer[a]=s,e.webworker.postMessage({id:a,sql:r,params:t})}return"object"!=typeof exports&&(e.worker=function(r,t,s){if(r===!0&&(r=void 0),"undefined"==typeof r)for(var a=document.getElementsByTagName("script"),o=0;o1){var f="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");e(f,[],s)}}else if(r===!1)return void delete e.webworker}),e.lastid=0,e.buffer={},e.worker(),e}); \ No newline at end of file diff --git a/console/alasql.min.js b/console/alasql.min.js index 8ca4aa5a28..3bed8aa151 100755 --- a/console/alasql.min.js +++ b/console/alasql.min.js @@ -1,13 +1,14 @@ -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(){if(T.path="","function"==typeof importScripts)T.path="";else if("undefined"!=typeof exports)T.path=__dirname;else if("object"==typeof Meteor&&Meteor.isClient)T.path="/packages/dist/";else if("object"==typeof Meteor&&Meteor.isServer)T.path="assets/packages/dist/";else if("undefined"!=typeof document)for(var e=document.getElementsByTagName("script"),t=0;t0;){var b=h.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),h.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?V(a):r(l.args,0,a),0===u.length)return[];var E=V(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=V(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>d)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>d)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>d)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof X.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof X.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var d,h;"undefined"!=typeof this.into.args[0]&&(d=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(h=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](d,h,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function u(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,c([],-n-1,e)}));var i;i=t?M(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,c,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=l(e)),o}function c(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=_(e);return n.sourceslen--,n.sourceslen>0?void 0:l(n)}function l(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(f(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,l;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),l=e.unionallfn(e.params),c=[],o=l.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,l.columns.length);g>b;b++)p[e.columns[b].columnid]=l.data[i][l.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),l=e.unionfn(e.params),c=[],o=l.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,l.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=l.data[i][l.columns[b].columnid];c.push(p)}}e.data=q(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var l=e.exceptfn(e.params),c=[],i=0,o=l.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,l.columns.length);g>b;b++)p[e.columns[b].columnid]=l.data[i][l.columns[b].columnid];c.push(p)}}e.data=U(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),l=e.intersectfn(e.params),c=[],o=l.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,l.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=l.data[i][l.columns[b].columnid];c.push(p)}e.data=F(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(d(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function d(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function f(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&f(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},f(e,t,n+1)),n+1h;)a.getfn&&!a.dontcache&&(a.data[h]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,f(e,t,n+2)),h++}t[s]=void 0}}function p(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,h=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],h=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][h];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function b(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[C(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function g(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='

',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:se(e[a][n])});t+=""}else t+="

"+se(e)+"

";return t}function y(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,y(e,t,n-10))},10)}}function S(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],d=+c[0].match(/[0-9]+/)[0],h=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(h);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+d]?p[g]=o.Sheets[n][g+""+d].v:p[g]=g}var m=[];i.headers&&d++;for(var v=d;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(h);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function w(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function fe(e,t,n,r){if("function"==typeof importScripts||!fe.webworker){if(0===arguments.length)return new X.Select({columns:[new X.Column({columnid:"*"})],from:[new X.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new X.Select({columns:[new X.Column({columnid:"*"})],from:[new X.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),fe.exec(e,t,n,r)}var s=fe.lastid++;fe.buffer[s]=n,fe.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.2-develop-1153",T.debug=void 0,e();var x=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],d=[1,68],h=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],k=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],j=[1,98],V=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],de=[1,180],he=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],we=[1,189],Te=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],je=[1,186],Ve=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],dt=[1,296],ht=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],wt=[1,370],Tt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],jt=[1,335],Vt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],dn=[1,425],hn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],wn=[1,463],Tn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],jn=[1,476],Vn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],dr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],hr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],wr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],Tr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],jr=[4,5,74,128,153,283,284,285,286],Vr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],da=[1,838],ha=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],wa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ta=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],ja=[2,708],Va=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],ds=[71,75],hs=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],ws=[1,1227],Ts=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ -trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=O(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),d=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==d||"JSON"==d)&&(this.$={into:new r.FuncValue({funcid:d,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var h,l=c.substr(-3).toUpperCase(),d=c.substr(-4).toUpperCase();if("#"==c[0])h=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)h=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=d&&"JSON"!=d)throw new Error("Unknown string in FROM clause");h=new r.FuncValue({funcid:d,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=h;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] -});break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:d,186:h,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:k,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:j,439:V,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:d,186:h,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:k,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:j,439:V,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:de,149:he,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:je,414:Ve,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:d,186:h,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:k,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:j,439:V,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:he,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:253,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:h,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:d,186:h,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:k,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:j,439:V,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Pe,lt,{340:295,153:dt}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:ht,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:wt,113:Tt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:d,167:Lt,168:qt,176:Ut,177:Ft,186:h,262:f,283:p,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:k,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:j,439:V,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:h,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:je,414:Ve},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, -410:je,414:Ve},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:he,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:Ve},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:je,414:Ve},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:he,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:je,411:405,412:408,413:410,414:Ve,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:dn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:de,149:he,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:je,414:Ve},{38:434,76:74,86:u,181:99,186:h},t(hn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:wn,109:Tn,112:wt,113:Tt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:je,414:Ve}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:h},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:he,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:Ve},t(dr,[2,312]),t(dr,[2,313]),t(dr,[2,314]),t(dr,[2,315]),t(dr,[2,316]),t(dr,[2,317]),t(dr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:wt,113:Tt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:d,167:Lt,168:qt,176:Ut,177:Ft,186:h,262:f,283:p,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:k,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:j,439:V,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:hr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:de,149:he,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:je,414:Ve}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:d,186:h,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:k,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:j,439:V,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:552,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:553,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:dt}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:je,414:Ve}),{136:[1,568],138:[1,569]},t(wr,Tr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:dt}),t(Pe,lt,{340:582,153:dt}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:de,149:he,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:je,414:Ve}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:de,149:he,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:je,414:Ve}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:de,149:he,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:je,414:Ve}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:de,149:he,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:je,414:Ve}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:de,149:he,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:je,414:Ve}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:de,149:he,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:je,414:Ve}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{4:Lr,265:657,378:qr},t(jr,[2,84]),t(jr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:662,149:he,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:665,4:r,5:a,146:Vr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:h},{96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:h,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:de,149:he,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:je,414:Ve},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(hn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:he,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ -74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:456,4:r,5:a,69:yn,73:Sn,74:wn,109:Tn,111:459,112:wt,113:Tt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:he,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:Ve},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:je,414:Ve},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:de,149:he,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:je,414:Ve}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:wt,113:Tt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:804,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:hr,75:[1,805]},{71:hr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:ht,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:ht,134:ft,141:821,142:Ke,149:pt,409:185,410:je,414:Ve,466:820,484:306,488:308},{3:822,4:r,5:a,129:ht,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:ht,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(wr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(wr,[2,733]),t(wr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:da,330:ha,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:d,186:h,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:k,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:j,439:V,442:P,443:_,496:B,498:G,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,368],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,369],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,371],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:wt,113:Tt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:wt,113:Tt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:wt,113:Tt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:wt,113:Tt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,381],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,382],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,383],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:858,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:h,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:hr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Ye,Sa),t(wa,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:Br,298:672,299:on,301:Gr},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:he,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:je,412:877,413:410,414:Ve,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:Vr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:dn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:he,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:je,412:882,413:410,414:Ve},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:he,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:je,412:883,413:410,414:Ve},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:he,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:je,412:884,413:410,414:Ve},{74:Ta,140:le,141:887,142:Ke,149:he,178:ge,198:888,293:qe,332:885,409:185,410:je,414:Ve},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:Ta,140:le,141:887,142:Ke,149:he,178:ge,198:888,293:qe,332:893,409:185,410:je,414:Ve},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:de,149:he,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:je,414:Ve},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:913,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:wn,75:[1,915],109:Tn,111:459,112:wt,113:Tt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:wn,109:Tn,111:459,112:wt,113:Tt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:925,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:wn,109:Tn,111:459,112:wt,113:Tt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:h},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{111:954,112:wt,113:Tt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:970,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:971,4:r,5:a},{71:hr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, -285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:je,414:Ve}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],Tr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,ja,{76:74,181:99,459:995,38:998,86:u,143:Va,186:h,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(_a,[2,753]),t(_a,[2,754]),t(_a,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(gt,[2,674],{121:[1,1002]}),{128:Ba,377:1003,379:Ga},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:je,414:Ve},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{75:[1,1012],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:1015,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:h,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{75:[1,1016]},{71:hr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:1020,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:h,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(wa,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:je,414:Ve},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:h},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Ge,76:74,86:u,129:Je,140:le,141:206,142:de,149:he,153:Q,178:ge,181:99,186:h,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:je,414:Ve},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:hr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:wn,75:[1,1074],109:Tn,111:459,112:wt,113:Tt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:hr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:wn,75:[1,1081],109:Tn,111:459,112:wt,113:Tt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},{3:456,4:r,5:a,69:yn,73:Sn,74:wn,75:[1,1083],109:Tn,111:459,112:wt,113:Tt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},{3:456,4:r,5:a,69:yn,73:Sn,74:wn,75:[1,1085],109:Tn,111:459,112:wt,113:Tt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},{3:456,4:r,5:a,69:yn,73:Sn,74:wn,75:[1,1087],109:Tn,111:459,112:wt,113:Tt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},{71:ls,75:[1,1089]},t(ds,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:wn,109:Tn,112:wt,113:Tt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:je,414:Ve}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:wn,75:[1,1093],109:Tn,111:459,112:wt,113:Tt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},{3:456,4:r,5:a,69:yn,73:Sn,74:wn,75:[1,1095],109:Tn,111:459,112:wt,113:Tt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:wn,109:Tn,111:459,112:wt,113:Tt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:je,414:Ve},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(hs,[2,643]),t(hs,[2,644]),t(hs,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:hr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:1125,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:h},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:1141,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:da,330:ha,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{71:[1,1145],75:[1,1146]},t(ds,[2,528]),t(ds,[2,529]),{128:Ba,377:1147,379:Ga},{71:fs,75:[1,1148]},t(ds,[2,463],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,372],{111:349,317:361,112:wt,113:Tt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:hr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:hr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(wa,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:he,178:ge,198:1164,293:qe,409:185,410:je,414:Ve},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:h},{3:718,4:r,5:a,108:1168},{74:Ta,140:le,141:887,142:Ke,149:he,178:ge,198:888,293:qe,332:1169,409:185,410:je,414:Ve},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:de,149:he,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:je,414:Ve},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:de,149:he,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:je,414:Ve},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,148:1212,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(hs,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:ws,227:Ts,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, -198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{71:hr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:ht,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:h},t(ds,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,ja,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:Va,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:h,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:hr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:je,414:Ve},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:Ta,140:le,141:887,142:Ke,149:he,178:ge,198:888,293:qe,332:1264,409:185,410:je,414:Ve},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(js,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:h},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(ds,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:wn,109:Tn,112:wt,113:Tt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:jn,137:Vn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:je,414:Ve}),t(ra,[2,128]),{71:hr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(hs,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:ws,227:Ts,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(dr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(dr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:he,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(dr,[2,543]),{290:[1,1310]},t(dr,[2,545]),t(dr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:ht,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:Vs,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:d,186:h,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:k,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:j,439:V,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:d,186:h,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:k,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:j,439:V,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(ds,[2,464],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(js,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:h},{38:1379,76:74,86:u,181:99,186:h},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(dr,[2,532]),t(dr,[2,535]),{364:[1,1381]},t(dr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(dr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(dr,[2,542]),t(dr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:he,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:Vs,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(ds,[2,517]),t(ds,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:h},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(dr,[2,537]),t(dr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(dr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{75:[1,1451],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:Ta,140:le,141:887,142:Ke,149:he,178:ge,198:888,293:qe,332:1466,409:185,410:je,414:Ve},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:h,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:h,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:h,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(dr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(dr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(dr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(ds,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:h,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:h},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:h},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:h},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(dr,[2,536]),t(dr,[2,843]),t(dr,[2,534]),{75:[1,1535]},t(dr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:h},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(ds,[2,76]),t(ds,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:wt,113:Tt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:jt,305:Vt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(dr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(ds,[2,512]),t(ds,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:Ta,140:le,141:887,142:Ke,149:he,178:ge,198:888,293:qe,332:1562,409:185,410:je,414:Ve},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:de,149:he,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:we,275:Te,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:je,414:Ve},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(ds,[2,75]),t(ds,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(ds,[2,514]),t(ds,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,d=1,h=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,w,T,x,A,C,k=function(){var e;return e=f.lex()||d,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(T in s[y])this.terminals_[T]&&T>l&&C.push("'"+this.terminals_[T]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==d?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column -},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),w=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(h)),"undefined"!=typeof w)return w;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=x,exports.Parser=x.Parser,exports.parse=function(){return x.parse.apply(x,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var A=T.utils={},C=A.escapeq=function(e){return e.replace(/\'/g,"\\'")},k=A.undoubleq=function(e){return e.replace(/(\')/g,"''")},O=A.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},R=(A.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),N=A.loadFile=function(e,t,n,r){var a,s;if("object"==typeof exports||"undefined"!=typeof Meteor&&Meteor.isServer)if(s="undefined"!=typeof Meteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(R(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(R(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(R(t.toString()))}):(a=s.readFileSync(e),n(R(a.toString())));else if("object"==typeof cordova)window.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(R(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(R(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(R(t))},l.readAsText(c[0])}},$=(A.loadBinaryFile=function(e,t,n,r){var a;if("object"==typeof exports||"undefined"!=typeof Meteor&&Meteor.isServer){if("undefined"!=typeof Meteor)var a=Npm.require("fs");else var a=require("fs");if(/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},P=A.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},_=A.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};A.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},A.xlsnc=function(e){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)),t},A.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},A.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},A.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(t||"").toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(A.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(e||"").toUpperCase().search(RegExp(r.toUpperCase()))>-1},T.utils.uncomment=function(e){e=("__"+e+"__").split("");for(var t,n=!1,r=!1,a=!1,s=0,i=e.length;i>s;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=x,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return x.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=$(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new B(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof exports)var B=require("es6-promise").Promise;else if("object"==typeof window)var B=window.Promise;T.promise=function(e,t){return new B(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var G=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};G.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},G.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},G.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var J=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};J.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},J.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},J.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},J.prototype.executeSQL=J.prototype.exec;var H=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},P(this,e)};H.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var W=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],P(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},P(this,e)}),X=(T.Recordset=function(e){P(this,e)},x.yy=T.yy={});X.extend=P,X.casesensitive=T.options.casesensitive;var Y=X.Base=function(e){return X.extend(this,e)};Y.prototype.toString=function(){},Y.prototype.toType=function(){},Y.prototype.toJS=function(){},Y.prototype.compile=a,Y.prototype.exec=function(){},Y.prototype.compile=a,Y.prototype.exec=function(){},X.Statements=function(e){return X.extend(this,e)},X.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},X.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},X.Search=function(e){return X.extend(this,e)},X.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},X.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},X.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return o.bind(n)(t,e,function(e){s=p(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e] -}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=M(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var K=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof X.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof X.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(K(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[$(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[$(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[$(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[$(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var d=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&d.push(s),o++;r.data=d}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},X.Select=function(e){return X.extend(this,e)},X.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof X.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},X.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},X.Select.prototype.compile=function(e){var t=T.databases[e],n=new W;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof X.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof X.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof X.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof X.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=u(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=p(n,e);return t&&t(o),o});return a};return a.query=n,a},X.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},X.ExistsValue=function(e){return X.extend(this,e)},X.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},X.ExistsValue.prototype.toType=function(){return"boolean"},X.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},X.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},X.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},X.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var n=t.as||t.tableid;if(t instanceof X.Table)e.aliases[n]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof X.Select)e.aliases[n]={type:"subquery"};else if(t instanceof X.Search)e.aliases[n]={type:"subsearch"};else if(t instanceof X.ParamValue)e.aliases[n]={type:"paramvalue"};else if(t instanceof X.FuncValue)e.aliases[n]={type:"funcvalue"};else if(t instanceof X.VarValue)e.aliases[n]={type:"varvalue"};else if(t instanceof X.FromData)e.aliases[n]={type:"fromdata"};else if(t instanceof X.Json)e.aliases[n]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[n]={type:"inserted"}}var a={alias:n,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:r,srcwherefns:"",srcwherefn:r};if(t instanceof X.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof X.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof X.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof X.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof X.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof X.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof X.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof X.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},X.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var n,a;if(t instanceof X.Apply)n={alias:t.as,applymode:t.applymode,onmiddlefn:r,srcwherefns:"",srcwherefn:r,columns:[]},n.applyselect=t.select.compile(e.database.databaseid),n.columns=n.applyselect.query.columns,n.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(n);else{if(t.table){if(a=t.table,n={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:r,srcwherefns:"",srcwherefn:r,columns:[]},!T.databases[n.databaseid].tables[n.tableid])throw new Error("Table '"+n.tableid+"' is not exists in database '"+n.databaseid)+"'";n.columns=T.databases[n.databaseid].tables[n.tableid].columns,T.options.autocommit&&T.databases[n.databaseid].engineid?n.datafn=function(e,t,r,a,s){return s.engines[s.databases[n.databaseid].engineid].fromTable(n.databaseid,n.tableid,r,a,e)}:T.databases[n.databaseid].tables[n.tableid].view?n.datafn=function(e,t,r,a,s){var i=s.databases[n.databaseid].tables[n.tableid].select(t);return r&&(i=r(i,a,e)),i}:n.datafn=function(e,t,r,a,s){var i=s.databases[n.databaseid].tables[n.tableid].data;return r&&(i=r(i,a,e)),i},e.aliases[n.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;n={alias:t.as,joinmode:t.joinmode,onmiddlefn:r,srcwherefns:"",srcwherefn:r,columns:[]},n.subquery=a.compile(e.database.databaseid),"undefined"==typeof n.subquery.query.modifier&&(n.subquery.query.modifier="RECORDSET"),n.columns=n.subquery.query.columns,n.datafn=function(e,t,r,a,s){return n.subquery(e.params,null,r,a).data},e.aliases[n.alias]={type:"subquery"}}else if(t.param){n={alias:t.as,joinmode:t.joinmode,onmiddlefn:r,srcwherefns:"",srcwherefn:r};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",n.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[n.alias]={type:"paramvalue"}}else if(t.variable){n={alias:t.as,joinmode:t.joinmode,onmiddlefn:r,srcwherefns:"",srcwherefn:r};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",n.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[n.alias]={type:"varvalue"}}else if(t.funcid){n={alias:t.as,joinmode:t.joinmode,onmiddlefn:r,srcwherefns:"",srcwherefn:r};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",n.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[n.alias]={type:"funcvalue"}}var u=n.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],d=T.databases[n.databaseid].tables[n.tableid];if(!l||!d)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var h=l.columns.map(function(e){return e.columnid}),f=d.columns.map(function(e){return e.columnid});t.using=L(h,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];n.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),n.onleftfn=new Function("p,params,alasql","var y;return "+n.onleftfns),n.onrightfns=t.using.map(function(e){return"p['"+(n.alias||n.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),n.onrightfn=new Function("p,params,alasql","var y;return "+n.onrightfns),n.optimization="ix"}else if(t.on)if(t.on instanceof X.Op&&"="==t.on.op&&!t.on.allsome){n.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),n.optimization="no"),n.onleftfns=p,n.onrightfns=b,n.onmiddlefns=g||"true",n.onleftfn=new Function("p,params,alasql","var y;return "+n.onleftfns),n.onrightfn=new Function("p,params,alasql","var y;return "+n.onrightfns),n.onmiddlefn=new Function("p,params,alasql","var y;return "+n.onmiddlefns)}else n.optimization="no",n.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),n.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(n)}})},X.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},X.Select.prototype.compileWhereJoins=function(e){},X.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=g(this.group,e));var a=[];r.forEach(function(e){a=D(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=I(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof X.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof X.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},X.Select.prototype.compileSelect1=function(e){var n=this;e.columns=[],e.xcolumns={},e.selectColumns={},e.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof X.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+e.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=b(e,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in e.aliases){var i=b(e,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||e.sources[0].databaseid||e.database.databaseid;if(u||(u=e.defcols[r.columnid]),u||(u=e.defaultTableid),"_"!==r.columnid?s.push("'"+C(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+C(r.as||r.columnid)+"':p['"+u+"']"),e.selectColumns[C(r.as||r.columnid)]=!0,e.aliases[u]&&"table"===e.aliases[u].type){if(!T.databases[c].tables[e.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[e.aliases[u].tableid].columns,d=T.databases[c].tables[e.aliases[u].tableid].xcolumns;if(d&&l.length>0){var h=d[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:h.dbtypeid,dbsize:h.dbsize,dbpecision:h.dbprecision,dbenum:h.dbenum};e.columns.push(f),e.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};e.columns.push(f),e.xcolumns[f.columnid]=f,e.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};e.columns.push(f),e.xcolumns[f.columnid]=f}}else if(r instanceof X.AggrValue){n.group||(n.group=[""]),r.as||(r.as=C(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+C(r.as)+"':"+t(r.expression.toJS("p",e.defaultTableid,e.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+C(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};e.columns.push(f),e.xcolumns[f.columnid]=f}else{s.push("'"+C(r.as||r.columnid||r.toString())+"':"+t(r.toJS("p",e.defaultTableid,e.defcols))),e.selectColumns[C(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};e.columns.push(f),e.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},X.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof X.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},X.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof X.Column&&"*"===n.columnid)){var a;a=C(n instanceof X.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},X.Select.prototype.compileSelectGroup1=function(e){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof X.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof X.Column?C(n.columnid):n.nick),e.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=t(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof X.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},X.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},X.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},X.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof X.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof X.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},X.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var d=t.map(function(t){return e[t]}).join("`"),h=u[d];if(h||(h={},u[d]=h,l.push(h),t.forEach(function(t){h[t]=e[t]})),c[d]||(c[d]={}),c[d][e[n]]?c[d][e[n]]++:c[d][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof h[e[n]]&&(h[e[n]]=0),h[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof h[e[n]]&&(h[e[n]]=0),h[e[n]]++;else if("MIN"==a)"undefined"==typeof h[e[n]]&&(h[e[n]]=1/0),e[r]h[e[n]]&&(h[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof h[e[n]]&&(h[e[n]]=e[r]);else if("LAST"==a)h[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](h[e[n]],e[r])}}}),"AVG"==a)for(var d in u){var h=u[d];for(var f in h)-1==t.indexOf(f)&&f!=r&&(h[f]=h[f]/c[d][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=M(p);n.columnid=t,e.columns.push(n)})}},X.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var Q=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof X.Column){e[o].nick=C(e[o].columnid),t.groupColumns[C(e[o].columnid)]=e[o].nick; -var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[C(e[o].toString())]=C(e[o].toString());var u=C(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},X.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},X.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},X.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof X.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof X.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof X.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof X.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof X.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},X.VarValue=function(e){return X.extend(this,e)},X.VarValue.prototype.toString=function(){return"@"+this.variable},X.VarValue.prototype.toType=function(){return"unknown"},X.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},X.NumValue=function(e){return X.extend(this,e)},X.NumValue.prototype.toString=function(){return this.value.toString()},X.NumValue.prototype.toType=function(){return"number"},X.NumValue.prototype.toJS=function(){return""+this.value},X.StringValue=function(e){return X.extend(this,e)},X.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},X.StringValue.prototype.toType=function(){return"string"},X.StringValue.prototype.toJS=function(){return"'"+C(this.value)+"'"},X.LogicValue=function(e){return X.extend(this,e)},X.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},X.LogicValue.prototype.toType=function(){return"boolean"},X.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},X.NullValue=function(e){return X.extend(this,e)},X.NullValue.prototype.toString=function(){return"NULL"},X.NullValue.prototype.toJS=function(){return"undefined"},X.ParamValue=function(e){return X.extend(this,e)},X.ParamValue.prototype.toString=function(){return"$"+this.param},X.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},X.UniOp=function(e){return X.extend(this,e)},X.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},X.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},X.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},X.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof X.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},X.Column=function(e){return X.extend(this,e)},X.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},X.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},X.AggrValue=function(e){return X.extend(this,e)},X.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},X.AggrValue.prototype.findAggregator=function(e){var t=C(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},X.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},X.OrderExpression=function(e){return X.extend(this,e)},X.OrderExpression.prototype.toString=X.Expression.prototype.toString,X.GroupExpression=function(e){return X.extend(this,e)},X.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},X.FromData=function(e){return X.extend(this,e)},X.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},X.FromData.prototype.toJS=function(){},X.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=$(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},X.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new X.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new X.Column({columnid:"*",func:t,param:n}))}}),e},X.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new X.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new X.Table({tableid:e}))}return t},X.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new X.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new X.OrderExpression({expression:n,direction:"ASC"}))}),e},X.Select.prototype.Top=function(e){var t=this;return t.top=new X.NumValue({value:e}),t},X.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new X.Column({columnid:t});e.group.push(n)}),e},X.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},X.FuncValue=function(e){return X.extend(this,e)},X.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},X.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},X.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},X.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var te=T.stdlib={},ne=T.stdfn={};te.ABS=function(e){return"Math.abs("+e+")"},te.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},ne.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},te.EXP=function(e){return"Math.pow(Math.E,"+e+")"},te.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},te.IFNULL=function(e,t){return"("+e+"||"+t+")"},te.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},te.LEN=te.LENGTH=function(e){return n(e,"y.length")},te.LOWER=te.LCASE=function(e){return n(e,"String(y).toLowerCase()")},te.MAX=te.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},te.MIN=te.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},te.SUBSTRING=te.SUBSTR=te.MID=function(e,t,r){return 2==arguments.length?n(e,"y.substr("+t+"-1)"):3==arguments.length?n(e,"y.substr("+t+"-1,"+r+")"):void 0},ne.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},te.ISNULL=te.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},te.POWER=function(e,t){return"Math.pow("+e+","+t+")"},te.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},te.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},te.CEIL=te.CEILING=function(e){return"Math.ceil("+e+")"},te.FLOOR=function(e){return"Math.floor("+e+")"},te.ROWNUM=function(){return"1"},te.ROW_NUMBER=function(){return"1"},te.SQRT=function(e){return"Math.sqrt("+e+")"},te.TRIM=function(e){return n(e,"y.trim()")},te.UPPER=te.UCASE=function(e){return n(e,"String(y).toUpperCase()")},ne.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},ne.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var re=[],ae=0;256>ae;ae++)re[ae]=(16>ae?"0":"")+ae.toString(16);ne.NEWID=ne.UUID=ne.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return re[255&e]+re[e>>8&255]+re[e>>16&255]+re[e>>24&255]+"-"+re[255&t]+re[t>>8&255]+"-"+re[t>>16&15|64]+re[t>>24&255]+"-"+re[63&n|128]+re[n>>8&255]+"-"+re[n>>16&255]+re[n>>24&255]+re[255&r]+re[r>>8&255]+re[r>>16&255]+re[r>>24&255]},X.CaseValue=function(e){return X.extend(this,e)},X.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},X.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},X.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},X.Json=function(e){return X.extend(this,e)},X.Json.prototype.toString=function(){var e="";return e+=se(this.value),e+=""};var se=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return se(e)}).join(",")+"]";else if(!e.toJS||e instanceof X.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+se(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};X.Json.prototype.toJS=function(e,t,n){return m(this.value,e,t,n)},X.Convert=function(e){return X.extend(this,e)},X.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},X.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+(r.getMinutes()+1)).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+(r.getMinutes()+1)).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},X.ColumnDef=function(e){return X.extend(this,e)},X.ColumnDef.prototype.toString=function(){var 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},X.CreateTable=function(e){return X.extend(this,e)},X.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},X.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=$(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=$(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=$(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=$(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0)); -}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var d in s.identities){var h=s.identities[d];n[d]=h.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var d in s.identities){var h=s.identities[d];h.value+=h.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=M(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var d;return T.options.nocount||(d=1),n&&(d=n(d)),d},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,ne.EXTEND=T.utils.extend,ne.CHAR=String.fromCharCode.bind(String),ne.ASCII=function(e){return e.charCodeAt(0)},ne.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},X.CreateEdge=function(e){return X.extend(this,e)},X.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},X.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},X.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),d=r(e,T);return c.$in=[l.$id],c.$out=[d.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof d.$in&&(d.$in=[]),d.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},X.CreateGraph=function(e){return X.extend(this,e)},X.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},X.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&P(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&P(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var d;if(n.source.vars){var c=T.vars[n.target.vars];d="object"==typeof c?c:o.objects[c]}else{var h=n.target.sharp;"undefined"==typeof h&&(h=n.target.prop),d=T.databases[e].objects[h],"undefined"!=typeof d||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(d=r(n.target.prop||n.target.name),"undefined"==typeof d&&(d=a(n.target)))}if(i.$in=[u.$id],i.$out=[d.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof d.$in&&(d.$in=[]),d.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},X.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),d=r(e,T);return c.$in=[l.$id],c.$out=[d.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof d.$in&&(d.$in=[]),d.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},X.AlterTable=function(e){return X.extend(this,e)},X.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},X.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},d=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var h=0,f=u.data.length;f>h;h++)u.data[h][c]=d();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bh;h++)u.data[h][p]=u.data[h][c],delete u.data[h][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bh;h++)delete u.data[h][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},X.CreateIndex=function(e){return X.extend(this,e)},X.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},X.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,d=s.data.length;d>l;l++){var h=o(s.data[l]);c[h]||(c[h]={num:0}),c[h].num++}}else{var f=$(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,d=s.data.length;d>l;l++){var h=u(s.data[l],t,T);p[h]||(p[h]=[]),p[h].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},X.Reindex=function(e){return X.extend(this,e)},X.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},X.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},X.DropIndex=function(e){return X.extend(this,e)},X.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},X.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},X.WithSelect=function(e){return X.extend(this,e)},X.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},X.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new H({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},X.If=function(e){return X.extend(this,e)},X.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},X.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},X.While=function(e){return X.extend(this,e)},X.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},X.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},X.Break=function(e){return X.extend(this,e)},X.Break.prototype.toString=function(){var e="BREAK";return e},X.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},X.Continue=function(e){return X.extend(this,e)},X.Continue.prototype.toString=function(){var e="CONTINUE";return e},X.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},X.BeginEnd=function(e){return X.extend(this,e)},X.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},X.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=m(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var d="return alasql.utils.extend(r,{"+s.defaultfns+"})",h=new Function("r,db,params,alasql",d),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=M(s[i]);h(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},X.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},X.CreateTrigger=function(e){return X.extend(this,e)},X.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()},X.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},X.DropTrigger=function(e){return X.extend(this,e)},X.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},X.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},X.Delete=function(e){return X.extend(this,e)},X.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},X.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];return this.where?(this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),wherefn=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this),t=function(t,a){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,wherefn,t,a);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var s=r.tables[n],i=s.data.length,o=[],u=0,c=s.data.length;c>u;u++)wherefn(s.data[u],t,T)?s["delete"]&&s["delete"](u,t,T):o.push(s.data[u]);s.data=o;var l=i-s.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(l),l}):t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i},t},X.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},X.Update=function(e){return X.extend(this,e)},X.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()),e},X.SetColumn=function(e){return X.extend(this,e)},X.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},X.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},X.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},X.Merge=function(e){return X.extend(this,e)},X.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},X.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},X.CreateDatabase=function(e){return X.extend(this,e)},X.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},X.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},X.AttachDatabase=function(e){return X.extend(this,e)},X.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},X.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},X.DetachDatabase=function(e){return X.extend(this,e)},X.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid},X.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},X.UseDatabase=function(e){return X.extend(this,e)},X.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},X.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},X.DropDatabase=function(e){return X.extend(this,e)},X.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},X.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},X.Declare=function(e){return X.extend(this,e)},X.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()), -t}).join(",")),e},X.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},X.ShowDatabases=function(e){return X.extend(this,e)},X.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},X.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},X.ShowTables=function(e){return X.extend(this,e)},X.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},X.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},X.ShowColumns=function(e){return X.extend(this,e)},X.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},X.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},X.ShowIndex=function(e){return X.extend(this,e)},X.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},X.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},X.ShowCreateTable=function(e){return X.extend(this,e)},X.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},X.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},X.SetVariable=function(e){return X.extend(this,e)},X.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},X.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;"object"==typeof exports&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||"object"==typeof exports)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(se(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="
"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+E(a[o])+"

";else i+=E(a);else i+=E(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if("object"==typeof exports&&(e="console"),"console"===e||"object"==typeof exports)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if("object"==typeof exports&&(t="console"),"console"===t||"object"==typeof exports)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if("object"==typeof exports)throw new Error("The functionality of prompt is not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;y(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;y(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},X.BeginTransaction=function(e){return X.extend(this,e)},X.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},X.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},X.CommitTransaction=function(e){return X.extend(this,e)},X.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},X.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},X.RollbackTransaction=function(e){return X.extend(this,e)},X.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},X.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+k(t)+"'"):"string"==typeof t&&(t="'"+k(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),d=0;d0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&P(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=$(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var d=i[l];"undefined"!=typeof d.columns?r=d.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof d.column&&P(e,d.column),"undefined"==typeof e.width&&(d.column&&"undefined"!=typeof d.column.width?e.width=d.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),d.headers&&d.headers instanceof Array&&(e.title=d.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),d.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>d.limit)){var s={};if(P(s,d.row),d.rows&&d.rows[a]&&P(s,d.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,a){function s(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(a)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};d.SheetNames.indexOf(a.sheetid)>-1?s=d.Sheets[a.sheetid]:(d.SheetNames.push(a.sheetid),d.Sheets[a.sheetid]={},s=d.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(d.Sheets[a.sheetid]["!ref"])var c=d.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),h=+c.match(/[0-9]+/)[0]-1;else var l=1,h=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,h),b=u+1;d.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,h;var t=g;if(e.charCodeAt(t)===d){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),d=s.quote.charCodeAt(0),h={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==h&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsjs");else if(s=window.XLS,!s)throw new Error("XLS library is not attached");return S(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if("object"==typeof exports)s=require("xlsx");else if(s=window.XLSX,!s)throw new Error("XLSX library is not attached");return S(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=w(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},X.Help=function(e){return X.extend(this,e)},X.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],X.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},X.Print=function(e){return X.extend(this,e)},X.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},X.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return se(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(se(i))}else console.log();return n&&(a=n(a)),a},X.Source=function(e){return X.extend(this,e)},X.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},X.Source.prototype.execute=function(e,t,n){var r;return N(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},X.Require=function(e){return X.extend(this,e)},X.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},X.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){N(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||N(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},ue.fromTable=function(e,t,n,r,a){var s=T.databases[e].ixdbid,i=window.indexedDB.open(s);i.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},ue.deleteFromTable=function(e,t,n,r,a){var s=T.databases[e].ixdbid,i=window.indexedDB.open(s);i.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},ue.updateTable=function(e,t,n,r,a,s){var i=T.databases[e].ixdbid,o=window.indexedDB.open(i);o.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var ce=T.engines.LOCALSTORAGE=function(){};ce.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},ce.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},ce.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,ce.set(n.lsdbid+"."+t,a)},ce.restoreTable=function(e,t){var n=T.databases[e],r=ce.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},ce.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},ce.createDatabase=function(e,t,n,r,a){var s=1,i=ce.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,ce.set("alasql",i),ce.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},ce.dropDatabase=function(e,t,n){var r=1,a=ce.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],ce.set("alasql",a);var s=ce.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},ce.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=ce.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)ce.restoreTable(t,o);return a&&(s=a(s)),s},ce.showDatabases=function(e,t){var n=[],r=ce.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},ce.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=ce.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=ce.get(s);T.databases[e].tables[t];return o.tables[t]=!0,ce.set(s,o),ce.storeTable(e,t),r&&r(a),a},ce.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=ce.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],ce.set(s,i),ce.removeTable(e,t),r&&r(a),a},ce.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,ce.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},ce.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=ce.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),ce.storeTable(e,t),a&&a(s),s},ce.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;ce.restoreTable(e,t)},ce.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;ce.storeTable(r,t),n.tables[t].data=void 0},ce.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,ce.storeTable(e,s);return ce.set(r,a),1},ce.begin=ce.commit,ce.rollback=function(e,t){return};var le=T.engines.SQLITE=function(){};le.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},le.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},le.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof X.StringValue||n[0]instanceof X.ParamValue){if(n[0]instanceof X.StringValue)var i=n[0].value;else if(n[0]instanceof X.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},le.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},le.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var d=o;return a&&a(d),d};var de=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(de.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},de.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},de.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,N(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},de.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],de.updateFile(e),r&&r(i),i},de.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){de.updateFile(e)},50)}))},de.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],de.updateFile(e),r&&r(a),a},de.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},de.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),de.updateFile(e),a&&a(i),i},de.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},de.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,de.updateFile(e)},de.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return de.updateFile(e),1},de.begin=de.commit,de.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});P(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),P(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},"object"!=typeof exports&&"function"!=typeof importScripts&&"object"==typeof document){var he=he||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,d=500,h=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,d)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var d,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!d)&&(d=n().createObjectURL(t)),p)p.location.href=d;else{var r=e.open(d,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=d)}g.readyState=g.DONE,E(),h(d)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},w={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(d=n().createObjectURL(t),r.href=d,r.download=u,s(r),g.readyState=g.DONE,E(),void h(d)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",w,S(function(e){var n=function(){e.getFile(u,w,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),h(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=he:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return he}),T.utils.saveAs=he}return new G("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file +//! AlaSQL v0.2.3-develop-1204 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='

',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1204",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] +});break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, +410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ +74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:Ve,414:je},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:Tt,113:wt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:804,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:dr,75:[1,805]},{71:dr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:dt,134:ft,141:821,142:Ke,149:pt,409:185,410:Ve,414:je,466:820,484:306,488:308},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(Tr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(Tr,[2,733]),t(Tr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:ha,330:da,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,368],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,369],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,371],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:Tt,113:wt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,381],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,382],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,383],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:858,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:dr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,Sa),t(Ta,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:Br,298:672,299:on,301:Gr},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:877,413:410,414:je,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:jr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:hn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:882,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:883,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:884,413:410,414:je},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:885,409:185,410:Ve,414:je},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:893,409:185,410:Ve,414:je},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:913,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,915],109:wn,111:459,112:Tt,113:wt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:925,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:d},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{111:954,112:Tt,113:wt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:970,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:971,4:r,5:a},{71:dr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, +285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:Ve,414:je}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],wr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,Va,{76:74,181:99,459:995,38:998,86:u,143:ja,186:d,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(_a,[2,753]),t(_a,[2,754]),t(_a,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(gt,[2,674],{121:[1,1002]}),{128:Ba,377:1003,379:Ga},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:Ve,414:je},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1012],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1015,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1016]},{71:dr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1020,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(Ta,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:Ve,414:je},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:d},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Ge,76:74,86:u,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,181:99,186:d,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:dr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1074],109:wn,111:459,112:Tt,113:wt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:dr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1081],109:wn,111:459,112:Tt,113:wt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1083],109:wn,111:459,112:Tt,113:wt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1085],109:wn,111:459,112:Tt,113:wt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1087],109:wn,111:459,112:Tt,113:wt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1089]},t(hs,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1093],109:wn,111:459,112:Tt,113:wt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1095],109:wn,111:459,112:Tt,113:wt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(ds,[2,643]),t(ds,[2,644]),t(ds,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:dr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1125,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:d},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1141,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:ha,330:da,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:[1,1145],75:[1,1146]},t(hs,[2,528]),t(hs,[2,529]),{128:Ba,377:1147,379:Ga},{71:fs,75:[1,1148]},t(hs,[2,463],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,372],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:dr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:dr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(Ta,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:de,178:ge,198:1164,293:qe,409:185,410:Ve,414:je},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:d},{3:718,4:r,5:a,108:1168},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1169,409:185,410:Ve,414:je},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:he,149:de,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1212,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, +198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column +},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&"undefined"!=typeof process&&process.browser};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ +s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=H(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var ae=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof ne.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof ne.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(ae(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},ne.Select=function(e){return ne.extend(this,e)},ne.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof ne.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},ne.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},ne.Select.prototype.compile=function(e){var t=T.databases[e],n=new te;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof ne.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof ne.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof ne.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof ne.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},ne.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.ExistsValue=function(e){return ne.extend(this,e)},ne.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},ne.ExistsValue.prototype.toType=function(){return"boolean"},ne.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},ne.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},ne.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},ne.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof ne.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof ne.Select)e.aliases[r]={type:"subquery"};else if(t instanceof ne.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof ne.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof ne.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof ne.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof ne.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof ne.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof ne.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof ne.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof ne.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},ne.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof ne.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=_(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof ne.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},ne.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileWhereJoins=function(e){},ne.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=j(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=P(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="",c="";"undefined"!=typeof e.groupStar&&(c+="for(var f in p['"+e.groupStar+"']) {g[f]=p['"+e.groupStar+"'][f];};"),s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof ne.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));"+c+"} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof ne.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},ne.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof ne.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof ne.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},ne.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof ne.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},ne.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(n instanceof ne.Column&&"*"===n.columnid)e.groupStar=n.tableid||"default";else{var a;a=A(n instanceof ne.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},ne.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof ne.Column&&"*"===n.columnid)return r+="for(var k in g) {r[k]=g[k]};","";var a=n.as;void 0===a&&(a=n instanceof ne.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof ne.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},ne.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},ne.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof ne.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof ne.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},ne.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[]; +if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=H(p);n.columnid=t,e.columns.push(n)})}},ne.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var se=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof ne.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},ne.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},ne.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},ne.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof ne.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},ne.VarValue=function(e){return ne.extend(this,e)},ne.VarValue.prototype.toString=function(){return"@"+this.variable},ne.VarValue.prototype.toType=function(){return"unknown"},ne.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},ne.NumValue=function(e){return ne.extend(this,e)},ne.NumValue.prototype.toString=function(){return this.value.toString()},ne.NumValue.prototype.toType=function(){return"number"},ne.NumValue.prototype.toJS=function(){return""+this.value},ne.StringValue=function(e){return ne.extend(this,e)},ne.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},ne.StringValue.prototype.toType=function(){return"string"},ne.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},ne.LogicValue=function(e){return ne.extend(this,e)},ne.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},ne.LogicValue.prototype.toType=function(){return"boolean"},ne.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},ne.NullValue=function(e){return ne.extend(this,e)},ne.NullValue.prototype.toString=function(){return"NULL"},ne.NullValue.prototype.toJS=function(){return"undefined"},ne.ParamValue=function(e){return ne.extend(this,e)},ne.ParamValue.prototype.toString=function(){return"$"+this.param},ne.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},ne.UniOp=function(e){return ne.extend(this,e)},ne.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},ne.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},ne.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},ne.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof ne.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},ne.Column=function(e){return ne.extend(this,e)},ne.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},ne.AggrValue=function(e){return ne.extend(this,e)},ne.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},ne.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},ne.OrderExpression=function(e){return ne.extend(this,e)},ne.OrderExpression.prototype.toString=ne.Expression.prototype.toString,ne.GroupExpression=function(e){return ne.extend(this,e)},ne.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},ne.FromData=function(e){return ne.extend(this,e)},ne.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},ne.FromData.prototype.toJS=function(){},ne.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=V(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},ne.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new ne.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new ne.Column({columnid:"*",func:t,param:n}))}}),e},ne.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new ne.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new ne.Table({tableid:e}))}return t},ne.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new ne.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new ne.OrderExpression({expression:n,direction:"ASC"}))}),e},ne.Select.prototype.Top=function(e){var t=this;return t.top=new ne.NumValue({value:e}),t},ne.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new ne.Column({columnid:t});e.group.push(n)}),e},ne.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},ne.FuncValue=function(e){return ne.extend(this,e)},ne.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},ne.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},ne.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},ne.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ce=T.stdlib={},le=T.stdfn={};ce.ABS=function(e){return"Math.abs("+e+")"},ce.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},le.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ce.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ce.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ce.IFNULL=function(e,t){return"("+e+"||"+t+")"},ce.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ce.LEN=ce.LENGTH=function(e){return t(e,"y.length")},ce.LOWER=ce.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ce.MAX=ce.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ce.MIN=ce.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ce.SUBSTRING=ce.SUBSTR=ce.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},le.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ce.ISNULL=ce.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ce.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ce.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ce.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},ce.CEIL=ce.CEILING=function(e){return"Math.ceil("+e+")"},ce.FLOOR=function(e){return"Math.floor("+e+")"},ce.ROWNUM=function(){return"1"},ce.ROW_NUMBER=function(){return"1"},ce.SQRT=function(e){return"Math.sqrt("+e+")"},ce.TRIM=function(e){return t(e,"y.trim()")},ce.UPPER=ce.UCASE=function(e){return t(e,"String(y).toUpperCase()")},le.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},le.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var he=[],de=0;256>de;de++)he[de]=(16>de?"0":"")+de.toString(16);le.NEWID=le.UUID=le.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return he[255&e]+he[e>>8&255]+he[e>>16&255]+he[e>>24&255]+"-"+he[255&t]+he[t>>8&255]+"-"+he[t>>16&15|64]+he[t>>24&255]+"-"+he[63&n|128]+he[n>>8&255]+"-"+he[n>>16&255]+he[n>>24&255]+he[255&r]+he[r>>8&255]+he[r>>16&255]+he[r>>24&255]},ne.CaseValue=function(e){return ne.extend(this,e)},ne.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},ne.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},ne.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},ne.Json=function(e){return ne.extend(this,e)},ne.Json.prototype.toString=function(){var e="";return e+=fe(this.value),e+=""};var fe=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return fe(e)}).join(",")+"]";else if(!e.toJS||e instanceof ne.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+fe(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};ne.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},ne.Convert=function(e){return ne.extend(this,e)},ne.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},ne.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},ne.ColumnDef=function(e){return ne.extend(this,e)},ne.ColumnDef.prototype.toString=function(){var 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},ne.CreateTable=function(e){return ne.extend(this,e)},ne.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},ne.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=V(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=V(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid); +return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=V(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=V(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=H(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,le.EXTEND=T.utils.extend,le.CHAR=String.fromCharCode.bind(String),le.ASCII=function(e){return e.charCodeAt(0)},le.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},ne.CreateEdge=function(e){return ne.extend(this,e)},ne.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.CreateGraph=function(e){return ne.extend(this,e)},ne.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&Y(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&Y(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},ne.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.AlterTable=function(e){return ne.extend(this,e)},ne.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},ne.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},ne.CreateIndex=function(e){return ne.extend(this,e)},ne.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},ne.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=V(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},ne.Reindex=function(e){return ne.extend(this,e)},ne.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},ne.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},ne.DropIndex=function(e){return ne.extend(this,e)},ne.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},ne.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},ne.WithSelect=function(e){return ne.extend(this,e)},ne.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},ne.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new ee({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},ne.If=function(e){return ne.extend(this,e)},ne.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},ne.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},ne.While=function(e){return ne.extend(this,e)},ne.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},ne.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},ne.Break=function(e){return ne.extend(this,e)},ne.Break.prototype.toString=function(){var e="BREAK";return e},ne.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.Continue=function(e){return ne.extend(this,e)},ne.Continue.prototype.toString=function(){var e="CONTINUE";return e},ne.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.BeginEnd=function(e){return ne.extend(this,e)},ne.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},ne.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=H(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},ne.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.CreateTrigger=function(e){return ne.extend(this,e)},ne.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()},ne.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},ne.DropTrigger=function(e){return ne.extend(this,e)},ne.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},ne.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},ne.Delete=function(e){return ne.extend(this,e)},ne.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},ne.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},ne.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Update=function(e){return ne.extend(this,e)},ne.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()),e},ne.SetColumn=function(e){return ne.extend(this,e)},ne.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},ne.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},ne.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Merge=function(e){return ne.extend(this,e)},ne.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},ne.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},ne.CreateDatabase=function(e){return ne.extend(this,e)},ne.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},ne.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},ne.AttachDatabase=function(e){return ne.extend(this,e)},ne.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},ne.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},ne.DetachDatabase=function(e){return ne.extend(this,e); +},ne.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid},ne.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.UseDatabase=function(e){return ne.extend(this,e)},ne.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},ne.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},ne.DropDatabase=function(e){return ne.extend(this,e)},ne.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},ne.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.Declare=function(e){return ne.extend(this,e)},ne.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},ne.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},ne.ShowDatabases=function(e){return ne.extend(this,e)},ne.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},ne.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},ne.ShowTables=function(e){return ne.extend(this,e)},ne.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},ne.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},ne.ShowColumns=function(e){return ne.extend(this,e)},ne.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},ne.ShowIndex=function(e){return ne.extend(this,e)},ne.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},ne.ShowCreateTable=function(e){return ne.extend(this,e)},ne.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},ne.SetVariable=function(e){return ne.extend(this,e)},ne.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},ne.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;x.isNode&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(fe(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="
"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},ne.BeginTransaction=function(e){return ne.extend(this,e)},ne.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},ne.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},ne.CommitTransaction=function(e){return ne.extend(this,e)},ne.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},ne.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},ne.RollbackTransaction=function(e){return ne.extend(this,e)},ne.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},ne.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&Y(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=V(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&Y(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(Y(s,h.row),h.rows&&h.rows[a]&&Y(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library not found");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library not found");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},ne.Help=function(e){return ne.extend(this,e)},ne.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],ne.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},ne.Print=function(e){return ne.extend(this,e)},ne.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},ne.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return fe(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(fe(i))}else console.log();return n&&(a=n(a)),a},ne.Source=function(e){return ne.extend(this,e)},ne.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},ne.Source.prototype.execute=function(e,t,n){var r;return M(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},ne.Require=function(e){return ne.extend(this,e)},ne.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},ne.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){M(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||M(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},ge.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},ge.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},ge.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var me=T.engines.LOCALSTORAGE=function(){};me.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},me.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},me.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,me.set(n.lsdbid+"."+t,a)},me.restoreTable=function(e,t){var n=T.databases[e],r=me.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},me.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},me.createDatabase=function(e,t,n,r,a){var s=1,i=me.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,me.set("alasql",i),me.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},me.dropDatabase=function(e,t,n){var r=1,a=me.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],me.set("alasql",a);var s=me.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=me.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)me.restoreTable(t,o);return a&&(s=a(s)),s},me.showDatabases=function(e,t){var n=[],r=me.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},me.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=me.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=me.get(s);T.databases[e].tables[t];return o.tables[t]=!0,me.set(s,o),me.storeTable(e,t),r&&r(a),a},me.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=me.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],me.set(s,i),me.removeTable(e,t),r&&r(a),a},me.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,me.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},me.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=me.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),me.storeTable(e,t),a&&a(s),s},me.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;me.restoreTable(e,t)},me.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;me.storeTable(r,t),n.tables[t].data=void 0},me.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,me.storeTable(e,s);return me.set(r,a),1},me.begin=me.commit,me.rollback=function(e,t){return};var ve=T.engines.SQLITE=function(){};ve.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},ve.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof ne.StringValue||n[0]instanceof ne.ParamValue){if(n[0]instanceof ne.StringValue)var i=n[0].value;else if(n[0]instanceof ne.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},ve.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var Ee=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(Ee.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},Ee.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},Ee.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,M(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},Ee.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],Ee.updateFile(e),r&&r(i),i},Ee.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){Ee.updateFile(e)},50)}))},Ee.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],Ee.updateFile(e),r&&r(a),a},Ee.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},Ee.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),Ee.updateFile(e),a&&a(i),i},Ee.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},Ee.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,Ee.updateFile(e)},Ee.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return Ee.updateFile(e),1},Ee.begin=Ee.commit,Ee.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});Y(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),Y(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},x.isBrowser&&!x.isWebWorker){var ye=ye||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=ye:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return ye}),T.utils.saveAs=ye}return new z("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file diff --git a/dist/alasql-worker.js b/dist/alasql-worker.js old mode 100755 new mode 100644 index 0a7bc3f22e..97d1affaca --- a/dist/alasql-worker.js +++ b/dist/alasql-worker.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1198 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1204 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1198 +@version 0.2.3-develop-1204 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff diff --git a/dist/alasql-worker.min.js b/dist/alasql-worker.min.js old mode 100755 new mode 100644 index 0eddb21f9c..7719d751c9 --- a/dist/alasql-worker.min.js +++ b/dist/alasql-worker.min.js @@ -1,2 +1,2 @@ -//! AlaSQL v0.2.3-develop-1198 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1204 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT !function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?module.exports=r():e.alasql=r()}(this,function(){function e(r,t,s){var a=e.lastid++;e.buffer[a]=s,e.webworker.postMessage({id:a,sql:r,params:t})}return"object"!=typeof exports&&(e.worker=function(r,t,s){if(r===!0&&(r=void 0),"undefined"==typeof r)for(var a=document.getElementsByTagName("script"),o=0;o1){var f="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");e(f,[],s)}}else if(r===!1)return void delete e.webworker}),e.lastid=0,e.buffer={},e.worker(),e}); \ No newline at end of file diff --git a/dist/alasql.js b/dist/alasql.js index 25543afe44..9cc8009cdb 100755 --- a/dist/alasql.js +++ b/dist/alasql.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1198 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1204 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1198 +@version 0.2.3-develop-1204 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff @@ -126,7 +126,7 @@ var alasql = function alasql(sql, params, cb, scope) { Current version of alasql @constant {string} */ -alasql.version = '0.2.3-develop-1198'; +alasql.version = '0.2.3-develop-1204'; /** Debug flag @@ -3176,7 +3176,7 @@ utils.isBrowser = isBrowser(); @return {boolean} True if code is running in a browser with a browserify setup */ var isBrowserify = function(){ - return utils.isBrowser && process && process.browser; + return utils.isBrowser && (typeof process !== "undefined") && process.browser; } utils.isBrowserify = isBrowserify(); @@ -7896,7 +7896,14 @@ yy.Select.prototype.compileGroup = function(query) { return "'"+columnid+"':null,"; }).join(''); - var aft = ''; + var aft = '', aft2=''; + + if(typeof query.groupStar !== 'undefined') { + aft2 += 'for(var f in p[\''+query.groupStar+'\']) {g[f]=p[\''+query.groupStar+'\'][f];};'; + }; + + /* + */ s += query.selectGroup.map(function(col){ @@ -7910,11 +7917,8 @@ yy.Select.prototype.compileGroup = function(query) { if(col.distinct) { aft += ',g[\'$$_VALUES_'+colas+'\']={},g[\'$$_VALUES_'+colas+'\']['+colexp+']=true'; } - if (col.aggregatorid === 'SUM' - - ){ - return "'"+colas+'\':('+colexp+')||0,'; //f.field.arguments[0].toJS(); - + if (col.aggregatorid === 'SUM') { + return "'"+colas+'\':('+colexp+')||0,'; } else if ( col.aggregatorid === 'MIN' || col.aggregatorid === 'MAX' @@ -7961,7 +7965,7 @@ yy.Select.prototype.compileGroup = function(query) { }).join(''); - s += '}'+aft+',g));} else {'; + s += '}'+aft+',g));'+aft2+'} else {'; /* // var neggroup = arrayDiff(allgroups,agroup); @@ -8320,6 +8324,8 @@ yy.Select.prototype.compileSelectGroup0 = function(query) { } // } + } else { + query.groupStar = col.tableid || 'default'; } }); @@ -8346,7 +8352,8 @@ yy.Select.prototype.compileSelectGroup1 = function(query) { if(col instanceof yy.Column && col.columnid === '*') { - s += 'for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};'; + s += 'for(var k in g) {r[k]=g[k]};'; + return ''; } else { // var colas = col.as; diff --git a/dist/alasql.min.js b/dist/alasql.min.js index 80ef3c9b55..3bed8aa151 100755 --- a/dist/alasql.min.js +++ b/dist/alasql.min.js @@ -1,14 +1,14 @@ -//! AlaSQL v0.2.3-develop-1198 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='

',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1198",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +//! AlaSQL v0.2.3-develop-1204 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1204",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] });break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, 410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ 74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:Ve,414:je},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:Tt,113:wt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:804,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:dr,75:[1,805]},{71:dr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:dt,134:ft,141:821,142:Ke,149:pt,409:185,410:Ve,414:je,466:820,484:306,488:308},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(Tr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(Tr,[2,733]),t(Tr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:ha,330:da,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,368],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,369],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,371],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:Tt,113:wt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,381],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,382],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,383],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:858,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:dr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,Sa),t(Ta,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:Br,298:672,299:on,301:Gr},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:877,413:410,414:je,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:jr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:hn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:882,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:883,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:884,413:410,414:je},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:885,409:185,410:Ve,414:je},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:893,409:185,410:Ve,414:je},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:913,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,915],109:wn,111:459,112:Tt,113:wt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:925,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:d},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{111:954,112:Tt,113:wt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:970,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:971,4:r,5:a},{71:dr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, 285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:Ve,414:je}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],wr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,Va,{76:74,181:99,459:995,38:998,86:u,143:ja,186:d,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(_a,[2,753]),t(_a,[2,754]),t(_a,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(gt,[2,674],{121:[1,1002]}),{128:Ba,377:1003,379:Ga},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:Ve,414:je},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1012],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1015,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1016]},{71:dr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1020,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(Ta,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:Ve,414:je},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:d},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Ge,76:74,86:u,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,181:99,186:d,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:dr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1074],109:wn,111:459,112:Tt,113:wt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:dr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1081],109:wn,111:459,112:Tt,113:wt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1083],109:wn,111:459,112:Tt,113:wt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1085],109:wn,111:459,112:Tt,113:wt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1087],109:wn,111:459,112:Tt,113:wt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1089]},t(hs,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1093],109:wn,111:459,112:Tt,113:wt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1095],109:wn,111:459,112:Tt,113:wt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(ds,[2,643]),t(ds,[2,644]),t(ds,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:dr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1125,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:d},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1141,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:ha,330:da,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:[1,1145],75:[1,1146]},t(hs,[2,528]),t(hs,[2,529]),{128:Ba,377:1147,379:Ga},{71:fs,75:[1,1148]},t(hs,[2,463],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,372],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:dr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:dr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(Ta,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:de,178:ge,198:1164,293:qe,409:185,410:Ve,414:je},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:d},{3:718,4:r,5:a,108:1168},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1169,409:185,410:Ve,414:je},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:he,149:de,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1212,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, 198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column -},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&process&&process.browser};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ -s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=H(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var ae=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof ne.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof ne.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(ae(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},ne.Select=function(e){return ne.extend(this,e)},ne.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof ne.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},ne.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},ne.Select.prototype.compile=function(e){var t=T.databases[e],n=new te;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof ne.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof ne.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof ne.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof ne.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},ne.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.ExistsValue=function(e){return ne.extend(this,e)},ne.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},ne.ExistsValue.prototype.toType=function(){return"boolean"},ne.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},ne.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},ne.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},ne.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof ne.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof ne.Select)e.aliases[r]={type:"subquery"};else if(t instanceof ne.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof ne.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof ne.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof ne.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof ne.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof ne.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof ne.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof ne.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof ne.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},ne.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof ne.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=_(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof ne.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},ne.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileWhereJoins=function(e){},ne.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=j(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=P(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="";s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof ne.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof ne.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},ne.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof ne.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof ne.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},ne.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof ne.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},ne.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(!(n instanceof ne.Column&&"*"===n.columnid)){var a;a=A(n instanceof ne.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},ne.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof ne.Column&&"*"===n.columnid)r+="for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};";else{var a=n.as;void 0===a&&(a=n instanceof ne.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof ne.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},ne.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},ne.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof ne.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof ne.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},ne.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[];if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]; -}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=H(p);n.columnid=t,e.columns.push(n)})}},ne.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var se=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof ne.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},ne.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},ne.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},ne.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof ne.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},ne.VarValue=function(e){return ne.extend(this,e)},ne.VarValue.prototype.toString=function(){return"@"+this.variable},ne.VarValue.prototype.toType=function(){return"unknown"},ne.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},ne.NumValue=function(e){return ne.extend(this,e)},ne.NumValue.prototype.toString=function(){return this.value.toString()},ne.NumValue.prototype.toType=function(){return"number"},ne.NumValue.prototype.toJS=function(){return""+this.value},ne.StringValue=function(e){return ne.extend(this,e)},ne.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},ne.StringValue.prototype.toType=function(){return"string"},ne.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},ne.LogicValue=function(e){return ne.extend(this,e)},ne.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},ne.LogicValue.prototype.toType=function(){return"boolean"},ne.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},ne.NullValue=function(e){return ne.extend(this,e)},ne.NullValue.prototype.toString=function(){return"NULL"},ne.NullValue.prototype.toJS=function(){return"undefined"},ne.ParamValue=function(e){return ne.extend(this,e)},ne.ParamValue.prototype.toString=function(){return"$"+this.param},ne.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},ne.UniOp=function(e){return ne.extend(this,e)},ne.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},ne.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},ne.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},ne.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof ne.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},ne.Column=function(e){return ne.extend(this,e)},ne.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},ne.AggrValue=function(e){return ne.extend(this,e)},ne.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},ne.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},ne.OrderExpression=function(e){return ne.extend(this,e)},ne.OrderExpression.prototype.toString=ne.Expression.prototype.toString,ne.GroupExpression=function(e){return ne.extend(this,e)},ne.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},ne.FromData=function(e){return ne.extend(this,e)},ne.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},ne.FromData.prototype.toJS=function(){},ne.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=V(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},ne.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new ne.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new ne.Column({columnid:"*",func:t,param:n}))}}),e},ne.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new ne.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new ne.Table({tableid:e}))}return t},ne.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new ne.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new ne.OrderExpression({expression:n,direction:"ASC"}))}),e},ne.Select.prototype.Top=function(e){var t=this;return t.top=new ne.NumValue({value:e}),t},ne.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new ne.Column({columnid:t});e.group.push(n)}),e},ne.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},ne.FuncValue=function(e){return ne.extend(this,e)},ne.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},ne.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},ne.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},ne.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ce=T.stdlib={},le=T.stdfn={};ce.ABS=function(e){return"Math.abs("+e+")"},ce.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},le.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ce.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ce.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ce.IFNULL=function(e,t){return"("+e+"||"+t+")"},ce.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ce.LEN=ce.LENGTH=function(e){return t(e,"y.length")},ce.LOWER=ce.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ce.MAX=ce.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ce.MIN=ce.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ce.SUBSTRING=ce.SUBSTR=ce.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},le.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ce.ISNULL=ce.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ce.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ce.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ce.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},ce.CEIL=ce.CEILING=function(e){return"Math.ceil("+e+")"},ce.FLOOR=function(e){return"Math.floor("+e+")"},ce.ROWNUM=function(){return"1"},ce.ROW_NUMBER=function(){return"1"},ce.SQRT=function(e){return"Math.sqrt("+e+")"},ce.TRIM=function(e){return t(e,"y.trim()")},ce.UPPER=ce.UCASE=function(e){return t(e,"String(y).toUpperCase()")},le.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},le.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var he=[],de=0;256>de;de++)he[de]=(16>de?"0":"")+de.toString(16);le.NEWID=le.UUID=le.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return he[255&e]+he[e>>8&255]+he[e>>16&255]+he[e>>24&255]+"-"+he[255&t]+he[t>>8&255]+"-"+he[t>>16&15|64]+he[t>>24&255]+"-"+he[63&n|128]+he[n>>8&255]+"-"+he[n>>16&255]+he[n>>24&255]+he[255&r]+he[r>>8&255]+he[r>>16&255]+he[r>>24&255]},ne.CaseValue=function(e){return ne.extend(this,e)},ne.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},ne.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},ne.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},ne.Json=function(e){return ne.extend(this,e)},ne.Json.prototype.toString=function(){var e="";return e+=fe(this.value),e+=""};var fe=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return fe(e)}).join(",")+"]";else if(!e.toJS||e instanceof ne.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+fe(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};ne.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},ne.Convert=function(e){return ne.extend(this,e)},ne.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},ne.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},ne.ColumnDef=function(e){return ne.extend(this,e)},ne.ColumnDef.prototype.toString=function(){var 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},ne.CreateTable=function(e){return ne.extend(this,e)},ne.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},ne.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=V(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=V(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid);return!0};o.checkfn.push(l); -}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=V(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=V(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=H(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,le.EXTEND=T.utils.extend,le.CHAR=String.fromCharCode.bind(String),le.ASCII=function(e){return e.charCodeAt(0)},le.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},ne.CreateEdge=function(e){return ne.extend(this,e)},ne.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.CreateGraph=function(e){return ne.extend(this,e)},ne.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&Y(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&Y(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},ne.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.AlterTable=function(e){return ne.extend(this,e)},ne.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},ne.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},ne.CreateIndex=function(e){return ne.extend(this,e)},ne.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},ne.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=V(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},ne.Reindex=function(e){return ne.extend(this,e)},ne.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},ne.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},ne.DropIndex=function(e){return ne.extend(this,e)},ne.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},ne.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},ne.WithSelect=function(e){return ne.extend(this,e)},ne.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},ne.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new ee({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},ne.If=function(e){return ne.extend(this,e)},ne.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},ne.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},ne.While=function(e){return ne.extend(this,e)},ne.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},ne.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},ne.Break=function(e){return ne.extend(this,e)},ne.Break.prototype.toString=function(){var e="BREAK";return e},ne.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.Continue=function(e){return ne.extend(this,e)},ne.Continue.prototype.toString=function(){var e="CONTINUE";return e},ne.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.BeginEnd=function(e){return ne.extend(this,e)},ne.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},ne.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=H(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},ne.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.CreateTrigger=function(e){return ne.extend(this,e)},ne.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()},ne.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},ne.DropTrigger=function(e){return ne.extend(this,e)},ne.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},ne.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},ne.Delete=function(e){return ne.extend(this,e)},ne.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},ne.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},ne.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Update=function(e){return ne.extend(this,e)},ne.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()),e},ne.SetColumn=function(e){return ne.extend(this,e)},ne.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},ne.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},ne.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Merge=function(e){return ne.extend(this,e)},ne.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},ne.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},ne.CreateDatabase=function(e){return ne.extend(this,e)},ne.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},ne.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},ne.AttachDatabase=function(e){return ne.extend(this,e)},ne.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},ne.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},ne.DetachDatabase=function(e){return ne.extend(this,e)},ne.DetachDatabase.prototype.toString=function(){ -var e="DETACH";return e+=" DATABASE "+this.databaseid},ne.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.UseDatabase=function(e){return ne.extend(this,e)},ne.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},ne.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},ne.DropDatabase=function(e){return ne.extend(this,e)},ne.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},ne.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.Declare=function(e){return ne.extend(this,e)},ne.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},ne.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},ne.ShowDatabases=function(e){return ne.extend(this,e)},ne.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},ne.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},ne.ShowTables=function(e){return ne.extend(this,e)},ne.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},ne.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},ne.ShowColumns=function(e){return ne.extend(this,e)},ne.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},ne.ShowIndex=function(e){return ne.extend(this,e)},ne.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},ne.ShowCreateTable=function(e){return ne.extend(this,e)},ne.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},ne.SetVariable=function(e){return ne.extend(this,e)},ne.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},ne.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;x.isNode&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(fe(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="
"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},ne.BeginTransaction=function(e){return ne.extend(this,e)},ne.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},ne.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},ne.CommitTransaction=function(e){return ne.extend(this,e)},ne.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},ne.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},ne.RollbackTransaction=function(e){return ne.extend(this,e)},ne.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},ne.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&Y(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=V(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&Y(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(Y(s,h.row),h.rows&&h.rows[a]&&Y(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library not found");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library not found");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},ne.Help=function(e){return ne.extend(this,e)},ne.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],ne.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},ne.Print=function(e){return ne.extend(this,e)},ne.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},ne.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return fe(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(fe(i))}else console.log();return n&&(a=n(a)),a},ne.Source=function(e){return ne.extend(this,e)},ne.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},ne.Source.prototype.execute=function(e,t,n){var r;return M(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},ne.Require=function(e){return ne.extend(this,e)},ne.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},ne.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){M(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||M(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},ge.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},ge.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},ge.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var me=T.engines.LOCALSTORAGE=function(){};me.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},me.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},me.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,me.set(n.lsdbid+"."+t,a)},me.restoreTable=function(e,t){var n=T.databases[e],r=me.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},me.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},me.createDatabase=function(e,t,n,r,a){var s=1,i=me.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,me.set("alasql",i),me.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},me.dropDatabase=function(e,t,n){var r=1,a=me.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],me.set("alasql",a);var s=me.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=me.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)me.restoreTable(t,o);return a&&(s=a(s)),s},me.showDatabases=function(e,t){var n=[],r=me.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},me.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=me.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=me.get(s);T.databases[e].tables[t];return o.tables[t]=!0,me.set(s,o),me.storeTable(e,t),r&&r(a),a},me.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=me.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],me.set(s,i),me.removeTable(e,t),r&&r(a),a},me.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,me.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},me.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=me.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),me.storeTable(e,t),a&&a(s),s},me.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;me.restoreTable(e,t)},me.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;me.storeTable(r,t),n.tables[t].data=void 0},me.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,me.storeTable(e,s);return me.set(r,a),1},me.begin=me.commit,me.rollback=function(e,t){return};var ve=T.engines.SQLITE=function(){};ve.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},ve.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof ne.StringValue||n[0]instanceof ne.ParamValue){if(n[0]instanceof ne.StringValue)var i=n[0].value;else if(n[0]instanceof ne.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},ve.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var Ee=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(Ee.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},Ee.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},Ee.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,M(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},Ee.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],Ee.updateFile(e),r&&r(i),i},Ee.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){Ee.updateFile(e)},50)}))},Ee.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],Ee.updateFile(e),r&&r(a),a},Ee.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},Ee.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),Ee.updateFile(e),a&&a(i),i},Ee.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},Ee.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,Ee.updateFile(e)},Ee.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return Ee.updateFile(e),1},Ee.begin=Ee.commit,Ee.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});Y(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),Y(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},x.isBrowser&&!x.isWebWorker){var ye=ye||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=ye:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return ye}),T.utils.saveAs=ye}return new z("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file +},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&"undefined"!=typeof process&&process.browser};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ +s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=H(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var ae=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof ne.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof ne.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(ae(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},ne.Select=function(e){return ne.extend(this,e)},ne.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof ne.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},ne.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},ne.Select.prototype.compile=function(e){var t=T.databases[e],n=new te;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof ne.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof ne.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof ne.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof ne.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},ne.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.ExistsValue=function(e){return ne.extend(this,e)},ne.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},ne.ExistsValue.prototype.toType=function(){return"boolean"},ne.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},ne.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},ne.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},ne.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof ne.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof ne.Select)e.aliases[r]={type:"subquery"};else if(t instanceof ne.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof ne.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof ne.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof ne.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof ne.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof ne.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof ne.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof ne.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof ne.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},ne.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof ne.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=_(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof ne.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},ne.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileWhereJoins=function(e){},ne.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=j(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=P(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="",c="";"undefined"!=typeof e.groupStar&&(c+="for(var f in p['"+e.groupStar+"']) {g[f]=p['"+e.groupStar+"'][f];};"),s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof ne.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));"+c+"} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof ne.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},ne.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof ne.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof ne.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},ne.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof ne.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},ne.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(n instanceof ne.Column&&"*"===n.columnid)e.groupStar=n.tableid||"default";else{var a;a=A(n instanceof ne.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},ne.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof ne.Column&&"*"===n.columnid)return r+="for(var k in g) {r[k]=g[k]};","";var a=n.as;void 0===a&&(a=n instanceof ne.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof ne.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},ne.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},ne.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof ne.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof ne.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},ne.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[]; +if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=H(p);n.columnid=t,e.columns.push(n)})}},ne.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var se=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof ne.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},ne.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},ne.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},ne.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof ne.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},ne.VarValue=function(e){return ne.extend(this,e)},ne.VarValue.prototype.toString=function(){return"@"+this.variable},ne.VarValue.prototype.toType=function(){return"unknown"},ne.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},ne.NumValue=function(e){return ne.extend(this,e)},ne.NumValue.prototype.toString=function(){return this.value.toString()},ne.NumValue.prototype.toType=function(){return"number"},ne.NumValue.prototype.toJS=function(){return""+this.value},ne.StringValue=function(e){return ne.extend(this,e)},ne.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},ne.StringValue.prototype.toType=function(){return"string"},ne.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},ne.LogicValue=function(e){return ne.extend(this,e)},ne.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},ne.LogicValue.prototype.toType=function(){return"boolean"},ne.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},ne.NullValue=function(e){return ne.extend(this,e)},ne.NullValue.prototype.toString=function(){return"NULL"},ne.NullValue.prototype.toJS=function(){return"undefined"},ne.ParamValue=function(e){return ne.extend(this,e)},ne.ParamValue.prototype.toString=function(){return"$"+this.param},ne.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},ne.UniOp=function(e){return ne.extend(this,e)},ne.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},ne.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},ne.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},ne.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof ne.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},ne.Column=function(e){return ne.extend(this,e)},ne.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},ne.AggrValue=function(e){return ne.extend(this,e)},ne.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},ne.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},ne.OrderExpression=function(e){return ne.extend(this,e)},ne.OrderExpression.prototype.toString=ne.Expression.prototype.toString,ne.GroupExpression=function(e){return ne.extend(this,e)},ne.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},ne.FromData=function(e){return ne.extend(this,e)},ne.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},ne.FromData.prototype.toJS=function(){},ne.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=V(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},ne.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new ne.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new ne.Column({columnid:"*",func:t,param:n}))}}),e},ne.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new ne.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new ne.Table({tableid:e}))}return t},ne.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new ne.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new ne.OrderExpression({expression:n,direction:"ASC"}))}),e},ne.Select.prototype.Top=function(e){var t=this;return t.top=new ne.NumValue({value:e}),t},ne.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new ne.Column({columnid:t});e.group.push(n)}),e},ne.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},ne.FuncValue=function(e){return ne.extend(this,e)},ne.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},ne.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},ne.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},ne.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ce=T.stdlib={},le=T.stdfn={};ce.ABS=function(e){return"Math.abs("+e+")"},ce.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},le.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ce.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ce.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ce.IFNULL=function(e,t){return"("+e+"||"+t+")"},ce.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ce.LEN=ce.LENGTH=function(e){return t(e,"y.length")},ce.LOWER=ce.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ce.MAX=ce.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ce.MIN=ce.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ce.SUBSTRING=ce.SUBSTR=ce.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},le.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ce.ISNULL=ce.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ce.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ce.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ce.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},ce.CEIL=ce.CEILING=function(e){return"Math.ceil("+e+")"},ce.FLOOR=function(e){return"Math.floor("+e+")"},ce.ROWNUM=function(){return"1"},ce.ROW_NUMBER=function(){return"1"},ce.SQRT=function(e){return"Math.sqrt("+e+")"},ce.TRIM=function(e){return t(e,"y.trim()")},ce.UPPER=ce.UCASE=function(e){return t(e,"String(y).toUpperCase()")},le.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},le.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var he=[],de=0;256>de;de++)he[de]=(16>de?"0":"")+de.toString(16);le.NEWID=le.UUID=le.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return he[255&e]+he[e>>8&255]+he[e>>16&255]+he[e>>24&255]+"-"+he[255&t]+he[t>>8&255]+"-"+he[t>>16&15|64]+he[t>>24&255]+"-"+he[63&n|128]+he[n>>8&255]+"-"+he[n>>16&255]+he[n>>24&255]+he[255&r]+he[r>>8&255]+he[r>>16&255]+he[r>>24&255]},ne.CaseValue=function(e){return ne.extend(this,e)},ne.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},ne.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},ne.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},ne.Json=function(e){return ne.extend(this,e)},ne.Json.prototype.toString=function(){var e="";return e+=fe(this.value),e+=""};var fe=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return fe(e)}).join(",")+"]";else if(!e.toJS||e instanceof ne.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+fe(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};ne.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},ne.Convert=function(e){return ne.extend(this,e)},ne.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},ne.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},ne.ColumnDef=function(e){return ne.extend(this,e)},ne.ColumnDef.prototype.toString=function(){var 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},ne.CreateTable=function(e){return ne.extend(this,e)},ne.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},ne.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=V(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=V(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid); +return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=V(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=V(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=H(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,le.EXTEND=T.utils.extend,le.CHAR=String.fromCharCode.bind(String),le.ASCII=function(e){return e.charCodeAt(0)},le.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},ne.CreateEdge=function(e){return ne.extend(this,e)},ne.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.CreateGraph=function(e){return ne.extend(this,e)},ne.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&Y(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&Y(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},ne.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.AlterTable=function(e){return ne.extend(this,e)},ne.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},ne.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},ne.CreateIndex=function(e){return ne.extend(this,e)},ne.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},ne.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=V(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},ne.Reindex=function(e){return ne.extend(this,e)},ne.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},ne.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},ne.DropIndex=function(e){return ne.extend(this,e)},ne.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},ne.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},ne.WithSelect=function(e){return ne.extend(this,e)},ne.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},ne.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new ee({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},ne.If=function(e){return ne.extend(this,e)},ne.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},ne.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},ne.While=function(e){return ne.extend(this,e)},ne.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},ne.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},ne.Break=function(e){return ne.extend(this,e)},ne.Break.prototype.toString=function(){var e="BREAK";return e},ne.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.Continue=function(e){return ne.extend(this,e)},ne.Continue.prototype.toString=function(){var e="CONTINUE";return e},ne.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.BeginEnd=function(e){return ne.extend(this,e)},ne.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},ne.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=H(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},ne.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.CreateTrigger=function(e){return ne.extend(this,e)},ne.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()},ne.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},ne.DropTrigger=function(e){return ne.extend(this,e)},ne.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},ne.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},ne.Delete=function(e){return ne.extend(this,e)},ne.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},ne.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},ne.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Update=function(e){return ne.extend(this,e)},ne.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()),e},ne.SetColumn=function(e){return ne.extend(this,e)},ne.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},ne.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},ne.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Merge=function(e){return ne.extend(this,e)},ne.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},ne.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},ne.CreateDatabase=function(e){return ne.extend(this,e)},ne.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},ne.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},ne.AttachDatabase=function(e){return ne.extend(this,e)},ne.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},ne.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},ne.DetachDatabase=function(e){return ne.extend(this,e); +},ne.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid},ne.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.UseDatabase=function(e){return ne.extend(this,e)},ne.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},ne.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},ne.DropDatabase=function(e){return ne.extend(this,e)},ne.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},ne.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.Declare=function(e){return ne.extend(this,e)},ne.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},ne.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},ne.ShowDatabases=function(e){return ne.extend(this,e)},ne.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},ne.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},ne.ShowTables=function(e){return ne.extend(this,e)},ne.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},ne.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},ne.ShowColumns=function(e){return ne.extend(this,e)},ne.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},ne.ShowIndex=function(e){return ne.extend(this,e)},ne.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},ne.ShowCreateTable=function(e){return ne.extend(this,e)},ne.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},ne.SetVariable=function(e){return ne.extend(this,e)},ne.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},ne.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;x.isNode&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(fe(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="

"+T.pretty(e)+"
"),a instanceof Array)if(0===a.length)i+="

[ ]

";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

"+m(a[o])+"

";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

'+(Date.now()-a)+" ms

")}catch(s){T.write("

"+olduseid+"> "+sql+"

"),T.write('

'+s+"

")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

'+(Date.now()-i)+" ms

")}catch(o){T.write("

"+s+"> "+T.pretty(a,!1)+"

"),T.write('

'+o+"

")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},ne.BeginTransaction=function(e){return ne.extend(this,e)},ne.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},ne.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},ne.CommitTransaction=function(e){return ne.extend(this,e)},ne.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},ne.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},ne.RollbackTransaction=function(e){return ne.extend(this,e)},ne.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},ne.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&Y(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=V(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&Y(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(Y(s,h.row),h.rows&&h.rows[a]&&Y(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
"}return o+="
",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library not found");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library not found");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},ne.Help=function(e){return ne.extend(this,e)},ne.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],ne.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},ne.Print=function(e){return ne.extend(this,e)},ne.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},ne.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return fe(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(fe(i))}else console.log();return n&&(a=n(a)),a},ne.Source=function(e){return ne.extend(this,e)},ne.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},ne.Source.prototype.execute=function(e,t,n){var r;return M(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},ne.Require=function(e){return ne.extend(this,e)},ne.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},ne.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){M(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||M(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},ge.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},ge.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},ge.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var me=T.engines.LOCALSTORAGE=function(){};me.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},me.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},me.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,me.set(n.lsdbid+"."+t,a)},me.restoreTable=function(e,t){var n=T.databases[e],r=me.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},me.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},me.createDatabase=function(e,t,n,r,a){var s=1,i=me.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,me.set("alasql",i),me.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},me.dropDatabase=function(e,t,n){var r=1,a=me.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],me.set("alasql",a);var s=me.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=me.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)me.restoreTable(t,o);return a&&(s=a(s)),s},me.showDatabases=function(e,t){var n=[],r=me.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},me.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=me.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=me.get(s);T.databases[e].tables[t];return o.tables[t]=!0,me.set(s,o),me.storeTable(e,t),r&&r(a),a},me.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=me.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],me.set(s,i),me.removeTable(e,t),r&&r(a),a},me.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,me.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},me.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=me.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),me.storeTable(e,t),a&&a(s),s},me.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;me.restoreTable(e,t)},me.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;me.storeTable(r,t),n.tables[t].data=void 0},me.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,me.storeTable(e,s);return me.set(r,a),1},me.begin=me.commit,me.rollback=function(e,t){return};var ve=T.engines.SQLITE=function(){};ve.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},ve.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof ne.StringValue||n[0]instanceof ne.ParamValue){if(n[0]instanceof ne.StringValue)var i=n[0].value;else if(n[0]instanceof ne.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},ve.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var Ee=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(Ee.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},Ee.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},Ee.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,M(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},Ee.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],Ee.updateFile(e),r&&r(i),i},Ee.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){Ee.updateFile(e)},50)}))},Ee.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],Ee.updateFile(e),r&&r(a),a},Ee.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},Ee.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),Ee.updateFile(e),a&&a(i),i},Ee.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},Ee.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,Ee.updateFile(e)},Ee.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return Ee.updateFile(e),1},Ee.begin=Ee.commit,Ee.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});Y(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),Y(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},x.isBrowser&&!x.isWebWorker){var ye=ye||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=ye:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return ye}),T.utils.saveAs=ye}return new z("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file diff --git a/src/423groupby.js b/src/423groupby.js index be49813a35..d6f2770a1f 100755 --- a/src/423groupby.js +++ b/src/423groupby.js @@ -119,7 +119,14 @@ if(false) { return "'"+columnid+"':null,"; }).join(''); //console.log(neggroup); - var aft = ''; + var aft = '', aft2=''; + + if(typeof query.groupStar !== 'undefined') { + aft2 += 'for(var f in p[\''+query.groupStar+'\']) {g[f]=p[\''+query.groupStar+'\'][f];};'; + }; + + /* + */ // s += self.columns.map(function(col){ //console.log('query.selectGroup',query.selectGroup); s += query.selectGroup.map(function(col){ @@ -134,12 +141,8 @@ if(false) { if(col.distinct) { aft += ',g[\'$$_VALUES_'+colas+'\']={},g[\'$$_VALUES_'+colas+'\']['+colexp+']=true'; } - if (col.aggregatorid === 'SUM' -// || col.aggregatorid == 'AVG' -// ) { return "'"+col.as+'\':r[\''+col.as+'\'],'; }//f.field.arguments[0].toJS(); - ){ - return "'"+colas+'\':('+colexp+')||0,'; //f.field.arguments[0].toJS(); - + if (col.aggregatorid === 'SUM') { + return "'"+colas+'\':('+colexp+')||0,'; } else if ( col.aggregatorid === 'MIN' || col.aggregatorid === 'MAX' @@ -235,7 +238,7 @@ if(false) { // s += ss.join(','); // s += '});};'; */ - s += '}'+aft+',g));} else {'; + s += '}'+aft+',g));'+aft2+'} else {'; // console.log(s, this.columns); diff --git a/src/424select.js b/src/424select.js index 4a76475ca8..134dfd1deb 100755 --- a/src/424select.js +++ b/src/424select.js @@ -319,6 +319,8 @@ yy.Select.prototype.compileSelectGroup0 = function(query) { } // console.log("colas:",colas); // } + } else { + query.groupStar = col.tableid || 'default'; } }); @@ -345,7 +347,11 @@ yy.Select.prototype.compileSelectGroup1 = function(query) { // console.log(col); if(col instanceof yy.Column && col.columnid === '*') { // s += 'for(var k in g){r[k]=g[k]};'; - s += 'for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};'; +// s += 'for(var k in this.query.groupColumns){r[k]=g[this.query.groupColumns[k]]};'; + + s += 'for(var k in g) {r[k]=g[k]};'; + return ''; + // console.log(query); } else { // var colas = col.as; diff --git a/test/test234.sql b/test/test234.sql index c96eddad68..751f8e8189 100644 --- a/test/test234.sql +++ b/test/test234.sql @@ -15,7 +15,7 @@ INSERT INTO people VALUES ("Larry","Larrison","M"),("Larry","Larrison","M"),("La --DECLARE @M STRING = "M"; -SELECT * +SELECT FirstName, LastName FROM people GROUP BY FirstName, LastName HAVING SUM(CASE WHEN Gender = "M" THEN 1 ELSE 0 END) >= 5; \ No newline at end of file diff --git a/test/test429.json b/test/test429.json index 7171bd0597..a505b6d086 100644 --- a/test/test429.json +++ b/test/test429.json @@ -1,3 +1,11 @@ { - "alasql": "{\"databases\":{}}" -} + "alasql": "{\"databases\":{\"test267\":true,\"Atlas\":true,\"test\":true,\"ls379\":true}}", + "test267": "{\"databaseid\":\"test267\",\"tables\":{\"test\":true}}", + "test267.test": "{\"columns\":[],\"data\":[],\"identities\":{}}", + "Atlas": "{\"databaseid\":\"Atlas\",\"tables\":{\"transactions\":true}}", + "Atlas.transactions": "{\"columns\":[{\"columnid\":\"transid\",\"dbtypeid\":\"\"},{\"columnid\":\"payee\",\"dbtypeid\":\"\"},{\"columnid\":\"amount\",\"dbtypeid\":\"\"}],\"data\":[],\"identities\":{}}", + "test": "{\"databaseid\":\"test\",\"tables\":{\"one\":true}}", + "test.one": "{\"columns\":[{\"columnid\":\"a\",\"dbtypeid\":\"INT\",\"identity\":{\"value\":1,\"step\":1}},{\"columnid\":\"b\",\"dbtypeid\":\"STRING\"}],\"data\":[{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"},{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"}],\"identities\":{\"a\":{\"value\":1,\"step\":1}}}", + "ls379": "{\"databaseid\":\"ls379\",\"tables\":{\"one\":true}}", + "ls379.one": "{\"columns\":[{\"columnid\":\"a\",\"dbtypeid\":\"INT\"},{\"columnid\":\"b\",\"dbtypeid\":\"STRING\"}],\"data\":[],\"identities\":{}}" +} \ No newline at end of file diff --git a/test/test432.js b/test/test432.js new file mode 100644 index 0000000000..d3fd109ab9 --- /dev/null +++ b/test/test432.js @@ -0,0 +1,25 @@ +if(typeof exports === 'object') { + var assert = require("assert"); + var alasql = require('..'); +} +describe('Test 432 Test FIRST(*)', function() { + + it('1. FIRST(*)', function(done) { + var data = [{a:1,b:10,c:1},{a:1,b:20,c:2},{a:2,b:20,c:3},{a:2,b:30,c:4},{a:2,b:30,c:5}]; + var res = alasql('SELECT *, COUNT(b) FROM ? GROUP BY a,b',[data]); + assert.deepEqual(res, + [ { a: 1, b: 10, 'COUNT(b)': 1, c: 1 }, + { a: 1, b: 20, 'COUNT(b)': 1, c: 2 }, + { a: 2, b: 20, 'COUNT(b)': 1, c: 3 }, + { a: 2, b: 30, 'COUNT(b)': 2, c: 4 } ] + ); + + var res = alasql('SELECT *, COUNT(b) FROM ? GROUP BY a',[data]); +// console.log(res); + assert.deepEqual(res, + [ { a: 1, 'COUNT(b)': 2, b: 10, c: 1 }, + { a: 2, 'COUNT(b)': 3, b: 20, c: 3 } ] + ); + done(); + }); +}); From 679f404e8fc21bfa20862ec7c180a0b6ba0cbc45 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Thu, 18 Feb 2016 21:06:12 +0100 Subject: [PATCH 35/54] Use new github template features --- CONTRIBUTING.md => .github/CONTRIBUTING.md | 0 .github/ISSUE_TEMPLATE.md | 7 +++++++ .github/PULL_REQUEST_TEMPLATE.md | 4 ++++ 3 files changed, 11 insertions(+) rename CONTRIBUTING.md => .github/CONTRIBUTING.md (100%) create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/CONTRIBUTING.md b/.github/CONTRIBUTING.md similarity index 100% rename from CONTRIBUTING.md rename to .github/CONTRIBUTING.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000000..2482bcf80c --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,7 @@ +Thanks for taking the time to make AlaSQL better. + +Ideas or input? Just write what you feel like. + +Things that are not working? Please describe the problem **and** provide code (or a jsfiddle) that replicates the problem. + + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000000..75e59d446b --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,4 @@ + +Thank you for the time you are putting into AlaSQL! + + From be192f24204429d4f2c27b7397855e4d9a5b522b Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 19 Feb 2016 06:08:57 +0100 Subject: [PATCH 36/54] Update CHANGELOG.md --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6100154af3..9d66b5eb23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### 0.2.4 "Exogi" (xx.xx.2016) * Added: Central enviroment detection * Changed: Better support for phonegap, cordova and browserify +* Changed: SELECT * FROM ? GROUP BY a works as FIRST(*) ### 0.2.3 "Spetses" (02.01.2016) * Changed: New fast way to calculate aggregators (some parameters changed) @@ -15,7 +16,7 @@ * Added: REPLACE() string function (see issue #560) * Added: NEWID(), UUID() and GEN_RANDOM_UUID() functions for GUID * Added: DEFAULT for column can be a function (e.g. DEFAULT NEWID()) -* Changed: SELECT * FROM ? GROUP BY a works as FIRST(*) + ### 0.2.2 "Mitilini" (15.01.2016) * Fix: SELECT can use functions from GROUP BY list From 57a2162fb972402afcd5de62f83733f04af04487 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 19 Feb 2016 06:12:38 +0100 Subject: [PATCH 37/54] Fix IE11 issue #397 --- src/15utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/15utility.js b/src/15utility.js index 35556a3cd1..632987ece8 100755 --- a/src/15utility.js +++ b/src/15utility.js @@ -498,7 +498,7 @@ var loadBinaryFile = utils.loadBinaryFile = function(path, asy, success, error) var data = e.target.result; success(data); }; - reader.readAsBinaryString(files[0]); + reader.readAsArrayBuffer(files[0]); } else if(path instanceof Blob) { success(path); } From 8927679022c95337a9fd80386948b4367d103674 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 19 Feb 2016 06:16:36 +0100 Subject: [PATCH 38/54] Clean up test output --- dist/alasql-worker.js | 4 ++-- dist/alasql-worker.min.js | 2 +- dist/alasql.js | 8 ++++---- dist/alasql.min.js | 6 +++--- testrestest238a.csv | 2 -- testrestest238b.xlsx | Bin 13647 -> 0 bytes testtest238.json | 1 - 7 files changed, 10 insertions(+), 13 deletions(-) delete mode 100644 testrestest238a.csv delete mode 100644 testrestest238b.xlsx delete mode 100644 testtest238.json diff --git a/dist/alasql-worker.js b/dist/alasql-worker.js index 97d1affaca..f4966ab889 100644 --- a/dist/alasql-worker.js +++ b/dist/alasql-worker.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1204 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1206 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1204 +@version 0.2.3-develop-1206 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff diff --git a/dist/alasql-worker.min.js b/dist/alasql-worker.min.js index 7719d751c9..d90f0f9ccb 100644 --- a/dist/alasql-worker.min.js +++ b/dist/alasql-worker.min.js @@ -1,2 +1,2 @@ -//! AlaSQL v0.2.3-develop-1204 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1206 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT !function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?module.exports=r():e.alasql=r()}(this,function(){function e(r,t,s){var a=e.lastid++;e.buffer[a]=s,e.webworker.postMessage({id:a,sql:r,params:t})}return"object"!=typeof exports&&(e.worker=function(r,t,s){if(r===!0&&(r=void 0),"undefined"==typeof r)for(var a=document.getElementsByTagName("script"),o=0;o1){var f="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");e(f,[],s)}}else if(r===!1)return void delete e.webworker}),e.lastid=0,e.buffer={},e.worker(),e}); \ No newline at end of file diff --git a/dist/alasql.js b/dist/alasql.js index 9cc8009cdb..5811192db0 100755 --- a/dist/alasql.js +++ b/dist/alasql.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1204 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.3-develop-1206 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1204 +@version 0.2.3-develop-1206 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff @@ -126,7 +126,7 @@ var alasql = function alasql(sql, params, cb, scope) { Current version of alasql @constant {string} */ -alasql.version = '0.2.3-develop-1204'; +alasql.version = '0.2.3-develop-1206'; /** Debug flag @@ -3439,7 +3439,7 @@ var loadBinaryFile = utils.loadBinaryFile = function(path, asy, success, error) var data = e.target.result; success(data); }; - reader.readAsBinaryString(files[0]); + reader.readAsArrayBuffer(files[0]); } else if(path instanceof Blob) { success(path); } diff --git a/dist/alasql.min.js b/dist/alasql.min.js index 3bed8aa151..c227fb3f47 100755 --- a/dist/alasql.min.js +++ b/dist/alasql.min.js @@ -1,12 +1,12 @@ -//! AlaSQL v0.2.3-develop-1204 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='

',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1204",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +//! AlaSQL v0.2.3-develop-1206 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
"):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

"+fe(e)+"

";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1206",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] });break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, 410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ 74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:Ve,414:je},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:Tt,113:wt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:804,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:dr,75:[1,805]},{71:dr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:dt,134:ft,141:821,142:Ke,149:pt,409:185,410:Ve,414:je,466:820,484:306,488:308},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(Tr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(Tr,[2,733]),t(Tr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:ha,330:da,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,368],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,369],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,371],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:Tt,113:wt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,381],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,382],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,383],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:858,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:dr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,Sa),t(Ta,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:Br,298:672,299:on,301:Gr},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:877,413:410,414:je,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:jr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:hn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:882,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:883,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:884,413:410,414:je},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:885,409:185,410:Ve,414:je},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:893,409:185,410:Ve,414:je},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:913,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,915],109:wn,111:459,112:Tt,113:wt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:925,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:d},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{111:954,112:Tt,113:wt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:970,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:971,4:r,5:a},{71:dr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, 285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:Ve,414:je}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],wr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,Va,{76:74,181:99,459:995,38:998,86:u,143:ja,186:d,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(_a,[2,753]),t(_a,[2,754]),t(_a,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(gt,[2,674],{121:[1,1002]}),{128:Ba,377:1003,379:Ga},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:Ve,414:je},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1012],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1015,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1016]},{71:dr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1020,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(Ta,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:Ve,414:je},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:d},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Ge,76:74,86:u,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,181:99,186:d,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:dr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1074],109:wn,111:459,112:Tt,113:wt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:dr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1081],109:wn,111:459,112:Tt,113:wt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1083],109:wn,111:459,112:Tt,113:wt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1085],109:wn,111:459,112:Tt,113:wt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1087],109:wn,111:459,112:Tt,113:wt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1089]},t(hs,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1093],109:wn,111:459,112:Tt,113:wt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1095],109:wn,111:459,112:Tt,113:wt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(ds,[2,643]),t(ds,[2,644]),t(ds,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:dr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1125,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:d},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1141,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:ha,330:da,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:[1,1145],75:[1,1146]},t(hs,[2,528]),t(hs,[2,529]),{128:Ba,377:1147,379:Ga},{71:fs,75:[1,1148]},t(hs,[2,463],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,372],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:dr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:dr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(Ta,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:de,178:ge,198:1164,293:qe,409:185,410:Ve,414:je},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:d},{3:718,4:r,5:a,108:1168},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1169,409:185,410:Ve,414:je},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:he,149:de,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1212,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, 198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column -},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&"undefined"!=typeof process&&process.browser};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ +},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&"undefined"!=typeof process&&process.browser};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=H(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var ae=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof ne.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof ne.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(ae(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},ne.Select=function(e){return ne.extend(this,e)},ne.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof ne.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},ne.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},ne.Select.prototype.compile=function(e){var t=T.databases[e],n=new te;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof ne.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof ne.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof ne.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof ne.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},ne.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.ExistsValue=function(e){return ne.extend(this,e)},ne.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},ne.ExistsValue.prototype.toType=function(){return"boolean"},ne.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},ne.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},ne.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},ne.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof ne.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof ne.Select)e.aliases[r]={type:"subquery"};else if(t instanceof ne.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof ne.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof ne.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof ne.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof ne.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof ne.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof ne.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof ne.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof ne.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},ne.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof ne.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=_(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof ne.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},ne.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileWhereJoins=function(e){},ne.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=j(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=P(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="",c="";"undefined"!=typeof e.groupStar&&(c+="for(var f in p['"+e.groupStar+"']) {g[f]=p['"+e.groupStar+"'][f];};"),s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof ne.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));"+c+"} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof ne.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},ne.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof ne.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof ne.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},ne.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof ne.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},ne.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(n instanceof ne.Column&&"*"===n.columnid)e.groupStar=n.tableid||"default";else{var a;a=A(n instanceof ne.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},ne.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof ne.Column&&"*"===n.columnid)return r+="for(var k in g) {r[k]=g[k]};","";var a=n.as;void 0===a&&(a=n instanceof ne.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof ne.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},ne.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},ne.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof ne.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof ne.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},ne.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[]; if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=H(p);n.columnid=t,e.columns.push(n)})}},ne.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var se=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof ne.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},ne.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},ne.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},ne.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof ne.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},ne.VarValue=function(e){return ne.extend(this,e)},ne.VarValue.prototype.toString=function(){return"@"+this.variable},ne.VarValue.prototype.toType=function(){return"unknown"},ne.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},ne.NumValue=function(e){return ne.extend(this,e)},ne.NumValue.prototype.toString=function(){return this.value.toString()},ne.NumValue.prototype.toType=function(){return"number"},ne.NumValue.prototype.toJS=function(){return""+this.value},ne.StringValue=function(e){return ne.extend(this,e)},ne.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},ne.StringValue.prototype.toType=function(){return"string"},ne.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},ne.LogicValue=function(e){return ne.extend(this,e)},ne.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},ne.LogicValue.prototype.toType=function(){return"boolean"},ne.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},ne.NullValue=function(e){return ne.extend(this,e)},ne.NullValue.prototype.toString=function(){return"NULL"},ne.NullValue.prototype.toJS=function(){return"undefined"},ne.ParamValue=function(e){return ne.extend(this,e)},ne.ParamValue.prototype.toString=function(){return"$"+this.param},ne.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},ne.UniOp=function(e){return ne.extend(this,e)},ne.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},ne.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},ne.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},ne.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof ne.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},ne.Column=function(e){return ne.extend(this,e)},ne.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},ne.AggrValue=function(e){return ne.extend(this,e)},ne.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},ne.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},ne.OrderExpression=function(e){return ne.extend(this,e)},ne.OrderExpression.prototype.toString=ne.Expression.prototype.toString,ne.GroupExpression=function(e){return ne.extend(this,e)},ne.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},ne.FromData=function(e){return ne.extend(this,e)},ne.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},ne.FromData.prototype.toJS=function(){},ne.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=V(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},ne.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new ne.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new ne.Column({columnid:"*",func:t,param:n}))}}),e},ne.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new ne.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new ne.Table({tableid:e}))}return t},ne.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new ne.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new ne.OrderExpression({expression:n,direction:"ASC"}))}),e},ne.Select.prototype.Top=function(e){var t=this;return t.top=new ne.NumValue({value:e}),t},ne.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new ne.Column({columnid:t});e.group.push(n)}),e},ne.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},ne.FuncValue=function(e){return ne.extend(this,e)},ne.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},ne.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},ne.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},ne.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ce=T.stdlib={},le=T.stdfn={};ce.ABS=function(e){return"Math.abs("+e+")"},ce.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},le.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ce.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ce.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ce.IFNULL=function(e,t){return"("+e+"||"+t+")"},ce.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ce.LEN=ce.LENGTH=function(e){return t(e,"y.length")},ce.LOWER=ce.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ce.MAX=ce.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ce.MIN=ce.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ce.SUBSTRING=ce.SUBSTR=ce.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},le.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ce.ISNULL=ce.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ce.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ce.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ce.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},ce.CEIL=ce.CEILING=function(e){return"Math.ceil("+e+")"},ce.FLOOR=function(e){return"Math.floor("+e+")"},ce.ROWNUM=function(){return"1"},ce.ROW_NUMBER=function(){return"1"},ce.SQRT=function(e){return"Math.sqrt("+e+")"},ce.TRIM=function(e){return t(e,"y.trim()")},ce.UPPER=ce.UCASE=function(e){return t(e,"String(y).toUpperCase()")},le.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},le.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var he=[],de=0;256>de;de++)he[de]=(16>de?"0":"")+de.toString(16);le.NEWID=le.UUID=le.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return he[255&e]+he[e>>8&255]+he[e>>16&255]+he[e>>24&255]+"-"+he[255&t]+he[t>>8&255]+"-"+he[t>>16&15|64]+he[t>>24&255]+"-"+he[63&n|128]+he[n>>8&255]+"-"+he[n>>16&255]+he[n>>24&255]+he[255&r]+he[r>>8&255]+he[r>>16&255]+he[r>>24&255]},ne.CaseValue=function(e){return ne.extend(this,e)},ne.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},ne.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},ne.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},ne.Json=function(e){return ne.extend(this,e)},ne.Json.prototype.toString=function(){var e="";return e+=fe(this.value),e+=""};var fe=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return fe(e)}).join(",")+"]";else if(!e.toJS||e instanceof ne.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+fe(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};ne.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},ne.Convert=function(e){return ne.extend(this,e)},ne.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},ne.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},ne.ColumnDef=function(e){return ne.extend(this,e)},ne.ColumnDef.prototype.toString=function(){var 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},ne.CreateTable=function(e){return ne.extend(this,e)},ne.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},ne.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=V(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=V(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid); return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=V(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=V(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=H(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,le.EXTEND=T.utils.extend,le.CHAR=String.fromCharCode.bind(String),le.ASCII=function(e){return e.charCodeAt(0)},le.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},ne.CreateEdge=function(e){return ne.extend(this,e)},ne.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.CreateGraph=function(e){return ne.extend(this,e)},ne.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&Y(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&Y(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},ne.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.AlterTable=function(e){return ne.extend(this,e)},ne.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},ne.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},ne.CreateIndex=function(e){return ne.extend(this,e)},ne.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},ne.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=V(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},ne.Reindex=function(e){return ne.extend(this,e)},ne.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},ne.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},ne.DropIndex=function(e){return ne.extend(this,e)},ne.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},ne.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},ne.WithSelect=function(e){return ne.extend(this,e)},ne.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},ne.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new ee({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},ne.If=function(e){return ne.extend(this,e)},ne.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},ne.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},ne.While=function(e){return ne.extend(this,e)},ne.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},ne.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},ne.Break=function(e){return ne.extend(this,e)},ne.Break.prototype.toString=function(){var e="BREAK";return e},ne.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.Continue=function(e){return ne.extend(this,e)},ne.Continue.prototype.toString=function(){var e="CONTINUE";return e},ne.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.BeginEnd=function(e){return ne.extend(this,e)},ne.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},ne.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=H(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},ne.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.CreateTrigger=function(e){return ne.extend(this,e)},ne.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()},ne.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},ne.DropTrigger=function(e){return ne.extend(this,e)},ne.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},ne.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},ne.Delete=function(e){return ne.extend(this,e)},ne.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},ne.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},ne.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Update=function(e){return ne.extend(this,e)},ne.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()),e},ne.SetColumn=function(e){return ne.extend(this,e)},ne.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},ne.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},ne.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Merge=function(e){return ne.extend(this,e)},ne.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},ne.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},ne.CreateDatabase=function(e){return ne.extend(this,e)},ne.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},ne.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},ne.AttachDatabase=function(e){return ne.extend(this,e)},ne.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},ne.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},ne.DetachDatabase=function(e){return ne.extend(this,e); diff --git a/testrestest238a.csv b/testrestest238a.csv deleted file mode 100644 index 78d50f1cb9..0000000000 --- a/testrestest238a.csv +++ /dev/null @@ -1,2 +0,0 @@ -"a";"b" -1;2 diff --git a/testrestest238b.xlsx b/testrestest238b.xlsx deleted file mode 100644 index 7f4a131230da55578ed1d5ce00d2888f93dfd3f7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13647 zcmeGjU5F${dGn_j33@0fg3>nRL1edQ_Aj^V%!J#&``x=?XL3o55^B0@ru(+~hpL|0 zosb8;JgFe4F&IVgK~R+FK>{MgM?v(>2j6@;jhF~|78U%ys{X5H`lxJcmEuz5KaLfB5F}=RSYm+#G(+!JHG?Z5~F#vO`W64t>^m9DW%i z%7qsOO|!mGGYuNpq2mRErujs7Xa2lth?oQpVPQa<=9mie@zx^`H|%H~i6A-3V~+|0 zCPO z!NI}8!IBgMdL03)oN>o_~(~jdw%KuxjFoNxM&CxMW?ev*#Mc8 zM`%Cn_dT0#h4v5?sEj}lV;VTrsnGu@zE`5DzuoMDqJ`ONT!o<13wp zRh(>Gq6D3;!JM}ip0BAEIj$1D;tZ#^0E zeSthg!vX*`DThVa;@Dem)g=H7bU-Aa1c3*-h+QvcRNUyd36Cozt`{YiGAMbKI8q0O zVph4}pUnGV1`=-wVV2)A?6QMaAMQjvyiqHk6w8 zSrXyI3(^SXv(TvWP)?b29N~Hq`cf)cn;VclXnn1=+%)@y2@Jo6vV8K_2#603lV}?< z8oI@02NIrX@O2Lc{IXL=G%Ll+)K^mUFKf-$Ag4{ zrNZE}-!w1O*Eg3kWp6%RA@m8!62KkQz?X-mI8uOR0)0_z|Yqb@Epo2co(whhe15e*L-p-fS9ra z1NT{dVnYhvBz_O7HZmaVloXz*DO*fTAumJN+>0QOT!{!&lAPY#ufOv4>#rJbzkcWL z?bq(!{>9xFUbuVv=Zcnwc!>mqBH~*=`o`bB|0UziSAX!7e)9#|Lkjj`qj6p z0U?5NiQahW&R<@;^Tv0+{@0(rSOI>4lU@IA3*r4RALM*+$4K6>t@K z6*Sx(27_wmd{~6rBV<&?dy@p3X}5q!V8aP7E&+`Vd=~Cgx!X_? zk$LIUo~P+`*Ry#j!hUQ#?HL=yt5iwX>uHXZBVF=*u*pCFN=L}QDU^ixC(qX)FTAH zgB?gP)!a8ds+s%vMDT<+&_v1|1fL9fg)J}AQ1jo;nDq&jSq4(NmZ^O&I4W&35AwF+ z@Lt-6Z7meBs^Ga)O4ifh-i0Z8iwuJ{g{YV;QSW8w_cFBkKcAte#q!zb>FY*DMoKk+ z!!+cm7%d@zS(z<8mJo%t-3zli3NUv#X&wwOvM7^q~u>*Sw?3&n*~%P zli8$LIu9=LACm%1t(%ti`*8eTGRL6NDuPEnvgV1SbYYO4AH^?1qqqBGPhKQBw0d8dQ?GN5h<~IbVOMf zbKolGVAF8H)nztG(tw03`=9s?su_ji$xRMG7R?Li2xu1#P9LT_5 zQ2#t`Gj(5q1+^RQL2fnR`T>c7+kjWkV^)J9CP+2v!A?j`Dmx=7#VFbNpgP|nduM!0 z%0|i3c$-{(ZtoK+JKIF*?6g>%WCs?=HjgJ$cA{ZT*J^I6s)1QKL}99*zK2M|$cwJx zT~ye+1%}>&Q~x2uYjId!1mD!4&82tsLT8)|nNS5+c^$sPAS4U+Xy5Rh!}R?l(}W5k zbwiR}6CpIBp`&GpOI0roI${EksH$3K$at|>aP}&$8HVHxDLX@!2WnLW;C?Jg-1urI zg~pIltHx2PDHfbYWitpb6+EG`$~T``Ri<7Pk2KUhs4PA_T4jl*KzWmn2REFYz^hkB z=3gi}%G0IGmTrUFzyI;ae*3`O9DW{Ax53gZ;&eCql12x64$kaK{|tL_&U00}>l-t%Du-g2e>Ks_!R&PBa-n3ho$as1xHlyrxOMlCXssz_%B2 z2Rh%1OIK5^2BUp+6WB$$_%{wC_}vTRIP_uQcw`U;gu&2CF_Hn0wP~`Od8)6`KI|L8 z(BJW8;|bI|R08&(;1C2#hKip0g7k~j6zx-!H4gg;Gw42JJG5XgY_vVq{5;Nsm#v0nE67QXEx0y4k~~nU8m= z;|=|_465yoLRCVVW%hL9F5SD`eQ{7+x=64Uy&EW@IK%UtI!$7COv*>N&i>C{H zNn`e?*ZLxDCC5D8EyIPS>aRQ$;4(?a;?zdO9QZ_Ci>*ddu#Ii(22?$vz}7Spm8keb zuSuHtEPM)XT7lQYmanOJqrh44#XLO(S6YybISYV5_;|r5a96q=pw$5c8^@~YLpvBK zt=xTh|L ztJsc zM$LQ7eOipdmY_(}z_J1jn~SEQ64D9#%{AIbbf0$#A5bWXlRg0%sY;-w*#%N|+tOOF zb-5}`3FONnrA{+NB51FiRYk{3q(kJwl+z^0VinaRN>2B^XTJLUJUASFKB0Em%J0&S zUJQeGi4UHsg0p0t>o%Lx^8XZTpQ-=JB%KQ~Q2?gMuzZ#tr;0!>M4>2DIoW;pe{^p8 ze|`Z^EBs6Zb^EH0Uj8o|Iqp}W^*cjP0 Date: Tue, 23 Feb 2016 15:48:44 +0100 Subject: [PATCH 39/54] JSfiddle starter link --- .github/ISSUE_TEMPLATE.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 2482bcf80c..49ee60050f 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,7 +1,10 @@ -Thanks for taking the time to make AlaSQL better. +Thank you for taking the time to make AlaSQL better. -Ideas or input? Just write what you feel like. +Ideas or input? +- Just write what you feel like. -Things that are not working? Please describe the problem **and** provide code (or a jsfiddle) that replicates the problem. +Things that are not working? +- Describe the problem +- Provide code that replicates the problem (Feel free to make a jsfiddle from http://jsfiddle.net/Lbw0x7nz/ ) From 3e68997f7e730d7c333a3e8a8e0bbba99b106ef3 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Tue, 23 Feb 2016 15:51:45 +0100 Subject: [PATCH 40/54] Update ISSUE_TEMPLATE.md --- .github/ISSUE_TEMPLATE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 49ee60050f..a2258d71ec 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,10 +1,10 @@ -Thank you for taking the time to make AlaSQL better. +Thank you for taking the time to make AlaSQL better. As the project has never received any funding and is based on unpaid voluntary work we appreciate any and all contributions we can get. Ideas or input? - Just write what you feel like. Things that are not working? - Describe the problem -- Provide code that replicates the problem (Feel free to make a jsfiddle from http://jsfiddle.net/Lbw0x7nz/ ) +- Provide code that replicates the problem (Feel free to make a jsfiddle from http://jsfiddle.net/vahrxxzm/ ) From 418515f615f88d7d8c87da0d37c07f8836d126dc Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Tue, 23 Feb 2016 15:54:31 +0100 Subject: [PATCH 41/54] Update ISSUE_TEMPLATE.md --- .github/ISSUE_TEMPLATE.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index a2258d71ec..12064d443a 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,10 +1,11 @@ -Thank you for taking the time to make AlaSQL better. As the project has never received any funding and is based on unpaid voluntary work we appreciate any and all contributions we can get. +AlaSQL is based on unpaid voluntary work. Thank you for taking the time to make it better. Ideas or input? - Just write what you feel like. Things that are not working? - Describe the problem -- Provide code that replicates the problem (Feel free to make a jsfiddle from http://jsfiddle.net/vahrxxzm/ ) +- Provide code that replicates the problem +(Feel free to make a jsfiddle from http://jsfiddle.net/vahrxxzm/ ) From 4aa5614918738a790132cc1f0904e1319861f4ab Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 26 Feb 2016 23:47:33 +0100 Subject: [PATCH 42/54] Fix #608 --- src/55functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/55functions.js b/src/55functions.js index 9a62a71065..fdf7f06e97 100755 --- a/src/55functions.js +++ b/src/55functions.js @@ -134,7 +134,7 @@ stdlib.ABS = function(a) {return 'Math.abs('+a+')'}; stdlib.CLONEDEEP = function(a) {return 'alasql.utils.cloneDeep('+a+')'}; stdfn.CONCAT = function(){ - return Array.prototype.slice.call(arguments).join(' '); + return Array.prototype.slice.call(arguments).join(''); }; stdlib.EXP = function(a) {return 'Math.pow(Math.E,'+a+')'}; From 31c53d722af6ac926ff4ff94dc5c91152b178488 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Sun, 28 Feb 2016 09:14:16 +0100 Subject: [PATCH 43/54] Update TESTLOG.md --- TESTLOG.md | 2211 +++++++++++++++++++++++++++------------------------- 1 file changed, 1137 insertions(+), 1074 deletions(-) diff --git a/TESTLOG.md b/TESTLOG.md index 6f5ea832d7..e7af42a0c8 100644 --- a/TESTLOG.md +++ b/TESTLOG.md @@ -1,6 +1,6 @@ -# SQLlogictest results for AlaSQL 0.2.2-pre-develop+160105.205858 +# SQLlogictest results for AlaSQL -_2016-01-10T03:40:02.560Z_ +`2016-02-27T07:24:14.883Z target: alasql@0.2.3-develop-1210` This is a subset of the total 622 tests. Results from 620 test files: @@ -31,7 +31,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 19 failed * 22% was OK -Time: 188.037ms +Time: 187.665ms ---- ---- ---- ---- ---- ---- ---- ### 2/620 [`./test/evidence/in2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/in2.test) @@ -49,7 +49,7 @@ Expected to get an error but did not * 4 failed * 92% was OK -Time: 109.545ms +Time: 109.357ms ---- ---- ---- ---- ---- ---- ---- ### 3/620 [`./test/evidence/slt_lang_aggfunc.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_aggfunc.test) @@ -109,7 +109,7 @@ Expected: ["NULL"] but got ["0"] * 37 failed * 53% was OK -Time: 154.008ms +Time: 173.514ms ---- ---- ---- ---- ---- ---- ---- ### 4/620 [`./test/evidence/slt_lang_createtrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createtrigger.test) @@ -137,7 +137,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 2 failed * 57% was OK -Time: 35.048ms +Time: 41.364ms ---- ---- ---- ---- ---- ---- ---- ### 5/620 [`./test/evidence/slt_lang_createview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createview.test) @@ -162,7 +162,7 @@ Expected to get an error but did not * 8 failed * 65% was OK -Time: 36.993ms +Time: 39.095ms ---- ---- ---- ---- ---- ---- ---- ### 6/620 [`./test/evidence/slt_lang_dropindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropindex.test) @@ -180,7 +180,7 @@ Expected to get an error but did not * 2 failed * 75% was OK -Time: 11.594ms +Time: 9.138ms ---- ---- ---- ---- ---- ---- ---- ### 7/620 [`./test/evidence/slt_lang_droptable.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptable.test) @@ -198,7 +198,7 @@ Expected to get an error but did not * 1 failed * 91% was OK -Time: 16.492ms +Time: 18.653ms ---- ---- ---- ---- ---- ---- ---- ### 8/620 [`./test/evidence/slt_lang_droptrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptrigger.test) @@ -219,7 +219,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 1 failed * 50% was OK -Time: 13.322ms +Time: 14.684ms ---- ---- ---- ---- ---- ---- ---- ### 9/620 [`./test/evidence/slt_lang_dropview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropview.test) @@ -237,21 +237,21 @@ Expected: ["0"] but got ["NULL"] * 1 failed * 92% was OK -Time: 44.738ms +Time: 27.652ms ---- ---- ---- ---- ---- ---- ---- ### 10/620 [`./test/evidence/slt_lang_reindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_reindex.test) #### ★ Assuming all 7 tests still passes as _sqlite_ -Time: 1.057ms +Time: 0.396ms ---- ---- ---- ---- ---- ---- ---- ### 11/620 [`./test/evidence/slt_lang_replace.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_replace.test) #### ★ Assuming all 14 tests still passes as _sqlite_ -Time: 0.496ms +Time: 0.537ms ---- ---- ---- ---- ---- ---- ---- ### 12/620 [`./test/evidence/slt_lang_update.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_update.test) @@ -269,7 +269,7 @@ Expected to get an error but did not * 2 failed * 92% was OK -Time: 48.534ms +Time: 55.898ms ---- ---- ---- ---- ---- ---- ---- ### 13/620 [`./test/index/between/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1/slt_good_0.test) @@ -287,14 +287,14 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 92702.667ms +Time: 73309.016ms ---- ---- ---- ---- ---- ---- ---- ### 14/620 [`./test/index/between/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_0.test) #### ★ Assuming all 10,033 tests still passes as _sqlite_ -Time: 0.429ms +Time: 0.546ms ---- ---- ---- ---- ---- ---- ---- ### 15/620 [`./test/index/between/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_1.test) @@ -312,7 +312,7 @@ Cannot read property '0' of undefined * 40 failed * 99% was OK -Time: 68290.955ms +Time: 76099.241ms ---- ---- ---- ---- ---- ---- ---- ### 16/620 [`./test/index/between/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_2.test) @@ -330,21 +330,21 @@ Cannot read property '0' of undefined * 40 failed * 99% was OK -Time: 67443.620ms +Time: 79000.914ms ---- ---- ---- ---- ---- ---- ---- ### 17/620 [`./test/index/between/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_3.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.433ms +Time: 0.360ms ---- ---- ---- ---- ---- ---- ---- ### 18/620 [`./test/index/between/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_4.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.313ms +Time: 0.342ms ---- ---- ---- ---- ---- ---- ---- ### 19/620 [`./test/index/between/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_5.test) @@ -362,14 +362,14 @@ Cannot read property '0' of undefined * 50 failed * 99% was OK -Time: 74732.447ms +Time: 80199.144ms ---- ---- ---- ---- ---- ---- ---- ### 20/620 [`./test/index/between/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_0.test) #### ★ Assuming all 10,123 tests still passes as _sqlite_ -Time: 0.382ms +Time: 0.499ms ---- ---- ---- ---- ---- ---- ---- ### 21/620 [`./test/index/between/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_1.test) @@ -387,7 +387,7 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 193188.801ms +Time: 99210.697ms ---- ---- ---- ---- ---- ---- ---- ### 22/620 [`./test/index/between/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_2.test) @@ -405,7 +405,7 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 193713.625ms +Time: 98315.648ms ---- ---- ---- ---- ---- ---- ---- ### 23/620 [`./test/index/between/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_3.test) @@ -423,7 +423,7 @@ Cannot read property '0' of undefined * 40 failed * 99% was OK -Time: 96793.785ms +Time: 91529.833ms ---- ---- ---- ---- ---- ---- ---- ### 24/620 [`./test/index/between/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_4.test) @@ -441,7 +441,7 @@ Cannot read property '1' of undefined * 50 failed * 99% was OK -Time: 93585.358ms +Time: 98940.147ms ---- ---- ---- ---- ---- ---- ---- ### 25/620 [`./test/index/between/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1000/slt_good_0.test) @@ -459,7 +459,7 @@ Cannot read property '0' of undefined * 11 failed * 99% was OK -Time: 112619.205ms +Time: 138487.007ms ---- ---- ---- ---- ---- ---- ---- ### 26/620 [`./test/index/commute/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_0.test) @@ -477,14 +477,14 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 29382.311ms +Time: 29538.263ms ---- ---- ---- ---- ---- ---- ---- ### 27/620 [`./test/index/commute/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_1.test) #### ★ Assuming all 10,030 tests still passes as _sqlite_ -Time: 0.360ms +Time: 1.016ms ---- ---- ---- ---- ---- ---- ---- ### 28/620 [`./test/index/commute/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_10.test) @@ -502,21 +502,21 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 15029.990ms +Time: 14345.798ms ---- ---- ---- ---- ---- ---- ---- ### 29/620 [`./test/index/commute/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_11.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.425ms +Time: 0.661ms ---- ---- ---- ---- ---- ---- ---- ### 30/620 [`./test/index/commute/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_12.test) #### ★ Assuming all 10,031 tests still passes as _sqlite_ -Time: 0.389ms +Time: 0.973ms ---- ---- ---- ---- ---- ---- ---- ### 31/620 [`./test/index/commute/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_13.test) @@ -534,7 +534,7 @@ Cannot read property '0' of undefined * 30 failed * 99% was OK -Time: 40961.264ms +Time: 61560.756ms ---- ---- ---- ---- ---- ---- ---- ### 32/620 [`./test/index/commute/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_14.test) @@ -552,7 +552,7 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 38282.880ms +Time: 46095.230ms ---- ---- ---- ---- ---- ---- ---- ### 33/620 [`./test/index/commute/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_15.test) @@ -570,42 +570,42 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 38470.814ms +Time: 42455.635ms ---- ---- ---- ---- ---- ---- ---- ### 34/620 [`./test/index/commute/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_16.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.362ms +Time: 0.949ms ---- ---- ---- ---- ---- ---- ---- ### 35/620 [`./test/index/commute/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_17.test) #### ★ Assuming all 10,031 tests still passes as _sqlite_ -Time: 0.753ms +Time: 5.559ms ---- ---- ---- ---- ---- ---- ---- ### 36/620 [`./test/index/commute/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_18.test) #### ★ Assuming all 10,034 tests still passes as _sqlite_ -Time: 0.455ms +Time: 0.618ms ---- ---- ---- ---- ---- ---- ---- ### 37/620 [`./test/index/commute/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_19.test) #### ★ Assuming all 10,031 tests still passes as _sqlite_ -Time: 0.421ms +Time: 2.676ms ---- ---- ---- ---- ---- ---- ---- ### 38/620 [`./test/index/commute/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_2.test) #### ★ Assuming all 10,037 tests still passes as _sqlite_ -Time: 0.430ms +Time: 6.319ms ---- ---- ---- ---- ---- ---- ---- ### 39/620 [`./test/index/commute/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_20.test) @@ -623,28 +623,28 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 35823.939ms +Time: 61376.843ms ---- ---- ---- ---- ---- ---- ---- ### 40/620 [`./test/index/commute/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_21.test) #### ★ Assuming all 10,030 tests still passes as _sqlite_ -Time: 0.511ms +Time: 0.722ms ---- ---- ---- ---- ---- ---- ---- ### 41/620 [`./test/index/commute/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_22.test) #### ★ Assuming all 10,033 tests still passes as _sqlite_ -Time: 0.337ms +Time: 0.569ms ---- ---- ---- ---- ---- ---- ---- ### 42/620 [`./test/index/commute/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_23.test) #### ★ Assuming all 10,033 tests still passes as _sqlite_ -Time: 0.417ms +Time: 0.569ms ---- ---- ---- ---- ---- ---- ---- ### 43/620 [`./test/index/commute/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_24.test) @@ -662,35 +662,35 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 38470.574ms +Time: 45464.359ms ---- ---- ---- ---- ---- ---- ---- ### 44/620 [`./test/index/commute/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_25.test) #### ★ Assuming all 10,030 tests still passes as _sqlite_ -Time: 0.449ms +Time: 0.474ms ---- ---- ---- ---- ---- ---- ---- ### 45/620 [`./test/index/commute/10/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_26.test) #### ★ Assuming all 10,031 tests still passes as _sqlite_ -Time: 0.302ms +Time: 0.398ms ---- ---- ---- ---- ---- ---- ---- ### 46/620 [`./test/index/commute/10/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_27.test) #### ★ Assuming all 10,033 tests still passes as _sqlite_ -Time: 0.394ms +Time: 0.397ms ---- ---- ---- ---- ---- ---- ---- ### 47/620 [`./test/index/commute/10/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_28.test) #### ★ Assuming all 10,033 tests still passes as _sqlite_ -Time: 0.423ms +Time: 0.406ms ---- ---- ---- ---- ---- ---- ---- ### 48/620 [`./test/index/commute/10/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_29.test) @@ -708,14 +708,14 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 38333.589ms +Time: 56278.121ms ---- ---- ---- ---- ---- ---- ---- ### 49/620 [`./test/index/commute/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_3.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.349ms +Time: 0.405ms ---- ---- ---- ---- ---- ---- ---- ### 50/620 [`./test/index/commute/10/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_30.test) @@ -733,42 +733,42 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 36324.417ms +Time: 41857.384ms ---- ---- ---- ---- ---- ---- ---- ### 51/620 [`./test/index/commute/10/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_31.test) #### ★ Assuming all 10,033 tests still passes as _sqlite_ -Time: 0.511ms +Time: 0.483ms ---- ---- ---- ---- ---- ---- ---- ### 52/620 [`./test/index/commute/10/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_32.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.305ms +Time: 0.487ms ---- ---- ---- ---- ---- ---- ---- ### 53/620 [`./test/index/commute/10/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_33.test) #### ★ Assuming all 10,034 tests still passes as _sqlite_ -Time: 0.451ms +Time: 0.418ms ---- ---- ---- ---- ---- ---- ---- ### 54/620 [`./test/index/commute/10/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_34.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.387ms +Time: 0.441ms ---- ---- ---- ---- ---- ---- ---- ### 55/620 [`./test/index/commute/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_4.test) #### ★ Assuming all 10,030 tests still passes as _sqlite_ -Time: 0.419ms +Time: 0.428ms ---- ---- ---- ---- ---- ---- ---- ### 56/620 [`./test/index/commute/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_5.test) @@ -786,7 +786,7 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 30640.777ms +Time: 48223.595ms ---- ---- ---- ---- ---- ---- ---- ### 57/620 [`./test/index/commute/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_6.test) @@ -804,7 +804,7 @@ Cannot read property '0' of undefined * 20 failed * 99% was OK -Time: 31652.385ms +Time: 51176.863ms ---- ---- ---- ---- ---- ---- ---- ### 58/620 [`./test/index/commute/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_7.test) @@ -822,14 +822,14 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 29611.046ms +Time: 40695.784ms ---- ---- ---- ---- ---- ---- ---- ### 59/620 [`./test/index/commute/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_8.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.490ms +Time: 0.478ms ---- ---- ---- ---- ---- ---- ---- ### 60/620 [`./test/index/commute/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_9.test) @@ -847,7 +847,7 @@ Cannot read property '0' of undefined * 20 failed * 99% was OK -Time: 34379.344ms +Time: 54969.513ms ---- ---- ---- ---- ---- ---- ---- ### 61/620 [`./test/index/commute/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_0.test) @@ -865,21 +865,21 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 34981.302ms +Time: 72474.690ms ---- ---- ---- ---- ---- ---- ---- ### 62/620 [`./test/index/commute/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_1.test) #### ★ Assuming all 10,120 tests still passes as _sqlite_ -Time: 0.371ms +Time: 2.264ms ---- ---- ---- ---- ---- ---- ---- ### 63/620 [`./test/index/commute/100/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_10.test) #### ★ Assuming all 10,124 tests still passes as _sqlite_ -Time: 0.358ms +Time: 0.613ms ---- ---- ---- ---- ---- ---- ---- ### 64/620 [`./test/index/commute/100/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_11.test) @@ -897,7 +897,7 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 32661.593ms +Time: 56481.464ms ---- ---- ---- ---- ---- ---- ---- ### 65/620 [`./test/index/commute/100/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_12.test) @@ -915,14 +915,14 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 33385.587ms +Time: 48855.551ms ---- ---- ---- ---- ---- ---- ---- ### 66/620 [`./test/index/commute/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_2.test) #### ★ Assuming all 10,123 tests still passes as _sqlite_ -Time: 0.760ms +Time: 2.534ms ---- ---- ---- ---- ---- ---- ---- ### 67/620 [`./test/index/commute/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_3.test) @@ -940,7 +940,7 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 34039.562ms +Time: 75190.133ms ---- ---- ---- ---- ---- ---- ---- ### 68/620 [`./test/index/commute/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_4.test) @@ -958,14 +958,14 @@ Cannot read property '0' of undefined * 30 failed * 99% was OK -Time: 35381.168ms +Time: 71705.852ms ---- ---- ---- ---- ---- ---- ---- ### 69/620 [`./test/index/commute/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_5.test) #### ★ Assuming all 10,121 tests still passes as _sqlite_ -Time: 0.434ms +Time: 2.727ms ---- ---- ---- ---- ---- ---- ---- ### 70/620 [`./test/index/commute/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_6.test) @@ -983,14 +983,14 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 32809.571ms +Time: 39673.210ms ---- ---- ---- ---- ---- ---- ---- ### 71/620 [`./test/index/commute/100/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_7.test) #### ★ Assuming all 10,123 tests still passes as _sqlite_ -Time: 0.553ms +Time: 0.728ms ---- ---- ---- ---- ---- ---- ---- ### 72/620 [`./test/index/commute/100/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_8.test) @@ -1008,21 +1008,21 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 35417.469ms +Time: 42451.350ms ---- ---- ---- ---- ---- ---- ---- ### 73/620 [`./test/index/commute/100/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_9.test) #### ★ Assuming all 10,123 tests still passes as _sqlite_ -Time: 0.431ms +Time: 0.404ms ---- ---- ---- ---- ---- ---- ---- ### 74/620 [`./test/index/commute/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_0.test) #### ★ Assuming all 4,741 tests still passes as _sqlite_ -Time: 0.340ms +Time: 0.341ms ---- ---- ---- ---- ---- ---- ---- ### 75/620 [`./test/index/commute/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_1.test) @@ -1040,7 +1040,7 @@ Cannot read property '0' of undefined * 20 failed * 99% was OK -Time: 156941.856ms +Time: 212045.138ms ---- ---- ---- ---- ---- ---- ---- ### 76/620 [`./test/index/commute/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_2.test) @@ -1058,112 +1058,112 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 164624.031ms +Time: 307662.244ms ---- ---- ---- ---- ---- ---- ---- ### 77/620 [`./test/index/commute/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_3.test) #### ★ Assuming all 11,025 tests still passes as _sqlite_ -Time: 0.348ms +Time: 0.624ms ---- ---- ---- ---- ---- ---- ---- ### 78/620 [`./test/index/delete/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1/slt_good_0.test) #### ★ Assuming all 10,907 tests still passes as _sqlite_ -Time: 0.315ms +Time: 0.481ms ---- ---- ---- ---- ---- ---- ---- ### 79/620 [`./test/index/delete/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_0.test) #### ★ Assuming all 10,730 tests still passes as _sqlite_ -Time: 0.404ms +Time: 0.534ms ---- ---- ---- ---- ---- ---- ---- ### 80/620 [`./test/index/delete/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_1.test) #### ★ Assuming all 10,774 tests still passes as _sqlite_ -Time: 1.416ms +Time: 0.800ms ---- ---- ---- ---- ---- ---- ---- ### 81/620 [`./test/index/delete/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_2.test) #### ★ Assuming all 9,390 tests still passes as _sqlite_ -Time: 1.424ms +Time: 0.577ms ---- ---- ---- ---- ---- ---- ---- ### 82/620 [`./test/index/delete/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_3.test) #### ★ Assuming all 10,065 tests still passes as _sqlite_ -Time: 0.397ms +Time: 1.326ms ---- ---- ---- ---- ---- ---- ---- ### 83/620 [`./test/index/delete/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_4.test) #### ★ Assuming all 10,599 tests still passes as _sqlite_ -Time: 0.398ms +Time: 0.616ms ---- ---- ---- ---- ---- ---- ---- ### 84/620 [`./test/index/delete/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_5.test) #### ★ Assuming all 10,353 tests still passes as _sqlite_ -Time: 0.413ms +Time: 0.553ms ---- ---- ---- ---- ---- ---- ---- ### 85/620 [`./test/index/delete/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_0.test) #### ★ Assuming all 11,145 tests still passes as _sqlite_ -Time: 0.762ms +Time: 0.566ms ---- ---- ---- ---- ---- ---- ---- ### 86/620 [`./test/index/delete/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_1.test) #### ★ Assuming all 10,895 tests still passes as _sqlite_ -Time: 0.434ms +Time: 0.527ms ---- ---- ---- ---- ---- ---- ---- ### 87/620 [`./test/index/delete/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_2.test) #### ★ Assuming all 11,033 tests still passes as _sqlite_ -Time: 0.568ms +Time: 0.573ms ---- ---- ---- ---- ---- ---- ---- ### 88/620 [`./test/index/delete/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_3.test) #### ★ Assuming all 10,942 tests still passes as _sqlite_ -Time: 1.827ms +Time: 4.355ms ---- ---- ---- ---- ---- ---- ---- ### 89/620 [`./test/index/delete/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_0.test) #### ★ Assuming all 11,924 tests still passes as _sqlite_ -Time: 0.846ms +Time: 0.547ms ---- ---- ---- ---- ---- ---- ---- ### 90/620 [`./test/index/delete/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_1.test) #### ★ Assuming all 11,838 tests still passes as _sqlite_ -Time: 1.505ms +Time: 0.606ms ---- ---- ---- ---- ---- ---- ---- ### 91/620 [`./test/index/delete/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10000/slt_good_0.test) #### ★ Assuming all 20,347 tests still passes as _sqlite_ -Time: 1.311ms +Time: 0.543ms ---- ---- ---- ---- ---- ---- ---- ### 92/620 [`./test/index/in/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_0.test) @@ -1181,7 +1181,7 @@ Cannot read property '0' of undefined * 30 failed * 99% was OK -Time: 88920.918ms +Time: 164124.546ms ---- ---- ---- ---- ---- ---- ---- ### 93/620 [`./test/index/in/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_1.test) @@ -1199,21 +1199,21 @@ Cannot read property '0' of undefined * 30 failed * 99% was OK -Time: 93600.391ms +Time: 191676.558ms ---- ---- ---- ---- ---- ---- ---- ### 94/620 [`./test/index/in/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_2.test) #### ★ Assuming all 10,035 tests still passes as _sqlite_ -Time: 0.410ms +Time: 0.948ms ---- ---- ---- ---- ---- ---- ---- ### 95/620 [`./test/index/in/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_3.test) #### ★ Assuming all 10,037 tests still passes as _sqlite_ -Time: 0.476ms +Time: 0.942ms ---- ---- ---- ---- ---- ---- ---- ### 96/620 [`./test/index/in/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_4.test) @@ -1231,7 +1231,7 @@ Cannot read property '0' of undefined * 30 failed * 99% was OK -Time: 89210.087ms +Time: 158706.301ms ---- ---- ---- ---- ---- ---- ---- ### 97/620 [`./test/index/in/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_5.test) @@ -1249,7 +1249,7 @@ Cannot read property '0' of undefined * 15 failed * 99% was OK -Time: 85178.524ms +Time: 189836.512ms ---- ---- ---- ---- ---- ---- ---- ### 98/620 [`./test/index/in/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_0.test) @@ -1267,7 +1267,7 @@ Cannot read property '0' of undefined * 30 failed * 99% was OK -Time: 87362.970ms +Time: 274321.205ms ---- ---- ---- ---- ---- ---- ---- ### 99/620 [`./test/index/in/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_1.test) @@ -1285,7 +1285,7 @@ Cannot read property '1' of undefined * 15 failed * 99% was OK -Time: 97690.576ms +Time: 155171.409ms ---- ---- ---- ---- ---- ---- ---- ### 100/620 [`./test/index/in/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_2.test) @@ -1303,7 +1303,7 @@ Cannot read property '1' of undefined * 15 failed * 99% was OK -Time: 97677.720ms +Time: 132079.789ms ---- ---- ---- ---- ---- ---- ---- ### 101/620 [`./test/index/in/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_3.test) @@ -1321,7 +1321,7 @@ Cannot read property '0' of undefined * 15 failed * 99% was OK -Time: 94133.025ms +Time: 131436.468ms ---- ---- ---- ---- ---- ---- ---- ### 102/620 [`./test/index/in/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_4.test) @@ -1339,7 +1339,7 @@ Cannot read property '1' of undefined * 15 failed * 99% was OK -Time: 102242.393ms +Time: 158774.712ms ---- ---- ---- ---- ---- ---- ---- ### 103/620 [`./test/index/in/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_0.test) @@ -1357,105 +1357,105 @@ Cannot read property '0' of undefined * 60 failed * 99% was OK -Time: 413129.108ms +Time: 628724.056ms ---- ---- ---- ---- ---- ---- ---- ### 104/620 [`./test/index/in/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_1.test) #### ★ Assuming all 11,024 tests still passes as _sqlite_ -Time: 0.372ms +Time: 1.388ms ---- ---- ---- ---- ---- ---- ---- ### 105/620 [`./test/index/orderby/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_0.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.323ms +Time: 0.435ms ---- ---- ---- ---- ---- ---- ---- ### 106/620 [`./test/index/orderby/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_1.test) #### ★ Assuming all 10,054 tests still passes as _sqlite_ -Time: 0.435ms +Time: 0.367ms ---- ---- ---- ---- ---- ---- ---- ### 107/620 [`./test/index/orderby/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_10.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.360ms +Time: 0.414ms ---- ---- ---- ---- ---- ---- ---- ### 108/620 [`./test/index/orderby/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_11.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.421ms +Time: 1.415ms ---- ---- ---- ---- ---- ---- ---- ### 109/620 [`./test/index/orderby/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_12.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.968ms +Time: 0.453ms ---- ---- ---- ---- ---- ---- ---- ### 110/620 [`./test/index/orderby/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_13.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.431ms +Time: 1.654ms ---- ---- ---- ---- ---- ---- ---- ### 111/620 [`./test/index/orderby/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_14.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.732ms +Time: 0.491ms ---- ---- ---- ---- ---- ---- ---- ### 112/620 [`./test/index/orderby/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_15.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 1.035ms +Time: 2.526ms ---- ---- ---- ---- ---- ---- ---- ### 113/620 [`./test/index/orderby/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_16.test) #### ★ Assuming all 10,050 tests still passes as _sqlite_ -Time: 0.423ms +Time: 0.493ms ---- ---- ---- ---- ---- ---- ---- ### 114/620 [`./test/index/orderby/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_17.test) #### ★ Assuming all 10,054 tests still passes as _sqlite_ -Time: 0.959ms +Time: 1.271ms ---- ---- ---- ---- ---- ---- ---- ### 115/620 [`./test/index/orderby/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_18.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.417ms +Time: 0.528ms ---- ---- ---- ---- ---- ---- ---- ### 116/620 [`./test/index/orderby/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_19.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 1.076ms +Time: 1.019ms ---- ---- ---- ---- ---- ---- ---- ### 117/620 [`./test/index/orderby/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_2.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.432ms +Time: 0.491ms ---- ---- ---- ---- ---- ---- ---- ### 118/620 [`./test/index/orderby/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_20.test) @@ -1473,112 +1473,112 @@ Cannot read property '0' of undefined * 60 failed * 99% was OK -Time: 30971.566ms +Time: 45654.161ms ---- ---- ---- ---- ---- ---- ---- ### 119/620 [`./test/index/orderby/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_21.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.397ms +Time: 0.500ms ---- ---- ---- ---- ---- ---- ---- ### 120/620 [`./test/index/orderby/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_22.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.416ms +Time: 0.466ms ---- ---- ---- ---- ---- ---- ---- ### 121/620 [`./test/index/orderby/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_23.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.424ms +Time: 1.518ms ---- ---- ---- ---- ---- ---- ---- ### 122/620 [`./test/index/orderby/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_24.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.406ms +Time: 0.440ms ---- ---- ---- ---- ---- ---- ---- ### 123/620 [`./test/index/orderby/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_25.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.406ms +Time: 0.443ms ---- ---- ---- ---- ---- ---- ---- ### 124/620 [`./test/index/orderby/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_3.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.413ms +Time: 0.544ms ---- ---- ---- ---- ---- ---- ---- ### 125/620 [`./test/index/orderby/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_4.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.427ms +Time: 0.465ms ---- ---- ---- ---- ---- ---- ---- ### 126/620 [`./test/index/orderby/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_5.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.553ms +Time: 0.538ms ---- ---- ---- ---- ---- ---- ---- ### 127/620 [`./test/index/orderby/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_6.test) #### ★ Assuming all 10,048 tests still passes as _sqlite_ -Time: 0.519ms +Time: 0.488ms ---- ---- ---- ---- ---- ---- ---- ### 128/620 [`./test/index/orderby/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_7.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.490ms +Time: 0.455ms ---- ---- ---- ---- ---- ---- ---- ### 129/620 [`./test/index/orderby/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_8.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.411ms +Time: 0.484ms ---- ---- ---- ---- ---- ---- ---- ### 130/620 [`./test/index/orderby/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_9.test) #### ★ Assuming all 10,050 tests still passes as _sqlite_ -Time: 0.440ms +Time: 0.513ms ---- ---- ---- ---- ---- ---- ---- ### 131/620 [`./test/index/orderby/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_0.test) #### ★ Assuming all 10,141 tests still passes as _sqlite_ -Time: 0.419ms +Time: 0.576ms ---- ---- ---- ---- ---- ---- ---- ### 132/620 [`./test/index/orderby/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_1.test) #### ★ Assuming all 10,140 tests still passes as _sqlite_ -Time: 0.410ms +Time: 0.455ms ---- ---- ---- ---- ---- ---- ---- ### 133/620 [`./test/index/orderby/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_2.test) #### ★ Assuming all 10,142 tests still passes as _sqlite_ -Time: 0.412ms +Time: 0.460ms ---- ---- ---- ---- ---- ---- ---- ### 134/620 [`./test/index/orderby/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_3.test) @@ -1596,7 +1596,7 @@ Cannot read property '0' of undefined * 60 failed * 99% was OK -Time: 36325.343ms +Time: 68456.074ms ---- ---- ---- ---- ---- ---- ---- ### 135/620 [`./test/index/orderby/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/1000/slt_good_0.test) @@ -1614,350 +1614,350 @@ Cannot read property '0' of undefined * 60 failed * 99% was OK -Time: 251753.573ms +Time: 681540.741ms ---- ---- ---- ---- ---- ---- ---- ### 136/620 [`./test/index/orderby_nosort/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_0.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.457ms +Time: 2.599ms ---- ---- ---- ---- ---- ---- ---- ### 137/620 [`./test/index/orderby_nosort/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_1.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.320ms +Time: 0.419ms ---- ---- ---- ---- ---- ---- ---- ### 138/620 [`./test/index/orderby_nosort/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_10.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.425ms +Time: 0.526ms ---- ---- ---- ---- ---- ---- ---- ### 139/620 [`./test/index/orderby_nosort/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_11.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.414ms +Time: 0.477ms ---- ---- ---- ---- ---- ---- ---- ### 140/620 [`./test/index/orderby_nosort/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_12.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.487ms +Time: 0.485ms ---- ---- ---- ---- ---- ---- ---- ### 141/620 [`./test/index/orderby_nosort/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_13.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.412ms +Time: 0.417ms ---- ---- ---- ---- ---- ---- ---- ### 142/620 [`./test/index/orderby_nosort/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_14.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.420ms +Time: 0.727ms ---- ---- ---- ---- ---- ---- ---- ### 143/620 [`./test/index/orderby_nosort/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_15.test) #### ★ Assuming all 10,054 tests still passes as _sqlite_ -Time: 0.440ms +Time: 1.546ms ---- ---- ---- ---- ---- ---- ---- ### 144/620 [`./test/index/orderby_nosort/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_16.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.417ms +Time: 0.463ms ---- ---- ---- ---- ---- ---- ---- ### 145/620 [`./test/index/orderby_nosort/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_17.test) #### ★ Assuming all 10,050 tests still passes as _sqlite_ -Time: 0.466ms +Time: 1.407ms ---- ---- ---- ---- ---- ---- ---- ### 146/620 [`./test/index/orderby_nosort/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_18.test) #### ★ Assuming all 10,050 tests still passes as _sqlite_ -Time: 0.458ms +Time: 0.507ms ---- ---- ---- ---- ---- ---- ---- ### 147/620 [`./test/index/orderby_nosort/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_19.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.421ms +Time: 1.704ms ---- ---- ---- ---- ---- ---- ---- ### 148/620 [`./test/index/orderby_nosort/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_2.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.388ms +Time: 0.491ms ---- ---- ---- ---- ---- ---- ---- ### 149/620 [`./test/index/orderby_nosort/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_20.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.420ms +Time: 1.824ms ---- ---- ---- ---- ---- ---- ---- ### 150/620 [`./test/index/orderby_nosort/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_21.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.419ms +Time: 0.467ms ---- ---- ---- ---- ---- ---- ---- ### 151/620 [`./test/index/orderby_nosort/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_22.test) #### ★ Assuming all 10,054 tests still passes as _sqlite_ -Time: 0.470ms +Time: 1.504ms ---- ---- ---- ---- ---- ---- ---- ### 152/620 [`./test/index/orderby_nosort/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_23.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.437ms +Time: 0.486ms ---- ---- ---- ---- ---- ---- ---- ### 153/620 [`./test/index/orderby_nosort/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_24.test) #### ★ Assuming all 10,054 tests still passes as _sqlite_ -Time: 0.436ms +Time: 2.513ms ---- ---- ---- ---- ---- ---- ---- ### 154/620 [`./test/index/orderby_nosort/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_25.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.415ms +Time: 0.514ms ---- ---- ---- ---- ---- ---- ---- ### 155/620 [`./test/index/orderby_nosort/10/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_26.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.419ms +Time: 0.579ms ---- ---- ---- ---- ---- ---- ---- ### 156/620 [`./test/index/orderby_nosort/10/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_27.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.422ms +Time: 0.482ms ---- ---- ---- ---- ---- ---- ---- ### 157/620 [`./test/index/orderby_nosort/10/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_28.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.614ms +Time: 1.506ms ---- ---- ---- ---- ---- ---- ---- ### 158/620 [`./test/index/orderby_nosort/10/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_29.test) #### ★ Assuming all 10,050 tests still passes as _sqlite_ -Time: 0.416ms +Time: 0.492ms ---- ---- ---- ---- ---- ---- ---- ### 159/620 [`./test/index/orderby_nosort/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_3.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.442ms +Time: 1.501ms ---- ---- ---- ---- ---- ---- ---- ### 160/620 [`./test/index/orderby_nosort/10/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_30.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.442ms +Time: 0.495ms ---- ---- ---- ---- ---- ---- ---- ### 161/620 [`./test/index/orderby_nosort/10/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_31.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.423ms +Time: 1.516ms ---- ---- ---- ---- ---- ---- ---- ### 162/620 [`./test/index/orderby_nosort/10/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_32.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.414ms +Time: 0.469ms ---- ---- ---- ---- ---- ---- ---- ### 163/620 [`./test/index/orderby_nosort/10/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_33.test) #### ★ Assuming all 10,050 tests still passes as _sqlite_ -Time: 0.425ms +Time: 2.224ms ---- ---- ---- ---- ---- ---- ---- ### 164/620 [`./test/index/orderby_nosort/10/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_34.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.414ms +Time: 0.540ms ---- ---- ---- ---- ---- ---- ---- ### 165/620 [`./test/index/orderby_nosort/10/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_35.test) #### ★ Assuming all 10,049 tests still passes as _sqlite_ -Time: 0.547ms +Time: 1.680ms ---- ---- ---- ---- ---- ---- ---- ### 166/620 [`./test/index/orderby_nosort/10/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_36.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.420ms +Time: 0.472ms ---- ---- ---- ---- ---- ---- ---- ### 167/620 [`./test/index/orderby_nosort/10/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_37.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 1.452ms +Time: 2.877ms ---- ---- ---- ---- ---- ---- ---- ### 168/620 [`./test/index/orderby_nosort/10/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_38.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.438ms +Time: 0.475ms ---- ---- ---- ---- ---- ---- ---- ### 169/620 [`./test/index/orderby_nosort/10/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_39.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.424ms +Time: 1.706ms ---- ---- ---- ---- ---- ---- ---- ### 170/620 [`./test/index/orderby_nosort/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_4.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.410ms +Time: 1.986ms ---- ---- ---- ---- ---- ---- ---- ### 171/620 [`./test/index/orderby_nosort/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_5.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.417ms +Time: 2.141ms ---- ---- ---- ---- ---- ---- ---- ### 172/620 [`./test/index/orderby_nosort/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_6.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.741ms +Time: 1.579ms ---- ---- ---- ---- ---- ---- ---- ### 173/620 [`./test/index/orderby_nosort/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_7.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.408ms +Time: 2.550ms ---- ---- ---- ---- ---- ---- ---- ### 174/620 [`./test/index/orderby_nosort/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_8.test) #### ★ Assuming all 10,054 tests still passes as _sqlite_ -Time: 0.458ms +Time: 2.364ms ---- ---- ---- ---- ---- ---- ---- ### 175/620 [`./test/index/orderby_nosort/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_9.test) #### ★ Assuming all 10,055 tests still passes as _sqlite_ -Time: 0.415ms +Time: 1.382ms ---- ---- ---- ---- ---- ---- ---- ### 176/620 [`./test/index/orderby_nosort/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_0.test) #### ★ Assuming all 10,149 tests still passes as _sqlite_ -Time: 0.409ms +Time: 2.045ms ---- ---- ---- ---- ---- ---- ---- ### 177/620 [`./test/index/orderby_nosort/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_1.test) #### ★ Assuming all 10,141 tests still passes as _sqlite_ -Time: 0.452ms +Time: 1.565ms ---- ---- ---- ---- ---- ---- ---- ### 178/620 [`./test/index/orderby_nosort/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_2.test) #### ★ Assuming all 10,142 tests still passes as _sqlite_ -Time: 0.642ms +Time: 1.827ms ---- ---- ---- ---- ---- ---- ---- ### 179/620 [`./test/index/orderby_nosort/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_3.test) #### ★ Assuming all 10,143 tests still passes as _sqlite_ -Time: 0.429ms +Time: 1.823ms ---- ---- ---- ---- ---- ---- ---- ### 180/620 [`./test/index/orderby_nosort/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_4.test) #### ★ Assuming all 10,141 tests still passes as _sqlite_ -Time: 0.382ms +Time: 1.498ms ---- ---- ---- ---- ---- ---- ---- ### 181/620 [`./test/index/orderby_nosort/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_5.test) #### ★ Assuming all 10,142 tests still passes as _sqlite_ -Time: 0.549ms +Time: 0.590ms ---- ---- ---- ---- ---- ---- ---- ### 182/620 [`./test/index/orderby_nosort/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_6.test) #### ★ Assuming all 10,144 tests still passes as _sqlite_ -Time: 0.412ms +Time: 1.387ms ---- ---- ---- ---- ---- ---- ---- ### 183/620 [`./test/index/orderby_nosort/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_0.test) #### ★ Assuming all 11,040 tests still passes as _sqlite_ -Time: 0.421ms +Time: 5.427ms ---- ---- ---- ---- ---- ---- ---- ### 184/620 [`./test/index/orderby_nosort/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_1.test) #### ★ Assuming all 11,043 tests still passes as _sqlite_ -Time: 0.412ms +Time: 2.255ms ---- ---- ---- ---- ---- ---- ---- ### 185/620 [`./test/index/random/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_0.test) @@ -2031,7 +2031,7 @@ Expected: ["-953"] but got ["NULL"] * 790 failed * 92% was OK -Time: 18561.874ms +Time: 38550.737ms ---- ---- ---- ---- ---- ---- ---- ### 186/620 [`./test/index/random/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_1.test) @@ -2098,7 +2098,7 @@ Expected: ["445824"] but got ["NULL"] * 730 failed * 92% was OK -Time: 18642.417ms +Time: 30321.652ms ---- ---- ---- ---- ---- ---- ---- ### 187/620 [`./test/index/random/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_10.test) @@ -2165,7 +2165,7 @@ g is not defined * 850 failed * 91% was OK -Time: 18567.310ms +Time: 30884.063ms ---- ---- ---- ---- ---- ---- ---- ### 188/620 [`./test/index/random/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_11.test) @@ -2225,7 +2225,7 @@ g is not defined * 790 failed * 92% was OK -Time: 18448.347ms +Time: 33027.434ms ---- ---- ---- ---- ---- ---- ---- ### 189/620 [`./test/index/random/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_12.test) @@ -2285,7 +2285,7 @@ Expected: ["0","0","0","0","0","0"] but got ["akvhd","duptn","efltn","gwglv","ne * 860 failed * 91% was OK -Time: 20797.811ms +Time: 32928.724ms ---- ---- ---- ---- ---- ---- ---- ### 190/620 [`./test/index/random/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_13.test) @@ -2366,7 +2366,7 @@ Expected: ["NULL","NULL"] but got ["0","80"] * 885 failed * 91% was OK -Time: 19281.214ms +Time: 29682.781ms ---- ---- ---- ---- ---- ---- ---- ### 191/620 [`./test/index/random/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_14.test) @@ -2433,7 +2433,7 @@ Expected: ["NULL","30"] but got ["30","NULL"] * 815 failed * 91% was OK -Time: 18427.670ms +Time: 31564.108ms ---- ---- ---- ---- ---- ---- ---- ### 192/620 [`./test/index/random/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_2.test) @@ -2514,7 +2514,7 @@ SELECT - 45 FROM tab0 AS cor0 WHERE NOT + col1 * 41 / + + 82 BETWEEN - col3 AND * 910 failed * 90% was OK -Time: 18618.049ms +Time: 29075.632ms ---- ---- ---- ---- ---- ---- ---- ### 193/620 [`./test/index/random/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_3.test) @@ -2595,7 +2595,7 @@ Expected: ["-130"] but got ["NULL"] * 680 failed * 93% was OK -Time: 18505.896ms +Time: 28388.470ms ---- ---- ---- ---- ---- ---- ---- ### 194/620 [`./test/index/random/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_4.test) @@ -2655,7 +2655,7 @@ Expected: ["922"] but got ["NULL"] * 735 failed * 92% was OK -Time: 18918.783ms +Time: 25696.592ms ---- ---- ---- ---- ---- ---- ---- ### 195/620 [`./test/index/random/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_5.test) @@ -2708,7 +2708,7 @@ Expected: ["0","0","0"] but got ["amwpr","ehefd","uxbns"] * 735 failed * 92% was OK -Time: 18980.641ms +Time: 27470.526ms ---- ---- ---- ---- ---- ---- ---- ### 196/620 [`./test/index/random/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_6.test) @@ -2775,7 +2775,7 @@ Expected: ["0","0"] but got ["naijw","wodwv"] * 780 failed * 92% was OK -Time: 24105.563ms +Time: 23854.751ms ---- ---- ---- ---- ---- ---- ---- ### 197/620 [`./test/index/random/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_7.test) @@ -2835,7 +2835,7 @@ Expected: ["0"] but got ["hmsci"] * 675 failed * 93% was OK -Time: 23236.302ms +Time: 27071.134ms ---- ---- ---- ---- ---- ---- ---- ### 198/620 [`./test/index/random/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_8.test) @@ -2909,7 +2909,7 @@ Expected: ["0","0","0","0","0"] but got ["apjmo","dubev","ithfo","ktnfz","vzeio" * 745 failed * 92% was OK -Time: 21403.124ms +Time: 23615.220ms ---- ---- ---- ---- ---- ---- ---- ### 199/620 [`./test/index/random/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_9.test) @@ -2969,7 +2969,7 @@ Expected: ["0","0"] but got ["axwip","klkhp"] * 740 failed * 92% was OK -Time: 22327.347ms +Time: 22709.827ms ---- ---- ---- ---- ---- ---- ---- ### 200/620 [`./test/index/random/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_0.test) @@ -3036,7 +3036,7 @@ SELECT col0 * + - 7 FROM tab0 WHERE CAST ( col0 AS INTEGER ) NOT BETWEEN NULL AN * 715 failed * 92% was OK -Time: 29195.698ms +Time: 30728.445ms ---- ---- ---- ---- ---- ---- ---- ### 201/620 [`./test/index/random/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_1.test) @@ -3085,13 +3085,6 @@ Expected: ["NULL"] but got ["-531399"] ``` -```sql -SELECT ALL col2 AS col0, - col0 AS col1 FROM tab3 AS cor0 WHERE NOT ( NULL ) IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - ```sql SELECT col5 col5 FROM tab0 WHERE NOT ( ( col1 ) ) >= + ( - 80 ) * - 31 - col0 @@ -3117,7 +3110,7 @@ g is not defined * 655 failed * 93% was OK -Time: 30908.111ms +Time: 36392.076ms ---- ---- ---- ---- ---- ---- ---- ### 202/620 [`./test/index/random/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_0.test) @@ -3163,7 +3156,7 @@ Expected: ["0","NULL"] but got ["-51000","0"] * 70 failed * 96% was OK -Time: 15965.871ms +Time: 19747.184ms ---- ---- ---- ---- ---- ---- ---- ### 203/620 [`./test/index/random/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_1.test) @@ -3181,21 +3174,21 @@ Wrong conversion type * 5 failed * 99% was OK -Time: 2153.220ms +Time: 2553.016ms ---- ---- ---- ---- ---- ---- ---- ### 204/620 [`./test/index/random/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_2.test) #### ★ Assuming all 1,027 tests still passes as _sqlite_ -Time: 0.385ms +Time: 0.658ms ---- ---- ---- ---- ---- ---- ---- ### 205/620 [`./test/index/random/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_3.test) #### ★ Assuming all 1,033 tests still passes as _sqlite_ -Time: 0.358ms +Time: 0.527ms ---- ---- ---- ---- ---- ---- ---- ### 206/620 [`./test/index/random/1000/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_4.test) @@ -3213,7 +3206,7 @@ Wrong conversion type * 5 failed * 99% was OK -Time: 2099.216ms +Time: 2441.731ms ---- ---- ---- ---- ---- ---- ---- ### 207/620 [`./test/index/random/1000/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_5.test) @@ -3266,7 +3259,7 @@ g is not defined * 265 failed * 93% was OK -Time: 26692.580ms +Time: 50939.702ms ---- ---- ---- ---- ---- ---- ---- ### 208/620 [`./test/index/random/1000/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_6.test) @@ -3326,7 +3319,7 @@ Expected: ["750","79","2150","0","79","1716","0"] but got ["750","79","2150.540" * 725 failed * 93% was OK -Time: 71124.085ms +Time: 89561.007ms ---- ---- ---- ---- ---- ---- ---- ### 209/620 [`./test/index/random/1000/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_7.test) @@ -3393,7 +3386,7 @@ Expected: ["0","0","0","0","0"] but got ["ernxs","orpfh","pirjf","tbpkm","zphbq" * 780 failed * 92% was OK -Time: 63858.007ms +Time: 84723.283ms ---- ---- ---- ---- ---- ---- ---- ### 210/620 [`./test/index/random/1000/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_8.test) @@ -3446,13 +3439,13 @@ Correct amount of values returned but hash was different than expected. * 310 failed * 93% was OK -Time: 25646.166ms +Time: 32089.808ms ---- ---- ---- ---- ---- ---- ---- ### 211/620 [`./test/index/view/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_0.test) _Mimic sqlite_ -Time: 6.737ms +Time: 5.254ms ---- ---- ---- ---- ---- ---- ---- ### 212/620 [`./test/index/view/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_1.test) @@ -3501,7 +3494,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 91 failed * 4% was OK -Time: 2174.696ms +Time: 2705.934ms ---- ---- ---- ---- ---- ---- ---- ### 213/620 [`./test/index/view/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_2.test) @@ -3578,13 +3571,6 @@ Expected: ["6"] but got ["NULL"] ``` -```sql -SELECT * FROM view_3_tab3_360 - -Expected: ["2"] but got ["NULL"] -``` - - ```sql CREATE VIEW view_1_tab0_367 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL OR (((col0 < 64 AND (col0 BETWEEN 25 AND 41) AND (col4 >= 33.34) OR (col4 < 22.72 AND (col0 >= 61)) AND (col0 > 4) OR col0 >= 0 OR col0 >= 45 AND col3 IN (SELECT col0 FROM tab0 WHERE col3 > 42) AND col3 IS NULL AND col3 <= … @@ -3599,7 +3585,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 1,361 failed * 67% was OK -Time: 12566.076ms +Time: 16880.573ms ---- ---- ---- ---- ---- ---- ---- ### 214/620 [`./test/index/view/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_3.test) @@ -3676,6 +3662,13 @@ Expected: ["2","6","7"] but got ["NULL","NULL","NULL"] ``` +```sql +SELECT pk, col0 FROM view_2_tab2_406 + +Correct amount of values returned but hash was different than expected. +``` + + ```sql CREATE VIEW view_1_tab0_408 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL AND (((((col1 < 63.79))) OR col0 >= 35 AND col4 > 76.20 AND col0 = 84 OR col0 <= 76 AND col3 IN (SELECT col0 FROM tab0 WHERE col4 = 39.20 AND col3 <= 5))) @@ -3690,7 +3683,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 716 failed * 33% was OK -Time: 6501.161ms +Time: 9007.515ms ---- ---- ---- ---- ---- ---- ---- ### 215/620 [`./test/index/view/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_4.test) @@ -3781,7 +3774,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 1,526 failed * 76% was OK -Time: 13217.953ms +Time: 18936.083ms ---- ---- ---- ---- ---- ---- ---- ### 216/620 [`./test/index/view/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_5.test) @@ -3844,13 +3837,6 @@ Expected: ["0","2","3","4","5","7","9"] but got ["NULL","NULL","NULL","NULL","NU ``` -```sql -SELECT * FROM view_3_tab0_680 - -Expected: ["2","4","5"] but got ["NULL","NULL","NULL"] -``` - - ```sql SELECT * FROM view_3_tab0_687 @@ -3872,7 +3858,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 1,371 failed * 65% was OK -Time: 11997.614ms +Time: 17323.168ms ---- ---- ---- ---- ---- ---- ---- ### 217/620 [`./test/index/view/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_6.test) @@ -3963,7 +3949,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 806 failed * 45% was OK -Time: 7664.010ms +Time: 12387.081ms ---- ---- ---- ---- ---- ---- ---- ### 218/620 [`./test/index/view/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_7.test) @@ -4054,7 +4040,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 646 failed * 30% was OK -Time: 6030.245ms +Time: 9631.912ms ---- ---- ---- ---- ---- ---- ---- ### 219/620 [`./test/index/view/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_0.test) @@ -4096,7 +4082,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 677 failed * 12% was OK -Time: 4922.909ms +Time: 6704.087ms ---- ---- ---- ---- ---- ---- ---- ### 220/620 [`./test/index/view/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_1.test) @@ -4151,19 +4137,12 @@ SELECT * FROM view_3_tab0_271 Expected: ["93"] but got ["NULL"] ``` - -```sql -SELECT pk, col0 FROM view_1_tab0_296 UNION SELECT pk, col0 FROM view_2_tab0_296 - -44 results returned but expected 200 -``` - #### ☓ Ran 7,122 tests as _sqlite_ * 2,876 failed * 59% was OK -Time: 19133.434ms +Time: 26509.010ms ---- ---- ---- ---- ---- ---- ---- ### 221/620 [`./test/index/view/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_2.test) @@ -4198,7 +4177,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 457 failed * 9% was OK -Time: 3785.800ms +Time: 5136.453ms ---- ---- ---- ---- ---- ---- ---- ### 222/620 [`./test/index/view/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_3.test) @@ -4247,7 +4226,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 207 failed * 5% was OK -Time: 2560.616ms +Time: 3428.017ms ---- ---- ---- ---- ---- ---- ---- ### 223/620 [`./test/index/view/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_4.test) @@ -4317,7 +4296,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 2,712 failed * 59% was OK -Time: 17732.078ms +Time: 38492.646ms ---- ---- ---- ---- ---- ---- ---- ### 224/620 [`./test/index/view/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_5.test) @@ -4359,6 +4338,13 @@ Expected: ["29","43","46","51"] but got ["NULL","NULL","NULL","NULL"] ``` +```sql +SELECT pk, col0 FROM tab1 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) + +Correct amount of values returned but hash was different than expected. +``` + + ```sql CREATE VIEW view_1_tab0_901 AS SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= … @@ -4373,7 +4359,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 1,217 failed * 24% was OK -Time: 7817.327ms +Time: 18256.543ms ---- ---- ---- ---- ---- ---- ---- ### 225/620 [`./test/index/view/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/1000/slt_good_0.test) @@ -4394,13 +4380,6 @@ SELECT pk, col0 FROM view_1_tab0_739 UNION SELECT pk, col0 FROM view_2_tab0_739 ``` -```sql -SELECT pk, col0 FROM view_1_tab1_741 UNION SELECT pk, col0 FROM view_2_tab1_741 - -114 results returned but expected 2000 -``` - - ```sql CREATE VIEW view_1_tab0_742 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) @@ -4415,7 +4394,7 @@ _Fail found for statement setting up data so skipping rest of tests_ * 167 failed * 16% was OK -Time: 9382.748ms +Time: 15495.267ms ---- ---- ---- ---- ---- ---- ---- ### 226/620 [`./test/index/view/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10000/slt_good_0.test) @@ -4440,7 +4419,7 @@ SELECT pk, col0 FROM view_1_tab0_1 UNION SELECT pk, col0 FROM view_2_tab0_1 * 271 failed * 97% was OK -Time: 1037952.764ms +Time: 1179434.160ms ---- ---- ---- ---- ---- ---- ---- ### 227/620 [`./test/random/aggregates/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_0.test) @@ -4530,7 +4509,7 @@ SELECT DISTINCT * FROM tab2 cor0 JOIN tab2 cor1 ON + ( 90 ) IS NOT NULL, tab0 AS Parse error on line 1: ...+ ( 90 ) IS NOT NULL, tab0 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -4545,7 +4524,7 @@ Expected: ["24","NULL","40","NULL","59","NULL"] but got ["24.490","NULL","40.987 * 1,588 failed * 84% was OK -Time: 18970.329ms +Time: 27695.248ms ---- ---- ---- ---- ---- ---- ---- ### 228/620 [`./test/random/aggregates/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_1.test) @@ -4626,7 +4605,7 @@ Expected: ["NULL","NULL"] but got ["0"] * 1,374 failed * 86% was OK -Time: 18637.440ms +Time: 20058.655ms ---- ---- ---- ---- ---- ---- ---- ### 229/620 [`./test/random/aggregates/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_10.test) @@ -4721,7 +4700,7 @@ Expected: ["-99","NULL","0","NULL","0","NULL"] but got ["-0.476","NULL","-0.580" * 1,656 failed * 83% was OK -Time: 19247.064ms +Time: 25307.033ms ---- ---- ---- ---- ---- ---- ---- ### 230/620 [`./test/random/aggregates/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_100.test) @@ -4811,7 +4790,7 @@ SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL, tab1 AS cor2 Parse error on line 1: ...cor1 ON NULL IS NULL, tab1 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -4826,7 +4805,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,635 failed * 83% was OK -Time: 19586.281ms +Time: 19925.080ms ---- ---- ---- ---- ---- ---- ---- ### 231/620 [`./test/random/aggregates/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_101.test) @@ -4909,12 +4888,19 @@ SELECT - SUM ( + col0 ), SUM ( col1 ) FROM tab0 WHERE NOT ( + - col0 ) IS NOT NU Expected: ["NULL","NULL"] but got ["0","0"] ``` + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 * col0 col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-2601","-7225","-8281"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,677 failed * 83% was OK -Time: 19125.553ms +Time: 19555.319ms ---- ---- ---- ---- ---- ---- ---- ### 232/620 [`./test/random/aggregates/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_102.test) @@ -4995,7 +4981,7 @@ Expected: ["NULL","0","NULL","8"] but got ["0","0.319","0","0.980","0","8.700"] * 1,550 failed * 84% was OK -Time: 18757.360ms +Time: 27024.050ms ---- ---- ---- ---- ---- ---- ---- ### 233/620 [`./test/random/aggregates/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_103.test) @@ -5083,7 +5069,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,568 failed * 84% was OK -Time: 18989.841ms +Time: 31469.319ms ---- ---- ---- ---- ---- ---- ---- ### 234/620 [`./test/random/aggregates/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_104.test) @@ -5171,7 +5157,7 @@ Expected: ["NULL","NULL"] but got ["NULL","21"] * 1,607 failed * 83% was OK -Time: 19923.423ms +Time: 27058.225ms ---- ---- ---- ---- ---- ---- ---- ### 235/620 [`./test/random/aggregates/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_105.test) @@ -5245,7 +5231,7 @@ Expected: ["7803"] but got ["NULL"] * 1,667 failed * 83% was OK -Time: 19388.747ms +Time: 41459.569ms ---- ---- ---- ---- ---- ---- ---- ### 236/620 [`./test/random/aggregates/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_106.test) @@ -5328,12 +5314,19 @@ SELECT DISTINCT + col0 / + col2 col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 Expected: ["0","NULL","8","NULL"] but got ["0.319","0","0.980","0","8.700","0"] ``` + +```sql +SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT + - col1 ) * - - 14 * + + CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT + - col0 ) FROM tab1 + +Expected: ["NULL"] but got ["91"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,571 failed * 84% was OK -Time: 19317.219ms +Time: 39570.886ms ---- ---- ---- ---- ---- ---- ---- ### 237/620 [`./test/random/aggregates/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_107.test) @@ -5428,7 +5421,7 @@ Expected: ["NULL","111","NULL","195"] but got ["111","111","195","195"] * 1,519 failed * 84% was OK -Time: 18108.834ms +Time: 25715.806ms ---- ---- ---- ---- ---- ---- ---- ### 238/620 [`./test/random/aggregates/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_108.test) @@ -5530,7 +5523,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL" * 1,643 failed * 83% was OK -Time: 18201.872ms +Time: 24207.982ms ---- ---- ---- ---- ---- ---- ---- ### 239/620 [`./test/random/aggregates/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_109.test) @@ -5611,7 +5604,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON + 13 IS NOT NULL * 1,629 failed * 83% was OK -Time: 18299.550ms +Time: 24843.137ms ---- ---- ---- ---- ---- ---- ---- ### 240/620 [`./test/random/aggregates/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_11.test) @@ -5692,7 +5685,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 AS cor1 ON + 93 IS NOT NULL * 1,661 failed * 83% was OK -Time: 19188.013ms +Time: 33249.907ms ---- ---- ---- ---- ---- ---- ---- ### 241/620 [`./test/random/aggregates/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_110.test) @@ -5780,7 +5773,7 @@ Expected: ["NULL","NULL"] but got ["-198","234"] * 1,613 failed * 83% was OK -Time: 19378.994ms +Time: 25697.965ms ---- ---- ---- ---- ---- ---- ---- ### 242/620 [`./test/random/aggregates/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_111.test) @@ -5889,7 +5882,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL" * 1,651 failed * 83% was OK -Time: 19359.096ms +Time: 24308.937ms ---- ---- ---- ---- ---- ---- ---- ### 243/620 [`./test/random/aggregates/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_112.test) @@ -5970,7 +5963,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 46 + ( 6 * 1,566 failed * 84% was OK -Time: 19289.049ms +Time: 23867.862ms ---- ---- ---- ---- ---- ---- ---- ### 244/620 [`./test/random/aggregates/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_113.test) @@ -6051,7 +6044,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","114","0","13 * 1,598 failed * 84% was OK -Time: 20174.719ms +Time: 32473.129ms ---- ---- ---- ---- ---- ---- ---- ### 245/620 [`./test/random/aggregates/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_114.test) @@ -6146,7 +6139,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0"," * 1,582 failed * 84% was OK -Time: 19321.023ms +Time: 27373.555ms ---- ---- ---- ---- ---- ---- ---- ### 246/620 [`./test/random/aggregates/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_115.test) @@ -6202,6 +6195,13 @@ Wrong conversion type ``` +```sql +SELECT - col2 / col0 + 58 FROM tab0 + +Expected: ["55","57","58"] but got ["54.867","56.979","57.885"] +``` + + ```sql SELECT DISTINCT + - col0 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab2 AS cor0 @@ -6216,6 +6216,13 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - 98 BETWEEN + 3 - 22 AND col1 + - col0 ``` +```sql +SELECT - 24 / - 32 AS col1 FROM tab2 AS cor0 + +Expected: ["0","0","0"] but got ["0.750","0.750","0.750"] +``` + + ```sql SELECT + + MIN ( - col1 ) FROM tab0 WHERE NOT 52 BETWEEN col2 AND + + 60 @@ -6229,7 +6236,7 @@ SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL NOT BETWEEN 35 AND NULL Parse error on line 1: ... BETWEEN 35 AND NULL, tab2 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` #### ☓ Ran 10,012 tests as _sqlite_ @@ -6237,7 +6244,7 @@ Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARR * 1,565 failed * 84% was OK -Time: 19238.783ms +Time: 21724.444ms ---- ---- ---- ---- ---- ---- ---- ### 247/620 [`./test/random/aggregates/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_116.test) @@ -6325,7 +6332,7 @@ Expected: ["NULL","NULL"] but got ["10","-39"] * 1,618 failed * 83% was OK -Time: 19213.312ms +Time: 25696.517ms ---- ---- ---- ---- ---- ---- ---- ### 248/620 [`./test/random/aggregates/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_117.test) @@ -6374,6 +6381,13 @@ Query was expected to return results (but did not) ``` +```sql +SELECT + 64 / + + col2 col1 FROM tab0 + +Expected: ["0","1","6"] but got ["0.646","1.362","6.400"] +``` + + ```sql SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 26 ) IS NULL @@ -6402,13 +6416,6 @@ Expected: ["15","NULL","87","NULL","97","NULL"] but got ["NULL","NULL","NULL","N ``` -```sql -SELECT ALL col0 + col2 + + 35 / + col0 AS col0, - col2 AS col0 FROM tab1 - -Expected: ["144","-59","147","-96","159","-68"] but got ["-59","-59","-68","-68","-96","-96"] -``` - - ```sql SELECT ALL - COUNT ( * ) * + + 3 * + CAST ( NULL AS INTEGER ) AS col2, + MIN ( 73 ) FROM tab0 AS cor0 WHERE NULL < col1 @@ -6420,7 +6427,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 1,611 failed * 83% was OK -Time: 19388.326ms +Time: 25998.322ms ---- ---- ---- ---- ---- ---- ---- ### 249/620 [`./test/random/aggregates/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_118.test) @@ -6522,7 +6529,7 @@ Expected: ["NULL","20"] but got ["20","NULL"] * 1,508 failed * 84% was OK -Time: 19199.653ms +Time: 35443.151ms ---- ---- ---- ---- ---- ---- ---- ### 250/620 [`./test/random/aggregates/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_119.test) @@ -6605,7 +6612,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab2 cor1 ON NOT NULL IS NULL, ta Parse error on line 1: ... ON NOT NULL IS NULL, tab2 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` #### ☓ Ran 10,012 tests as _sqlite_ @@ -6613,7 +6620,7 @@ Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARR * 1,602 failed * 83% was OK -Time: 19520.183ms +Time: 26870.835ms ---- ---- ---- ---- ---- ---- ---- ### 251/620 [`./test/random/aggregates/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_12.test) @@ -6708,7 +6715,7 @@ Expected: ["0","NULL"] but got ["NULL"] * 1,646 failed * 83% was OK -Time: 19407.167ms +Time: 40546.174ms ---- ---- ---- ---- ---- ---- ---- ### 252/620 [`./test/random/aggregates/slt_good_120.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_120.test) @@ -6798,7 +6805,7 @@ SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL, tab0 AS cor2 Parse error on line 1: ... ON NOT NULL IS NULL, tab0 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -6820,7 +6827,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0"," * 1,601 failed * 84% was OK -Time: 19404.024ms +Time: 35986.322ms ---- ---- ---- ---- ---- ---- ---- ### 253/620 [`./test/random/aggregates/slt_good_121.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_121.test) @@ -6908,7 +6915,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 37 ) IS NOT * 1,582 failed * 84% was OK -Time: 19339.163ms +Time: 40817.018ms ---- ---- ---- ---- ---- ---- ---- ### 254/620 [`./test/random/aggregates/slt_good_122.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_122.test) @@ -6978,6 +6985,13 @@ SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 94 ) IS ``` +```sql +SELECT - + 38 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 + +Wrong conversion type +``` + + ```sql SELECT + 72 / - CAST ( NULL AS INTEGER ) + + + 25 AS col2, + col0 * + col1 + - ( + + ( ( + 81 ) ) ) / - col0 FROM tab1 cor0 @@ -6996,7 +7010,7 @@ Expected: ["-1457"] but got ["NULL"] * 1,628 failed * 83% was OK -Time: 20605.164ms +Time: 22608.324ms ---- ---- ---- ---- ---- ---- ---- ### 255/620 [`./test/random/aggregates/slt_good_123.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_123.test) @@ -7059,6 +7073,13 @@ g is not defined ``` +```sql +SELECT DISTINCT - col0 + + 70 + 39 / + - 10 AS col2 FROM tab1 + +Expected: ["-18","-24","16"] but got ["-18.900","-24.900","15.100"] +``` + + ```sql SELECT MAX ( + col1 ) AS col2, - SUM ( ALL - - col0 ) * + + 62 + - 56 * COUNT ( DISTINCT - + col1 ) - 55 FROM tab1 AS cor0 WHERE + col2 IS NULL @@ -7084,7 +7105,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 90 IS NU * 1,644 failed * 83% was OK -Time: 19597.670ms +Time: 23805.014ms ---- ---- ---- ---- ---- ---- ---- ### 256/620 [`./test/random/aggregates/slt_good_124.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_124.test) @@ -7172,7 +7193,7 @@ Expected: ["47"] but got ["NULL"] * 1,605 failed * 83% was OK -Time: 19668.248ms +Time: 44945.492ms ---- ---- ---- ---- ---- ---- ---- ### 257/620 [`./test/random/aggregates/slt_good_125.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_125.test) @@ -7246,7 +7267,7 @@ Expected: ["51","NULL","85","NULL","91","NULL"] but got ["NULL","NULL","NULL","N * 1,669 failed * 83% was OK -Time: 19493.315ms +Time: 34958.692ms ---- ---- ---- ---- ---- ---- ---- ### 258/620 [`./test/random/aggregates/slt_good_126.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_126.test) @@ -7295,13 +7316,6 @@ Expected: ["NULL","-3584"] but got ["3","-3584"] ``` -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + MAX ( - col1 ) FROM tab2 - -Expected: ["NULL"] but got ["-51"] -``` - - ```sql SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - - 23 IS NULL @@ -7330,20 +7344,13 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0"," ``` -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + + col1 ) FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - ```sql SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT 1 IS NOT NULL, tab1 AS cor2 Parse error on line 1: ...ON NOT 1 IS NOT NULL, tab1 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -7358,7 +7365,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 1,599 failed * 84% was OK -Time: 19332.766ms +Time: 25766.036ms ---- ---- ---- ---- ---- ---- ---- ### 259/620 [`./test/random/aggregates/slt_good_127.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_127.test) @@ -7432,7 +7439,7 @@ Expected: ["-3"] but got ["NULL"] * 1,629 failed * 83% was OK -Time: 19692.740ms +Time: 31452.722ms ---- ---- ---- ---- ---- ---- ---- ### 260/620 [`./test/random/aggregates/slt_good_128.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_128.test) @@ -7520,7 +7527,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","210","0","38 * 1,645 failed * 83% was OK -Time: 19959.498ms +Time: 41809.297ms ---- ---- ---- ---- ---- ---- ---- ### 261/620 [`./test/random/aggregates/slt_good_129.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_129.test) @@ -7583,6 +7590,13 @@ Expected: ["-59"] but got ["NULL"] ``` +```sql +SELECT ALL - 47 + - col2 * + CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab2 AS cor0 + +Wrong conversion type +``` + + ```sql SELECT DISTINCT * FROM ( tab1 cor0 CROSS JOIN tab1 ) @@ -7594,7 +7608,7 @@ SELECT DISTINCT * FROM ( tab1 cor0 CROSS JOIN tab1 ) * 132 failed * 83% was OK -Time: 1521.642ms +Time: 10693.856ms ---- ---- ---- ---- ---- ---- ---- ### 262/620 [`./test/random/aggregates/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_13.test) @@ -7663,14 +7677,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON + + 44 IS NOT NUL Parse error on line 1: ...N + + 44 IS NOT NULL, tab0 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… -``` - - -```sql -SELECT ALL - 44 * col2 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["-1012","-1760","-2552"] +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -7706,7 +7713,7 @@ Expected: ["46","NULL","64","NULL","75","NULL"] but got ["NULL","NULL","NULL","N * 1,532 failed * 84% was OK -Time: 19204.261ms +Time: 41207.932ms ---- ---- ---- ---- ---- ---- ---- ### 263/620 [`./test/random/aggregates/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_14.test) @@ -7762,13 +7769,20 @@ Correct amount of values returned but hash was different than expected. ``` +```sql +SELECT + col2 / col1 * - 65 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL + +Expected: ["-6435","0","0"] but got ["-30.952","-37.716","-6435"] +``` + + ```sql SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NULL BETWEEN - ( + + 34 ) AND - 8, tab2 AS cor2 Parse error on line 1: ...- ( + + 34 ) AND - 8, tab2 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -7797,7 +7811,7 @@ Expected: ["NULL","NULL"] but got ["NULL","0"] * 1,667 failed * 83% was OK -Time: 19511.832ms +Time: 24709.612ms ---- ---- ---- ---- ---- ---- ---- ### 264/620 [`./test/random/aggregates/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_15.test) @@ -7892,7 +7906,7 @@ Expected: ["0","NULL"] but got ["NULL"] * 1,625 failed * 83% was OK -Time: 19448.003ms +Time: 26978.999ms ---- ---- ---- ---- ---- ---- ---- ### 265/620 [`./test/random/aggregates/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_16.test) @@ -7955,13 +7969,6 @@ g is not defined ``` -```sql -SELECT ALL - COUNT ( * ) col1 FROM tab1 cor0 WHERE NOT + col1 NOT BETWEEN + col0 AND NULL - -Expected: ["0"] but got ["-3"] -``` - - ```sql SELECT ALL - CAST ( NULL AS INTEGER ), + col1 + CAST ( NULL AS INTEGER ) - 37 + + - 62 + + col0 AS col0 FROM tab1 AS cor0 @@ -8022,7 +8029,7 @@ Expected: ["15","NULL","87","NULL","97","NULL"] but got ["NULL","NULL"] * 1,574 failed * 84% was OK -Time: 19618.744ms +Time: 36529.991ms ---- ---- ---- ---- ---- ---- ---- ### 266/620 [`./test/random/aggregates/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_17.test) @@ -8103,7 +8110,7 @@ SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT - 54 IS N * 1,565 failed * 84% was OK -Time: 19504.871ms +Time: 35601.288ms ---- ---- ---- ---- ---- ---- ---- ### 267/620 [`./test/random/aggregates/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_18.test) @@ -8165,7 +8172,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL, tab1 AS c Parse error on line 1: ...cor1 ON NULL IS NULL, tab1 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -8196,12 +8203,19 @@ SELECT - MIN ( - + 28 ) col1, 1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL Expected: ["NULL","1"] but got ["1","NULL"] ``` + +```sql +SELECT + 50 AS col1, 83 / - 6 FROM tab2 AS cor0 + +Expected: ["50","-13","50","-13","50","-13"] but got ["50","-13.833","50","-13.833","50","-13.833"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,583 failed * 84% was OK -Time: 19714.780ms +Time: 26036.439ms ---- ---- ---- ---- ---- ---- ---- ### 268/620 [`./test/random/aggregates/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_19.test) @@ -8282,7 +8296,7 @@ Expected: ["0","NULL"] but got ["NULL"] * 1,643 failed * 83% was OK -Time: 19607.085ms +Time: 29410.877ms ---- ---- ---- ---- ---- ---- ---- ### 269/620 [`./test/random/aggregates/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_2.test) @@ -8356,7 +8370,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,508 failed * 84% was OK -Time: 19012.506ms +Time: 25371.863ms ---- ---- ---- ---- ---- ---- ---- ### 270/620 [`./test/random/aggregates/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_20.test) @@ -8451,7 +8465,7 @@ Expected: ["1"] but got ["NULL"] * 1,606 failed * 83% was OK -Time: 19392.626ms +Time: 33583.098ms ---- ---- ---- ---- ---- ---- ---- ### 271/620 [`./test/random/aggregates/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_21.test) @@ -8539,7 +8553,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,591 failed * 84% was OK -Time: 19930.773ms +Time: 128667.925ms ---- ---- ---- ---- ---- ---- ---- ### 272/620 [`./test/random/aggregates/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_22.test) @@ -8620,7 +8634,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0"," * 1,661 failed * 83% was OK -Time: 19633.969ms +Time: 193635.254ms ---- ---- ---- ---- ---- ---- ---- ### 273/620 [`./test/random/aggregates/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_23.test) @@ -8710,7 +8724,7 @@ SELECT DISTINCT * FROM tab0 cor0 INNER JOIN tab1 AS cor1 ON NOT + 23 IS NULL, ta Parse error on line 1: ... ON NOT + 23 IS NULL, tab0 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` #### ☓ Ran 10,012 tests as _sqlite_ @@ -8718,7 +8732,7 @@ Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARR * 1,601 failed * 84% was OK -Time: 19616.908ms +Time: 23008.325ms ---- ---- ---- ---- ---- ---- ---- ### 274/620 [`./test/random/aggregates/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_24.test) @@ -8813,7 +8827,7 @@ Expected: ["10","NULL","11","NULL","6","NULL"] but got ["10.625","NULL","11.375" * 1,587 failed * 84% was OK -Time: 19218.614ms +Time: 33849.167ms ---- ---- ---- ---- ---- ---- ---- ### 275/620 [`./test/random/aggregates/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_25.test) @@ -8901,7 +8915,7 @@ Expected: ["NULL","0","NULL","1"] but got ["NULL","0.831","NULL","0.902","NULL", * 1,691 failed * 83% was OK -Time: 19529.934ms +Time: 39066.739ms ---- ---- ---- ---- ---- ---- ---- ### 276/620 [`./test/random/aggregates/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_26.test) @@ -9003,7 +9017,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","-10","NUL * 1,613 failed * 83% was OK -Time: 19645.578ms +Time: 30092.517ms ---- ---- ---- ---- ---- ---- ---- ### 277/620 [`./test/random/aggregates/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_27.test) @@ -9091,7 +9105,7 @@ Expected: ["10"] but got ["NULL"] * 1,634 failed * 83% was OK -Time: 19441.756ms +Time: 27654.343ms ---- ---- ---- ---- ---- ---- ---- ### 278/620 [`./test/random/aggregates/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_28.test) @@ -9168,6 +9182,13 @@ Expected: ["-96"] but got ["NULL"] ``` +```sql +SELECT - ( + - col0 ) AS col1, - col2 AS col1 FROM tab1 AS cor0 + +Expected: ["51","-96","85","-59","91","-68"] but got ["-59","-59","-68","-68","-96","-96"] +``` + + ```sql SELECT + CAST ( NULL AS INTEGER ), 42 * + 65 * MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 @@ -9179,7 +9200,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,659 failed * 83% was OK -Time: 19579.444ms +Time: 55057.375ms ---- ---- ---- ---- ---- ---- ---- ### 279/620 [`./test/random/aggregates/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_29.test) @@ -9253,7 +9274,7 @@ Expected: ["0","NULL","1","NULL"] but got ["0.019","0","0.404","0","1.558","0"] * 1,653 failed * 83% was OK -Time: 19603.029ms +Time: 34488.560ms ---- ---- ---- ---- ---- ---- ---- ### 280/620 [`./test/random/aggregates/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_3.test) @@ -9348,7 +9369,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","51","0","67" * 1,666 failed * 83% was OK -Time: 19821.931ms +Time: 29338.330ms ---- ---- ---- ---- ---- ---- ---- ### 281/620 [`./test/random/aggregates/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_30.test) @@ -9443,7 +9464,7 @@ Expected: ["NULL","NULL"] but got ["0"] * 1,615 failed * 83% was OK -Time: 20135.544ms +Time: 32415.721ms ---- ---- ---- ---- ---- ---- ---- ### 282/620 [`./test/random/aggregates/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_31.test) @@ -9478,13 +9499,6 @@ Query was expected to return results (but did not) ``` -```sql -SELECT DISTINCT - 12 * - 13 + - col0 / 53 FROM tab0 - -Expected: ["155","156"] but got ["154.170","154.358","155.717"] -``` - - ```sql SELECT DISTINCT 91 + - COUNT ( CAST ( + + col1 AS REAL ) ) FROM tab1 @@ -9538,7 +9552,7 @@ Expected: ["NULL","64"] but got ["0","NULL"] * 1,691 failed * 83% was OK -Time: 19669.412ms +Time: 37791.065ms ---- ---- ---- ---- ---- ---- ---- ### 283/620 [`./test/random/aggregates/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_32.test) @@ -9607,7 +9621,7 @@ SELECT DISTINCT 61 AS col0 FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL Parse error on line 1: ...NOT NULL IS NOT NULL, tab0 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -9636,7 +9650,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 99 IS NULL * 1,635 failed * 83% was OK -Time: 19534.389ms +Time: 75161.621ms ---- ---- ---- ---- ---- ---- ---- ### 284/620 [`./test/random/aggregates/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_33.test) @@ -9712,7 +9726,7 @@ SELECT * FROM tab2 AS cor0 JOIN tab2 cor1 ON NOT NULL BETWEEN NULL AND NULL, tab Parse error on line 1: ...ETWEEN NULL AND NULL, tab1 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -9734,7 +9748,7 @@ Expected: ["NULL","NULL"] but got ["75","0"] * 1,681 failed * 83% was OK -Time: 19512.925ms +Time: 85545.943ms ---- ---- ---- ---- ---- ---- ---- ### 285/620 [`./test/random/aggregates/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_34.test) @@ -9822,7 +9836,7 @@ Expected: ["-78"] but got ["NULL"] * 1,501 failed * 85% was OK -Time: 18974.508ms +Time: 75826.504ms ---- ---- ---- ---- ---- ---- ---- ### 286/620 [`./test/random/aggregates/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_35.test) @@ -9917,7 +9931,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,539 failed * 84% was OK -Time: 19105.725ms +Time: 70711.446ms ---- ---- ---- ---- ---- ---- ---- ### 287/620 [`./test/random/aggregates/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_36.test) @@ -9980,13 +9994,6 @@ SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 ) ``` -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + 1 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["1","1","1"] -``` - - ```sql SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) / + + 5 / - 48 * + - 22 + + + SUM ( col2 ) FROM tab0 @@ -10012,7 +10019,7 @@ Expected: ["NULL","1"] but got ["NULL","1.386"] * 1,546 failed * 84% was OK -Time: 19293.208ms +Time: 69755.548ms ---- ---- ---- ---- ---- ---- ---- ### 288/620 [`./test/random/aggregates/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_37.test) @@ -10093,7 +10100,7 @@ Expected: ["NULL","NULL"] but got ["56","83"] * 1,573 failed * 84% was OK -Time: 19452.552ms +Time: 50625.688ms ---- ---- ---- ---- ---- ---- ---- ### 289/620 [`./test/random/aggregates/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_38.test) @@ -10195,7 +10202,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 1,565 failed * 84% was OK -Time: 20291.025ms +Time: 48500.656ms ---- ---- ---- ---- ---- ---- ---- ### 290/620 [`./test/random/aggregates/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_39.test) @@ -10283,7 +10290,7 @@ Expected: ["85"] but got ["NULL"] * 1,597 failed * 84% was OK -Time: 19691.305ms +Time: 24395.897ms ---- ---- ---- ---- ---- ---- ---- ### 291/620 [`./test/random/aggregates/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_4.test) @@ -10385,7 +10392,7 @@ Expected: ["-77"] but got ["NULL"] * 1,688 failed * 83% was OK -Time: 19712.108ms +Time: 31042.253ms ---- ---- ---- ---- ---- ---- ---- ### 292/620 [`./test/random/aggregates/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_40.test) @@ -10473,7 +10480,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,597 failed * 84% was OK -Time: 19255.127ms +Time: 39714.892ms ---- ---- ---- ---- ---- ---- ---- ### 293/620 [`./test/random/aggregates/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_41.test) @@ -10561,7 +10568,7 @@ Expected: ["1"] but got ["NULL"] * 1,464 failed * 85% was OK -Time: 18694.601ms +Time: 63638.909ms ---- ---- ---- ---- ---- ---- ---- ### 294/620 [`./test/random/aggregates/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_42.test) @@ -10625,16 +10632,16 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","46","0","64" ```sql -SELECT ALL col0 / ( - - 20 ) FROM tab1 AS cor0 +SELECT DISTINCT 82 / + - col1 * + CAST ( NULL AS INTEGER ) col0, col1 / + col0 AS col1 FROM tab2 AS cor0 -Expected: ["2","4","4"] but got ["2.550","4.250","4.550"] +Expected: ["NULL","0","NULL","1"] but got ["NULL","0.893","NULL","1.109","NULL","1.203"] ``` ```sql -SELECT DISTINCT 82 / + - col1 * + CAST ( NULL AS INTEGER ) col0, col1 / + col0 AS col1 FROM tab2 AS cor0 +SELECT - SUM ( DISTINCT - 22 ) * - ( COUNT ( * ) ) AS col2, - 91 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 -Expected: ["NULL","0","NULL","1"] but got ["NULL","0.893","NULL","1.109","NULL","1.203"] +Expected: ["-66","NULL"] but got ["-66","0"] ``` @@ -10663,7 +10670,7 @@ Expected: ["NULL","NULL"] but got ["0","3"] * 1,530 failed * 84% was OK -Time: 19078.258ms +Time: 55585.265ms ---- ---- ---- ---- ---- ---- ---- ### 295/620 [`./test/random/aggregates/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_43.test) @@ -10751,7 +10758,7 @@ Expected: ["46"] but got ["NULL"] * 1,572 failed * 84% was OK -Time: 18991.451ms +Time: 29416.812ms ---- ---- ---- ---- ---- ---- ---- ### 296/620 [`./test/random/aggregates/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_44.test) @@ -10832,7 +10839,7 @@ Expected: ["NULL","NULL"] but got ["-23","-19","-40","-19","-58","-19"] * 1,597 failed * 84% was OK -Time: 19083.235ms +Time: 37036.915ms ---- ---- ---- ---- ---- ---- ---- ### 297/620 [`./test/random/aggregates/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_45.test) @@ -10920,7 +10927,7 @@ Expected: ["NULL","NULL"] but got ["NULL","0"] * 1,531 failed * 84% was OK -Time: 19247.699ms +Time: 33947.287ms ---- ---- ---- ---- ---- ---- ---- ### 298/620 [`./test/random/aggregates/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_46.test) @@ -10996,12 +11003,19 @@ SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT N 18 results returned but expected 54 ``` + +```sql +SELECT DISTINCT + COUNT ( * ) + - 82 / - 77 FROM tab2 + +Expected: ["4"] but got ["4.065"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,606 failed * 83% was OK -Time: 19154.187ms +Time: 43164.776ms ---- ---- ---- ---- ---- ---- ---- ### 299/620 [`./test/random/aggregates/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_47.test) @@ -11070,7 +11084,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL > NULL, tab2 Parse error on line 1: ... cor1 ON NULL > NULL, tab2 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -11099,7 +11113,7 @@ Expected: ["NULL","0","NULL","2","NULL","42"] but got ["NULL","0.519","NULL","2" * 1,605 failed * 83% was OK -Time: 19156.008ms +Time: 47541.571ms ---- ---- ---- ---- ---- ---- ---- ### 300/620 [`./test/random/aggregates/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_48.test) @@ -11180,7 +11194,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 1,514 failed * 84% was OK -Time: 19080.676ms +Time: 42903.790ms ---- ---- ---- ---- ---- ---- ---- ### 301/620 [`./test/random/aggregates/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_49.test) @@ -11250,6 +11264,13 @@ Expected: ["NULL","NULL"] but got ["0","0"] ``` +```sql +SELECT DISTINCT - + 69 / col2 AS col0 FROM tab2 AS cor0 + +Expected: ["-1","-3"] but got ["-1.190","-1.725","-3"] +``` + + ```sql SELECT ALL + + col1 * + + col2 + + 60 + CAST ( NULL AS INTEGER ), col1 / 83 * + - 27 * - 57 + - - 3 - - col1 + + 80 - - col1 * CAST ( NULL AS INTEGER ) * + - col1 FROM tab1 cor0 @@ -11268,7 +11289,7 @@ Expected: ["0"] but got ["NULL"] * 1,539 failed * 84% was OK -Time: 19494.239ms +Time: 46048.803ms ---- ---- ---- ---- ---- ---- ---- ### 302/620 [`./test/random/aggregates/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_5.test) @@ -11330,7 +11351,7 @@ SELECT * FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL, tab1 Parse error on line 1: ...NOT NULL IS NOT NULL, tab1 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -11359,7 +11380,7 @@ SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NULL IS NULL * 1,632 failed * 83% was OK -Time: 19478.344ms +Time: 46033.496ms ---- ---- ---- ---- ---- ---- ---- ### 303/620 [`./test/random/aggregates/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_50.test) @@ -11447,7 +11468,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,543 failed * 84% was OK -Time: 19190.229ms +Time: 42894.992ms ---- ---- ---- ---- ---- ---- ---- ### 304/620 [`./test/random/aggregates/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_51.test) @@ -11510,6 +11531,13 @@ Query was expected to return results (but did not) ``` +```sql +SELECT - 66 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-66","-66","-66"] +``` + + ```sql SELECT DISTINCT - + col1 / - + 40 - - CAST ( NULL AS INTEGER ) / + 96 AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -11542,7 +11570,7 @@ Expected: ["-68","NULL","-8","NULL","12","NULL"] but got ["NULL","NULL","NULL"," * 1,585 failed * 84% was OK -Time: 19042.982ms +Time: 29510.961ms ---- ---- ---- ---- ---- ---- ---- ### 305/620 [`./test/random/aggregates/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_52.test) @@ -11637,7 +11665,7 @@ Expected: ["NULL","94"] but got ["94","NULL"] * 1,491 failed * 85% was OK -Time: 18697.389ms +Time: 27170.077ms ---- ---- ---- ---- ---- ---- ---- ### 306/620 [`./test/random/aggregates/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_53.test) @@ -11718,7 +11746,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0"," * 1,596 failed * 84% was OK -Time: 19032.973ms +Time: 35717.293ms ---- ---- ---- ---- ---- ---- ---- ### 307/620 [`./test/random/aggregates/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_54.test) @@ -11813,7 +11841,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0"," * 1,558 failed * 84% was OK -Time: 19279.710ms +Time: 33642.505ms ---- ---- ---- ---- ---- ---- ---- ### 308/620 [`./test/random/aggregates/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_55.test) @@ -11894,7 +11922,7 @@ Expected: ["167"] but got ["NULL"] * 1,521 failed * 84% was OK -Time: 19006.730ms +Time: 45977.324ms ---- ---- ---- ---- ---- ---- ---- ### 309/620 [`./test/random/aggregates/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_56.test) @@ -11975,7 +12003,7 @@ Expected: ["NULL","0"] but got ["NULL","0.086"] * 1,544 failed * 84% was OK -Time: 19636.382ms +Time: 40321.754ms ---- ---- ---- ---- ---- ---- ---- ### 310/620 [`./test/random/aggregates/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_57.test) @@ -12063,7 +12091,7 @@ SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT ( NULL ) * 1,569 failed * 84% was OK -Time: 20067.364ms +Time: 43019.640ms ---- ---- ---- ---- ---- ---- ---- ### 311/620 [`./test/random/aggregates/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_58.test) @@ -12151,7 +12179,7 @@ Expected: ["0","NULL"] but got ["NULL"] * 1,477 failed * 85% was OK -Time: 19433.008ms +Time: 45276.304ms ---- ---- ---- ---- ---- ---- ---- ### 312/620 [`./test/random/aggregates/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_59.test) @@ -12214,13 +12242,6 @@ Expected: ["195"] but got ["NULL"] ``` -```sql -SELECT AVG ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - ```sql SELECT DISTINCT - + 71 / - - col0 AS col2, 78 + - - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0 @@ -12241,7 +12262,7 @@ SELECT ALL * FROM tab1 cor0 JOIN tab0 cor1 ON NOT + + 44 IS NULL, tab2 AS cor2 Parse error on line 1: ...N NOT + + 44 IS NULL, tab2 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` #### ☓ Ran 10,012 tests as _sqlite_ @@ -12249,7 +12270,7 @@ Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARR * 1,519 failed * 84% was OK -Time: 19275.441ms +Time: 52198.890ms ---- ---- ---- ---- ---- ---- ---- ### 313/620 [`./test/random/aggregates/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_6.test) @@ -12326,6 +12347,13 @@ SELECT * FROM tab1 cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL < ( NULL ) ``` +```sql +SELECT DISTINCT - col2 / + col0 FROM tab2 AS cor0 WHERE - 73 IS NOT NULL + +Expected: ["0"] but got ["-0.500","-0.625","-0.773"] +``` + + ```sql SELECT DISTINCT 9 + COUNT ( * ) AS col2, AVG ( DISTINCT + + col2 ) col2, - MAX ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL @@ -12337,7 +12365,7 @@ Expected: ["9","NULL","NULL"] but got ["NULL","NULL"] * 1,649 failed * 83% was OK -Time: 19417.843ms +Time: 33952.649ms ---- ---- ---- ---- ---- ---- ---- ### 314/620 [`./test/random/aggregates/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_60.test) @@ -12425,7 +12453,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,610 failed * 83% was OK -Time: 19290.318ms +Time: 29564.517ms ---- ---- ---- ---- ---- ---- ---- ### 315/620 [`./test/random/aggregates/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_61.test) @@ -12501,19 +12529,12 @@ SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT + 73 IS NULL 18 results returned but expected 54 ``` - -```sql -SELECT col0 * + col1 FROM tab1 WHERE ( NOT - col0 BETWEEN col0 AND col1 ) - -Query was expected to return results (but did not) -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 1,533 failed * 84% was OK -Time: 19245.549ms +Time: 42072.470ms ---- ---- ---- ---- ---- ---- ---- ### 316/620 [`./test/random/aggregates/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_62.test) @@ -12608,7 +12629,7 @@ Expected: ["NULL","24"] but got ["24","NULL"] * 1,496 failed * 85% was OK -Time: 19266.273ms +Time: 34402.646ms ---- ---- ---- ---- ---- ---- ---- ### 317/620 [`./test/random/aggregates/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_63.test) @@ -12692,20 +12713,13 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] ``` -```sql -SELECT + ( - 77 ) / - ( + col2 ) AS col0 FROM tab2 AS cor0 - -Expected: ["1","1","3"] but got ["1.328","1.925","3.348"] -``` - - ```sql SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 cor1 ON NULL IS NULL, tab1 AS cor2 Parse error on line 1: ...cor1 ON NULL IS NULL, tab1 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -12727,7 +12741,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-14","0","-4 * 1,467 failed * 85% was OK -Time: 19706.416ms +Time: 40379.256ms ---- ---- ---- ---- ---- ---- ---- ### 318/620 [`./test/random/aggregates/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_64.test) @@ -12810,7 +12824,7 @@ SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON NULL <> NULL, tab1 AS Parse error on line 1: ...cor1 ON NULL <> NULL, tab1 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -12832,7 +12846,7 @@ Expected: ["NULL","NULL"] but got ["0","-37"] * 1,567 failed * 84% was OK -Time: 19456.696ms +Time: 46405.744ms ---- ---- ---- ---- ---- ---- ---- ### 319/620 [`./test/random/aggregates/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_65.test) @@ -12888,6 +12902,13 @@ g is not defined ``` +```sql +SELECT ALL CAST ( SUM ( - + 82 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 + +g is not defined +``` + + ```sql SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 50 IS NOT NULL @@ -12922,7 +12943,7 @@ SELECT COUNT ( * ) col1 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL, Parse error on line 1: ... ON NOT NULL IS NULL, tab0 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` #### ☓ Ran 10,012 tests as _sqlite_ @@ -12930,7 +12951,7 @@ Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARR * 1,558 failed * 84% was OK -Time: 19187.953ms +Time: 34152.893ms ---- ---- ---- ---- ---- ---- ---- ### 320/620 [`./test/random/aggregates/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_66.test) @@ -12986,13 +13007,6 @@ Correct amount of values returned but hash was different than expected. ``` -```sql -SELECT ALL - + 26 * CAST ( + + col2 AS INTEGER ) col2, + ( + ( + ( col1 ) ) ) AS col2 FROM tab0 AS cor0 - -Expected: ["-1222","81","-2574","1","-260","21"] but got ["1","1","21","21","81","81"] -``` - - ```sql SELECT DISTINCT col0 / - 40, + col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 @@ -13025,7 +13039,7 @@ Expected: ["NULL","NULL"] but got ["NULL","0"] * 1,534 failed * 84% was OK -Time: 19821.947ms +Time: 25955.969ms ---- ---- ---- ---- ---- ---- ---- ### 321/620 [`./test/random/aggregates/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_67.test) @@ -13095,13 +13109,6 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0"," ``` -```sql -SELECT DISTINCT + COUNT ( ALL col2 ) * + + COUNT ( * ) + + - 6 + - - CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL"] but got ["3"] -``` - - ```sql SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL ) @@ -13120,7 +13127,7 @@ Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["NULL","NULL","NULL" * 1,602 failed * 83% was OK -Time: 19225.204ms +Time: 38653.365ms ---- ---- ---- ---- ---- ---- ---- ### 322/620 [`./test/random/aggregates/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_68.test) @@ -13208,7 +13215,7 @@ Expected: ["10","NULL","28","NULL","94","NULL"] but got ["NULL","NULL"] * 1,543 failed * 84% was OK -Time: 19334.341ms +Time: 35230.790ms ---- ---- ---- ---- ---- ---- ---- ### 323/620 [`./test/random/aggregates/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_69.test) @@ -13289,7 +13296,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,505 failed * 84% was OK -Time: 19067.825ms +Time: 29559.427ms ---- ---- ---- ---- ---- ---- ---- ### 324/620 [`./test/random/aggregates/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_7.test) @@ -13393,7 +13400,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 cor1 ON NOT 86 IS NOT NULL, t Parse error on line 1: ...N NOT 86 IS NOT NULL, tab0 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` #### ☓ Ran 10,012 tests as _sqlite_ @@ -13401,7 +13408,7 @@ Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARR * 1,634 failed * 83% was OK -Time: 19350.289ms +Time: 33920.505ms ---- ---- ---- ---- ---- ---- ---- ### 325/620 [`./test/random/aggregates/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_70.test) @@ -13478,13 +13485,6 @@ Expected: ["NULL","NULL"] but got ["0","0"] ``` -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - ```sql SELECT CAST ( NULL AS INTEGER ), AVG ( ALL - + col2 ) - AVG ( col2 ) + + AVG ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL = - 30 @@ -13496,7 +13496,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 1,578 failed * 84% was OK -Time: 19220.751ms +Time: 37933.921ms ---- ---- ---- ---- ---- ---- ---- ### 326/620 [`./test/random/aggregates/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_71.test) @@ -13577,7 +13577,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-2310","35","-24 * 1,566 failed * 84% was OK -Time: 19281.846ms +Time: 35037.220ms ---- ---- ---- ---- ---- ---- ---- ### 327/620 [`./test/random/aggregates/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_72.test) @@ -13653,7 +13653,7 @@ SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON - 83 = NULL, tab1 AS cor2 Parse error on line 1: ... cor1 ON - 83 = NULL, tab1 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -13668,7 +13668,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( 8 ) IS NOT NULL * 1,538 failed * 84% was OK -Time: 19255.257ms +Time: 33858.746ms ---- ---- ---- ---- ---- ---- ---- ### 328/620 [`./test/random/aggregates/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_73.test) @@ -13777,7 +13777,7 @@ Expected: ["-1","NULL","-10","NULL","-5","NULL"] but got ["-1.909","NULL","-10", * 1,552 failed * 84% was OK -Time: 19309.384ms +Time: 82349.284ms ---- ---- ---- ---- ---- ---- ---- ### 329/620 [`./test/random/aggregates/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_74.test) @@ -13858,7 +13858,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 1,476 failed * 85% was OK -Time: 19330.951ms +Time: 36913.221ms ---- ---- ---- ---- ---- ---- ---- ### 330/620 [`./test/random/aggregates/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_75.test) @@ -13946,7 +13946,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,603 failed * 83% was OK -Time: 19424.620ms +Time: 40315.365ms ---- ---- ---- ---- ---- ---- ---- ### 331/620 [`./test/random/aggregates/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_76.test) @@ -14034,7 +14034,7 @@ Expected: ["0"] but got ["NULL"] * 1,567 failed * 84% was OK -Time: 19823.814ms +Time: 37673.724ms ---- ---- ---- ---- ---- ---- ---- ### 332/620 [`./test/random/aggregates/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_77.test) @@ -14124,12 +14124,19 @@ SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL IS NOT 18 results returned but expected 54 ``` + +```sql +SELECT CAST ( NULL AS INTEGER ) / - col1 col1 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,557 failed * 84% was OK -Time: 19352.473ms +Time: 26762.464ms ---- ---- ---- ---- ---- ---- ---- ### 333/620 [`./test/random/aggregates/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_78.test) @@ -14213,13 +14220,6 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] ``` -```sql -SELECT ALL CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - ```sql SELECT DISTINCT + 95 / + 20 AS col2, - col1 * - 63 - col0 * + - col2 / - CAST ( NULL AS INTEGER ) + + + ( - col0 ) * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -14231,7 +14231,7 @@ Expected: ["4","NULL"] but got ["4.750","NULL"] * 1,678 failed * 83% was OK -Time: 19287.613ms +Time: 32625.075ms ---- ---- ---- ---- ---- ---- ---- ### 334/620 [`./test/random/aggregates/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_79.test) @@ -14315,6 +14315,13 @@ Expected: ["NULL","NULL"] but got ["0","-46","0","-64","0","-75"] ``` +```sql +SELECT + + 86 / + MAX ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0 + +Expected: ["-1"] but got ["-1.458"] +``` + + ```sql SELECT ALL COUNT ( * ) / + CAST ( + + SUM ( col1 ) AS INTEGER ) FROM tab2 AS cor0 @@ -14326,7 +14333,7 @@ Expected: ["0"] but got ["NULL"] * 1,536 failed * 84% was OK -Time: 19262.351ms +Time: 55143.074ms ---- ---- ---- ---- ---- ---- ---- ### 335/620 [`./test/random/aggregates/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_8.test) @@ -14414,7 +14421,7 @@ Expected: ["-139","NULL","-172","NULL","-181","NULL"] but got ["NULL","NULL"] * 1,634 failed * 83% was OK -Time: 19418.270ms +Time: 42273.954ms ---- ---- ---- ---- ---- ---- ---- ### 336/620 [`./test/random/aggregates/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_80.test) @@ -14502,7 +14509,7 @@ Expected: ["2"] but got ["NULL"] * 1,568 failed * 84% was OK -Time: 21711.671ms +Time: 55329.225ms ---- ---- ---- ---- ---- ---- ---- ### 337/620 [`./test/random/aggregates/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_81.test) @@ -14578,7 +14585,7 @@ SELECT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL NOT BETWEEN NULL AND NULL, Parse error on line 1: ...ETWEEN NULL AND NULL, tab2 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -14600,7 +14607,7 @@ Expected: ["NULL","NULL"] but got ["-47","0"] * 1,563 failed * 84% was OK -Time: 19381.201ms +Time: 40651.343ms ---- ---- ---- ---- ---- ---- ---- ### 338/620 [`./test/random/aggregates/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_82.test) @@ -14670,6 +14677,13 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0"," ``` +```sql +SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE + col1 + - col2 NOT IN ( col1 ) + +g is not defined +``` + + ```sql SELECT ALL - SUM ( DISTINCT - col2 ), MIN ( - + 65 ) / + + COUNT ( * ) * + ( - COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT - 75 IS NOT NULL @@ -14695,7 +14709,7 @@ SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL * 1,621 failed * 83% was OK -Time: 19923.184ms +Time: 32320.935ms ---- ---- ---- ---- ---- ---- ---- ### 339/620 [`./test/random/aggregates/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_83.test) @@ -14790,7 +14804,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","27.797"," * 1,614 failed * 83% was OK -Time: 19740.024ms +Time: 38760.941ms ---- ---- ---- ---- ---- ---- ---- ### 340/620 [`./test/random/aggregates/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_84.test) @@ -14885,7 +14899,7 @@ Expected: ["0","NULL","1","NULL"] but got ["0.161","0","0.758","0","1.597","0"] * 1,621 failed * 83% was OK -Time: 19894.622ms +Time: 30091.612ms ---- ---- ---- ---- ---- ---- ---- ### 341/620 [`./test/random/aggregates/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_85.test) @@ -14966,7 +14980,7 @@ Expected: ["1"] but got ["NULL"] * 1,517 failed * 84% was OK -Time: 19043.198ms +Time: 29545.303ms ---- ---- ---- ---- ---- ---- ---- ### 342/620 [`./test/random/aggregates/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_86.test) @@ -15068,7 +15082,7 @@ Expected: ["NULL","NULL"] but got ["0","20"] * 1,532 failed * 84% was OK -Time: 19177.533ms +Time: 59042.119ms ---- ---- ---- ---- ---- ---- ---- ### 343/620 [`./test/random/aggregates/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_87.test) @@ -15163,7 +15177,7 @@ Expected: ["-1"] but got ["NULL"] * 1,620 failed * 83% was OK -Time: 19157.703ms +Time: 69254.017ms ---- ---- ---- ---- ---- ---- ---- ### 344/620 [`./test/random/aggregates/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_88.test) @@ -15251,7 +15265,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,625 failed * 83% was OK -Time: 19364.746ms +Time: 100006.447ms ---- ---- ---- ---- ---- ---- ---- ### 345/620 [`./test/random/aggregates/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_89.test) @@ -15341,12 +15355,19 @@ SELECT 98 AS col1, + AVG ( DISTINCT 53 ) + - - COUNT ( * ) AS col1 FROM tab1 AS Expected: ["98","NULL"] but got ["NULL"] ``` + +```sql +SELECT DISTINCT + + 56 * 8 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["448"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,601 failed * 84% was OK -Time: 20289.152ms +Time: 76192.381ms ---- ---- ---- ---- ---- ---- ---- ### 346/620 [`./test/random/aggregates/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_9.test) @@ -15420,7 +15441,7 @@ Expected: ["NULL","NULL"] but got ["3","3"] * 1,565 failed * 84% was OK -Time: 19488.351ms +Time: 34904.978ms ---- ---- ---- ---- ---- ---- ---- ### 347/620 [`./test/random/aggregates/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_90.test) @@ -15501,7 +15522,7 @@ SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NOT NULL IS NOT NULL * 1,643 failed * 83% was OK -Time: 19532.826ms +Time: 51764.114ms ---- ---- ---- ---- ---- ---- ---- ### 348/620 [`./test/random/aggregates/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_91.test) @@ -15579,16 +15600,16 @@ SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE + 57 IS NOT NULL ```sql -SELECT - 92 AS col1, 26 * - + ( + MIN ( - 77 ) ) AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL +SELECT + + CAST ( NULL AS INTEGER ) * 63 / COUNT ( * ) FROM tab1 AS cor0 -Expected: ["-92","NULL"] but got ["NULL"] +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT ALL col0 * ( - 79 ) * 28 / - ( + col1 ) FROM tab0 +SELECT - 92 AS col1, 26 * - + ( + MIN ( - 77 ) ) AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL -Expected: ["214564","409","9164"] but got ["214564","409.630","9164"] +Expected: ["-92","NULL"] but got ["NULL"] ``` #### ☓ Ran 10,012 tests as _sqlite_ @@ -15596,7 +15617,7 @@ Expected: ["214564","409","9164"] but got ["214564","409.630","9164"] * 1,630 failed * 83% was OK -Time: 19739.131ms +Time: 84781.545ms ---- ---- ---- ---- ---- ---- ---- ### 349/620 [`./test/random/aggregates/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_92.test) @@ -15691,7 +15712,7 @@ Expected: ["NULL","17"] but got ["17","NULL"] * 1,607 failed * 83% was OK -Time: 23434.506ms +Time: 34826.807ms ---- ---- ---- ---- ---- ---- ---- ### 350/620 [`./test/random/aggregates/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_93.test) @@ -15779,7 +15800,7 @@ Expected: ["-46"] but got ["NULL"] * 1,581 failed * 84% was OK -Time: 25354.283ms +Time: 65193.079ms ---- ---- ---- ---- ---- ---- ---- ### 351/620 [`./test/random/aggregates/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_94.test) @@ -15863,13 +15884,20 @@ Expected: ["NULL","47"] but got ["47","NULL"] ``` +```sql +SELECT ALL - 8 / - 73 FROM tab2 + +Expected: ["0","0","0"] but got ["0.110","0.110","0.110"] +``` + + ```sql SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL, tab2 AS cor2 Parse error on line 1: ... ON NULL IS NOT NULL, tab2 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -15891,7 +15919,7 @@ Expected: ["-40","NULL","-44","NULL"] but got ["-39.800","0","-43.106","0","-43. * 1,578 failed * 84% was OK -Time: 22718.314ms +Time: 29132.312ms ---- ---- ---- ---- ---- ---- ---- ### 352/620 [`./test/random/aggregates/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_95.test) @@ -15986,7 +16014,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0"," * 1,586 failed * 84% was OK -Time: 22947.721ms +Time: 30723.574ms ---- ---- ---- ---- ---- ---- ---- ### 353/620 [`./test/random/aggregates/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_96.test) @@ -16077,6 +16105,20 @@ Expected: ["NULL","NULL"] but got ["0","0"] ``` +```sql +SELECT ALL + 79 + + CAST ( NULL AS INTEGER ) * + AVG ( ALL + ( - 69 ) ), + 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 + +Expected: ["NULL","44"] but got ["79","44"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * + 25 AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + ```sql SELECT 85 AS col2, - MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -16088,7 +16130,7 @@ Expected: ["85","NULL"] but got ["NULL"] * 1,549 failed * 84% was OK -Time: 23057.833ms +Time: 34334.210ms ---- ---- ---- ---- ---- ---- ---- ### 354/620 [`./test/random/aggregates/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_97.test) @@ -16158,6 +16200,13 @@ Expected: ["34"] but got ["NULL"] ``` +```sql +SELECT DISTINCT + 82 / + + col0 + col1 AS col1, col1 AS col1 FROM tab1 + +Expected: ["15","14","47","47","5","5"] but got ["14","14","47","47","5","5"] +``` + + ```sql SELECT - SUM ( ALL col0 ) - + - COUNT ( * ) AS col0, - 52 + + AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT + 47 + + 58 * + - col0 * + + col2 * + 94 + + col1 + - col0 IS NOT NULL ) @@ -16176,7 +16225,7 @@ Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","91","0","91" * 1,633 failed * 83% was OK -Time: 23720.482ms +Time: 30020.496ms ---- ---- ---- ---- ---- ---- ---- ### 355/620 [`./test/random/aggregates/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_98.test) @@ -16252,7 +16301,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT N Parse error on line 1: ...NOT NULL IS NOT NULL, tab2 AS cor2 -----------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ORDER', 'ARROW', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEPT', 'AN… +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` @@ -16281,7 +16330,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 1,644 failed * 83% was OK -Time: 23322.373ms +Time: 58268.615ms ---- ---- ---- ---- ---- ---- ---- ### 356/620 [`./test/random/aggregates/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_99.test) @@ -16369,7 +16418,7 @@ Expected: ["-147"] but got ["NULL"] * 1,573 failed * 84% was OK -Time: 22501.032ms +Time: 32856.344ms ---- ---- ---- ---- ---- ---- ---- ### 357/620 [`./test/random/expr/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_0.test) @@ -16450,7 +16499,7 @@ Expected: ["-46","NULL"] but got ["NULL","NULL"] * 1,839 failed * 81% was OK -Time: 22745.319ms +Time: 32281.398ms ---- ---- ---- ---- ---- ---- ---- ### 358/620 [`./test/random/expr/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_1.test) @@ -16510,7 +16559,7 @@ Expected: ["67","63"] but got ["67","NULL"] * 1,175 failed * 88% was OK -Time: 12700.626ms +Time: 21211.982ms ---- ---- ---- ---- ---- ---- ---- ### 359/620 [`./test/random/expr/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_10.test) @@ -16559,13 +16608,6 @@ Expected: ["20","NULL"] but got ["NULL","NULL"] ``` -```sql -SELECT ALL + - 55 AS col0, CAST ( COALESCE ( + NULLIF ( - 16, + 93 ), 9 - - - 32 + + 28 / 35 ) AS INTEGER ) / 74 * 23 AS col0 - -Expected: ["-55","0"] but got ["-4.973","-4.973"] -``` - - ```sql SELECT 61 + - + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + 54 * - 0 + - 9 + + 37 AS col0, CAST ( NULL AS INTEGER ) * - 92 AS col2 @@ -16598,7 +16640,7 @@ Expected: ["-23"] but got ["NULL"] * 2,060 failed * 79% was OK -Time: 21288.106ms +Time: 36165.298ms ---- ---- ---- ---- ---- ---- ---- ### 360/620 [`./test/random/expr/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_100.test) @@ -16674,19 +16716,12 @@ SELECT - 22 AS col0, CASE + - 63 WHEN + 6 * + 80 * - 2 * - - 81 + - 62 THEN + CA Expected: ["-22","NULL"] but got ["NULL","NULL"] ``` - -```sql -SELECT + + NULLIF ( - CAST ( NULL AS INTEGER ), + 96 * + 1 * + - COUNT ( * ) - 39 ) * 24 - -Expected: ["NULL"] but got ["0"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 2,110 failed * 78% was OK -Time: 21090.017ms +Time: 40671.064ms ---- ---- ---- ---- ---- ---- ---- ### 361/620 [`./test/random/expr/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_101.test) @@ -16767,7 +16802,7 @@ Expected: ["84","NULL"] but got ["NULL","NULL"] * 2,061 failed * 79% was OK -Time: 21233.258ms +Time: 41492.488ms ---- ---- ---- ---- ---- ---- ---- ### 362/620 [`./test/random/expr/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_102.test) @@ -16841,7 +16876,7 @@ Expected: ["NULL","NULL"] but got ["-263","52"] * 2,190 failed * 78% was OK -Time: 21417.155ms +Time: 49804.077ms ---- ---- ---- ---- ---- ---- ---- ### 363/620 [`./test/random/expr/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_103.test) @@ -16904,6 +16939,13 @@ Expected: ["NULL","NULL"] but got ["-25","0"] ``` +```sql +SELECT ALL 35 / 8 * + + ( + 75 ) + +Expected: ["300"] but got ["328.125"] +``` + + ```sql SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1, CASE + 90 WHEN + 34 THEN + - 77 ELSE NULL END / + COUNT ( * ) @@ -16915,7 +16957,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 2,064 failed * 79% was OK -Time: 21334.276ms +Time: 34394.847ms ---- ---- ---- ---- ---- ---- ---- ### 364/620 [`./test/random/expr/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_104.test) @@ -16996,7 +17038,7 @@ Expected: ["NULL","NULL"] but got ["-9","NULL"] * 2,069 failed * 79% was OK -Time: 21317.423ms +Time: 31386.907ms ---- ---- ---- ---- ---- ---- ---- ### 365/620 [`./test/random/expr/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_105.test) @@ -17065,19 +17107,12 @@ SELECT ALL 75 col1, + CASE + - 5 WHEN + - 2 THEN + 19 / - 61 ELSE NULL END + - 1 Expected: ["75","NULL","NULL"] but got ["NULL","-43"] ``` - -```sql -SELECT 17 / + 93 * - 88 AS col0, + 53 - -Expected: ["0","53"] but got ["-0.002","53"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 2,007 failed * 79% was OK -Time: 22116.397ms +Time: 34899.796ms ---- ---- ---- ---- ---- ---- ---- ### 366/620 [`./test/random/expr/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_106.test) @@ -17158,7 +17193,7 @@ Expected: ["86","NULL"] but got ["NULL","NULL"] * 2,066 failed * 79% was OK -Time: 21315.661ms +Time: 57801.897ms ---- ---- ---- ---- ---- ---- ---- ### 367/620 [`./test/random/expr/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_107.test) @@ -17234,19 +17269,12 @@ SELECT - CASE + 51 WHEN + 29 * - + 38 / + 41 THEN - - ( + 8 ) END, CAST ( NULL A Expected: ["NULL","NULL"] but got ["NULL","0"] ``` - -```sql -SELECT - 51 / 85 + CAST ( - 66 AS INTEGER ) - -Expected: ["-66"] but got ["-66.600"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 2,081 failed * 79% was OK -Time: 20960.958ms +Time: 45887.679ms ---- ---- ---- ---- ---- ---- ---- ### 368/620 [`./test/random/expr/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_108.test) @@ -17316,13 +17344,6 @@ Expected: ["NULL","NULL"] but got ["156","103"] ``` -```sql -SELECT ALL 46 AS col2, CAST ( + + 86 AS INTEGER ) AS col2 - -Expected: ["46","86"] but got ["86","86"] -``` - - ```sql SELECT + - ( - + MAX ( - - 88 ) ) + + CASE WHEN - 21 NOT BETWEEN ( NULL ) AND + 8 / + 42 / + 21 - - + 46 THEN 31 END + + - 38 + + 63 + 30 + ( ( - 84 ) + - SUM ( 35 ) * 22 ) * ( 97 ) * - NULLIF ( + ( - 83 ) * SUM ( DISTINCT 29 + 33 ) + + 0 * - 74, + 28 ) AS col1 @@ -17334,7 +17355,7 @@ Cannot read property 'toString' of undefined * 2,030 failed * 79% was OK -Time: 20945.933ms +Time: 49891.188ms ---- ---- ---- ---- ---- ---- ---- ### 369/620 [`./test/random/expr/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_109.test) @@ -17415,7 +17436,7 @@ Expected: ["27","NULL"] but got ["NULL","NULL"] * 1,863 failed * 81% was OK -Time: 20084.143ms +Time: 30920.069ms ---- ---- ---- ---- ---- ---- ---- ### 370/620 [`./test/random/expr/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_11.test) @@ -17478,13 +17499,6 @@ Expected: ["1375","-73"] but got ["NULL","-73"] ``` -```sql -SELECT 8 / 49 AS col0 - -Expected: ["0"] but got ["0.163"] -``` - - ```sql SELECT CAST ( NULL AS INTEGER ), CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) @@ -17503,7 +17517,7 @@ Expected: ["141","NULL"] but got ["NULL","NULL"] * 2,096 failed * 79% was OK -Time: 21485.189ms +Time: 31594.582ms ---- ---- ---- ---- ---- ---- ---- ### 371/620 [`./test/random/expr/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_110.test) @@ -17584,7 +17598,7 @@ Expected: ["NULL","NULL"] but got ["0","39"] * 2,056 failed * 79% was OK -Time: 21175.470ms +Time: 40909.677ms ---- ---- ---- ---- ---- ---- ---- ### 372/620 [`./test/random/expr/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_111.test) @@ -17665,7 +17679,7 @@ Expected: ["99","NULL"] but got ["NULL","NULL"] * 2,043 failed * 79% was OK -Time: 21588.269ms +Time: 36746.786ms ---- ---- ---- ---- ---- ---- ---- ### 373/620 [`./test/random/expr/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_112.test) @@ -17739,7 +17753,7 @@ Expected: ["NULL","NULL"] but got ["134","42"] * 2,093 failed * 79% was OK -Time: 21560.088ms +Time: 45000.868ms ---- ---- ---- ---- ---- ---- ---- ### 374/620 [`./test/random/expr/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_113.test) @@ -17820,7 +17834,7 @@ Expected: ["66","NULL"] but got ["NULL","NULL"] * 2,035 failed * 79% was OK -Time: 21815.811ms +Time: 71494.802ms ---- ---- ---- ---- ---- ---- ---- ### 375/620 [`./test/random/expr/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_114.test) @@ -17896,19 +17910,12 @@ SELECT ALL 48 - + NULLIF ( + COUNT ( DISTINCT - 37 ), COUNT ( * ) ) + 67 - - ( + Expected: ["NULL","NULL"] but got ["NULL","21"] ``` - -```sql -SELECT + 39 / + + COUNT ( * ) AS col2, 70 - -Expected: ["39","70"] but got ["70","39"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 2,088 failed * 79% was OK -Time: 21360.085ms +Time: 38060.428ms ---- ---- ---- ---- ---- ---- ---- ### 376/620 [`./test/random/expr/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_115.test) @@ -17982,7 +17989,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 2,096 failed * 79% was OK -Time: 21282.811ms +Time: 47317.894ms ---- ---- ---- ---- ---- ---- ---- ### 377/620 [`./test/random/expr/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_116.test) @@ -18056,7 +18063,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 2,038 failed * 79% was OK -Time: 21530.803ms +Time: 31461.182ms ---- ---- ---- ---- ---- ---- ---- ### 378/620 [`./test/random/expr/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_117.test) @@ -18130,7 +18137,7 @@ Expected: ["NULL","NULL"] but got ["76","0"] * 1,964 failed * 80% was OK -Time: 21469.841ms +Time: 32849.834ms ---- ---- ---- ---- ---- ---- ---- ### 379/620 [`./test/random/expr/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_118.test) @@ -18186,6 +18193,13 @@ Cannot read property 'toString' of undefined ``` +```sql +SELECT 5 / - 54 + +Expected: ["0"] but got ["-0.093"] +``` + + ```sql SELECT ALL - COUNT ( * ) / + NULLIF ( + CAST ( ( - COUNT ( * ) ) AS INTEGER ), - ( 56 ) * 94 ) AS col1 @@ -18204,7 +18218,7 @@ Expected: ["NULL","NULL"] but got ["27","75"] * 2,093 failed * 79% was OK -Time: 21509.556ms +Time: 45848.549ms ---- ---- ---- ---- ---- ---- ---- ### 380/620 [`./test/random/expr/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_119.test) @@ -18285,7 +18299,7 @@ Expected: ["-65","NULL"] but got ["NULL","NULL"] * 1,838 failed * 79% was OK -Time: 19057.547ms +Time: 32394.964ms ---- ---- ---- ---- ---- ---- ---- ### 381/620 [`./test/random/expr/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_12.test) @@ -18366,7 +18380,7 @@ Expected: ["NULL","NULL"] but got ["NULL","0"] * 2,133 failed * 78% was OK -Time: 21574.189ms +Time: 31875.794ms ---- ---- ---- ---- ---- ---- ---- ### 382/620 [`./test/random/expr/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_13.test) @@ -18447,7 +18461,7 @@ Expected: ["-86"] but got ["NULL"] * 1,659 failed * 83% was OK -Time: 18933.562ms +Time: 28421.809ms ---- ---- ---- ---- ---- ---- ---- ### 383/620 [`./test/random/expr/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_14.test) @@ -18510,13 +18524,6 @@ Expected: ["NULL","NULL"] but got ["NULL","0"] ``` -```sql -SELECT ALL + 80 / + + 77 col0 - -Expected: ["1"] but got ["1.039"] -``` - - ```sql SELECT ALL - NULLIF ( COALESCE ( + + CAST ( NULL AS INTEGER ), + 20 ), 0 ) AS col1 @@ -18535,7 +18542,7 @@ Expected: ["-71","NULL"] but got ["NULL","NULL"] * 2,130 failed * 78% was OK -Time: 22330.264ms +Time: 37073.928ms ---- ---- ---- ---- ---- ---- ---- ### 384/620 [`./test/random/expr/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_15.test) @@ -18616,7 +18623,7 @@ Expected: ["2411","NULL"] but got ["NULL","NULL"] * 2,139 failed * 78% was OK -Time: 21835.683ms +Time: 27550.392ms ---- ---- ---- ---- ---- ---- ---- ### 385/620 [`./test/random/expr/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_16.test) @@ -18697,7 +18704,7 @@ Expected: ["51","NULL"] but got ["NULL","NULL"] * 2,077 failed * 79% was OK -Time: 21751.890ms +Time: 40467.732ms ---- ---- ---- ---- ---- ---- ---- ### 386/620 [`./test/random/expr/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_17.test) @@ -18778,7 +18785,7 @@ Expected: ["NULL","NULL"] but got ["NULL","0"] * 2,095 failed * 79% was OK -Time: 21300.398ms +Time: 50255.115ms ---- ---- ---- ---- ---- ---- ---- ### 387/620 [`./test/random/expr/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_18.test) @@ -18859,7 +18866,7 @@ Expected: ["31"] but got ["NULL"] * 2,118 failed * 78% was OK -Time: 21272.239ms +Time: 29543.055ms ---- ---- ---- ---- ---- ---- ---- ### 388/620 [`./test/random/expr/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_19.test) @@ -18940,7 +18947,7 @@ Expected: ["NULL","NULL"] but got ["NULL","28"] * 2,089 failed * 79% was OK -Time: 21051.388ms +Time: 27684.884ms ---- ---- ---- ---- ---- ---- ---- ### 389/620 [`./test/random/expr/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_2.test) @@ -19014,7 +19021,7 @@ Expected: ["NULL","NULL"] but got ["0","-15"] * 1,481 failed * 85% was OK -Time: 18000.742ms +Time: 25019.594ms ---- ---- ---- ---- ---- ---- ---- ### 390/620 [`./test/random/expr/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_20.test) @@ -19088,7 +19095,7 @@ Expected: ["NULL","NULL"] but got ["NULL","47.291"] * 2,096 failed * 79% was OK -Time: 20965.111ms +Time: 36470.689ms ---- ---- ---- ---- ---- ---- ---- ### 391/620 [`./test/random/expr/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_21.test) @@ -19169,7 +19176,7 @@ Expected: ["75","NULL"] but got ["NULL","NULL"] * 2,097 failed * 79% was OK -Time: 21378.719ms +Time: 27798.936ms ---- ---- ---- ---- ---- ---- ---- ### 392/620 [`./test/random/expr/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_22.test) @@ -19225,13 +19232,6 @@ Expected: ["1281"] but got ["NULL"] ``` -```sql -SELECT + 86 / 17 * - - MIN ( ALL CAST ( + 95 AS INTEGER ) ), + 32 AS col0 - -Expected: ["475","32"] but got ["480.588","32"] -``` - - ```sql SELECT - CAST ( NULL AS INTEGER ) + + ( 72 ) / 16 AS col1, + CASE + 59 WHEN - - 24 THEN - CAST ( 8 AS INTEGER ) WHEN + + 72 + + + COUNT ( * ) THEN + 13 WHEN 37 * + 37 + - COUNT ( * ) * + 24 + 60 + - - MIN ( ALL + 77 ) THEN NULL ELSE NULL END col2 @@ -19243,7 +19243,7 @@ Expected: ["NULL","NULL"] but got ["4.500","NULL"] * 2,025 failed * 79% was OK -Time: 21229.654ms +Time: 65518.659ms ---- ---- ---- ---- ---- ---- ---- ### 393/620 [`./test/random/expr/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_23.test) @@ -19306,6 +19306,13 @@ Expected: ["NULL","NULL"] but got ["0","0"] ``` +```sql +SELECT DISTINCT 49 / + 2 AS col0 + +Expected: ["24"] but got ["24.500"] +``` + + ```sql SELECT ALL - - COUNT ( * ) * - ( + CAST ( - - 11 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) - - 73 + 91 * - COUNT ( * ) * 26 * + COUNT ( * ), 67 / + + CAST ( NULL AS INTEGER ) AS col0 @@ -19317,7 +19324,7 @@ Expected: ["NULL","NULL"] but got ["-2304","NULL"] * 2,067 failed * 79% was OK -Time: 21497.618ms +Time: 44626.997ms ---- ---- ---- ---- ---- ---- ---- ### 394/620 [`./test/random/expr/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_24.test) @@ -19380,6 +19387,13 @@ Expected: ["63","NULL"] but got ["NULL","NULL"] ``` +```sql +SELECT - COALESCE ( - CASE 36 WHEN - 17 THEN - COUNT ( * ) END, + COUNT ( * ) / - 12 ) * 71 + +Expected: ["0"] but got ["5.917"] +``` + + ```sql SELECT + + 13 / - - COUNT ( * ), + CASE WHEN NOT + ( 39 ) BETWEEN 86 + SUM ( ALL 1 ) * + 57 + + 57 - - + 26 AND + + 95 THEN - CASE WHEN 3 < 28 THEN + + ( + 78 ) END ELSE NULL END / - - ( + SUM ( DISTINCT 73 ) ) - - 66 - + + MIN ( ALL 61 ) + - + ( - COUNT ( * ) ) * 43 * - 78 AS col0 @@ -19393,12 +19407,19 @@ SELECT ALL - 48 / 49 * - CAST ( NULL AS INTEGER ) * - 14 * + 21, ( CAST ( NULL A Expected: ["NULL","NULL"] but got ["0","0"] ``` + +```sql +SELECT ALL 49 / 47 * 46 + +Expected: ["46"] but got ["47.957"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,860 failed * 81% was OK -Time: 19786.964ms +Time: 31952.510ms ---- ---- ---- ---- ---- ---- ---- ### 395/620 [`./test/random/expr/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_25.test) @@ -19454,6 +19475,13 @@ Cannot read property 'toString' of undefined ``` +```sql +SELECT CAST ( NULL AS INTEGER ) + + CAST ( - CASE - MAX ( - CAST ( + 66 AS INTEGER ) ) WHEN + 7 THEN NULL WHEN 14 THEN NULL WHEN + + 30 THEN - 35 - 70 * + 20 ELSE NULL END AS INTEGER ) + +g is not defined +``` + + ```sql SELECT ALL 74 + + 51 - - - CAST ( NULL AS INTEGER ) * - 9, - ( - - CAST ( NULL AS INTEGER ) ) AS col1 @@ -19465,7 +19493,7 @@ Expected: ["NULL","NULL"] but got ["125","0"] * 1,872 failed * 81% was OK -Time: 20054.867ms +Time: 50877.087ms ---- ---- ---- ---- ---- ---- ---- ### 396/620 [`./test/random/expr/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_26.test) @@ -19534,19 +19562,12 @@ SELECT 64 + + CASE 84 WHEN + MIN ( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 A Expected: ["NULL","NULL"] but got ["NULL"] ``` - -```sql -SELECT DISTINCT + + 21 + SUM ( ALL - CASE + 4 WHEN 26 THEN + + 23 - 58 - - 46 - - 56 - 88 END ) - - + 59 + - COUNT ( * ) * - 59 AS col0 - -Expected: ["NULL"] but got ["139"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 1,876 failed * 81% was OK -Time: 19785.959ms +Time: 47303.686ms ---- ---- ---- ---- ---- ---- ---- ### 397/620 [`./test/random/expr/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_27.test) @@ -19616,6 +19637,13 @@ Expected: ["NULL","NULL"] but got ["NULL","0"] ``` +```sql +SELECT ALL 24 + + CASE COUNT ( * ) WHEN + 11 THEN NULL ELSE - 21 END + - 55 + + 92 - - + ( + CAST ( NULL AS INTEGER ) ) / + + 51 * + + CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + ```sql SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2 @@ -19627,7 +19655,7 @@ Expected: ["-46","NULL"] but got ["NULL","NULL"] * 1,857 failed * 81% was OK -Time: 20428.514ms +Time: 36012.160ms ---- ---- ---- ---- ---- ---- ---- ### 398/620 [`./test/random/expr/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_28.test) @@ -19696,12 +19724,19 @@ SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 64 col2, 95 - - - CAST ( NULL A Expected: ["NULL","NULL"] but got ["0","95"] ``` + +```sql +SELECT - CAST ( NULL AS INTEGER ) * - MAX ( ALL 92 ) + 84 AS col2 + +Expected: ["NULL"] but got ["84"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,924 failed * 80% was OK -Time: 20397.360ms +Time: 56563.626ms ---- ---- ---- ---- ---- ---- ---- ### 399/620 [`./test/random/expr/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_29.test) @@ -19782,7 +19817,7 @@ Expected: ["-86"] but got ["NULL"] * 1,476 failed * 85% was OK -Time: 18248.662ms +Time: 46717.575ms ---- ---- ---- ---- ---- ---- ---- ### 400/620 [`./test/random/expr/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_3.test) @@ -19856,7 +19891,7 @@ Expected: ["NULL","NULL","10"] but got ["0","79","10"] * 2,064 failed * 79% was OK -Time: 22204.567ms +Time: 39012.282ms ---- ---- ---- ---- ---- ---- ---- ### 401/620 [`./test/random/expr/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_30.test) @@ -19937,7 +19972,7 @@ Cannot read property 'toString' of undefined * 1,765 failed * 82% was OK -Time: 19158.242ms +Time: 37327.706ms ---- ---- ---- ---- ---- ---- ---- ### 402/620 [`./test/random/expr/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_31.test) @@ -20004,7 +20039,7 @@ Expected: ["NULL","NULL"] but got ["125","0"] * 1,808 failed * 81% was OK -Time: 20134.263ms +Time: 85991.384ms ---- ---- ---- ---- ---- ---- ---- ### 403/620 [`./test/random/expr/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_32.test) @@ -20057,7 +20092,7 @@ Cannot read property 'toString' of undefined * 1,469 failed * 85% was OK -Time: 14489.311ms +Time: 56826.603ms ---- ---- ---- ---- ---- ---- ---- ### 404/620 [`./test/random/expr/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_33.test) @@ -20120,13 +20155,6 @@ Expected: ["NULL","NULL"] but got ["-389416","-389416"] ``` -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + + + 69 - -Expected: ["NULL"] but got ["69"] -``` - - ```sql SELECT 64 + + CASE 84 WHEN + MIN ( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 AS col0, CASE 58 WHEN - 67 + + 84 + + 0 * - 78 THEN + 12 * - ( + - 90 ) END / 91 + + 59 AS col0 @@ -20138,7 +20166,7 @@ Expected: ["NULL","NULL"] but got ["NULL"] * 1,852 failed * 81% was OK -Time: 19850.232ms +Time: 106064.231ms ---- ---- ---- ---- ---- ---- ---- ### 405/620 [`./test/random/expr/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_34.test) @@ -20212,7 +20240,7 @@ Expected: ["NULL","NULL"] but got ["33","NULL"] * 1,969 failed * 80% was OK -Time: 20140.125ms +Time: 152457.934ms ---- ---- ---- ---- ---- ---- ---- ### 406/620 [`./test/random/expr/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_35.test) @@ -20286,7 +20314,7 @@ Expected: ["3553"] but got ["NULL"] * 1,902 failed * 81% was OK -Time: 20514.271ms +Time: 101202.854ms ---- ---- ---- ---- ---- ---- ---- ### 407/620 [`./test/random/expr/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_36.test) @@ -20360,7 +20388,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,929 failed * 80% was OK -Time: 20493.539ms +Time: 50615.720ms ---- ---- ---- ---- ---- ---- ---- ### 408/620 [`./test/random/expr/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_37.test) @@ -20416,13 +20444,6 @@ Cannot read property 'toString' of undefined ``` -```sql -SELECT 79 / + 96 AS col0 - -Expected: ["0"] but got ["0.823"] -``` - - ```sql SELECT 37 AS col2, 50 / + CASE 9 WHEN 29 THEN + 78 ELSE NULL END col2 @@ -20441,7 +20462,7 @@ Expected: ["-107855","NULL"] but got ["-109312.500","NULL"] * 1,954 failed * 80% was OK -Time: 20556.514ms +Time: 54182.313ms ---- ---- ---- ---- ---- ---- ---- ### 409/620 [`./test/random/expr/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_38.test) @@ -20522,7 +20543,7 @@ Expected: ["93","NULL"] but got ["NULL","NULL"] * 1,990 failed * 80% was OK -Time: 20621.992ms +Time: 39461.902ms ---- ---- ---- ---- ---- ---- ---- ### 410/620 [`./test/random/expr/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_39.test) @@ -20589,7 +20610,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,993 failed * 80% was OK -Time: 20531.609ms +Time: 74188.066ms ---- ---- ---- ---- ---- ---- ---- ### 411/620 [`./test/random/expr/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_4.test) @@ -20663,7 +20684,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 2,064 failed * 79% was OK -Time: 22661.876ms +Time: 46793.566ms ---- ---- ---- ---- ---- ---- ---- ### 412/620 [`./test/random/expr/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_40.test) @@ -20737,7 +20758,7 @@ Expected: ["0","NULL"] but got ["-0.011","NULL"] * 1,984 failed * 80% was OK -Time: 21250.333ms +Time: 89513.788ms ---- ---- ---- ---- ---- ---- ---- ### 413/620 [`./test/random/expr/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_41.test) @@ -20818,7 +20839,7 @@ Expected: ["-50","NULL"] but got ["NULL","NULL"] * 1,945 failed * 80% was OK -Time: 20892.494ms +Time: 52765.528ms ---- ---- ---- ---- ---- ---- ---- ### 414/620 [`./test/random/expr/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_42.test) @@ -20887,12 +20908,19 @@ SELECT ALL - 11 * - 65 * 55 col0, CAST ( NULL AS INTEGER ) * CASE 21 WHEN - + 95 Expected: ["39325","NULL"] but got ["NULL","NULL"] ``` + +```sql +SELECT ALL - 74 / 70 + - 96 + +Expected: ["-97"] but got ["-97.057"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,939 failed * 80% was OK -Time: 20453.745ms +Time: 60249.642ms ---- ---- ---- ---- ---- ---- ---- ### 415/620 [`./test/random/expr/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_43.test) @@ -20945,7 +20973,7 @@ Expected: ["0"] but got ["NULL"] * 1,588 failed * 84% was OK -Time: 15231.234ms +Time: 34345.834ms ---- ---- ---- ---- ---- ---- ---- ### 416/620 [`./test/random/expr/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_44.test) @@ -21026,7 +21054,7 @@ Expected: ["73","NULL"] but got ["NULL","NULL"] * 1,974 failed * 80% was OK -Time: 20840.321ms +Time: 48979.929ms ---- ---- ---- ---- ---- ---- ---- ### 417/620 [`./test/random/expr/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_45.test) @@ -21107,7 +21135,7 @@ Expected: ["NULL","NULL"] but got ["741","-346"] * 2,019 failed * 79% was OK -Time: 20507.492ms +Time: 54476.813ms ---- ---- ---- ---- ---- ---- ---- ### 418/620 [`./test/random/expr/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_46.test) @@ -21181,7 +21209,7 @@ Expected: ["NULL","NULL"] but got ["-9","0"] * 1,945 failed * 80% was OK -Time: 20642.526ms +Time: 48653.537ms ---- ---- ---- ---- ---- ---- ---- ### 419/620 [`./test/random/expr/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_47.test) @@ -21262,7 +21290,7 @@ Expected: ["-55","NULL"] but got ["NULL","NULL"] * 1,925 failed * 80% was OK -Time: 20776.613ms +Time: 45479.603ms ---- ---- ---- ---- ---- ---- ---- ### 420/620 [`./test/random/expr/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_48.test) @@ -21338,12 +21366,19 @@ SELECT ( + 25 ) AS col2, 63 * - + 82 * CASE + 72 WHEN 89 THEN - + 53 + - 79 END Expected: ["25","NULL"] but got ["NULL","NULL"] ``` + +```sql +SELECT ALL 32 / + - 60 * + - 23 + - + 70 / 40 + - 26 AS col0 + +Expected: ["-27"] but got ["-27.727"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 2,038 failed * 79% was OK -Time: 21530.161ms +Time: 28052.604ms ---- ---- ---- ---- ---- ---- ---- ### 421/620 [`./test/random/expr/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_49.test) @@ -21424,7 +21459,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 2,006 failed * 79% was OK -Time: 21054.128ms +Time: 31998.523ms ---- ---- ---- ---- ---- ---- ---- ### 422/620 [`./test/random/expr/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_5.test) @@ -21512,7 +21547,7 @@ Expected: ["65","NULL"] but got ["NULL","NULL"] * 2,085 failed * 79% was OK -Time: 21694.882ms +Time: 63811.123ms ---- ---- ---- ---- ---- ---- ---- ### 423/620 [`./test/random/expr/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_50.test) @@ -21586,7 +21621,7 @@ Expected: ["-657"] but got ["NULL"] * 1,998 failed * 80% was OK -Time: 20883.813ms +Time: 62774.177ms ---- ---- ---- ---- ---- ---- ---- ### 424/620 [`./test/random/expr/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_51.test) @@ -21660,7 +21695,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,968 failed * 80% was OK -Time: 21220.799ms +Time: 85602.335ms ---- ---- ---- ---- ---- ---- ---- ### 425/620 [`./test/random/expr/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_52.test) @@ -21723,13 +21758,6 @@ Cannot read property 'toString' of undefined ``` -```sql -SELECT - ( + 80 ) + + 68 + - - ( + CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL"] but got ["-12"] -``` - - ```sql SELECT - + 4 / + 38 + + + 19 - + - 39 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + 96 * - 91 + - 97, - 82 + 69 * + ( CAST ( NULL AS INTEGER ) ) @@ -21741,7 +21769,7 @@ Expected: ["NULL","NULL"] but got ["-8776.105","-82"] * 2,064 failed * 79% was OK -Time: 20897.841ms +Time: 116796.951ms ---- ---- ---- ---- ---- ---- ---- ### 426/620 [`./test/random/expr/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_53.test) @@ -21822,7 +21850,7 @@ Expected: ["-84","NULL"] but got ["NULL","NULL"] * 1,981 failed * 80% was OK -Time: 20541.157ms +Time: 78629.794ms ---- ---- ---- ---- ---- ---- ---- ### 427/620 [`./test/random/expr/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_54.test) @@ -21882,7 +21910,7 @@ Cannot read property 'toString' of undefined * 1,612 failed * 83% was OK -Time: 15828.191ms +Time: 30907.812ms ---- ---- ---- ---- ---- ---- ---- ### 428/620 [`./test/random/expr/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_55.test) @@ -21958,12 +21986,19 @@ SELECT DISTINCT 54 AS col1, 85 / 68 * - 72 * + 98 * + 88 * - - CASE + 0 WHEN 8 + Expected: ["54","NULL"] but got ["NULL","NULL"] ``` + +```sql +SELECT ALL CAST ( NULL AS REAL ) * MAX ( ALL - 99 ) AS col0 + +Wrong conversion type +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 2,081 failed * 79% was OK -Time: 20816.778ms +Time: 46450.571ms ---- ---- ---- ---- ---- ---- ---- ### 429/620 [`./test/random/expr/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_56.test) @@ -22030,7 +22065,7 @@ Expected: ["NULL","NULL"] but got ["-2551504","NULL"] * 2,014 failed * 79% was OK -Time: 21628.606ms +Time: 44510.234ms ---- ---- ---- ---- ---- ---- ---- ### 430/620 [`./test/random/expr/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_57.test) @@ -22111,7 +22146,7 @@ Expected: ["-22","NULL"] but got ["NULL","NULL"] * 2,000 failed * 80% was OK -Time: 20903.404ms +Time: 38376.271ms ---- ---- ---- ---- ---- ---- ---- ### 431/620 [`./test/random/expr/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_58.test) @@ -22192,7 +22227,7 @@ Expected: ["1782","NULL"] but got ["NULL","NULL"] * 1,952 failed * 80% was OK -Time: 21095.989ms +Time: 40352.406ms ---- ---- ---- ---- ---- ---- ---- ### 432/620 [`./test/random/expr/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_59.test) @@ -22266,7 +22301,7 @@ Expected: ["NULL","NULL"] but got ["NULL","0"] * 1,977 failed * 80% was OK -Time: 20609.086ms +Time: 42944.682ms ---- ---- ---- ---- ---- ---- ---- ### 433/620 [`./test/random/expr/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_6.test) @@ -22340,7 +22375,7 @@ Expected: ["NULL","10","NULL"] but got ["-69","10","0"] * 2,043 failed * 79% was OK -Time: 21384.861ms +Time: 51010.488ms ---- ---- ---- ---- ---- ---- ---- ### 434/620 [`./test/random/expr/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_60.test) @@ -22421,7 +22456,7 @@ Expected: ["NULL","NULL"] but got ["NULL","0"] * 2,007 failed * 79% was OK -Time: 20731.221ms +Time: 65080.713ms ---- ---- ---- ---- ---- ---- ---- ### 435/620 [`./test/random/expr/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_61.test) @@ -22502,7 +22537,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 2,025 failed * 79% was OK -Time: 21089.110ms +Time: 45647.673ms ---- ---- ---- ---- ---- ---- ---- ### 436/620 [`./test/random/expr/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_62.test) @@ -22559,23 +22594,23 @@ Expected: ["NULL","NULL"] but got ["-74","NULL"] ```sql -SELECT ALL - 98 * + - 36 + + 46 + CAST ( NULL AS INTEGER ) * + - 72 +SELECT 79 * + + 18 + + - COUNT ( * ) / - CAST ( MAX ( 57 ) AS INTEGER ) AS col1 -Expected: ["NULL"] but got ["3574"] +Expected: ["1422"] but got ["NULL"] ``` ```sql -SELECT 79 * + + 18 + + - COUNT ( * ) / - CAST ( MAX ( 57 ) AS INTEGER ) AS col1 +SELECT ALL ( - CASE 58 WHEN + 62 THEN + - 81 WHEN - NULLIF ( 19, 42 / + 94 + + 89 + + + 67 ) * - - 50 THEN 57 END ) AS col0, ( 40 ) / + 99 AS col2 -Expected: ["1422"] but got ["NULL"] +Expected: ["NULL","0"] but got ["NULL","0.404"] ``` ```sql -SELECT ALL ( - CASE 58 WHEN + 62 THEN + - 81 WHEN - NULLIF ( 19, 42 / + 94 + + 89 + + + 67 ) * - - 50 THEN 57 END ) AS col0, ( 40 ) / + 99 AS col2 +SELECT DISTINCT COUNT ( DISTINCT + 11 ) AS col1, 1 col1 -Expected: ["NULL","0"] but got ["NULL","0.404"] +Expected: ["1","1"] but got ["1"] ``` @@ -22590,7 +22625,7 @@ Expected: ["-29","NULL"] but got ["NULL","NULL"] * 2,045 failed * 79% was OK -Time: 22241.918ms +Time: 50511.480ms ---- ---- ---- ---- ---- ---- ---- ### 437/620 [`./test/random/expr/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_63.test) @@ -22646,13 +22681,6 @@ Expected: ["NULL","97"] but got ["97","NULL"] ``` -```sql -SELECT ALL + 83 + - CAST ( + NULLIF ( + + COUNT ( * ), - - COUNT ( * ) ) AS INTEGER ) - -g is not defined -``` - - ```sql SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + MAX ( ALL + 49 ) - - CASE + 19 WHEN - + 5 - 9 + + 22 - - - 72 THEN NULL ELSE - 1 * - 57 - + - 84 - - + 24 * - - 86 END + - 37 / + - 75 AS col0, 7 AS col2, - + COUNT ( * ) + - 43 * CASE - COUNT ( * ) WHEN - COALESCE ( - 97, - 11, + - COALE… @@ -22671,7 +22699,7 @@ Expected: ["NULL","NULL"] but got ["97","0"] * 2,002 failed * 80% was OK -Time: 21135.022ms +Time: 35681.828ms ---- ---- ---- ---- ---- ---- ---- ### 438/620 [`./test/random/expr/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_64.test) @@ -22745,7 +22773,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 2,056 failed * 79% was OK -Time: 21194.456ms +Time: 47234.129ms ---- ---- ---- ---- ---- ---- ---- ### 439/620 [`./test/random/expr/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_65.test) @@ -22812,7 +22840,7 @@ Expected: ["0","NULL"] but got ["NULL","NULL"] * 1,716 failed * 82% was OK -Time: 15148.612ms +Time: 35605.099ms ---- ---- ---- ---- ---- ---- ---- ### 440/620 [`./test/random/expr/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_66.test) @@ -22886,7 +22914,7 @@ Expected: ["-465"] but got ["NULL"] * 2,062 failed * 79% was OK -Time: 21343.602ms +Time: 42864.782ms ---- ---- ---- ---- ---- ---- ---- ### 441/620 [`./test/random/expr/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_67.test) @@ -22957,16 +22985,16 @@ Expected: ["NULL","NULL"] but got ["0","0"] ```sql -SELECT 94 AS col1, + 69 * + 83 / - + CAST ( NULL AS INTEGER ) + - 43 AS col1 +SELECT DISTINCT 47 * 48 AS col0, 1 AS col0 -Expected: ["94","NULL"] but got ["NULL","NULL"] +Expected: ["2256","1"] but got ["1","1"] ``` ```sql -SELECT 34 - ( - 55 ) + CAST ( NULL AS INTEGER ) * 9 +SELECT 94 AS col1, + 69 * + 83 / - + CAST ( NULL AS INTEGER ) + - 43 AS col1 -Expected: ["NULL"] but got ["89"] +Expected: ["94","NULL"] but got ["NULL","NULL"] ``` #### ☓ Ran 10,012 tests as _sqlite_ @@ -22974,7 +23002,7 @@ Expected: ["NULL"] but got ["89"] * 2,033 failed * 79% was OK -Time: 21009.691ms +Time: 69467.608ms ---- ---- ---- ---- ---- ---- ---- ### 442/620 [`./test/random/expr/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_68.test) @@ -23055,7 +23083,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 1,977 failed * 80% was OK -Time: 21044.195ms +Time: 86039.273ms ---- ---- ---- ---- ---- ---- ---- ### 443/620 [`./test/random/expr/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_69.test) @@ -23129,7 +23157,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 2,019 failed * 79% was OK -Time: 20860.555ms +Time: 79667.518ms ---- ---- ---- ---- ---- ---- ---- ### 444/620 [`./test/random/expr/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_7.test) @@ -23203,7 +23231,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 2,097 failed * 79% was OK -Time: 21396.552ms +Time: 67304.733ms ---- ---- ---- ---- ---- ---- ---- ### 445/620 [`./test/random/expr/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_70.test) @@ -23284,7 +23312,7 @@ Expected: ["3"] but got ["NULL"] * 2,000 failed * 80% was OK -Time: 21087.042ms +Time: 50186.268ms ---- ---- ---- ---- ---- ---- ---- ### 446/620 [`./test/random/expr/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_71.test) @@ -23358,7 +23386,7 @@ Expected: ["-98","NULL"] but got ["NULL"] * 1,994 failed * 80% was OK -Time: 21073.996ms +Time: 33185.926ms ---- ---- ---- ---- ---- ---- ---- ### 447/620 [`./test/random/expr/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_72.test) @@ -23439,7 +23467,7 @@ Expected: ["-88","NULL"] but got ["NULL","NULL"] * 2,050 failed * 79% was OK -Time: 21269.102ms +Time: 35553.413ms ---- ---- ---- ---- ---- ---- ---- ### 448/620 [`./test/random/expr/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_73.test) @@ -23515,19 +23543,12 @@ SELECT + 93 * - COUNT ( * ) * + - CASE ( + - 26 ) WHEN - + 41 * - CAST ( + + 8 A Expected: ["NULL","NULL"] but got ["NULL","62"] ``` - -```sql -SELECT CAST ( NULL AS INTEGER ) / - + 21 + + + 73 - COUNT ( * ) * - - 26 AS col0 - -Expected: ["NULL"] but got ["47"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 2,032 failed * 79% was OK -Time: 21975.629ms +Time: 28356.921ms ---- ---- ---- ---- ---- ---- ---- ### 449/620 [`./test/random/expr/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_74.test) @@ -23608,7 +23629,7 @@ Expected: ["3","NULL"] but got ["NULL","NULL"] * 2,078 failed * 79% was OK -Time: 21242.815ms +Time: 32534.597ms ---- ---- ---- ---- ---- ---- ---- ### 450/620 [`./test/random/expr/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_75.test) @@ -23689,7 +23710,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 2,056 failed * 79% was OK -Time: 20845.877ms +Time: 26864.136ms ---- ---- ---- ---- ---- ---- ---- ### 451/620 [`./test/random/expr/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_76.test) @@ -23770,7 +23791,7 @@ Expected: ["NULL","1"] but got ["NULL","0"] * 1,709 failed * 82% was OK -Time: 15412.571ms +Time: 22868.030ms ---- ---- ---- ---- ---- ---- ---- ### 452/620 [`./test/random/expr/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_77.test) @@ -23819,6 +23840,13 @@ Expected: ["8"] but got ["NULL"] ``` +```sql +SELECT DISTINCT 85 * CAST ( NULL AS REAL ) + - 70 + + CASE 33 WHEN + 63 THEN COALESCE ( - 50, COUNT ( * ) ) * 67 ELSE - 7 END * - 27 AS col0 + +Wrong conversion type +``` + + ```sql SELECT ALL + + CASE WHEN NOT - 90 > NULL THEN - + COALESCE ( COALESCE ( 40, 89 * 57 + 53, 54 + + 20 - - 40 * NULLIF ( + 71, + COALESCE ( + 21, - 30 ) ), + 17 ), + AVG ( - 91 ) ) WHEN NULL NOT BETWEEN NULL AND 67 THEN COUNT ( * ) * + 94 - + 90 * + 56 ELSE NULL END AS col2 @@ -23851,7 +23879,7 @@ Expected: ["-1362","NULL"] but got ["NULL","NULL"] * 1,988 failed * 80% was OK -Time: 21128.035ms +Time: 28233.369ms ---- ---- ---- ---- ---- ---- ---- ### 453/620 [`./test/random/expr/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_78.test) @@ -23925,7 +23953,7 @@ Expected: ["NULL","NULL"] but got ["1475","NULL"] * 2,030 failed * 79% was OK -Time: 20780.112ms +Time: 22842.718ms ---- ---- ---- ---- ---- ---- ---- ### 454/620 [`./test/random/expr/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_79.test) @@ -23960,6 +23988,13 @@ Expected: ["NULL"] but got ["10.988"] ``` +```sql +SELECT 58 + - CAST ( NULL AS INTEGER ) + - 57 AS col0 + +Expected: ["NULL"] but got ["1"] +``` + + ```sql SELECT + 83 + + + 41 + CASE + 68 WHEN + 10 / - 92 THEN NULL WHEN + 82 + - COUNT ( * ) / - - 99 * - 4 THEN COUNT ( * ) END + + 20 * ( + 90 ) * - + 67 - - 72 * + 77 * - + 10 AS col2, 23 @@ -24006,7 +24041,7 @@ Expected: ["NULL","NULL"] but got ["NULL","22"] * 2,066 failed * 79% was OK -Time: 21177.375ms +Time: 23541.380ms ---- ---- ---- ---- ---- ---- ---- ### 455/620 [`./test/random/expr/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_8.test) @@ -24070,16 +24105,16 @@ Expected: ["NULL","NULL"] but got ["NULL","-20"] ```sql -SELECT CAST ( NULL AS INTEGER ) + 7 + - CAST ( - 45 AS INTEGER ) - - - 61 + - - 1 - 74, + AVG ( - - CAST ( NULL AS INTEGER ) ) + 63 AS col2 +SELECT + NULLIF ( + + 5, CAST ( - + MIN ( + COALESCE ( - - 85, + + 52 ) ) AS INTEGER ) ) -Expected: ["NULL","NULL"] but got ["-82","63"] +g is not defined ``` ```sql -SELECT DISTINCT 14 / - - 32 +SELECT CAST ( NULL AS INTEGER ) + 7 + - CAST ( - 45 AS INTEGER ) - - - 61 + - - 1 - 74, + AVG ( - - CAST ( NULL AS INTEGER ) ) + 63 AS col2 -Expected: ["0"] but got ["0.438"] +Expected: ["NULL","NULL"] but got ["-82","63"] ``` @@ -24094,7 +24129,7 @@ Expected: ["2","NULL"] but got ["NULL","NULL"] * 2,139 failed * 78% was OK -Time: 21263.512ms +Time: 25024.695ms ---- ---- ---- ---- ---- ---- ---- ### 456/620 [`./test/random/expr/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_80.test) @@ -24175,7 +24210,7 @@ Expected: ["4988","NULL"] but got ["NULL","NULL"] * 2,050 failed * 79% was OK -Time: 20990.870ms +Time: 36009.902ms ---- ---- ---- ---- ---- ---- ---- ### 457/620 [`./test/random/expr/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_81.test) @@ -24256,7 +24291,7 @@ Expected: ["0"] but got ["NULL"] * 2,042 failed * 79% was OK -Time: 21294.265ms +Time: 28305.879ms ---- ---- ---- ---- ---- ---- ---- ### 458/620 [`./test/random/expr/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_82.test) @@ -24337,7 +24372,7 @@ Expected: ["34","NULL"] but got ["NULL","NULL"] * 2,104 failed * 78% was OK -Time: 21325.403ms +Time: 27055.651ms ---- ---- ---- ---- ---- ---- ---- ### 459/620 [`./test/random/expr/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_83.test) @@ -24406,12 +24441,26 @@ SELECT 6 * - CAST ( NULL AS INTEGER ), + CAST ( + + ( - 16 ) AS INTEGER ) * - CO Expected: ["NULL","NULL"] but got ["0","-402.515"] ``` + +```sql +SELECT + 18 / + 89 + +Expected: ["0"] but got ["0.202"] +``` + + +```sql +SELECT COUNT ( * ) / 79 - + 99 AS col1 + +Expected: ["-99"] but got ["-98.987"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,995 failed * 80% was OK -Time: 21399.536ms +Time: 26289.136ms ---- ---- ---- ---- ---- ---- ---- ### 460/620 [`./test/random/expr/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_84.test) @@ -24446,6 +24495,13 @@ g is not defined ``` +```sql +SELECT DISTINCT 92 / + - 84 + +Expected: ["-1"] but got ["-1.095"] +``` + + ```sql SELECT - 44 / - 64, - CASE COALESCE ( COUNT ( * ), + 87 * MAX ( + 68 ) + - 32 / - 54 + MAX ( DISTINCT 73 ) / + NULLIF ( + 44, + CASE 3 WHEN - 51 + - + COUNT ( * ) * + + 84 THEN NULL WHEN - 64 THEN - + 43 ELSE - 37 END * + 93 * + MIN ( ALL - + 27 ) ), + 64 * ( + CASE 3 WHEN 8 * - 72 - + 45 THEN 7 EN… @@ -24485,7 +24541,7 @@ Expected: ["26","NULL"] but got ["NULL","NULL"] * 1,992 failed * 80% was OK -Time: 21071.220ms +Time: 33503.424ms ---- ---- ---- ---- ---- ---- ---- ### 461/620 [`./test/random/expr/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_85.test) @@ -24534,6 +24590,13 @@ Expected: ["-84","NULL"] but got ["NULL","NULL"] ``` +```sql +SELECT 99 / 81 + +Expected: ["1"] but got ["1.222"] +``` + + ```sql SELECT - CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - + + 71 AS col2 @@ -24561,12 +24624,26 @@ SELECT - - CASE WHEN NOT - 9 IN ( + 59 - + SUM ( DISTINCT - + ( - 5 ) ) ) THEN - Expected: ["-53"] but got ["NULL"] ``` + +```sql +SELECT 46 / - - 15 + +Expected: ["3"] but got ["3.067"] +``` + + +```sql +SELECT 5 / - 35 AS col1 + +Expected: ["0"] but got ["-0.143"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 2,033 failed * 79% was OK -Time: 21225.738ms +Time: 27011.384ms ---- ---- ---- ---- ---- ---- ---- ### 462/620 [`./test/random/expr/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_86.test) @@ -24629,13 +24706,6 @@ Expected: ["NULL","NULL"] but got ["93","NULL"] ``` -```sql -SELECT CAST ( NULL AS INTEGER ) + 53 AS col0 - -Expected: ["NULL"] but got ["53"] -``` - - ```sql SELECT ALL + - MIN ( - + 93 ) * - NULLIF ( 0, + CAST ( NULL AS INTEGER ) * - 32 ) * - MIN ( - 70 ) - - 23 + - 25 AS col0 @@ -24654,7 +24724,7 @@ Expected: ["13","NULL"] but got ["NULL","NULL"] * 1,906 failed * 80% was OK -Time: 20795.935ms +Time: 25791.586ms ---- ---- ---- ---- ---- ---- ---- ### 463/620 [`./test/random/expr/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_87.test) @@ -24721,7 +24791,7 @@ Expected: ["1","NULL"] but got ["NULL"] * 1,739 failed * 82% was OK -Time: 15803.937ms +Time: 18686.830ms ---- ---- ---- ---- ---- ---- ---- ### 464/620 [`./test/random/expr/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_88.test) @@ -24802,7 +24872,7 @@ Expected: ["NULL","NULL"] but got ["41","0"] * 2,085 failed * 79% was OK -Time: 21747.063ms +Time: 28880.761ms ---- ---- ---- ---- ---- ---- ---- ### 465/620 [`./test/random/expr/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_89.test) @@ -24890,7 +24960,7 @@ Expected: ["-85"] but got ["NULL"] * 2,004 failed * 79% was OK -Time: 21190.691ms +Time: 32705.686ms ---- ---- ---- ---- ---- ---- ---- ### 466/620 [`./test/random/expr/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_9.test) @@ -24966,19 +25036,12 @@ SELECT + ( + + 12 ) + - + 36 + - 83 * - 12 * ( - 71 ) * + CAST ( NULL AS INTEGER Expected: ["NULL","NULL"] but got ["-121","0"] ``` - -```sql -SELECT 54 + + + 26 + + MIN ( + 48 ) / 88 AS col0, 15 - -Expected: ["80","15"] but got ["15","80.545"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 2,046 failed * 79% was OK -Time: 21316.283ms +Time: 26486.700ms ---- ---- ---- ---- ---- ---- ---- ### 467/620 [`./test/random/expr/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_90.test) @@ -25052,7 +25115,7 @@ Expected: ["128","NULL","NULL"] but got ["128","0","NULL"] * 2,060 failed * 79% was OK -Time: 21642.402ms +Time: 25624.403ms ---- ---- ---- ---- ---- ---- ---- ### 468/620 [`./test/random/expr/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_91.test) @@ -25133,7 +25196,7 @@ Expected: ["NULL","NULL"] but got ["88","NULL"] * 2,050 failed * 79% was OK -Time: 21261.853ms +Time: 26319.393ms ---- ---- ---- ---- ---- ---- ---- ### 469/620 [`./test/random/expr/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_92.test) @@ -25196,6 +25259,13 @@ Expected: ["1490"] but got ["NULL"] ``` +```sql +SELECT DISTINCT 84 + - 94 * + CAST ( NULL AS INTEGER ) + 10 AS col2 + +Expected: ["NULL"] but got ["94"] +``` + + ```sql SELECT ALL + 8 AS col0, 32 * ( + COALESCE ( + - 41, 66 ) ) / + - CAST ( NULL AS INTEGER ) * - 97 * + 6 + - + 41 + - - 50 AS col0 @@ -25214,7 +25284,7 @@ Expected: ["NULL","NULL"] but got ["0","NULL"] * 2,097 failed * 79% was OK -Time: 21257.436ms +Time: 36929.795ms ---- ---- ---- ---- ---- ---- ---- ### 470/620 [`./test/random/expr/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_93.test) @@ -25277,13 +25347,6 @@ Expected: ["0","NULL"] but got ["0.581","NULL"] ``` -```sql -SELECT - COALESCE ( + CAST ( - 91 AS INTEGER ), - 15 * 29 - - + 28 ) AS col0, COUNT ( * ) * CAST ( 98 AS INTEGER ) + 86 col0 - -Expected: ["91","184"] but got ["184"] -``` - - ```sql SELECT 75 + - - CASE WHEN NOT ( NULL ) >= 4 THEN NULL WHEN NOT 24 IN ( 77 * + AVG ( + 27 ) + 72 * 4 ) THEN + 91 + - ( 2 + + ( 55 ) ) / + 18 END AS col2 @@ -25295,7 +25358,7 @@ Expected: ["163"] but got ["NULL"] * 2,047 failed * 79% was OK -Time: 21531.636ms +Time: 35314.022ms ---- ---- ---- ---- ---- ---- ---- ### 471/620 [`./test/random/expr/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_94.test) @@ -25371,12 +25434,19 @@ SELECT - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( + 84 ) - - COALESCE ( - + 2 Expected: ["NULL","NULL"] but got ["0","NULL"] ``` + +```sql +SELECT + 29 / - COALESCE ( + + 5, 46, + 65 ) AS col1 + +Expected: ["-5"] but got ["-5.800"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 2,058 failed * 79% was OK -Time: 21352.138ms +Time: 27335.644ms ---- ---- ---- ---- ---- ---- ---- ### 472/620 [`./test/random/expr/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_95.test) @@ -25457,7 +25527,7 @@ Expected: ["NULL","NULL"] but got ["34","-73"] * 2,074 failed * 79% was OK -Time: 21483.321ms +Time: 29824.546ms ---- ---- ---- ---- ---- ---- ---- ### 473/620 [`./test/random/expr/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_96.test) @@ -25531,7 +25601,7 @@ Expected: ["NULL","NULL"] but got ["0","0"] * 2,024 failed * 79% was OK -Time: 21404.123ms +Time: 32926.695ms ---- ---- ---- ---- ---- ---- ---- ### 474/620 [`./test/random/expr/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_97.test) @@ -25559,13 +25629,6 @@ g is not defined ``` -```sql -SELECT DISTINCT 32 * + - CAST ( + - COUNT ( - 57 ) AS INTEGER ) AS col1 - -g is not defined -``` - - ```sql SELECT + + CAST ( NULL AS INTEGER ) col0, - AVG ( - + CAST ( NULL AS INTEGER ) ) AS col2 @@ -25619,7 +25682,7 @@ Expected: ["91","NULL"] but got ["NULL","NULL"] * 2,033 failed * 79% was OK -Time: 21018.686ms +Time: 25299.271ms ---- ---- ---- ---- ---- ---- ---- ### 475/620 [`./test/random/expr/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_98.test) @@ -25686,7 +25749,7 @@ Expected: ["NULL","61"] but got ["NULL","61.000"] * 1,793 failed * 82% was OK -Time: 15907.962ms +Time: 18127.025ms ---- ---- ---- ---- ---- ---- ---- ### 476/620 [`./test/random/expr/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_99.test) @@ -25760,7 +25823,7 @@ Expected: ["NULL","NULL"] but got ["0","5840"] * 2,071 failed * 79% was OK -Time: 21615.429ms +Time: 25642.319ms ---- ---- ---- ---- ---- ---- ---- ### 477/620 [`./test/random/groupby/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_0.test) @@ -25841,7 +25904,7 @@ Query was expected to return results (but did not) * 4,287 failed * 57% was OK -Time: 17803.050ms +Time: 27397.331ms ---- ---- ---- ---- ---- ---- ---- ### 478/620 [`./test/random/groupby/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_1.test) @@ -25939,6 +26002,13 @@ Expected: ["81","NULL"] but got ["NULL","NULL"] ``` +```sql +SELECT ALL - + tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1 + +Expected: ["-81","0"] but got ["NULL","NULL"] +``` + + ```sql SELECT DISTINCT cor1.col0 - + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0, cor1.col0 @@ -25957,7 +26027,7 @@ Expected: ["3483","NULL","NULL"] but got ["NULL","NULL","NULL"] * 4,144 failed * 58% was OK -Time: 18061.305ms +Time: 24621.064ms ---- ---- ---- ---- ---- ---- ---- ### 479/620 [`./test/random/groupby/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_10.test) @@ -25996,7 +26066,7 @@ SELECT DISTINCT col0 AS col1, col0, col0 AS col1 FROM tab0 cor0 GROUP BY col0 * 284 failed * 97% was OK -Time: 17472.072ms +Time: 22402.512ms ---- ---- ---- ---- ---- ---- ---- ### 480/620 [`./test/random/groupby/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_11.test) @@ -26086,19 +26156,12 @@ SELECT + CASE WHEN NOT NULL NOT BETWEEN NULL AND NULL THEN - col1 ELSE NULL END Cannot read property 'toString' of undefined ``` - -```sql -SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL GROUP BY col0, col2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 873 failed * 91% was OK -Time: 20283.873ms +Time: 24278.216ms ---- ---- ---- ---- ---- ---- ---- ### 481/620 [`./test/random/groupby/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_12.test) @@ -26228,7 +26291,7 @@ Expected: ["-81","NULL"] but got ["NULL","NULL"] * 1,446 failed * 85% was OK -Time: 22851.439ms +Time: 28094.339ms ---- ---- ---- ---- ---- ---- ---- ### 482/620 [`./test/random/groupby/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_13.test) @@ -26316,7 +26379,7 @@ Correct amount of values returned but hash was different than expected. * 1,259 failed * 60% was OK -Time: 5798.519ms +Time: 11280.771ms ---- ---- ---- ---- ---- ---- ---- ### 483/620 [`./test/random/groupby/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_2.test) @@ -26418,7 +26481,7 @@ Expected: ["0","NULL","NULL"] but got ["NULL","NULL","NULL"] * 4,198 failed * 58% was OK -Time: 17719.532ms +Time: 27250.032ms ---- ---- ---- ---- ---- ---- ---- ### 484/620 [`./test/random/groupby/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_3.test) @@ -26474,6 +26537,13 @@ Expected: ["53","NULL","NULL"] but got ["NULL","NULL","NULL"] ``` +```sql +SELECT - cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1 + +Expected: ["-26","-43","-83"] but got ["NULL","NULL","NULL"] +``` + + ```sql SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 @@ -26513,7 +26583,7 @@ Expected: ["-41","-59","-61","20","22","40"] but got ["NULL","NULL","NULL","NULL * 4,465 failed * 55% was OK -Time: 17594.734ms +Time: 21427.186ms ---- ---- ---- ---- ---- ---- ---- ### 485/620 [`./test/random/groupby/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_4.test) @@ -26597,6 +26667,13 @@ Query was expected to return results (but did not) ``` +```sql +SELECT cor0.col1 - cor0.col1 * + 37 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1 + +Expected: ["-1476","-2124","-2196"] but got ["NULL","NULL","NULL"] +``` + + ```sql SELECT ALL - + NULLIF ( tab0.col1, + 29 / - 88 ) AS col0 FROM tab0 GROUP BY tab0.col1 @@ -26608,7 +26685,7 @@ Expected: ["-81","NULL"] but got ["NULL","NULL"] * 4,369 failed * 56% was OK -Time: 17666.095ms +Time: 21141.759ms ---- ---- ---- ---- ---- ---- ---- ### 486/620 [`./test/random/groupby/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_5.test) @@ -26717,7 +26794,7 @@ Expected: ["81","NULL"] but got ["NULL"] * 4,488 failed * 55% was OK -Time: 17701.387ms +Time: 20861.798ms ---- ---- ---- ---- ---- ---- ---- ### 487/620 [`./test/random/groupby/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_6.test) @@ -26793,19 +26870,12 @@ SELECT + tab1.col1 FROM tab1 GROUP BY tab1.col1 HAVING tab1.col1 IS NOT NULL Query was expected to return results (but did not) ``` - -```sql -SELECT - 7 + cor0.col2 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2 - -Expected: ["17","31","72"] but got ["NULL","NULL","NULL"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 4,625 failed * 53% was OK -Time: 18166.258ms +Time: 23373.015ms ---- ---- ---- ---- ---- ---- ---- ### 488/620 [`./test/random/groupby/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_7.test) @@ -26889,13 +26959,6 @@ Expected: ["1","1","NULL"] but got ["NULL","NULL","NULL"] ``` -```sql -SELECT 5 * cor0.col2 + 94 / cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2 - -Expected: ["227","356","51"] but got ["NULL","NULL","NULL"] -``` - - ```sql SELECT ALL tab0.col0 FROM tab0 GROUP BY tab0.col0 HAVING NOT tab0.col0 IS NULL @@ -26921,7 +26984,7 @@ Expected: ["-81","NULL"] but got ["NULL"] * 4,547 failed * 54% was OK -Time: 17838.615ms +Time: 28699.951ms ---- ---- ---- ---- ---- ---- ---- ### 489/620 [`./test/random/groupby/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_8.test) @@ -27016,7 +27079,7 @@ Expected: ["-3364","-3364","-6241","-6241","-7569","-7569"] but got ["NULL","NUL * 2,975 failed * 70% was OK -Time: 16978.634ms +Time: 21104.628ms ---- ---- ---- ---- ---- ---- ---- ### 490/620 [`./test/random/groupby/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_9.test) @@ -27065,13 +27128,6 @@ Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` -```sql -SELECT ALL + + cor0.col2 / - cor0.col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2 - -Expected: ["-1","-1","-1"] but got ["NULL","NULL","NULL"] -``` - - ```sql SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1 @@ -27111,7 +27167,7 @@ SELECT ALL col2 AS col1, - AVG ( - col2 ) AS col1, - col2 AS col1 FROM tab0 AS c * 503 failed * 94% was OK -Time: 16838.996ms +Time: 20537.234ms ---- ---- ---- ---- ---- ---- ---- ### 491/620 [`./test/random/select/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_0.test) @@ -27181,7 +27237,7 @@ Query was expected to return results (but did not) * 1,572 failed * 84% was OK -Time: 15580.940ms +Time: 18468.317ms ---- ---- ---- ---- ---- ---- ---- ### 492/620 [`./test/random/select/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_1.test) @@ -27246,19 +27302,12 @@ SELECT col0 FROM tab1 WHERE NOT ( col0 ) IN ( + col1 ) Query was expected to return results (but did not) ``` - -```sql -SELECT ALL + + col2 / - cor0.col0 FROM tab2 AS cor0 - -Expected: ["-3","0","0"] but got ["-0.333","-0.481","-3.857"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 1,338 failed * 86% was OK -Time: 16033.115ms +Time: 18960.251ms ---- ---- ---- ---- ---- ---- ---- ### 493/620 [`./test/random/select/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_10.test) @@ -27328,7 +27377,7 @@ Query was expected to return results (but did not) * 1,287 failed * 87% was OK -Time: 16536.283ms +Time: 26788.021ms ---- ---- ---- ---- ---- ---- ---- ### 494/620 [`./test/random/select/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_100.test) @@ -27398,7 +27447,7 @@ Query was expected to return results (but did not) * 1,441 failed * 85% was OK -Time: 17857.744ms +Time: 24379.690ms ---- ---- ---- ---- ---- ---- ---- ### 495/620 [`./test/random/select/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_101.test) @@ -27468,7 +27517,7 @@ SELECT DISTINCT * FROM tab0, tab1 cor0, tab1, tab2 cor1 * 1,435 failed * 85% was OK -Time: 17247.963ms +Time: 24177.338ms ---- ---- ---- ---- ---- ---- ---- ### 496/620 [`./test/random/select/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_102.test) @@ -27538,7 +27587,7 @@ SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab2 AS cor2 * 1,458 failed * 85% was OK -Time: 17724.234ms +Time: 25632.155ms ---- ---- ---- ---- ---- ---- ---- ### 497/620 [`./test/random/select/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_103.test) @@ -27608,7 +27657,7 @@ Query was expected to return results (but did not) * 1,457 failed * 85% was OK -Time: 17537.349ms +Time: 21529.683ms ---- ---- ---- ---- ---- ---- ---- ### 498/620 [`./test/random/select/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_104.test) @@ -27678,7 +27727,7 @@ SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab0 cor2 * 1,433 failed * 85% was OK -Time: 17565.125ms +Time: 28275.224ms ---- ---- ---- ---- ---- ---- ---- ### 499/620 [`./test/random/select/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_105.test) @@ -27748,7 +27797,7 @@ SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 cor1, tab0 AS cor2 * 1,443 failed * 85% was OK -Time: 19822.286ms +Time: 23704.004ms ---- ---- ---- ---- ---- ---- ---- ### 500/620 [`./test/random/select/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_106.test) @@ -27818,7 +27867,7 @@ SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab1, tab0 cor2 * 1,415 failed * 85% was OK -Time: 18310.707ms +Time: 20801.215ms ---- ---- ---- ---- ---- ---- ---- ### 501/620 [`./test/random/select/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_107.test) @@ -27888,7 +27937,7 @@ Query was expected to return results (but did not) * 1,454 failed * 85% was OK -Time: 17672.204ms +Time: 21876.717ms ---- ---- ---- ---- ---- ---- ---- ### 502/620 [`./test/random/select/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_108.test) @@ -27958,7 +28007,7 @@ SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 cor1, tab1, tab1 AS cor2 * 1,399 failed * 86% was OK -Time: 17708.923ms +Time: 20644.964ms ---- ---- ---- ---- ---- ---- ---- ### 503/620 [`./test/random/select/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_109.test) @@ -28028,7 +28077,7 @@ SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab0 AS cor2 * 1,408 failed * 85% was OK -Time: 17498.075ms +Time: 27035.858ms ---- ---- ---- ---- ---- ---- ---- ### 504/620 [`./test/random/select/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_11.test) @@ -28098,7 +28147,7 @@ Wrong conversion type * 1,340 failed * 86% was OK -Time: 16796.476ms +Time: 24199.012ms ---- ---- ---- ---- ---- ---- ---- ### 505/620 [`./test/random/select/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_110.test) @@ -28168,7 +28217,7 @@ SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 cor1, tab2, tab1 AS cor2 * 1,415 failed * 85% was OK -Time: 17461.035ms +Time: 21307.125ms ---- ---- ---- ---- ---- ---- ---- ### 506/620 [`./test/random/select/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_111.test) @@ -28238,7 +28287,7 @@ SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab0 cor2 * 1,476 failed * 85% was OK -Time: 17450.637ms +Time: 20799.093ms ---- ---- ---- ---- ---- ---- ---- ### 507/620 [`./test/random/select/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_112.test) @@ -28308,7 +28357,7 @@ Query was expected to return results (but did not) * 1,452 failed * 85% was OK -Time: 17407.886ms +Time: 20851.687ms ---- ---- ---- ---- ---- ---- ---- ### 508/620 [`./test/random/select/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_113.test) @@ -28378,7 +28427,7 @@ SELECT DISTINCT * FROM tab1, tab0, tab2 cor0, tab2 cor1 * 1,365 failed * 86% was OK -Time: 17677.629ms +Time: 25097.073ms ---- ---- ---- ---- ---- ---- ---- ### 509/620 [`./test/random/select/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_114.test) @@ -28448,7 +28497,7 @@ SELECT DISTINCT + cor0.col2 + + cor1.col2 / tab2.col0 AS col2 FROM tab2, tab0 AS * 1,393 failed * 86% was OK -Time: 17509.789ms +Time: 26484.674ms ---- ---- ---- ---- ---- ---- ---- ### 510/620 [`./test/random/select/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_115.test) @@ -28518,7 +28567,7 @@ Query was expected to return results (but did not) * 1,445 failed * 85% was OK -Time: 17983.497ms +Time: 21614.169ms ---- ---- ---- ---- ---- ---- ---- ### 511/620 [`./test/random/select/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_116.test) @@ -28588,7 +28637,7 @@ SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0 cor1 * 1,466 failed * 85% was OK -Time: 17559.408ms +Time: 20937.936ms ---- ---- ---- ---- ---- ---- ---- ### 512/620 [`./test/random/select/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_117.test) @@ -28640,6 +28689,13 @@ Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVO ``` +```sql +SELECT + + col1 / CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 + +Expected: ["0","0","4"] but got ["0.215","0.756","4.429"] +``` + + ```sql SELECT ALL * FROM tab0 WHERE NOT ( + col2 * + col1 ) IN ( + col2 ) @@ -28653,12 +28709,19 @@ SELECT DISTINCT * FROM tab0, tab2, tab1 cor0, tab1 cor1 36 results returned but expected 972 ``` + +```sql +SELECT DISTINCT + col1 / + col0 + + col0 FROM tab2 AS cor0 + +Expected: ["11","78","79"] but got ["11.429","78.756","79.215"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,524 failed * 84% was OK -Time: 17481.181ms +Time: 21318.401ms ---- ---- ---- ---- ---- ---- ---- ### 513/620 [`./test/random/select/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_118.test) @@ -28728,7 +28791,7 @@ SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab1 AS cor2 * 1,447 failed * 85% was OK -Time: 17520.671ms +Time: 23216.468ms ---- ---- ---- ---- ---- ---- ---- ### 514/620 [`./test/random/select/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_119.test) @@ -28798,7 +28861,7 @@ Query was expected to return results (but did not) * 1,441 failed * 85% was OK -Time: 17582.641ms +Time: 28639.829ms ---- ---- ---- ---- ---- ---- ---- ### 515/620 [`./test/random/select/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_12.test) @@ -28868,7 +28931,7 @@ Query was expected to return results (but did not) * 1,256 failed * 87% was OK -Time: 16786.214ms +Time: 20834.771ms ---- ---- ---- ---- ---- ---- ---- ### 516/620 [`./test/random/select/slt_good_120.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_120.test) @@ -28938,7 +29001,7 @@ SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 cor2 * 1,434 failed * 85% was OK -Time: 17537.593ms +Time: 20826.518ms ---- ---- ---- ---- ---- ---- ---- ### 517/620 [`./test/random/select/slt_good_121.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_121.test) @@ -29003,12 +29066,19 @@ SELECT DISTINCT * FROM tab2, tab0, tab1 cor0, tab0 AS cor1 36 results returned but expected 972 ``` + +```sql +SELECT - col0 / 45 + - col1 AS col2 FROM tab2 AS cor0 + +Expected: ["-18","-31","-60"] but got ["-18.756","-31.156","-60.733"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,397 failed * 86% was OK -Time: 17630.128ms +Time: 20758.083ms ---- ---- ---- ---- ---- ---- ---- ### 518/620 [`./test/random/select/slt_good_122.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_122.test) @@ -29078,7 +29148,7 @@ Query was expected to return results (but did not) * 1,464 failed * 85% was OK -Time: 17640.019ms +Time: 21272.181ms ---- ---- ---- ---- ---- ---- ---- ### 519/620 [`./test/random/select/slt_good_123.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_123.test) @@ -29148,7 +29218,7 @@ SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 cor1, tab2, tab0 AS cor2 * 1,443 failed * 85% was OK -Time: 17958.648ms +Time: 31050.740ms ---- ---- ---- ---- ---- ---- ---- ### 520/620 [`./test/random/select/slt_good_124.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_124.test) @@ -29218,21 +29288,21 @@ SELECT DISTINCT * FROM tab1, tab0 cor0, tab0, tab0 cor1 * 396 failed * 86% was OK -Time: 5056.323ms +Time: 7061.630ms ---- ---- ---- ---- ---- ---- ---- ### 521/620 [`./test/random/select/slt_good_125.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_125.test) #### ★ Assuming all 12 tests still passes as _sqlite_ -Time: 0.364ms +Time: 0.427ms ---- ---- ---- ---- ---- ---- ---- ### 522/620 [`./test/random/select/slt_good_126.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_126.test) #### ★ Assuming all 12 tests still passes as _sqlite_ -Time: 0.442ms +Time: 0.616ms ---- ---- ---- ---- ---- ---- ---- ### 523/620 [`./test/random/select/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_13.test) @@ -29297,12 +29367,19 @@ SELECT col1 / col0 FROM tab2 WHERE NOT - col2 BETWEEN ( col2 * + col1 ) AND NULL Query was expected to return results (but did not) ``` + +```sql +SELECT - 17 * - 37 * + col2 + CAST ( NULL AS REAL ) * - col2 FROM tab1 AS cor0 + +Wrong conversion type +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,314 failed * 86% was OK -Time: 17008.374ms +Time: 21159.992ms ---- ---- ---- ---- ---- ---- ---- ### 524/620 [`./test/random/select/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_14.test) @@ -29372,7 +29449,7 @@ Query was expected to return results (but did not) * 1,300 failed * 87% was OK -Time: 17259.655ms +Time: 20382.591ms ---- ---- ---- ---- ---- ---- ---- ### 525/620 [`./test/random/select/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_15.test) @@ -29442,7 +29519,7 @@ SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab0 AS cor2 * 1,280 failed * 87% was OK -Time: 16638.045ms +Time: 19956.137ms ---- ---- ---- ---- ---- ---- ---- ### 526/620 [`./test/random/select/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_16.test) @@ -29507,19 +29584,12 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( + col2 + col1 + col0 ) Query was expected to return results (but did not) ``` - -```sql -SELECT + col2 - - col0 / col2 FROM tab0 AS cor0 - -Expected: ["33","36","83"] but got ["33.727","36","83.085"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 1,295 failed * 87% was OK -Time: 16714.038ms +Time: 19961.805ms ---- ---- ---- ---- ---- ---- ---- ### 527/620 [`./test/random/select/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_17.test) @@ -29589,7 +29659,7 @@ Query was expected to return results (but did not) * 1,327 failed * 86% was OK -Time: 16732.175ms +Time: 29946.970ms ---- ---- ---- ---- ---- ---- ---- ### 528/620 [`./test/random/select/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_18.test) @@ -29659,7 +29729,7 @@ SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab0 AS cor2 * 1,335 failed * 86% was OK -Time: 18221.831ms +Time: 21906.421ms ---- ---- ---- ---- ---- ---- ---- ### 529/620 [`./test/random/select/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_19.test) @@ -29729,7 +29799,7 @@ Query was expected to return results (but did not) * 1,306 failed * 86% was OK -Time: 16869.485ms +Time: 20120.555ms ---- ---- ---- ---- ---- ---- ---- ### 530/620 [`./test/random/select/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_2.test) @@ -29799,7 +29869,7 @@ Query was expected to return results (but did not) * 1,291 failed * 87% was OK -Time: 16116.282ms +Time: 19230.292ms ---- ---- ---- ---- ---- ---- ---- ### 531/620 [`./test/random/select/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_20.test) @@ -29864,19 +29934,12 @@ SELECT col2 * col2 FROM tab0 AS cor0 WHERE NOT col1 * col2 * - cor0.col2 BETWEEN Query was expected to return results (but did not) ``` - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - 33 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 1,299 failed * 87% was OK -Time: 16819.720ms +Time: 20203.980ms ---- ---- ---- ---- ---- ---- ---- ### 532/620 [`./test/random/select/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_21.test) @@ -29946,7 +30009,7 @@ SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2 * 1,347 failed * 86% was OK -Time: 16828.019ms +Time: 25256.290ms ---- ---- ---- ---- ---- ---- ---- ### 533/620 [`./test/random/select/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_22.test) @@ -30016,7 +30079,7 @@ SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0, tab1 cor1 * 1,324 failed * 86% was OK -Time: 17071.604ms +Time: 24767.506ms ---- ---- ---- ---- ---- ---- ---- ### 534/620 [`./test/random/select/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_23.test) @@ -30086,7 +30149,7 @@ Query was expected to return results (but did not) * 1,346 failed * 86% was OK -Time: 17497.887ms +Time: 20604.366ms ---- ---- ---- ---- ---- ---- ---- ### 535/620 [`./test/random/select/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_24.test) @@ -30156,7 +30219,7 @@ Query was expected to return results (but did not) * 1,321 failed * 86% was OK -Time: 17332.961ms +Time: 20100.159ms ---- ---- ---- ---- ---- ---- ---- ### 536/620 [`./test/random/select/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_25.test) @@ -30226,7 +30289,7 @@ Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVO * 1,313 failed * 86% was OK -Time: 16783.908ms +Time: 19977.665ms ---- ---- ---- ---- ---- ---- ---- ### 537/620 [`./test/random/select/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_26.test) @@ -30291,12 +30354,19 @@ SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1 cor2 36 results returned but expected 972 ``` + +```sql +SELECT DISTINCT + col2 / + cor0.col0 + col2 FROM tab2 AS cor0 + +Expected: ["26","30","38"] but got ["26.333","30.857","38.481"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,349 failed * 86% was OK -Time: 16987.012ms +Time: 21578.205ms ---- ---- ---- ---- ---- ---- ---- ### 538/620 [`./test/random/select/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_27.test) @@ -30366,7 +30436,7 @@ Expected: ["NULL"] but got ["0"] * 1,287 failed * 87% was OK -Time: 16869.575ms +Time: 28339.338ms ---- ---- ---- ---- ---- ---- ---- ### 539/620 [`./test/random/select/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_28.test) @@ -30431,19 +30501,12 @@ SELECT * FROM tab1 cor0 WHERE NOT - col2 IN ( cor0.col2 / - cor0.col1 ) Query was expected to return results (but did not) ``` - -```sql -SELECT ALL + col2 / - col0 AS col1 FROM tab0 - -Expected: ["-1","0","0"] but got ["-0.029","-0.921","-1.375"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 1,306 failed * 86% was OK -Time: 16905.042ms +Time: 21299.590ms ---- ---- ---- ---- ---- ---- ---- ### 540/620 [`./test/random/select/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_29.test) @@ -30513,7 +30576,7 @@ Query was expected to return results (but did not) * 1,405 failed * 85% was OK -Time: 16984.816ms +Time: 20251.482ms ---- ---- ---- ---- ---- ---- ---- ### 541/620 [`./test/random/select/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_3.test) @@ -30578,19 +30641,12 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IN ( col0 + col0 * col0 ) Query was expected to return results (but did not) ``` - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - #### ☓ Ran 10,011 tests as _sqlite_ * 1,258 failed * 87% was OK -Time: 16288.244ms +Time: 19602.442ms ---- ---- ---- ---- ---- ---- ---- ### 542/620 [`./test/random/select/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_30.test) @@ -30660,7 +30716,7 @@ SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2 * 1,409 failed * 85% was OK -Time: 18301.582ms +Time: 20837.734ms ---- ---- ---- ---- ---- ---- ---- ### 543/620 [`./test/random/select/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_31.test) @@ -30725,12 +30781,19 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - col1 IN ( col1 ) Query was expected to return results (but did not) ``` + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2 + +45 results returned but expected 3645 +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,382 failed * 86% was OK -Time: 17026.777ms +Time: 27073.920ms ---- ---- ---- ---- ---- ---- ---- ### 544/620 [`./test/random/select/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_32.test) @@ -30800,7 +30863,7 @@ Query was expected to return results (but did not) * 1,354 failed * 86% was OK -Time: 17034.799ms +Time: 23966.453ms ---- ---- ---- ---- ---- ---- ---- ### 545/620 [`./test/random/select/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_33.test) @@ -30870,7 +30933,7 @@ SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab2, tab1 AS cor2 * 1,384 failed * 86% was OK -Time: 16877.160ms +Time: 21141.155ms ---- ---- ---- ---- ---- ---- ---- ### 546/620 [`./test/random/select/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_34.test) @@ -30940,7 +31003,7 @@ Query was expected to return results (but did not) * 1,385 failed * 86% was OK -Time: 19672.892ms +Time: 20495.557ms ---- ---- ---- ---- ---- ---- ---- ### 547/620 [`./test/random/select/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_35.test) @@ -31010,7 +31073,7 @@ SELECT DISTINCT * FROM tab0, tab1, tab2 cor0, tab0 AS cor1 * 1,344 failed * 86% was OK -Time: 21613.857ms +Time: 20660.236ms ---- ---- ---- ---- ---- ---- ---- ### 548/620 [`./test/random/select/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_36.test) @@ -31080,7 +31143,7 @@ Query was expected to return results (but did not) * 1,438 failed * 85% was OK -Time: 22717.808ms +Time: 25221.575ms ---- ---- ---- ---- ---- ---- ---- ### 549/620 [`./test/random/select/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_37.test) @@ -31145,12 +31208,26 @@ SELECT ALL * FROM tab1 WHERE NOT - col1 IN ( col0 ) Query was expected to return results (but did not) ``` + +```sql +SELECT + ( col2 ) + CAST ( NULL AS INTEGER ) - + 63 * col0 * - col1 AS col0 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["40377","4968","65616"] +``` + + +```sql +SELECT DISTINCT - + col0 / + cor0.col1 + col0 FROM tab0 AS cor0 + +Expected: ["24","35","89"] but got ["23.721","34.639","88.022"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,300 failed * 87% was OK -Time: 20219.388ms +Time: 26442.624ms ---- ---- ---- ---- ---- ---- ---- ### 550/620 [`./test/random/select/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_38.test) @@ -31220,7 +31297,7 @@ SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2 * 1,339 failed * 86% was OK -Time: 19906.494ms +Time: 21278.089ms ---- ---- ---- ---- ---- ---- ---- ### 551/620 [`./test/random/select/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_39.test) @@ -31290,7 +31367,7 @@ Query was expected to return results (but did not) * 1,334 failed * 86% was OK -Time: 20640.879ms +Time: 20762.883ms ---- ---- ---- ---- ---- ---- ---- ### 552/620 [`./test/random/select/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_4.test) @@ -31360,7 +31437,7 @@ Query was expected to return results (but did not) * 1,317 failed * 86% was OK -Time: 20049.738ms +Time: 19715.389ms ---- ---- ---- ---- ---- ---- ---- ### 553/620 [`./test/random/select/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_40.test) @@ -31430,7 +31507,7 @@ Query was expected to return results (but did not) * 1,324 failed * 86% was OK -Time: 20224.900ms +Time: 22419.479ms ---- ---- ---- ---- ---- ---- ---- ### 554/620 [`./test/random/select/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_41.test) @@ -31495,12 +31572,19 @@ SELECT * FROM tab1 WHERE NOT col2 * + col0 IN ( col1 + col2 ) Query was expected to return results (but did not) ``` + +```sql +SELECT cor0.col1 / + col0 FROM tab0 AS cor0 + +Expected: ["1","2","3"] but got ["1.022","2.771","3.583"] +``` + #### ☓ Ran 10,010 tests as _sqlite_ * 1,362 failed * 86% was OK -Time: 19931.656ms +Time: 29212.685ms ---- ---- ---- ---- ---- ---- ---- ### 555/620 [`./test/random/select/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_42.test) @@ -31570,7 +31654,7 @@ Query was expected to return results (but did not) * 1,431 failed * 85% was OK -Time: 20833.559ms +Time: 21183.268ms ---- ---- ---- ---- ---- ---- ---- ### 556/620 [`./test/random/select/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_43.test) @@ -31640,7 +31724,7 @@ SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 AS cor1, tab1, tab2 AS cor2 * 1,317 failed * 86% was OK -Time: 18107.633ms +Time: 22207.191ms ---- ---- ---- ---- ---- ---- ---- ### 557/620 [`./test/random/select/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_44.test) @@ -31710,7 +31794,7 @@ Query was expected to return results (but did not) * 1,341 failed * 86% was OK -Time: 17654.323ms +Time: 20459.826ms ---- ---- ---- ---- ---- ---- ---- ### 558/620 [`./test/random/select/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_45.test) @@ -31780,7 +31864,7 @@ Query was expected to return results (but did not) * 1,346 failed * 86% was OK -Time: 17153.075ms +Time: 24146.494ms ---- ---- ---- ---- ---- ---- ---- ### 559/620 [`./test/random/select/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_46.test) @@ -31850,7 +31934,7 @@ SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab1 cor2 * 1,389 failed * 86% was OK -Time: 17022.795ms +Time: 42177.684ms ---- ---- ---- ---- ---- ---- ---- ### 560/620 [`./test/random/select/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_47.test) @@ -31920,7 +32004,7 @@ Expected: ["NULL"] but got ["69"] * 1,374 failed * 86% was OK -Time: 16842.793ms +Time: 33064.355ms ---- ---- ---- ---- ---- ---- ---- ### 561/620 [`./test/random/select/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_48.test) @@ -31990,7 +32074,7 @@ SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab2, tab2 cor2 * 1,375 failed * 86% was OK -Time: 17305.522ms +Time: 29979.740ms ---- ---- ---- ---- ---- ---- ---- ### 562/620 [`./test/random/select/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_49.test) @@ -32060,7 +32144,7 @@ Query was expected to return results (but did not) * 1,342 failed * 86% was OK -Time: 16956.599ms +Time: 38702.468ms ---- ---- ---- ---- ---- ---- ---- ### 563/620 [`./test/random/select/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_5.test) @@ -32130,7 +32214,7 @@ Query was expected to return results (but did not) * 1,323 failed * 86% was OK -Time: 16172.710ms +Time: 28190.507ms ---- ---- ---- ---- ---- ---- ---- ### 564/620 [`./test/random/select/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_50.test) @@ -32200,7 +32284,7 @@ SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2 * 1,405 failed * 85% was OK -Time: 17105.567ms +Time: 21634.933ms ---- ---- ---- ---- ---- ---- ---- ### 565/620 [`./test/random/select/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_51.test) @@ -32270,7 +32354,7 @@ Query was expected to return results (but did not) * 1,362 failed * 86% was OK -Time: 17659.491ms +Time: 21202.038ms ---- ---- ---- ---- ---- ---- ---- ### 566/620 [`./test/random/select/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_52.test) @@ -32335,12 +32419,19 @@ SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2 45 results returned but expected 3645 ``` + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + #### ☓ Ran 10,010 tests as _sqlite_ * 1,428 failed * 85% was OK -Time: 17164.833ms +Time: 20832.399ms ---- ---- ---- ---- ---- ---- ---- ### 567/620 [`./test/random/select/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_53.test) @@ -32410,7 +32501,7 @@ Query was expected to return results (but did not) * 1,370 failed * 86% was OK -Time: 17067.043ms +Time: 30171.424ms ---- ---- ---- ---- ---- ---- ---- ### 568/620 [`./test/random/select/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_54.test) @@ -32475,19 +32566,12 @@ SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0, tab0 cor1 36 results returned but expected 972 ``` - -```sql -SELECT + col1 + - col1 / col0 FROM tab1 - -Expected: ["10","13","18"] but got ["12.838","17.333","9.844"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 1,459 failed * 85% was OK -Time: 17133.299ms +Time: 22173.148ms ---- ---- ---- ---- ---- ---- ---- ### 569/620 [`./test/random/select/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_55.test) @@ -32557,7 +32641,7 @@ Query was expected to return results (but did not) * 1,391 failed * 86% was OK -Time: 17296.966ms +Time: 21628.232ms ---- ---- ---- ---- ---- ---- ---- ### 570/620 [`./test/random/select/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_56.test) @@ -32622,19 +32706,12 @@ SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab2, tab0 AS cor2 45 results returned but expected 3645 ``` - -```sql -SELECT ALL - - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 1,322 failed * 86% was OK -Time: 17176.569ms +Time: 21101.240ms ---- ---- ---- ---- ---- ---- ---- ### 571/620 [`./test/random/select/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_57.test) @@ -32704,7 +32781,7 @@ SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1, tab2 cor2 * 1,442 failed * 85% was OK -Time: 17233.095ms +Time: 21021.587ms ---- ---- ---- ---- ---- ---- ---- ### 572/620 [`./test/random/select/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_58.test) @@ -32774,7 +32851,7 @@ SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab1 AS cor2 * 1,411 failed * 85% was OK -Time: 17380.242ms +Time: 28234.270ms ---- ---- ---- ---- ---- ---- ---- ### 573/620 [`./test/random/select/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_59.test) @@ -32839,12 +32916,19 @@ SELECT * FROM tab1 WHERE NOT ( - col2 ) IN ( + col2 ) Query was expected to return results (but did not) ``` + +```sql +SELECT DISTINCT + + col0 / + col1 FROM tab1 AS cor0 + +Expected: ["0","6"] but got ["0.115","6.154","6.400"] +``` + #### ☓ Ran 10,011 tests as _sqlite_ * 1,418 failed * 85% was OK -Time: 17244.971ms +Time: 24252.117ms ---- ---- ---- ---- ---- ---- ---- ### 574/620 [`./test/random/select/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_6.test) @@ -32914,7 +32998,7 @@ Query was expected to return results (but did not) * 1,345 failed * 86% was OK -Time: 16583.424ms +Time: 20478.133ms ---- ---- ---- ---- ---- ---- ---- ### 575/620 [`./test/random/select/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_60.test) @@ -32979,22 +33063,12 @@ SELECT DISTINCT * FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab2 AS cor2 45 results returned but expected 3645 ``` - -```sql -SELECT ALL cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - #### ☓ Ran 10,011 tests as _sqlite_ * 1,421 failed * 85% was OK -Time: 17985.113ms +Time: 23081.708ms ---- ---- ---- ---- ---- ---- ---- ### 576/620 [`./test/random/select/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_61.test) @@ -33064,7 +33138,7 @@ SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 cor2 * 1,417 failed * 85% was OK -Time: 17323.068ms +Time: 27074.143ms ---- ---- ---- ---- ---- ---- ---- ### 577/620 [`./test/random/select/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_62.test) @@ -33134,7 +33208,7 @@ SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 cor2 * 1,353 failed * 86% was OK -Time: 17511.011ms +Time: 30713.200ms ---- ---- ---- ---- ---- ---- ---- ### 578/620 [`./test/random/select/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_63.test) @@ -33204,7 +33278,7 @@ SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2 * 1,421 failed * 85% was OK -Time: 17463.550ms +Time: 22364.626ms ---- ---- ---- ---- ---- ---- ---- ### 579/620 [`./test/random/select/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_64.test) @@ -33263,35 +33337,18 @@ Query was expected to return results (but did not) ``` -```sql -SELECT ALL cor0.col0 * - col2 + col1 / col0 AS col0 FROM tab0 AS cor0 - -Expected: ["-33","-7297","-789"] but got ["-32.229","-7296.978","-788.417"] -``` - - ```sql SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2 45 results returned but expected 3645 ``` - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - #### ☓ Ran 10,011 tests as _sqlite_ * 1,367 failed * 86% was OK -Time: 17429.958ms +Time: 21320.998ms ---- ---- ---- ---- ---- ---- ---- ### 580/620 [`./test/random/select/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_65.test) @@ -33361,7 +33418,7 @@ SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab1 cor2 * 1,400 failed * 86% was OK -Time: 17255.462ms +Time: 20930.483ms ---- ---- ---- ---- ---- ---- ---- ### 581/620 [`./test/random/select/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_66.test) @@ -33426,12 +33483,19 @@ SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 cor1, tab0, tab2 AS cor2 45 results returned but expected 3645 ``` + +```sql +SELECT + 29 / - col0 + - col1 AS col1 FROM tab0 + +Expected: ["-87","-91","-97"] but got ["-87.208","-91.326","-97.829"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,377 failed * 86% was OK -Time: 17432.383ms +Time: 20773.952ms ---- ---- ---- ---- ---- ---- ---- ### 582/620 [`./test/random/select/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_67.test) @@ -33501,7 +33565,7 @@ SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab2 cor2 * 1,354 failed * 86% was OK -Time: 17122.818ms +Time: 27970.103ms ---- ---- ---- ---- ---- ---- ---- ### 583/620 [`./test/random/select/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_68.test) @@ -33571,7 +33635,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + col0 + - col1 BETWEEN - col2 AND * 1,386 failed * 86% was OK -Time: 17614.326ms +Time: 24112.579ms ---- ---- ---- ---- ---- ---- ---- ### 584/620 [`./test/random/select/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_69.test) @@ -33641,7 +33705,7 @@ SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 cor2 * 1,403 failed * 85% was OK -Time: 17288.583ms +Time: 21413.288ms ---- ---- ---- ---- ---- ---- ---- ### 585/620 [`./test/random/select/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_7.test) @@ -33711,7 +33775,7 @@ Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVO * 1,283 failed * 87% was OK -Time: 16622.701ms +Time: 20058.289ms ---- ---- ---- ---- ---- ---- ---- ### 586/620 [`./test/random/select/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_70.test) @@ -33781,7 +33845,7 @@ Query was expected to return results (but did not) * 1,449 failed * 85% was OK -Time: 17741.275ms +Time: 21064.831ms ---- ---- ---- ---- ---- ---- ---- ### 587/620 [`./test/random/select/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_71.test) @@ -33851,7 +33915,7 @@ SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 cor2 * 1,400 failed * 86% was OK -Time: 17490.524ms +Time: 26349.765ms ---- ---- ---- ---- ---- ---- ---- ### 588/620 [`./test/random/select/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_72.test) @@ -33916,19 +33980,12 @@ SELECT * FROM tab1 WHERE NOT col2 * col0 + + col1 + + col1 * col2 IN ( tab1.col1 Query was expected to return results (but did not) ``` - -```sql -SELECT 4 / + col1 FROM tab0 AS cor0 - -Expected: ["0","0","0"] but got ["0.041","0.044","0.047"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 1,437 failed * 85% was OK -Time: 17504.011ms +Time: 25445.324ms ---- ---- ---- ---- ---- ---- ---- ### 589/620 [`./test/random/select/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_73.test) @@ -33998,7 +34055,7 @@ SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab2 cor2 * 1,433 failed * 85% was OK -Time: 17191.348ms +Time: 21876.474ms ---- ---- ---- ---- ---- ---- ---- ### 590/620 [`./test/random/select/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_74.test) @@ -34068,7 +34125,7 @@ SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1, tab0, tab1 AS cor2 * 1,400 failed * 86% was OK -Time: 17446.067ms +Time: 20752.755ms ---- ---- ---- ---- ---- ---- ---- ### 591/620 [`./test/random/select/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_75.test) @@ -34133,19 +34190,12 @@ SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab0 cor2 45 results returned but expected 3645 ``` - -```sql -SELECT - - ( + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 1,336 failed * 86% was OK -Time: 17519.492ms +Time: 21664.426ms ---- ---- ---- ---- ---- ---- ---- ### 592/620 [`./test/random/select/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_76.test) @@ -34215,7 +34265,7 @@ SELECT DISTINCT * FROM tab2, tab1 cor0, tab1, tab0 cor1 * 1,440 failed * 85% was OK -Time: 17290.652ms +Time: 29072.108ms ---- ---- ---- ---- ---- ---- ---- ### 593/620 [`./test/random/select/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_77.test) @@ -34285,7 +34335,7 @@ Query was expected to return results (but did not) * 1,415 failed * 85% was OK -Time: 17442.974ms +Time: 30178.911ms ---- ---- ---- ---- ---- ---- ---- ### 594/620 [`./test/random/select/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_78.test) @@ -34355,7 +34405,7 @@ Query was expected to return results (but did not) * 1,395 failed * 86% was OK -Time: 17762.592ms +Time: 23851.092ms ---- ---- ---- ---- ---- ---- ---- ### 595/620 [`./test/random/select/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_79.test) @@ -34414,6 +34464,13 @@ Expected: ["NULL"] but got ["7","78","79"] ``` +```sql +SELECT DISTINCT + col1 / tab1.col2 AS col1 FROM tab1 + +Expected: ["0"] but got ["0.135","0.175","0.481"] +``` + + ```sql SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 AS cor1, tab0, tab0 AS cor2 @@ -34425,7 +34482,7 @@ SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 AS cor1, tab0, tab0 AS cor2 * 1,395 failed * 86% was OK -Time: 17287.545ms +Time: 23913.871ms ---- ---- ---- ---- ---- ---- ---- ### 596/620 [`./test/random/select/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_8.test) @@ -34490,19 +34547,12 @@ SELECT - col2 + col0 + - col1 * + col2 FROM tab2 WHERE NOT col2 + - col1 + + col Query was expected to return results (but did not) ``` - -```sql -SELECT DISTINCT col1 / col0 FROM tab0 AS cor0 - -Expected: ["1","2","3"] but got ["1.022","2.771","3.583"] -``` - #### ☓ Ran 10,012 tests as _sqlite_ * 1,322 failed * 86% was OK -Time: 17350.709ms +Time: 23879.636ms ---- ---- ---- ---- ---- ---- ---- ### 597/620 [`./test/random/select/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_80.test) @@ -34567,12 +34617,19 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1 ) Query was expected to return results (but did not) ``` + +```sql +SELECT + + 49 + - col2 / col0 + col0 / - cor0.col0 FROM tab1 AS cor0 + +Expected: ["30","47","48"] but got ["30","46.800","47.109"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,423 failed * 85% was OK -Time: 17549.820ms +Time: 35479.025ms ---- ---- ---- ---- ---- ---- ---- ### 598/620 [`./test/random/select/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_81.test) @@ -34642,7 +34699,7 @@ Query was expected to return results (but did not) * 1,406 failed * 85% was OK -Time: 17485.671ms +Time: 27059.045ms ---- ---- ---- ---- ---- ---- ---- ### 599/620 [`./test/random/select/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_82.test) @@ -34712,7 +34769,7 @@ Query was expected to return results (but did not) * 1,379 failed * 86% was OK -Time: 17427.913ms +Time: 24549.909ms ---- ---- ---- ---- ---- ---- ---- ### 600/620 [`./test/random/select/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_83.test) @@ -34782,7 +34839,7 @@ SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0, tab1 cor1 * 1,430 failed * 85% was OK -Time: 17755.032ms +Time: 25427.453ms ---- ---- ---- ---- ---- ---- ---- ### 601/620 [`./test/random/select/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_84.test) @@ -34852,7 +34909,7 @@ Query was expected to return results (but did not) * 1,451 failed * 85% was OK -Time: 17464.629ms +Time: 31491.463ms ---- ---- ---- ---- ---- ---- ---- ### 602/620 [`./test/random/select/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_85.test) @@ -34922,7 +34979,7 @@ SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab1 cor2 * 1,433 failed * 85% was OK -Time: 17592.248ms +Time: 30959.542ms ---- ---- ---- ---- ---- ---- ---- ### 603/620 [`./test/random/select/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_86.test) @@ -34992,7 +35049,7 @@ SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 cor1, tab2 AS cor2 * 1,378 failed * 86% was OK -Time: 17314.293ms +Time: 25446.248ms ---- ---- ---- ---- ---- ---- ---- ### 604/620 [`./test/random/select/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_87.test) @@ -35062,7 +35119,7 @@ Query was expected to return results (but did not) * 1,377 failed * 86% was OK -Time: 17259.762ms +Time: 24805.255ms ---- ---- ---- ---- ---- ---- ---- ### 605/620 [`./test/random/select/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_88.test) @@ -35132,7 +35189,7 @@ SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab1 cor2 * 1,429 failed * 85% was OK -Time: 17465.180ms +Time: 30815.974ms ---- ---- ---- ---- ---- ---- ---- ### 606/620 [`./test/random/select/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_89.test) @@ -35202,7 +35259,7 @@ SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2 cor2 * 1,404 failed * 85% was OK -Time: 19175.806ms +Time: 33371.298ms ---- ---- ---- ---- ---- ---- ---- ### 607/620 [`./test/random/select/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_9.test) @@ -35272,7 +35329,7 @@ Query was expected to return results (but did not) * 1,295 failed * 87% was OK -Time: 16879.985ms +Time: 26969.420ms ---- ---- ---- ---- ---- ---- ---- ### 608/620 [`./test/random/select/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_90.test) @@ -35342,7 +35399,7 @@ SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab2 cor2 * 1,375 failed * 86% was OK -Time: 17494.406ms +Time: 25303.313ms ---- ---- ---- ---- ---- ---- ---- ### 609/620 [`./test/random/select/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_91.test) @@ -35407,12 +35464,26 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 + col1 ) IN ( col1 ) Query was expected to return results (but did not) ``` + +```sql +SELECT + col2 * - col1 + - 87 / col2 FROM tab1 AS cor0 + +Expected: ["-1248","-1405","-571"] but got ["-1248.906","-1405.611","-571.526"] +``` + + +```sql +SELECT ALL - - 85 / col0 AS col2 FROM tab1 AS cor0 + +Expected: ["1","1","28"] but got ["1.063","1.328","28.333"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,371 failed * 86% was OK -Time: 17533.260ms +Time: 30387.498ms ---- ---- ---- ---- ---- ---- ---- ### 610/620 [`./test/random/select/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_92.test) @@ -35482,7 +35553,7 @@ Query was expected to return results (but did not) * 1,485 failed * 85% was OK -Time: 17541.800ms +Time: 35825.161ms ---- ---- ---- ---- ---- ---- ---- ### 611/620 [`./test/random/select/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_93.test) @@ -35552,7 +35623,7 @@ SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab0, tab0 AS cor2 * 1,389 failed * 86% was OK -Time: 17431.567ms +Time: 27956.519ms ---- ---- ---- ---- ---- ---- ---- ### 612/620 [`./test/random/select/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_94.test) @@ -35622,7 +35693,7 @@ SELECT DISTINCT * FROM tab2, tab2 cor0, tab1, tab0 cor1 * 1,435 failed * 85% was OK -Time: 17365.724ms +Time: 24759.894ms ---- ---- ---- ---- ---- ---- ---- ### 613/620 [`./test/random/select/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_95.test) @@ -35692,7 +35763,7 @@ Query was expected to return results (but did not) * 1,399 failed * 86% was OK -Time: 17528.084ms +Time: 29720.538ms ---- ---- ---- ---- ---- ---- ---- ### 614/620 [`./test/random/select/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_96.test) @@ -35757,12 +35828,19 @@ SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1, tab0 cor2 36 results returned but expected 972 ``` + +```sql +SELECT + col2 / - col1 col2 FROM tab1 AS cor0 + +Expected: ["-2","-5","-7"] but got ["-2.077","-5.700","-7.385"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ * 1,324 failed * 86% was OK -Time: 17452.573ms +Time: 35043.031ms ---- ---- ---- ---- ---- ---- ---- ### 615/620 [`./test/random/select/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_97.test) @@ -35832,7 +35910,7 @@ Query was expected to return results (but did not) * 1,412 failed * 85% was OK -Time: 17430.832ms +Time: 25163.935ms ---- ---- ---- ---- ---- ---- ---- ### 616/620 [`./test/random/select/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_98.test) @@ -35902,7 +35980,7 @@ Query was expected to return results (but did not) * 1,404 failed * 85% was OK -Time: 18049.049ms +Time: 22269.385ms ---- ---- ---- ---- ---- ---- ---- ### 617/620 [`./test/random/select/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_99.test) @@ -35961,13 +36039,6 @@ Query was expected to return results (but did not) ``` -```sql -SELECT DISTINCT + ( 57 ) * col0 / ( col1 * col0 ) AS col0 FROM tab1 AS cor0 - -Expected: ["2","4","5"] but got ["2.192","4.385","5.700"] -``` - - ```sql SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1, tab2 cor2 @@ -35979,14 +36050,14 @@ SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1, tab2 cor2 * 1,382 failed * 86% was OK -Time: 17876.288ms +Time: 21806.945ms ---- ---- ---- ---- ---- ---- ---- ### 618/620 [`./test/select1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select1.test) #### ★ Assuming all 1,031 tests still passes as _sqlite_ -Time: 0.424ms +Time: 0.442ms ---- ---- ---- ---- ---- ---- ---- ### 619/620 [`./test/select2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select2.test) @@ -36013,19 +36084,12 @@ SELECT (SELECT count(*) FROM t1 AS x WHERE x.b Date: Sun, 28 Feb 2016 23:16:31 +0100 Subject: [PATCH 44/54] Test run Chakra v6.0.0-pre2 --- test/!testlog/Chakra.md | 474 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 474 insertions(+) create mode 100644 test/!testlog/Chakra.md diff --git a/test/!testlog/Chakra.md b/test/!testlog/Chakra.md new file mode 100644 index 0000000000..195bd7d317 --- /dev/null +++ b/test/!testlog/Chakra.md @@ -0,0 +1,474 @@ + + Running tests on alasql@0.2.3-develop-1206 + + Environment detected: { + "alasqlPath": "C:\\Users\\mrw\\git\\alasql\\dist", + "isBrowser": false, + "isCordova": false, + "isMeteor": false, + "isMeteorClient": false, + "isMeteorServer": false, + "isNode": true, + "isWebWorker": false +} + + + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ...............aN-aN-NaN +....................[ 1, 'aN-aN-NaN' ] +..................... + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + ........................................................ + .................................................... + + 1360 passing (2m) + 66 pending + 26 failing + + 1) Test 55 - Error in WHERE and preIndex with ParamValue SELECT - gives "Cannot find indices of undefined": + Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test. + at done (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:245:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:317:7) + at Anonymous function (C:\Users\mrw\git\alasql\test\test055.js:16:3) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 2) Test 56 - Error in WHERE and preIndex with ParamValue SELECT - order by ": + Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test. + at done (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:245:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:317:7) + at Anonymous function (C:\Users\mrw\git\alasql\test\test056.js:15:3) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 3) Test 202 GETTIME and CAST 2. CONVERT(,,110): + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test202.js:20:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 4) Test 212: CONVERT dates with style 2. CONVERT DATE TO STRING: + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test212.js:72:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 5) Test 212: CONVERT dates with style 3. CONVERT JAVASCRIPT DATE TO STRING: + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test212.js:80:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 6) Test 212: CONVERT dates with style 4. CONVERT JAVASCRIPT DATE TO STRING: + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test212.js:87:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 7) Test 212: CONVERT dates with style 5. CONVERT DATE TO STRING FROM TABLE: + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test212.js:99:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 8) Test 212: CONVERT dates with style 6. CONVERT DATE TO STRING FROM TABLE: + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test212.js:112:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 9) Test 212: CONVERT dates with style 7. CONVERT DATE TO STRING FROM TABLE: + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test212.js:125:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 10) Test 212: CONVERT dates with style 8. CONVERT DATE TO STRING FROM TABLE without columns: + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test212.js:138:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 11) Test 212: CONVERT dates with style 9. CONVERT DATE TO STRING FROM TABLE without columns: + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test212.js:151:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 12) Test 232 Errors handling 3. Log error async: + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test232.js:29:13) + at alasql.exec (C:\Users\mrw\git\alasql\dist\alasql.js:4227:5) + at alasql (C:\Users\mrw\git\alasql\dist\alasql.js:120:4) + at Anonymous function (C:\Users\mrw\git\alasql\test\test232.js:28:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 13) Test 232 Errors handling 4. Log error sync: + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test232.js:37:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 14) Test 238 Test from string and into string 1. JSON: + Error: ENOENT: no such file or directory, open 'C:\Usersmrwgitalasql est\test238.json' + at fs.openSync (fs.js:584:3) + at fs.writeFileSync (fs.js:1238:3) + at utils.saveFile (C:\Users\mrw\git\alasql\dist\alasql.js:3517:13) + at alasql.into.JSON (C:\Users\mrw\git\alasql\dist\alasql.js:13945:2) + at Function code (Function code:1:7) + at queryfn3 (C:\Users\mrw\git\alasql\dist\alasql.js:6227:3) + at queryfn (C:\Users\mrw\git\alasql\dist\alasql.js:5942:3) + at statement (C:\Users\mrw\git\alasql\dist\alasql.js:6944:3) + at alasql.dexec (C:\Users\mrw\git\alasql\dist\alasql.js:4280:4) + at alasql.exec (C:\Users\mrw\git\alasql\dist\alasql.js:4231:3) + at alasql (C:\Users\mrw\git\alasql\dist\alasql.js:120:4) + at Anonymous function (C:\Users\mrw\git\alasql\test\test238.js:17:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 15) Test 238 Test from string and into string 2. CSV() and AS: + Error: ENOENT: no such file or directory, open 'C:\Usersmrwgitalasql est\restest238a.csv' + at fs.openSync (fs.js:584:3) + at fs.writeFileSync (fs.js:1238:3) + at utils.saveFile (C:\Users\mrw\git\alasql\dist\alasql.js:3517:13) + at alasql.into.CSV (C:\Users\mrw\git\alasql\dist\alasql.js:14018:2) + at Function code (Function code:1:7) + at queryfn3 (C:\Users\mrw\git\alasql\dist\alasql.js:6227:3) + at queryfn (C:\Users\mrw\git\alasql\dist\alasql.js:5942:3) + at statement (C:\Users\mrw\git\alasql\dist\alasql.js:6944:3) + at alasql.dexec (C:\Users\mrw\git\alasql\dist\alasql.js:4280:4) + at alasql.exec (C:\Users\mrw\git\alasql\dist\alasql.js:4231:3) + at alasql (C:\Users\mrw\git\alasql\dist\alasql.js:120:4) + at Anonymous function (C:\Users\mrw\git\alasql\test\test238.js:25:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 16) Test 238 Test from string and into string 3. XLSX: + Error: ENOENT: no such file or directory, open 'C:\Usersmrwgitalasql est\restest238b.xlsx' + at fs.openSync (fs.js:584:3) + at fs.writeFileSync (fs.js:1238:3) + at write_zip_type (C:\Users\mrw\git\alasql\node_modules\xlsx\xlsx.js:11412:16) + at writeSync (C:\Users\mrw\git\alasql\node_modules\xlsx\xlsx.js:11421:12) + at writeFileSync (C:\Users\mrw\git\alasql\node_modules\xlsx\xlsx.js:11436:2) + at saveWorkbook (C:\Users\mrw\git\alasql\dist\alasql.js:14843:5) + at doExport (C:\Users\mrw\git\alasql\dist\alasql.js:14742:3) + at alasql.into.XLSX (C:\Users\mrw\git\alasql\dist\alasql.js:14715:3) + at Function code (Function code:1:7) + at queryfn3 (C:\Users\mrw\git\alasql\dist\alasql.js:6227:3) + at queryfn (C:\Users\mrw\git\alasql\dist\alasql.js:5942:3) + at statement (C:\Users\mrw\git\alasql\dist\alasql.js:6944:3) + at alasql.dexec (C:\Users\mrw\git\alasql\dist\alasql.js:4280:4) + at alasql.exec (C:\Users\mrw\git\alasql\dist\alasql.js:4231:3) + at alasql (C:\Users\mrw\git\alasql\dist\alasql.js:120:4) + at Anonymous function (C:\Users\mrw\git\alasql\test\test238.js:33:9) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 17) Test 242 Multi-columns Excel file 1. Read multi-column file: + Uncaught Error: ENOENT: no such file or directory, open 'C:\Usersmrwgitalasql est\test242.xlsx' + at Anonymous function (C:\Users\mrw\git\alasql\dist\alasql.js:3397:25) + at readFileAfterOpen (fs.js:324:5) + + 18) Test 242 Multi-columns Excel file 2. Read multi-column file: + Uncaught Error: ENOENT: no such file or directory, open 'C:\Usersmrwgitalasql est\test242.xlsx' + at Anonymous function (C:\Users\mrw\git\alasql\dist\alasql.js:3397:25) + at readFileAfterOpen (fs.js:324:5) + + 19) Test 293 SLT#1 3. SELECT 1 - no modifier: + TypeError: Function expected + at Anonymous function (C:\Users\mrw\git\alasql\test\test293.js:73:5) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 20) Test 293 SLT#1 4. SELECT 1 - RECORDSET: + TypeError: Function expected + at Anonymous function (C:\Users\mrw\git\alasql\test\test293.js:89:5) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 21) Test 392 Observable (issue #499) 2. Prepare test data: + TypeError: Object doesn't support property or method 'observe' + at Anonymous function (C:\Users\mrw\git\alasql\test\test392.js:27:5) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 22) Test 400 Trigger with INSERTED 3. Insert: + + AssertionError: [ [ 100, undefined ], [ 200, undefined ] ] deepEqual [ [ 100, 2016 ], [ 200, 2016 ] ] + + expected - actual + + [ + [ + 100 + - [undefined] + + 2016 + ] + [ + 200 + - [undefined] + + 2016 + ] + ] + + at Anonymous function (C:\Users\mrw\git\alasql\test\test400.js:31:5) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 23) Test 406. Complex SEARCH 1. Parse complex JSON: + Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test. + at done (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:245:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:317:7) + at Anonymous function (C:\Users\mrw\git\alasql\test\test406.js:79:7) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 24) Test 408 - DATEADD() and DATEDIFF() 3. DATEDIFF(): + AssertionError: undefined deepEqual -1 + at Anonymous function (C:\Users\mrw\git\alasql\test\test408.js:43:5) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 25) Test 408 - DATEADD() and DATEDIFF() 4. DATE_ADD() MySQL-style: + + AssertionError: false == true + + expected - actual + + -false + +true + + at Anonymous function (C:\Users\mrw\git\alasql\test\test408.js:83:5) + at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) + at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) + at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) + at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) + + 26) Test 418 Load data from internet .xlsx from URL Load http: + Error: timeout of 7000ms exceeded. Ensure the done() callback is being called in this test. + at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:189:5) + + + From 2c35be90e47b5937e58d3ab9e8b8c302c218a87c Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Sun, 28 Feb 2016 23:18:44 +0100 Subject: [PATCH 45/54] Detaild test log --- TESTLOG.md | 36163 +---------------------------- test/!testlog/Chrome.md | 622 + test/!testlog/Edge.md | 0 test/!testlog/Firefox.md | 1363 ++ test/!testlog/IE.md | 0 test/!testlog/SQLlogic Chakra.md | 0 test/!testlog/SQLlogic.md | 36146 ++++++++++++++++++++++++++++ test/!testlog/Safari.md | 1049 + test/browserTestRunner.tmlp.html | 7 +- 9 files changed, 39232 insertions(+), 36118 deletions(-) create mode 100644 test/!testlog/Chrome.md create mode 100644 test/!testlog/Edge.md create mode 100644 test/!testlog/Firefox.md create mode 100644 test/!testlog/IE.md create mode 100644 test/!testlog/SQLlogic Chakra.md create mode 100644 test/!testlog/SQLlogic.md create mode 100644 test/!testlog/Safari.md diff --git a/TESTLOG.md b/TESTLOG.md index e7af42a0c8..6829838f0c 100644 --- a/TESTLOG.md +++ b/TESTLOG.md @@ -1,36146 +1,75 @@ -# SQLlogictest results for AlaSQL +# Testlog for AlaSQL -`2016-02-27T07:24:14.883Z target: alasql@0.2.3-develop-1210` +List of final results from [different test runs](https://github.com/agershun/alasql/tree/develop/test/!testlog/) to keep track on progres. -This is a subset of the total 622 tests. -Results from 620 test files: ----- ---- ---- ---- ---- ---- ---- -### 1/620 [`./test/evidence/in1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/in1.test) +## SQLlogic -_Mimic sqlite_ +The Sqllogictest was developed by [the SQLite team](https://www.sqlite.org/sqllogictest/doc/trunk/about.wiki) +to verify that SQL database engine computes correct results by comparing the results to identical queries from other SQL database engines. Consists of roughly 6 million SQL statements. -```sql -SELECT 1 IN t1 - -Cannot read property 't1' of undefined -``` - - -```sql -INSERT INTO t5 SELECT * FROM t4 - -Cannot insert record, because it already exists in primary key index -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 216 tests as _sqlite_ - -* 148 skipped -* 19 failed -* 22% was OK - -Time: 187.665ms - ----- ---- ---- ---- ---- ---- ---- -### 2/620 [`./test/evidence/in2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/in2.test) - -_Mimic sqlite_ - -```sql -SELECT 1 FROM t1 WHERE 1 IN (SELECT 1,2) - -Expected to get an error but did not -``` - -#### ☓ Ran 53 tests as _sqlite_ - -* 4 failed -* 92% was OK - -Time: 109.357ms - ----- ---- ---- ---- ---- ---- ---- -### 3/620 [`./test/evidence/slt_lang_aggfunc.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_aggfunc.test) - -_Mimic sqlite_ - -```sql -SELECT avg(DISTINCT x) FROM t1 - -Expected: ["0"] but got ["0.500"] -``` - - -```sql -SELECT total(DISTINCT x) FROM t1 - -Unexpected token , -``` - - -```sql -SELECT avg(y) FROM t1 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT sum(y) FROM t1 - -Expected: ["0"] but got ["truefalseNULLtruetrue"] -``` - - -```sql -SELECT sum(DISTINCT y) FROM t1 - -Expected: ["0"] but got ["truefalseNULL"] -``` - - -```sql -SELECT count(DISTINCT *) FROM t1 WHERE y='false' - -Expected to get an error but did not -``` - - -```sql -SELECT sum(x) FROM t1 WHERE y='null' - -Expected: ["NULL"] but got ["0"] -``` - -#### ☓ Ran 80 tests as _sqlite_ - -* 37 failed -* 53% was OK - -Time: 173.514ms - ----- ---- ---- ---- ---- ---- ---- -### 4/620 [`./test/evidence/slt_lang_createtrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createtrigger.test) - -_Mimic sqlite_ - -```sql -CREATE TRIGGER t1r1 UPDATE ON t1 BEGIN SELECT 1; END; - -Expected to get an error but did not -``` - - -```sql -DROP TRIGGER t1r1 - -Cannot read property 'beforeinsert' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 26 tests as _sqlite_ - -* 9 skipped -* 2 failed -* 57% was OK - -Time: 41.364ms - ----- ---- ---- ---- ---- ---- ---- -### 5/620 [`./test/evidence/slt_lang_createview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createview.test) - -_Mimic sqlite_ - -```sql -SELECT x FROM view1 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -DELETE FROM view1 WHERE x>0 - -Expected to get an error but did not -``` - -#### ☓ Ran 23 tests as _sqlite_ - -* 8 failed -* 65% was OK - -Time: 39.095ms - ----- ---- ---- ---- ---- ---- ---- -### 6/620 [`./test/evidence/slt_lang_dropindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropindex.test) - -_Mimic sqlite_ - -```sql -DROP INDEX t1i1; - -Expected to get an error but did not -``` - -#### ☓ Ran 8 tests as _sqlite_ - -* 2 failed -* 75% was OK - -Time: 9.138ms - ----- ---- ---- ---- ---- ---- ---- -### 7/620 [`./test/evidence/slt_lang_droptable.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptable.test) - -_Mimic sqlite_ - -```sql -DROP INDEX t1i1; - -Expected to get an error but did not -``` - -#### ☓ Ran 12 tests as _sqlite_ - -* 1 failed -* 91% was OK - -Time: 18.653ms - ----- ---- ---- ---- ---- ---- ---- -### 8/620 [`./test/evidence/slt_lang_droptrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptrigger.test) - -_Mimic sqlite_ - -```sql -DROP TRIGGER t1r1 - -Cannot read property 'beforeinsert' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 12 tests as _sqlite_ - -* 5 skipped -* 1 failed -* 50% was OK - -Time: 14.684ms - ----- ---- ---- ---- ---- ---- ---- -### 9/620 [`./test/evidence/slt_lang_dropview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropview.test) - -_Mimic sqlite_ - -```sql -SELECT x FROM view2 - -Expected: ["0"] but got ["NULL"] -``` - -#### ☓ Ran 13 tests as _sqlite_ - -* 1 failed -* 92% was OK - -Time: 27.652ms - ----- ---- ---- ---- ---- ---- ---- -### 10/620 [`./test/evidence/slt_lang_reindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_reindex.test) - -#### ★ Assuming all 7 tests still passes as _sqlite_ - -Time: 0.396ms - ----- ---- ---- ---- ---- ---- ---- -### 11/620 [`./test/evidence/slt_lang_replace.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_replace.test) - -#### ★ Assuming all 14 tests still passes as _sqlite_ - -Time: 0.537ms - ----- ---- ---- ---- ---- ---- ---- -### 12/620 [`./test/evidence/slt_lang_update.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_update.test) - -_Mimic sqlite_ - -```sql -UPDATE t1 SET z='foo' - -Expected to get an error but did not -``` - -#### ☓ Ran 27 tests as _sqlite_ - -* 2 failed -* 92% was OK - -Time: 55.898ms - ----- ---- ---- ---- ---- ---- ---- -### 13/620 [`./test/index/between/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE ((col0 IN (SELECT col3 FROM tab0 WHERE (((col0 > 9 OR col3 IN (SELECT col0 FROM tab0 WHERE col1 < 4.40) OR col3 BETWEEN 6 AND 3) AND col1 IS NULL OR (col3 < 1 AND col3 < 2))) OR (col3 IS NULL) AND col0 > 3) OR col3 > 9)) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,022 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 73309.016ms - ----- ---- ---- ---- ---- ---- ---- -### 14/620 [`./test/index/between/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_0.test) - -#### ★ Assuming all 10,033 tests still passes as _sqlite_ - -Time: 0.546ms - ----- ---- ---- ---- ---- ---- ---- -### 15/620 [`./test/index/between/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col4 < 28.47 AND col1 IN (SELECT col4 FROM tab0 WHERE (((col3 = 64 OR (((col3 IN (SELECT col0 FROM tab0 WHERE col3 BETWEEN 85 AND 52 OR (((col3 < 20)) AND col3 > 60)))))) AND col1 = 95.83))) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,029 tests as _sqlite_ - -* 40 failed -* 99% was OK - -Time: 76099.241ms - ----- ---- ---- ---- ---- ---- ---- -### 16/620 [`./test/index/between/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (col3 < 32) AND ((((col3 <= 73 AND col0 < 84 OR col0 >= 3 AND (((col4 < 22.55) OR col0 <= 88 AND (col4 <= 26.20) OR col3 < 9) AND col0 >= 80 AND col0 = 25 AND (((col3 = 9)))) OR (col3 <= 96) AND col1 < 20.30 AND col3 > 2 OR (col4 >= 34.97 OR ((col1 > 27.35))) AND ((col4 < … - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 40 failed -* 99% was OK - -Time: 79000.914ms - ----- ---- ---- ---- ---- ---- ---- -### 17/620 [`./test/index/between/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_3.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.360ms - ----- ---- ---- ---- ---- ---- ---- -### 18/620 [`./test/index/between/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_4.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.342ms - ----- ---- ---- ---- ---- ---- ---- -### 19/620 [`./test/index/between/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE ((col3 < 49 AND (col4 >= 2.37 AND col3 <= 34 OR (col0 > 45 AND col3 IN (84,55,60,5,10,51) AND col3 > 44)) AND ((col4 BETWEEN 85.7 AND 68.3 AND col0 > 12) OR col3 >= 61 AND col1 < 44.10 OR ((((col1 <= 88.54)) AND col3 BETWEEN 50 AND 64) AND col0 < 7) OR ((col0 > 68)) AND co… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,031 tests as _sqlite_ - -* 50 failed -* 99% was OK - -Time: 80199.144ms - ----- ---- ---- ---- ---- ---- ---- -### 20/620 [`./test/index/between/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_0.test) - -#### ★ Assuming all 10,123 tests still passes as _sqlite_ - -Time: 0.499ms - ----- ---- ---- ---- ---- ---- ---- -### 21/620 [`./test/index/between/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (col0 < 732) OR (col4 IN (SELECT col1 FROM tab0 WHERE (((col3 IN (SELECT col0 FROM tab0 WHERE col4 > 814.80) AND col0 IS NULL AND ((col4 >= 266.93) OR col3 < 534) AND (col0 > 608) AND (col0 <= 34) AND col0 < 942)) OR col3 BETWEEN 616 AND 482)) AND col4 > 307.71 AND col0 > … - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,125 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 99210.697ms - ----- ---- ---- ---- ---- ---- ---- -### 22/620 [`./test/index/between/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col3 <= 554) AND col0 BETWEEN 735 AND 859 AND col0 IN (SELECT col3 FROM tab0 WHERE (col1 >= 36.15))) AND ((((col1 <= 171.81))))) AND col4 < 379.48 OR col4 IS NULL AND col1 >= 914.18 OR col3 >= 324 OR ((col4 > 84.85 AND col0 >= … - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,121 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 98315.648ms - ----- ---- ---- ---- ---- ---- ---- -### 23/620 [`./test/index/between/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col4 IN (SELECT col1 FROM tab0 WHERE col3 IN (808,18,855,768,767,23) AND ((col0 > 394 AND col1 = 993.11 AND col3 < 701 AND col3 >= 317 OR ((col0 <= 101 OR col0 < 928)) AND (col3 IN (SELECT col0 FROM tab0 WHERE ((col3 >= 671) OR col0 > 775) AND ((((col0 <= 903 OR (col0 > 9)… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,121 tests as _sqlite_ - -* 40 failed -* 99% was OK - -Time: 91529.833ms - ----- ---- ---- ---- ---- ---- ---- -### 24/620 [`./test/index/between/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE col4 IN (SELECT col1 FROM tab0 WHERE (((((((col3 BETWEEN 320 AND 970 AND col3 <= 223) OR col4 <= 829.17) AND (col3 >= 651 AND (col3 < 768 OR col0 > 379 OR ((col0 <= 960 OR ((((col4 >= 450.22 AND (col0 = 332 AND col3 < 129)) OR (col1 IN… - -Cannot read property '1' of undefined -``` - -#### ☓ Ran 10,125 tests as _sqlite_ - -* 50 failed -* 99% was OK - -Time: 98940.147ms - ----- ---- ---- ---- ---- ---- ---- -### 25/620 [`./test/index/between/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1000/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col0 > 2377 OR ((col1 > 2834.62)) AND (col0 IS NULL OR (col4 < 7463.98 AND (col3 <= 1805)) OR ((col3 >= 5222))) AND col0 <= 9495 AND col3 IN (SELECT col0 FROM tab0 WHERE col1 >= 6814.64 OR (col1 > 7430.5) AND col3 > 6478 OR col3 < 2867 AND col1 > 1953.89 AND (col3 >= 2268 … - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 3,792 tests as _sqlite_ - -* 11 failed -* 99% was OK - -Time: 138487.007ms - ----- ---- ---- ---- ---- ---- ---- -### 26/620 [`./test/index/commute/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE ((((col4 < 26.48))) AND col4 IN (SELECT col1 FROM tab0 WHERE (col3 < 55 OR ((col0 >= 53 AND (((((col0 > 8) AND (((col3 IN (SELECT col0 FROM tab0 WHERE col0 < 65 AND col1 > 42.32)) OR col1 IS NULL OR col3 > 84 OR (col4 IS NULL)) OR ((col0 <= 9))))) AND col0 IN (1))) OR col3… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 29538.263ms - ----- ---- ---- ---- ---- ---- ---- -### 27/620 [`./test/index/commute/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_1.test) - -#### ★ Assuming all 10,030 tests still passes as _sqlite_ - -Time: 1.016ms - ----- ---- ---- ---- ---- ---- ---- -### 28/620 [`./test/index/commute/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_10.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col3 >= 18 AND ((col4 > 53.9)) OR col3 IN (SELECT col0 FROM tab0 WHERE (col0 < 49 AND col1 > 94.70 AND col0 IN (SELECT col3 FROM tab0 WHERE col0 >= 91) AND (col3 BETWEEN 85 AND 24 OR col0 >= 69))) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 4,261 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 14345.798ms - ----- ---- ---- ---- ---- ---- ---- -### 29/620 [`./test/index/commute/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_11.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.661ms - ----- ---- ---- ---- ---- ---- ---- -### 30/620 [`./test/index/commute/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_12.test) - -#### ★ Assuming all 10,031 tests still passes as _sqlite_ - -Time: 0.973ms - ----- ---- ---- ---- ---- ---- ---- -### 31/620 [`./test/index/commute/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_13.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE col0 IN (42,31,88,70,42,7) AND col1 <= 23.6 OR (col3 > 8 OR col3 IS NULL))) AND (col0 > 99) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 30 failed -* 99% was OK - -Time: 61560.756ms - ----- ---- ---- ---- ---- ---- ---- -### 32/620 [`./test/index/commute/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_14.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col4 IN (SELECT col1 FROM tab0 WHERE ((col3 >= 17 AND col3 > 34 AND ((((col1 < 73.21))) AND (col3 >= 34) AND col0 IN (SELECT col3 FROM tab0 WHERE col1 > 9.76) OR col1 >= 9.67) OR col0 < 84 AND ((col4 > 67.64)) OR ((col3 IS NULL AND col1 < 8.67)) AND (col3 = 91 AND col0 > 7… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 46095.230ms - ----- ---- ---- ---- ---- ---- ---- -### 33/620 [`./test/index/commute/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_15.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col0 > 15 OR (col3 IN (SELECT col0 FROM tab0 WHERE col0 > 84 AND (col0 = 88) AND col3 = 71 AND col3 > 13 AND col1 < 21.44 AND col0 <= 5 AND col3 IN (15,13) OR (col4 IN (SELECT col1 FROM tab0 WHERE col0 <= 59) AND (((((col0 >= 13))) AND col4 >= 25.56 AND ((col4 <= 29.73 AND… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,030 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 42455.635ms - ----- ---- ---- ---- ---- ---- ---- -### 34/620 [`./test/index/commute/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_16.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.949ms - ----- ---- ---- ---- ---- ---- ---- -### 35/620 [`./test/index/commute/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_17.test) - -#### ★ Assuming all 10,031 tests still passes as _sqlite_ - -Time: 5.559ms - ----- ---- ---- ---- ---- ---- ---- -### 36/620 [`./test/index/commute/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_18.test) - -#### ★ Assuming all 10,034 tests still passes as _sqlite_ - -Time: 0.618ms - ----- ---- ---- ---- ---- ---- ---- -### 37/620 [`./test/index/commute/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_19.test) - -#### ★ Assuming all 10,031 tests still passes as _sqlite_ - -Time: 2.676ms - ----- ---- ---- ---- ---- ---- ---- -### 38/620 [`./test/index/commute/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_2.test) - -#### ★ Assuming all 10,037 tests still passes as _sqlite_ - -Time: 6.319ms - ----- ---- ---- ---- ---- ---- ---- -### 39/620 [`./test/index/commute/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_20.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col4 <= 98.22) OR col4 < 79.66 OR col4 <= 22.62) AND (col3 >= 32) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 61376.843ms - ----- ---- ---- ---- ---- ---- ---- -### 40/620 [`./test/index/commute/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_21.test) - -#### ★ Assuming all 10,030 tests still passes as _sqlite_ - -Time: 0.722ms - ----- ---- ---- ---- ---- ---- ---- -### 41/620 [`./test/index/commute/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_22.test) - -#### ★ Assuming all 10,033 tests still passes as _sqlite_ - -Time: 0.569ms - ----- ---- ---- ---- ---- ---- ---- -### 42/620 [`./test/index/commute/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_23.test) - -#### ★ Assuming all 10,033 tests still passes as _sqlite_ - -Time: 0.569ms - ----- ---- ---- ---- ---- ---- ---- -### 43/620 [`./test/index/commute/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_24.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col1 IN (SELECT col4 FROM tab0 WHERE col0 IS NULL OR col3 IN (SELECT col0 FROM tab0 WHERE col3 > 99 AND (col3 > 89 AND col0 > 36))) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,033 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 45464.359ms - ----- ---- ---- ---- ---- ---- ---- -### 44/620 [`./test/index/commute/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_25.test) - -#### ★ Assuming all 10,030 tests still passes as _sqlite_ - -Time: 0.474ms - ----- ---- ---- ---- ---- ---- ---- -### 45/620 [`./test/index/commute/10/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_26.test) - -#### ★ Assuming all 10,031 tests still passes as _sqlite_ - -Time: 0.398ms - ----- ---- ---- ---- ---- ---- ---- -### 46/620 [`./test/index/commute/10/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_27.test) - -#### ★ Assuming all 10,033 tests still passes as _sqlite_ - -Time: 0.397ms - ----- ---- ---- ---- ---- ---- ---- -### 47/620 [`./test/index/commute/10/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_28.test) - -#### ★ Assuming all 10,033 tests still passes as _sqlite_ - -Time: 0.406ms - ----- ---- ---- ---- ---- ---- ---- -### 48/620 [`./test/index/commute/10/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_29.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE ((col3 < 0)) OR col3 < 68 AND (col3 = 11) OR col4 IN (SELECT col1 FROM tab0 WHERE col1 IN (SELECT col4 FROM tab0 WHERE (col1 = 28.45))) AND col0 > 89 OR col4 > 99.5 AND col0 < 4 AND col3 <= 46 - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 56278.121ms - ----- ---- ---- ---- ---- ---- ---- -### 49/620 [`./test/index/commute/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_3.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.405ms - ----- ---- ---- ---- ---- ---- ---- -### 50/620 [`./test/index/commute/10/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_30.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col0 = 27 OR (col4 <= 97.74 OR col3 <= 1 AND col0 > 6 OR col0 IN (40,62,6,92,71) OR col1 >= 60.26) AND col3 IN (SELECT col0 FROM tab0 WHERE col1 > 79.94 AND (col3 IS NULL)) OR (((col0 > 29 OR ((col0 > 17)) AND col0 >= 66))) OR col0 > 10… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 41857.384ms - ----- ---- ---- ---- ---- ---- ---- -### 51/620 [`./test/index/commute/10/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_31.test) - -#### ★ Assuming all 10,033 tests still passes as _sqlite_ - -Time: 0.483ms - ----- ---- ---- ---- ---- ---- ---- -### 52/620 [`./test/index/commute/10/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_32.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.487ms - ----- ---- ---- ---- ---- ---- ---- -### 53/620 [`./test/index/commute/10/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_33.test) - -#### ★ Assuming all 10,034 tests still passes as _sqlite_ - -Time: 0.418ms - ----- ---- ---- ---- ---- ---- ---- -### 54/620 [`./test/index/commute/10/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_34.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.441ms - ----- ---- ---- ---- ---- ---- ---- -### 55/620 [`./test/index/commute/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_4.test) - -#### ★ Assuming all 10,030 tests still passes as _sqlite_ - -Time: 0.428ms - ----- ---- ---- ---- ---- ---- ---- -### 56/620 [`./test/index/commute/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col3 <= 88 OR col0 IN (SELECT col3 FROM tab0 WHERE col3 IS NULL AND col3 >= 88 AND col0 = 0 AND (col0 IS NULL) AND col3 <= 25 AND (col4 > 37.85) OR (col1 IN (SELECT col4 FROM tab0 WHERE (col4 IN (92.81,73.37,41.28,48.15,77.90)) OR (col0 > 11) AND col3 >= 77 AND col1 IN (89… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 48223.595ms - ----- ---- ---- ---- ---- ---- ---- -### 57/620 [`./test/index/commute/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col3 >= 22 AND col3 IS NULL OR (col0 <= 92 AND (col3 IN (82,73,69,28,90,98) OR ((col0 > 53))) AND col3 > 41) AND col1 < 7.43 AND ((col0 > 45)) AND col1 >= 86.98 OR col4 IN (98.61) AND col0 < 82 OR col3 IN (SELECT col0 FROM tab0 WHERE ((((col3 <= 2) OR col4 > 64.95 OR (col3… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,036 tests as _sqlite_ - -* 20 failed -* 99% was OK - -Time: 51176.863ms - ----- ---- ---- ---- ---- ---- ---- -### 58/620 [`./test/index/commute/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col1 > 33.14 OR (((col3 > 73 OR (col3 IN (63,42)))) AND ((((col0 IN (SELECT col3 FROM tab0 WHERE (col3 < 37) AND col0 > 24 OR (col1 IN (SELECT col4 FROM tab0 WHERE col1 > 49.28) OR col3 > 9))) OR col3 > 51 OR (col1 > 52.62)))) OR col0 IS NULL) OR ((((col4 = 81.75) OR (col0… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 40695.784ms - ----- ---- ---- ---- ---- ---- ---- -### 59/620 [`./test/index/commute/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_8.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.478ms - ----- ---- ---- ---- ---- ---- ---- -### 60/620 [`./test/index/commute/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_9.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (col4 IN (SELECT col1 FROM tab0 WHERE ((col0 IN (SELECT col3 FROM tab0 WHERE col3 >= 39) AND col0 <= 84)))) AND col4 <= 14.38 - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 20 failed -* 99% was OK - -Time: 54969.513ms - ----- ---- ---- ---- ---- ---- ---- -### 61/620 [`./test/index/commute/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col4 < 749.14 AND (col3 >= 449 AND ((col3 = 703)) AND col0 > 373) AND (col3 < 160) AND col0 > 859 AND col1 BETWEEN 47.53 AND 235.98 AND col0 < 447 OR col3 <= 639 OR col1 IN (SELECT col4 FROM tab0 WHERE col4 > 401.5 AND ((col4 < 922.12 AND ((col0 > 154) AND (col1 IN (SELECT… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,122 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 72474.690ms - ----- ---- ---- ---- ---- ---- ---- -### 62/620 [`./test/index/commute/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_1.test) - -#### ★ Assuming all 10,120 tests still passes as _sqlite_ - -Time: 2.264ms - ----- ---- ---- ---- ---- ---- ---- -### 63/620 [`./test/index/commute/100/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_10.test) - -#### ★ Assuming all 10,124 tests still passes as _sqlite_ - -Time: 0.613ms - ----- ---- ---- ---- ---- ---- ---- -### 64/620 [`./test/index/commute/100/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_11.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col1 > 934.79 OR (col0 <= 122) AND col3 IN (572,775,935,506) OR (col1 <= 126.68) OR col3 IN (SELECT col0 FROM tab0 WHERE ((col3 IN (SELECT col0 FROM tab0 WHERE (col0 <= 963) AND col4 < 611.64 AND ((col4 > 507.11))) OR ((col1 > 59.38 AND (col4 >= 918.90)))))) AND col3 <= 93 - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,123 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 56481.464ms - ----- ---- ---- ---- ---- ---- ---- -### 65/620 [`./test/index/commute/100/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_12.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col0 BETWEEN 408 AND 366 OR (col3 IN (SELECT col0 FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col0 <= 560)) OR col3 > 127) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,123 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 48855.551ms - ----- ---- ---- ---- ---- ---- ---- -### 66/620 [`./test/index/commute/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_2.test) - -#### ★ Assuming all 10,123 tests still passes as _sqlite_ - -Time: 2.534ms - ----- ---- ---- ---- ---- ---- ---- -### 67/620 [`./test/index/commute/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE ((((((((col3 < 927) OR col0 BETWEEN 727 AND 937 OR col0 = 89))))) AND col0 BETWEEN 817 AND 967) OR col3 IN (SELECT col0 FROM tab0 WHERE col0 < 797))) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,121 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 75190.133ms - ----- ---- ---- ---- ---- ---- ---- -### 68/620 [`./test/index/commute/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col0 >= 640 OR ((col3 IN (SELECT col0 FROM tab0 WHERE (col3 IN (SELECT col0 FROM tab0 WHERE (col1 < 98.26)) OR (col3 < 181) AND col4 < 574.65) OR (col1 <= 733.28)) AND col0 > 357) AND (((col0 >= 686))) AND col3 = 476 AND col3 > 153 AND ((col0 < 909)) AND ((col0 > 631 AND (… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,124 tests as _sqlite_ - -* 30 failed -* 99% was OK - -Time: 71705.852ms - ----- ---- ---- ---- ---- ---- ---- -### 69/620 [`./test/index/commute/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_5.test) - -#### ★ Assuming all 10,121 tests still passes as _sqlite_ - -Time: 2.727ms - ----- ---- ---- ---- ---- ---- ---- -### 70/620 [`./test/index/commute/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col1 >= 775.92 OR (col3 < 898 AND (col4 IN (SELECT col1 FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col4 < 552.87)) AND ((col0 <= 166)) AND col3 IS NULL AND col3 <= 883 OR col4 >= 1.64 AND (((col0 <= 832) OR (col3 <= 130))))) OR col1 > 641.85 AND (((col4 < 803.30)… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,122 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 39673.210ms - ----- ---- ---- ---- ---- ---- ---- -### 71/620 [`./test/index/commute/100/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_7.test) - -#### ★ Assuming all 10,123 tests still passes as _sqlite_ - -Time: 0.728ms - ----- ---- ---- ---- ---- ---- ---- -### 72/620 [`./test/index/commute/100/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (col0 = 783) AND col0 >= 334 OR ((col0 > 336 OR col1 < 601.60 AND ((((((col4 > 896.38)) AND col3 > 417)) OR (col4 > 98.79 AND (((col0 >= 184) AND (col4 > 480.55 OR col0 > 561 AND col0 >= 133 AND (col0 < 937))) OR col3 > 684 OR col3 > 499 AND col0 < 895)) AND ((col0 < 706))… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,122 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 42451.350ms - ----- ---- ---- ---- ---- ---- ---- -### 73/620 [`./test/index/commute/100/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_9.test) - -#### ★ Assuming all 10,123 tests still passes as _sqlite_ - -Time: 0.404ms - ----- ---- ---- ---- ---- ---- ---- -### 74/620 [`./test/index/commute/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_0.test) - -#### ★ Assuming all 4,741 tests still passes as _sqlite_ - -Time: 0.341ms - ----- ---- ---- ---- ---- ---- ---- -### 75/620 [`./test/index/commute/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE ((((col0 IN (SELECT col3 FROM tab0 WHERE col3 = 7862 OR (col0 > 7104) AND col3 IN (SELECT col0 FROM tab0 WHERE ((col4 < 3774.80))) OR col0 >= 4545 OR (col3 > 1867) AND col1 >= 3341.69 AND col1 <= 8546.42 AND col0 <= 6797 AND col0 = 9644 AND (col3 IN (8505,121,8833,5588,941… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,583 tests as _sqlite_ - -* 20 failed -* 99% was OK - -Time: 212045.138ms - ----- ---- ---- ---- ---- ---- ---- -### 76/620 [`./test/index/commute/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE col1 < 444.10)) AND col4 >= 7680.91) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 11,021 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 307662.244ms - ----- ---- ---- ---- ---- ---- ---- -### 77/620 [`./test/index/commute/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_3.test) - -#### ★ Assuming all 11,025 tests still passes as _sqlite_ - -Time: 0.624ms - ----- ---- ---- ---- ---- ---- ---- -### 78/620 [`./test/index/delete/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1/slt_good_0.test) - -#### ★ Assuming all 10,907 tests still passes as _sqlite_ - -Time: 0.481ms - ----- ---- ---- ---- ---- ---- ---- -### 79/620 [`./test/index/delete/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_0.test) - -#### ★ Assuming all 10,730 tests still passes as _sqlite_ - -Time: 0.534ms - ----- ---- ---- ---- ---- ---- ---- -### 80/620 [`./test/index/delete/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_1.test) - -#### ★ Assuming all 10,774 tests still passes as _sqlite_ - -Time: 0.800ms - ----- ---- ---- ---- ---- ---- ---- -### 81/620 [`./test/index/delete/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_2.test) - -#### ★ Assuming all 9,390 tests still passes as _sqlite_ - -Time: 0.577ms - ----- ---- ---- ---- ---- ---- ---- -### 82/620 [`./test/index/delete/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_3.test) - -#### ★ Assuming all 10,065 tests still passes as _sqlite_ - -Time: 1.326ms - ----- ---- ---- ---- ---- ---- ---- -### 83/620 [`./test/index/delete/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_4.test) - -#### ★ Assuming all 10,599 tests still passes as _sqlite_ - -Time: 0.616ms - ----- ---- ---- ---- ---- ---- ---- -### 84/620 [`./test/index/delete/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_5.test) - -#### ★ Assuming all 10,353 tests still passes as _sqlite_ - -Time: 0.553ms - ----- ---- ---- ---- ---- ---- ---- -### 85/620 [`./test/index/delete/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_0.test) - -#### ★ Assuming all 11,145 tests still passes as _sqlite_ - -Time: 0.566ms - ----- ---- ---- ---- ---- ---- ---- -### 86/620 [`./test/index/delete/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_1.test) - -#### ★ Assuming all 10,895 tests still passes as _sqlite_ - -Time: 0.527ms - ----- ---- ---- ---- ---- ---- ---- -### 87/620 [`./test/index/delete/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_2.test) - -#### ★ Assuming all 11,033 tests still passes as _sqlite_ - -Time: 0.573ms - ----- ---- ---- ---- ---- ---- ---- -### 88/620 [`./test/index/delete/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_3.test) - -#### ★ Assuming all 10,942 tests still passes as _sqlite_ - -Time: 4.355ms - ----- ---- ---- ---- ---- ---- ---- -### 89/620 [`./test/index/delete/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_0.test) - -#### ★ Assuming all 11,924 tests still passes as _sqlite_ - -Time: 0.547ms - ----- ---- ---- ---- ---- ---- ---- -### 90/620 [`./test/index/delete/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_1.test) - -#### ★ Assuming all 11,838 tests still passes as _sqlite_ - -Time: 0.606ms - ----- ---- ---- ---- ---- ---- ---- -### 91/620 [`./test/index/delete/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10000/slt_good_0.test) - -#### ★ Assuming all 20,347 tests still passes as _sqlite_ - -Time: 0.543ms - ----- ---- ---- ---- ---- ---- ---- -### 92/620 [`./test/index/in/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab0 WHERE col3 IN (74,13,49,39,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 … - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,035 tests as _sqlite_ - -* 30 failed -* 99% was OK - -Time: 164124.546ms - ----- ---- ---- ---- ---- ---- ---- -### 93/620 [`./test/index/in/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE ((col0 IN (SELECT col3 FROM tab0 WHERE (col3 IN (SELECT col0 FROM tab0 WHERE col1 > 74.44))) AND ((col3 IN (73,90)) OR col4 > 54.25 OR (col0 IN (58,68,2) AND col0 = 51 OR col1 > 30.12)))) OR col3 < 34 - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,036 tests as _sqlite_ - -* 30 failed -* 99% was OK - -Time: 191676.558ms - ----- ---- ---- ---- ---- ---- ---- -### 94/620 [`./test/index/in/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_2.test) - -#### ★ Assuming all 10,035 tests still passes as _sqlite_ - -Time: 0.948ms - ----- ---- ---- ---- ---- ---- ---- -### 95/620 [`./test/index/in/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_3.test) - -#### ★ Assuming all 10,037 tests still passes as _sqlite_ - -Time: 0.942ms - ----- ---- ---- ---- ---- ---- ---- -### 96/620 [`./test/index/in/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col0 = 32 AND col0 > 66 AND ((col0 IS NULL)) OR (col4 <= 40.93) AND ((col3 <= 55)) OR ((col3 > 88)) OR ((col3 < 42) AND col0 < 32 OR (col3 > 72) AND col3 IN (99,86,86,87,87,11) AND (((col0 > 51)))) OR ((col4 < 3.44)) OR (col1 IN (92.43) OR ((col3 = 32))) AND (((col3 = 23))… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,038 tests as _sqlite_ - -* 30 failed -* 99% was OK - -Time: 158706.301ms - ----- ---- ---- ---- ---- ---- ---- -### 97/620 [`./test/index/in/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (col4 IN (SELECT col1 FROM tab0 WHERE ((col0 > 26)) AND ((((col0 IN (24,73,85,15,54,8))) AND col0 = 39 AND col3 <= 66 AND col4 < 93.31 OR (col0 IS NULL) AND ((((col1 IS NULL) OR col0 = 49) OR (col0 IS NULL AND ((col4 >= 38.72 OR col0 >= 43)) OR col0 IS NULL AND col4 >= 21.… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,038 tests as _sqlite_ - -* 15 failed -* 99% was OK - -Time: 189836.512ms - ----- ---- ---- ---- ---- ---- ---- -### 98/620 [`./test/index/in/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE (((col4 IN (SELECT col1 FROM tab0 WHERE ((col0 >= 975))) OR col1 BETWEEN 323.0 AND 982.34 OR (((col0 IN (251,821,693,586,116) AND col0 IN (810,408) AND (col1 > 722.50 AND col4 < 359.60)))) AND col4 <= 244.64 AND col1 > 83.19) OR col0 IS… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,128 tests as _sqlite_ - -* 30 failed -* 99% was OK - -Time: 274321.205ms - ----- ---- ---- ---- ---- ---- ---- -### 99/620 [`./test/index/in/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (col4 > 945.15 AND col0 <= 745 AND (col3 < 668 OR col3 IN (SELECT col0 FROM tab0 WHERE (col3 = 227) AND (col3 = 758) AND col4 >= 234.80 OR (col0 IS NULL) OR (col0 IN (455,424,243,331,768)) AND col4 < 813.43 OR col0 > 392 OR col1 BETWEEN 990.61 AND 364.96 OR col0 <= 886 AND… - -Cannot read property '1' of undefined -``` - -#### ☓ Ran 10,127 tests as _sqlite_ - -* 15 failed -* 99% was OK - -Time: 155171.409ms - ----- ---- ---- ---- ---- ---- ---- -### 100/620 [`./test/index/in/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (col1 >= 196.55 AND ((((col0 <= 274)) AND col0 > 676 OR (((col0 < 747 AND (col1 < 448.35)))) OR (col3 IN (SELECT col0 FROM tab0 WHERE col3 > 612) AND (col0 IN (84,102,155,846)) AND (col3 < 664)) OR col0 >= 909 OR (col0 = 936) AND (col4 >= 226.22))) AND col0 <= 835 OR col1 … - -Cannot read property '1' of undefined -``` - -#### ☓ Ran 10,128 tests as _sqlite_ - -* 15 failed -* 99% was OK - -Time: 132079.789ms - ----- ---- ---- ---- ---- ---- ---- -### 101/620 [`./test/index/in/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (((((((col0 <= 382))) AND col4 IN (SELECT col1 FROM tab0 WHERE (col0 <= 332 OR (((col1 < 576.83)) OR col1 <= 724.21 OR col0 BETWEEN 587 AND 730 OR (col3 > 794 AND col1 IN (SELECT col4 FROM tab0 WHERE col1 IN (0.79,673.92,13.18,990.13) AND col4 >= 532.39))))))))) AND (((col… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,126 tests as _sqlite_ - -* 15 failed -* 99% was OK - -Time: 131436.468ms - ----- ---- ---- ---- ---- ---- ---- -### 102/620 [`./test/index/in/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (col0 > 793) AND col3 < 242 AND (((((col0 IS NULL AND col3 < 254)) AND ((col0 >= 221) OR col3 < 269 AND (col3 IS NULL) AND (((col3 = 922) AND col0 <= 264 AND (col0 <= 157) AND col0 > 495) AND (col3 < 188)) AND ((col4 = 842.46) OR col3 >= 851 OR col4 IN (SELECT col1 FROM ta… - -Cannot read property '1' of undefined -``` - -#### ☓ Ran 10,127 tests as _sqlite_ - -* 15 failed -* 99% was OK - -Time: 158774.712ms - ----- ---- ---- ---- ---- ---- ---- -### 103/620 [`./test/index/in/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (((col4 >= 6897.58 AND col0 IN (7530,4312)) AND col1 <= 494.83 AND (col3 > 7877 OR col0 > 8556) OR (col3 IN (SELECT col0 FROM tab0 WHERE ((((col1 >= 3878.9)) AND col0 <= 9103 OR col3 = 6252 OR col3 > 30 AND (col0 < 8923 AND col4 = 8696.1 AND col3 IS NULL) AND (col0 <= 9125… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 11,028 tests as _sqlite_ - -* 60 failed -* 99% was OK - -Time: 628724.056ms - ----- ---- ---- ---- ---- ---- ---- -### 104/620 [`./test/index/in/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_1.test) - -#### ★ Assuming all 11,024 tests still passes as _sqlite_ - -Time: 1.388ms - ----- ---- ---- ---- ---- ---- ---- -### 105/620 [`./test/index/orderby/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_0.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.435ms - ----- ---- ---- ---- ---- ---- ---- -### 106/620 [`./test/index/orderby/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_1.test) - -#### ★ Assuming all 10,054 tests still passes as _sqlite_ - -Time: 0.367ms - ----- ---- ---- ---- ---- ---- ---- -### 107/620 [`./test/index/orderby/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_10.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.414ms - ----- ---- ---- ---- ---- ---- ---- -### 108/620 [`./test/index/orderby/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_11.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 1.415ms - ----- ---- ---- ---- ---- ---- ---- -### 109/620 [`./test/index/orderby/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_12.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.453ms - ----- ---- ---- ---- ---- ---- ---- -### 110/620 [`./test/index/orderby/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_13.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 1.654ms - ----- ---- ---- ---- ---- ---- ---- -### 111/620 [`./test/index/orderby/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_14.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.491ms - ----- ---- ---- ---- ---- ---- ---- -### 112/620 [`./test/index/orderby/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_15.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 2.526ms - ----- ---- ---- ---- ---- ---- ---- -### 113/620 [`./test/index/orderby/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_16.test) - -#### ★ Assuming all 10,050 tests still passes as _sqlite_ - -Time: 0.493ms - ----- ---- ---- ---- ---- ---- ---- -### 114/620 [`./test/index/orderby/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_17.test) - -#### ★ Assuming all 10,054 tests still passes as _sqlite_ - -Time: 1.271ms - ----- ---- ---- ---- ---- ---- ---- -### 115/620 [`./test/index/orderby/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_18.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.528ms - ----- ---- ---- ---- ---- ---- ---- -### 116/620 [`./test/index/orderby/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_19.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 1.019ms - ----- ---- ---- ---- ---- ---- ---- -### 117/620 [`./test/index/orderby/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_2.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.491ms - ----- ---- ---- ---- ---- ---- ---- -### 118/620 [`./test/index/orderby/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_20.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (col4 < 384.93 OR col1 < 239.78 OR col4 = 233.10 OR (col3 IN (SELECT col0 FROM tab0 WHERE (col0 > 428) OR col3 > 471 AND col3 IN (SELECT col0 FROM tab0 WHERE col0 < 986 AND (col3 < 892)) OR col0 = 201 AND col1 >= 908.84))) OR col4 = 925.62 OR col3 >= 628 AND col1 > 669.11 … - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,052 tests as _sqlite_ - -* 60 failed -* 99% was OK - -Time: 45654.161ms - ----- ---- ---- ---- ---- ---- ---- -### 119/620 [`./test/index/orderby/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_21.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.500ms - ----- ---- ---- ---- ---- ---- ---- -### 120/620 [`./test/index/orderby/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_22.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.466ms - ----- ---- ---- ---- ---- ---- ---- -### 121/620 [`./test/index/orderby/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_23.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 1.518ms - ----- ---- ---- ---- ---- ---- ---- -### 122/620 [`./test/index/orderby/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_24.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.440ms - ----- ---- ---- ---- ---- ---- ---- -### 123/620 [`./test/index/orderby/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_25.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.443ms - ----- ---- ---- ---- ---- ---- ---- -### 124/620 [`./test/index/orderby/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_3.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.544ms - ----- ---- ---- ---- ---- ---- ---- -### 125/620 [`./test/index/orderby/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_4.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.465ms - ----- ---- ---- ---- ---- ---- ---- -### 126/620 [`./test/index/orderby/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_5.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.538ms - ----- ---- ---- ---- ---- ---- ---- -### 127/620 [`./test/index/orderby/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_6.test) - -#### ★ Assuming all 10,048 tests still passes as _sqlite_ - -Time: 0.488ms - ----- ---- ---- ---- ---- ---- ---- -### 128/620 [`./test/index/orderby/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_7.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.455ms - ----- ---- ---- ---- ---- ---- ---- -### 129/620 [`./test/index/orderby/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_8.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.484ms - ----- ---- ---- ---- ---- ---- ---- -### 130/620 [`./test/index/orderby/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_9.test) - -#### ★ Assuming all 10,050 tests still passes as _sqlite_ - -Time: 0.513ms - ----- ---- ---- ---- ---- ---- ---- -### 131/620 [`./test/index/orderby/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_0.test) - -#### ★ Assuming all 10,141 tests still passes as _sqlite_ - -Time: 0.576ms - ----- ---- ---- ---- ---- ---- ---- -### 132/620 [`./test/index/orderby/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_1.test) - -#### ★ Assuming all 10,140 tests still passes as _sqlite_ - -Time: 0.455ms - ----- ---- ---- ---- ---- ---- ---- -### 133/620 [`./test/index/orderby/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_2.test) - -#### ★ Assuming all 10,142 tests still passes as _sqlite_ - -Time: 0.460ms - ----- ---- ---- ---- ---- ---- ---- -### 134/620 [`./test/index/orderby/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE ((col1 IN (SELECT col4 FROM tab0 WHERE (col3 IN (SELECT col0 FROM tab0 WHERE col1 > 474.87)) AND col3 > 159))) ORDER BY 1 DESC - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,140 tests as _sqlite_ - -* 60 failed -* 99% was OK - -Time: 68456.074ms - ----- ---- ---- ---- ---- ---- ---- -### 135/620 [`./test/index/orderby/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/1000/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE ((((col1 <= 7103.46 AND col0 > 2211 AND col0 > 4703 AND col3 <= 2105 AND col4 > 1731.51 OR (col0 > 3287) AND col3 <= 5111 AND col4 >= 8249.41 AND ((col3 <= 6788) AND ((col4 IS NULL) OR col0 >= 4782 OR col0 IN (SELECT col3 FROM tab0 WHERE col1 IN (SELECT col4 FROM tab0 WHER… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 11,043 tests as _sqlite_ - -* 60 failed -* 99% was OK - -Time: 681540.741ms - ----- ---- ---- ---- ---- ---- ---- -### 136/620 [`./test/index/orderby_nosort/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_0.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 2.599ms - ----- ---- ---- ---- ---- ---- ---- -### 137/620 [`./test/index/orderby_nosort/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_1.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.419ms - ----- ---- ---- ---- ---- ---- ---- -### 138/620 [`./test/index/orderby_nosort/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_10.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.526ms - ----- ---- ---- ---- ---- ---- ---- -### 139/620 [`./test/index/orderby_nosort/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_11.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.477ms - ----- ---- ---- ---- ---- ---- ---- -### 140/620 [`./test/index/orderby_nosort/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_12.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.485ms - ----- ---- ---- ---- ---- ---- ---- -### 141/620 [`./test/index/orderby_nosort/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_13.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.417ms - ----- ---- ---- ---- ---- ---- ---- -### 142/620 [`./test/index/orderby_nosort/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_14.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.727ms - ----- ---- ---- ---- ---- ---- ---- -### 143/620 [`./test/index/orderby_nosort/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_15.test) - -#### ★ Assuming all 10,054 tests still passes as _sqlite_ - -Time: 1.546ms - ----- ---- ---- ---- ---- ---- ---- -### 144/620 [`./test/index/orderby_nosort/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_16.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.463ms - ----- ---- ---- ---- ---- ---- ---- -### 145/620 [`./test/index/orderby_nosort/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_17.test) - -#### ★ Assuming all 10,050 tests still passes as _sqlite_ - -Time: 1.407ms - ----- ---- ---- ---- ---- ---- ---- -### 146/620 [`./test/index/orderby_nosort/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_18.test) - -#### ★ Assuming all 10,050 tests still passes as _sqlite_ - -Time: 0.507ms - ----- ---- ---- ---- ---- ---- ---- -### 147/620 [`./test/index/orderby_nosort/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_19.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 1.704ms - ----- ---- ---- ---- ---- ---- ---- -### 148/620 [`./test/index/orderby_nosort/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_2.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.491ms - ----- ---- ---- ---- ---- ---- ---- -### 149/620 [`./test/index/orderby_nosort/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_20.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 1.824ms - ----- ---- ---- ---- ---- ---- ---- -### 150/620 [`./test/index/orderby_nosort/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_21.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.467ms - ----- ---- ---- ---- ---- ---- ---- -### 151/620 [`./test/index/orderby_nosort/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_22.test) - -#### ★ Assuming all 10,054 tests still passes as _sqlite_ - -Time: 1.504ms - ----- ---- ---- ---- ---- ---- ---- -### 152/620 [`./test/index/orderby_nosort/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_23.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.486ms - ----- ---- ---- ---- ---- ---- ---- -### 153/620 [`./test/index/orderby_nosort/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_24.test) - -#### ★ Assuming all 10,054 tests still passes as _sqlite_ - -Time: 2.513ms - ----- ---- ---- ---- ---- ---- ---- -### 154/620 [`./test/index/orderby_nosort/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_25.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.514ms - ----- ---- ---- ---- ---- ---- ---- -### 155/620 [`./test/index/orderby_nosort/10/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_26.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.579ms - ----- ---- ---- ---- ---- ---- ---- -### 156/620 [`./test/index/orderby_nosort/10/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_27.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.482ms - ----- ---- ---- ---- ---- ---- ---- -### 157/620 [`./test/index/orderby_nosort/10/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_28.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 1.506ms - ----- ---- ---- ---- ---- ---- ---- -### 158/620 [`./test/index/orderby_nosort/10/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_29.test) - -#### ★ Assuming all 10,050 tests still passes as _sqlite_ - -Time: 0.492ms - ----- ---- ---- ---- ---- ---- ---- -### 159/620 [`./test/index/orderby_nosort/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_3.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 1.501ms - ----- ---- ---- ---- ---- ---- ---- -### 160/620 [`./test/index/orderby_nosort/10/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_30.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.495ms - ----- ---- ---- ---- ---- ---- ---- -### 161/620 [`./test/index/orderby_nosort/10/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_31.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 1.516ms - ----- ---- ---- ---- ---- ---- ---- -### 162/620 [`./test/index/orderby_nosort/10/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_32.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.469ms - ----- ---- ---- ---- ---- ---- ---- -### 163/620 [`./test/index/orderby_nosort/10/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_33.test) - -#### ★ Assuming all 10,050 tests still passes as _sqlite_ - -Time: 2.224ms - ----- ---- ---- ---- ---- ---- ---- -### 164/620 [`./test/index/orderby_nosort/10/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_34.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.540ms - ----- ---- ---- ---- ---- ---- ---- -### 165/620 [`./test/index/orderby_nosort/10/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_35.test) - -#### ★ Assuming all 10,049 tests still passes as _sqlite_ - -Time: 1.680ms - ----- ---- ---- ---- ---- ---- ---- -### 166/620 [`./test/index/orderby_nosort/10/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_36.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.472ms - ----- ---- ---- ---- ---- ---- ---- -### 167/620 [`./test/index/orderby_nosort/10/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_37.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 2.877ms - ----- ---- ---- ---- ---- ---- ---- -### 168/620 [`./test/index/orderby_nosort/10/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_38.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.475ms - ----- ---- ---- ---- ---- ---- ---- -### 169/620 [`./test/index/orderby_nosort/10/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_39.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 1.706ms - ----- ---- ---- ---- ---- ---- ---- -### 170/620 [`./test/index/orderby_nosort/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_4.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 1.986ms - ----- ---- ---- ---- ---- ---- ---- -### 171/620 [`./test/index/orderby_nosort/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_5.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 2.141ms - ----- ---- ---- ---- ---- ---- ---- -### 172/620 [`./test/index/orderby_nosort/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_6.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 1.579ms - ----- ---- ---- ---- ---- ---- ---- -### 173/620 [`./test/index/orderby_nosort/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_7.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 2.550ms - ----- ---- ---- ---- ---- ---- ---- -### 174/620 [`./test/index/orderby_nosort/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_8.test) - -#### ★ Assuming all 10,054 tests still passes as _sqlite_ - -Time: 2.364ms - ----- ---- ---- ---- ---- ---- ---- -### 175/620 [`./test/index/orderby_nosort/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_9.test) - -#### ★ Assuming all 10,055 tests still passes as _sqlite_ - -Time: 1.382ms - ----- ---- ---- ---- ---- ---- ---- -### 176/620 [`./test/index/orderby_nosort/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_0.test) - -#### ★ Assuming all 10,149 tests still passes as _sqlite_ - -Time: 2.045ms - ----- ---- ---- ---- ---- ---- ---- -### 177/620 [`./test/index/orderby_nosort/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_1.test) - -#### ★ Assuming all 10,141 tests still passes as _sqlite_ - -Time: 1.565ms - ----- ---- ---- ---- ---- ---- ---- -### 178/620 [`./test/index/orderby_nosort/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_2.test) - -#### ★ Assuming all 10,142 tests still passes as _sqlite_ - -Time: 1.827ms - ----- ---- ---- ---- ---- ---- ---- -### 179/620 [`./test/index/orderby_nosort/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_3.test) - -#### ★ Assuming all 10,143 tests still passes as _sqlite_ - -Time: 1.823ms - ----- ---- ---- ---- ---- ---- ---- -### 180/620 [`./test/index/orderby_nosort/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_4.test) - -#### ★ Assuming all 10,141 tests still passes as _sqlite_ - -Time: 1.498ms - ----- ---- ---- ---- ---- ---- ---- -### 181/620 [`./test/index/orderby_nosort/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_5.test) - -#### ★ Assuming all 10,142 tests still passes as _sqlite_ - -Time: 0.590ms - ----- ---- ---- ---- ---- ---- ---- -### 182/620 [`./test/index/orderby_nosort/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_6.test) - -#### ★ Assuming all 10,144 tests still passes as _sqlite_ - -Time: 1.387ms - ----- ---- ---- ---- ---- ---- ---- -### 183/620 [`./test/index/orderby_nosort/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_0.test) - -#### ★ Assuming all 11,040 tests still passes as _sqlite_ - -Time: 5.427ms - ----- ---- ---- ---- ---- ---- ---- -### 184/620 [`./test/index/orderby_nosort/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_1.test) - -#### ★ Assuming all 11,043 tests still passes as _sqlite_ - -Time: 2.255ms - ----- ---- ---- ---- ---- ---- ---- -### 185/620 [`./test/index/random/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT + col2 FROM tab0 AS cor0 WHERE col3 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + + ( - - COUNT ( * ) ) FROM tab0 cor0 WHERE NULL <> col1 - -Expected: ["0"] but got ["10"] -``` - - -```sql -SELECT + col0 AS col0 FROM tab0 WHERE NOT + col0 IN ( - 67 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL AVG ( ALL col3 ) FROM tab0 WHERE ( NULL ) NOT IN ( - 87 * + 98 ) - -Expected: ["NULL"] but got ["411.800"] -``` - - -```sql -SELECT * FROM tab0 WHERE - - CAST ( NULL AS REAL ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 62 - - + CAST ( COUNT ( ALL col1 ) AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL - -g is not defined -``` - - -```sql -SELECT col2 AS col4 FROM tab0 WHERE - col1 > - 75 - -Expected: ["0"] but got ["ijika"] -``` - - -```sql -SELECT + MIN ( ALL 65 ), + CAST ( NULL AS INTEGER ) AS col4 FROM tab0 WHERE NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT - 49 + + MIN ( - col0 ) FROM tab0 WHERE NOT ( NOT + 99 NOT BETWEEN ( - + ( + col1 ) ) AND - col4 * - 99 * - col3 ) - -Expected: ["-953"] but got ["NULL"] -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 790 failed -* 92% was OK - -Time: 38550.737ms - ----- ---- ---- ---- ---- ---- ---- -### 186/620 [`./test/index/random/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT col2 col5 FROM tab0 WHERE NOT + col1 * col0 - - 45 = + 75 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - 42 AS col2 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, + COUNT ( * ) * + 7 col2 FROM tab0 AS cor0 WHERE NULL IS NULL - -Expected: ["NULL","70"] but got ["0","70"] -``` - - -```sql -SELECT 11 AS col0 FROM tab0 AS cor0 WHERE ( + 22 ) = ( CAST ( + col0 AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT ( 92 ) AS col5, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col3 ) > ( NULL ) - -Expected: ["92","0"] but got ["92","10"] -``` - - -```sql -SELECT ALL CAST ( SUM ( ALL + col3 ) AS INTEGER ) FROM tab0 WHERE + - 4 > - col1 - -g is not defined -``` - - -```sql -SELECT ALL + col2 FROM tab0 WHERE NOT - - 10 <= - + col4 - - col3 - -Expected: ["0","0","0","0"] but got ["hzanm","lktfw","mguub","mwyzu"] -``` - - -```sql -SELECT - 43 * MAX ( ALL - 96 * + col3 ) FROM tab0 WHERE NOT ( - col1 ) IN ( + ( 36 ) ) - -Expected: ["445824"] but got ["NULL"] -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 730 failed -* 92% was OK - -Time: 30321.652ms - ----- ---- ---- ---- ---- ---- ---- -### 187/620 [`./test/index/random/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_10.test) - -_Mimic sqlite_ - -```sql -SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL >= - col3 - -Expected: ["0"] but got ["10"] -``` - - -```sql -SELECT + col0 AS col1 FROM tab0 WHERE - CAST ( NULL AS REAL ) + - 89 BETWEEN NULL AND NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL + - ( + 76 ) FROM tab0 WHERE NOT + col4 * + + CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + - 39 + + + 57 AS col5, - col3 AS col5 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col5 FROM tab0 WHERE ( 99 ) NOT BETWEEN ( NULL ) AND col1 - -Expected: ["0"] but got ["eapur","fgqwx","igtci","oggnp","plcxd","qbrdd","qqeza","rywts","shkjt","zsgry"] -``` - - -```sql -SELECT ALL + SUM ( DISTINCT - col0 ) FROM tab0 WHERE NOT col5 IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT ( + + col0 - + + col1 ) >= ( col1 ) - -Expected: ["0","0","0","0","0","0"] but got ["gaven","qlgja","qnpgu","xobsl","youok","yqgcu"] -``` - - -```sql -SELECT - 88 + + ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0 WHERE NULL IS NULL - -g is not defined -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 850 failed -* 91% was OK - -Time: 30884.063ms - ----- ---- ---- ---- ---- ---- ---- -### 188/620 [`./test/index/random/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_11.test) - -_Mimic sqlite_ - -```sql -SELECT + col2 AS col2 FROM tab0 WHERE NOT + + col3 + col3 BETWEEN col3 AND - col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col5 FROM tab0 WHERE 75 NOT BETWEEN - col1 * - - 7 AND ( - col0 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 26 + CAST ( - 80 AS INTEGER ) AS col5 FROM tab0 WHERE - ( + - 42 ) + col3 NOT BETWEEN NULL AND col1 - -Expected: ["-54","-54","-54","-54","-54","-54","-54"] but got ["-54","-54","-54","-54","-54","-54","-54","-54","-54","-54"] -``` - - -```sql -SELECT - 6 FROM tab0 AS cor0 WHERE col0 <= - CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT SUM ( ALL col4 ) FROM tab0 AS cor0 WHERE + col4 IS NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT MAX ( DISTINCT col3 ) AS col0 FROM tab0 AS cor0 WHERE NOT 31 * + - col1 BETWEEN ( col4 + + col3 + - col4 ) AND + 34 * col1 - -Expected: ["938"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - 21 AS col1 FROM tab0 AS cor0 WHERE 43 * + - CAST ( NULL AS INTEGER ) IS NOT NULL - -g is not defined -``` - -#### ☓ Ran 10,031 tests as _sqlite_ - -* 790 failed -* 92% was OK - -Time: 33027.434ms - ----- ---- ---- ---- ---- ---- ---- -### 189/620 [`./test/index/random/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_12.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) - + - col3 BETWEEN - col1 AND NULL - -Wrong conversion type -``` - - -```sql -SELECT - + ( - col3 ) * - + col3 FROM tab0 AS cor0 WHERE NOT + 20 BETWEEN col4 * 57 AND - + col4 + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE col4 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - COUNT ( ALL - col4 ) * - 71 + - 0 FROM tab0 AS cor0 WHERE NOT + 97 < NULL - -Expected: ["0"] but got ["710"] -``` - - -```sql -SELECT - MAX ( + 26 ) FROM tab0 AS cor0 WHERE NOT - col3 NOT BETWEEN + + col4 AND NULL - -Expected: ["NULL"] but got ["-26"] -``` - - -```sql -SELECT col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col3 < + 71 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0","0","0"] -``` - - -```sql -SELECT col5 AS col4 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN ( NULL ) AND ( + col1 ) - -Expected: ["0","0","0","0","0","0"] but got ["akvhd","duptn","efltn","gwglv","nermp","qvevz","qxdmc","qywiw","ucstb","ukpjw"] -``` - -#### ☓ Ran 10,033 tests as _sqlite_ - -* 860 failed -* 91% was OK - -Time: 32928.724ms - ----- ---- ---- ---- ---- ---- ---- -### 190/620 [`./test/index/random/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_13.test) - -_Mimic sqlite_ - -```sql -SELECT COUNT ( * ) AS col1, 28 FROM tab0 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["0","28"] but got ["28","0"] -``` - - -```sql -SELECT - - CAST ( NULL AS INTEGER ) + col0 * 46 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) AS col4 FROM tab0 WHERE NOT NULL NOT BETWEEN 96 * + 33 / - 1 + 95 AND NULL - -g is not defined -``` - - -```sql -SELECT - 23 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) NOT BETWEEN NULL AND 69 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + 4 * + 69 AS col3 FROM tab0 WHERE NOT col0 BETWEEN NULL AND - + ( col4 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + ( SUM ( DISTINCT + col3 ) ) AS col2 FROM tab0 AS cor0 WHERE 6 / + col3 * + - ( - + 47 ) IS NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + MAX ( ( col3 ) ) / - - 2 - - - 2 AS col5 FROM tab0 WHERE NOT + col0 IN ( - col1, col3 + 57 ) - -Expected: ["458"] but got ["NULL"] -``` - - -```sql -SELECT + col5 col3 FROM tab0 WHERE + col1 NOT BETWEEN - 96 AND col0 - -Expected: ["0","0","0","0","0","0"] but got ["hbwys","kxrzu","qbdwp","vruch","xarlb","ybarm"] -``` - - -```sql -SELECT col5 AS col3 FROM tab0 WHERE NOT ( ( + 45 ) BETWEEN NULL AND col1 ) - -Expected: ["0"] but got ["hbwys","kxrzu","lkyfk","pavon","pfxqp","qbdwp","vruch","xarlb","ybarm","ziuqv"] -``` - - -```sql -SELECT DISTINCT - ( - ( - + CAST ( NULL AS INTEGER ) ) ), CAST ( NULL AS INTEGER ) + + 80 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL - -Expected: ["NULL","NULL"] but got ["0","80"] -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 885 failed -* 91% was OK - -Time: 29682.781ms - ----- ---- ---- ---- ---- ---- ---- -### 191/620 [`./test/index/random/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_14.test) - -_Mimic sqlite_ - -```sql -SELECT + col3 * + CAST ( + 1 AS REAL ) FROM tab0 AS cor0 WHERE NOT ( + - 75 ) * col3 / - - col1 * + + col4 * col4 < NULL - -Wrong conversion type -``` - - -```sql -SELECT - col3, + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + - 98 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( - - col1 - + - col3 IS NOT NULL ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT - + ( + ( - ( ( - COUNT ( * ) ) ) ) ) FROM tab0 AS cor0 WHERE NOT + col0 = NULL - -Expected: ["0"] but got ["-10"] -``` - - -```sql -SELECT + 10, + 54 FROM tab0 AS cor0 WHERE NOT 66 IN ( - ( + - col3 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - + col3 AS col5, 78 AS col5 FROM tab0 cor0 WHERE 35 + col0 IS NOT NULL - -2 results returned but expected 20 -``` - - -```sql -SELECT ALL + col5 AS col3 FROM tab0 WHERE - + col1 NOT BETWEEN NULL AND - col3 - -Expected: ["0","0","0"] but got ["cnoua","dunwk","gxohz","jnwpl","kgygk","pfoxu","pgyvg","swdpn","tzczq","zdmee"] -``` - - -```sql -SELECT + ( - - MAX ( DISTINCT - col0 ) ) - - 76 AS col4, 30 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col3 ) - -Expected: ["NULL","30"] but got ["30","NULL"] -``` - -#### ☓ Ran 10,031 tests as _sqlite_ - -* 815 failed -* 91% was OK - -Time: 31564.108ms - ----- ---- ---- ---- ---- ---- ---- -### 192/620 [`./test/index/random/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT - col3 col3 FROM tab0 WHERE NOT - CAST ( - + col3 AS INTEGER ) BETWEEN NULL AND col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + COUNT ( * ) * 11 AS col3 FROM tab0 AS cor0 WHERE NOT NULL > NULL - -Expected: ["0"] but got ["110"] -``` - - -```sql -SELECT ALL col5 FROM tab0 AS cor0 WHERE NOT col1 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + 31 + - MIN ( - 42 ) FROM tab0 cor0 WHERE NOT - col3 * + col3 * + + col0 + + col4 BETWEEN col1 AND NULL - -Expected: ["73"] but got ["NULL"] -``` - - -```sql -SELECT col5 FROM tab0 WHERE - ( - col1 ) <= + col0 - -Expected: ["0","0","0","0","0","0"] but got ["bqisj","gtdhg","mylwf","tlesg","vrkrw","ylzxx"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col4 > + + col1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT + CAST ( - SUM ( - col3 ) AS INTEGER ) col3 FROM tab0 WHERE + ( col3 ) NOT IN ( - 44 + col1 * + + col4, 39 ) - -g is not defined -``` - - -```sql -SELECT - 45 FROM tab0 AS cor0 WHERE NOT + col1 * 41 / + + 82 BETWEEN - col3 AND ( - + ( - 64 ) ) - -10 results returned but expected 9 -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 910 failed -* 90% was OK - -Time: 29075.632ms - ----- ---- ---- ---- ---- ---- ---- -### 193/620 [`./test/index/random/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col5 FROM tab0 AS cor0 WHERE + col4 * + col4 * + 24 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - COUNT ( * ) * 9 FROM tab0 WHERE NOT NULL <= ( + col1 ) - -Expected: ["0"] but got ["-90"] -``` - - -```sql -SELECT + col3 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 25 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + col2 AS col1 FROM tab0 WHERE NOT col1 <= col4 - -Expected: ["0","0","0","0","0"] but got ["ayfdf","iiegz","kaetk","reayu","unszc"] -``` - - -```sql -SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) + - 63 AS col0 FROM tab0 WHERE NULL NOT IN ( 71 ) - -g is not defined -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT - 89 IS NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col5 col1 FROM tab0 AS cor0 WHERE NOT col0 < + col1 - -Expected: ["0","0"] but got ["hkqiq","wjfwi"] -``` - - -```sql -SELECT DISTINCT 83 * - 92 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col3, - CAST ( NULL AS INTEGER ) / col4 * + 52 AS col5 FROM tab0 AS cor0 WHERE col3 <= 81 - -Expected: ["NULL","NULL"] but got ["-7636","0"] -``` - - -```sql -SELECT - MIN ( DISTINCT col0 ) + 54 FROM tab0 WHERE NOT ( col1 + + col3 * + col0 ) IN ( col0 ) - -Expected: ["-130"] but got ["NULL"] -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 680 failed -* 93% was OK - -Time: 28388.470ms - ----- ---- ---- ---- ---- ---- ---- -### 194/620 [`./test/index/random/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col5 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), ( + COUNT ( * ) ) FROM tab0 WHERE NOT + 26 IS NULL - -Expected: ["NULL","10"] but got ["0","10"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( - 12 ) <= NULL - -Expected: ["0"] but got ["10"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT - col3 - ( - ( - col1 ) ) NOT IN ( - 78 + - 95 * CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col4 FROM tab0 cor0 WHERE col0 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 WHERE ( NOT col0 NOT BETWEEN + col4 AND + + col1 ) - -g is not defined -``` - - -```sql -SELECT DISTINCT + MAX ( + col3 ) FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - + col3 + col3 AND + col0 - -Expected: ["922"] but got ["NULL"] -``` - -#### ☓ Ran 10,033 tests as _sqlite_ - -* 735 failed -* 92% was OK - -Time: 25696.592ms - ----- ---- ---- ---- ---- ---- ---- -### 195/620 [`./test/index/random/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT + col2 AS col5 FROM tab0 WHERE NOT ( col0 ) * - - col4 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - 81 FROM tab0 WHERE NOT col0 IN ( - 9 + + 10 * - + 68, col4 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ( - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 72 + - + col4 + col3 ) AND - ( CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT + - COUNT ( * ) AS col4 FROM tab0 AS cor0 WHERE 64 / col0 NOT BETWEEN - col1 AND + + CAST ( NULL AS INTEGER ) - -Expected: ["0"] but got ["-10"] -``` - - -```sql -SELECT + col2 col5 FROM tab0 AS cor0 WHERE ( col4 ) BETWEEN col0 AND - 96 * - col3 - -Expected: ["0","0","0"] but got ["amwpr","ehefd","uxbns"] -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 735 failed -* 92% was OK - -Time: 27470.526ms - ----- ---- ---- ---- ---- ---- ---- -### 196/620 [`./test/index/random/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT SUM ( DISTINCT + + 90 ) AS col3 FROM tab0 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + col3 - col3 col5 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL col2 AS col2 FROM tab0 WHERE 80 * 48 - - 91 > - col4 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT 36 / COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL - -Expected: ["3"] but got ["3.600"] -``` - - -```sql -SELECT ALL ( - col0 ) - 31 - - 80 FROM tab0 AS cor0 WHERE NOT col4 / 6 IN ( + col1 / - + col0 * - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT ( col4 ) <= NULL - -g is not defined -``` - - -```sql -SELECT + col2 FROM tab0 WHERE ( 60 + + col3 ) < ( + col0 ) - -Expected: ["0","0","0","0","0"] but got ["gvttq","qvahk","tgsmz","zfxgo","zkoew"] -``` - - -```sql -SELECT col2 FROM tab0 WHERE + col0 * + col0 + - col4 * col3 <= ( + col1 + col4 * - 0 ) OR ( + 57 * + col0 ) = NULL - -Expected: ["0","0"] but got ["naijw","wodwv"] -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 780 failed -* 92% was OK - -Time: 23854.751ms - ----- ---- ---- ---- ---- ---- ---- -### 197/620 [`./test/index/random/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE ( ( CAST ( NULL AS INTEGER ) ) ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - MIN ( ALL + + 73 ) AS col4 FROM tab0 cor0 WHERE NOT 35 >= NULL - -Expected: ["NULL"] but got ["-73"] -``` - - -```sql -SELECT + COUNT ( * ) col3 FROM tab0 AS cor0 WHERE col4 * + col1 <> NULL - -Expected: ["0"] but got ["10"] -``` - - -```sql -SELECT DISTINCT - COUNT ( * ) / + CAST ( NULL AS REAL ) AS col5 FROM tab0 WHERE NOT col0 + CAST ( col3 AS INTEGER ) <> 62 * - ( col1 * - col4 ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + - MAX ( DISTINCT + col3 ) AS col2, + ( + COUNT ( * ) ) + + 71 FROM tab0 WHERE NOT + 13 * CAST ( NULL AS INTEGER ) IS NOT NULL - -Expected: ["-972","81"] but got ["NULL","71"] -``` - - -```sql -SELECT ALL col2 AS col5 FROM tab0 WHERE - + col3 BETWEEN - 72 AND 50 + + 78 - -Expected: ["0"] but got ["hmsci"] -``` - -#### ☓ Ran 10,031 tests as _sqlite_ - -* 675 failed -* 93% was OK - -Time: 27071.134ms - ----- ---- ---- ---- ---- ---- ---- -### 198/620 [`./test/index/random/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL AND 57 + col3 + + col0 * + 36 * col4 > NULL - -Wrong conversion type -``` - - -```sql -SELECT SUM ( col3 ) AS col4 FROM tab0 WHERE NOT - 85 + ( + CAST ( NULL AS INTEGER ) ) NOT IN ( col3 * 49 ) - -Expected: ["NULL"] but got ["5614"] -``` - - -```sql -SELECT ALL COUNT ( * ) AS col4 FROM tab0 WHERE NOT ( + - col1 ) BETWEEN col3 * + col0 + - - col3 AND ( - + col4 + + + col0 ) - -Expected: ["10"] but got ["0"] -``` - - -```sql -SELECT col5 FROM tab0 AS cor0 WHERE NOT ( col0 - col4 ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + col5 AS col5 FROM tab0 AS cor0 WHERE + col4 NOT BETWEEN NULL AND + col3 - -Expected: ["0","0","0"] but got ["apjmo","dubev","ithfo","ktnfz","swsmt","texha","ttvlt","vzeio","ylxxs","zwzyz"] -``` - - -```sql -SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 75 * - 78 * + - ( ( - + 46 ) ) IS NULL - -g is not defined -``` - - -```sql -SELECT - col0 col3 FROM tab0 WHERE NOT - col3 IN ( + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - MAX ( ALL + + 78 ) FROM tab0 AS cor0 WHERE NOT + 18 BETWEEN col1 + - ( col1 ) + + ( col1 ) * - - col1 AND 17 * + col0 - -Expected: ["-78"] but got ["NULL"] -``` - - -```sql -SELECT col5 AS col1 FROM tab0 AS cor0 WHERE col4 NOT BETWEEN - ( - 32 ) AND - CAST ( - col1 AS INTEGER ) - -Expected: ["0","0","0","0","0"] but got ["apjmo","dubev","ithfo","ktnfz","vzeio"] -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 745 failed -* 92% was OK - -Time: 23615.220ms - ----- ---- ---- ---- ---- ---- ---- -### 199/620 [`./test/index/random/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_9.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + + 86 + - col3 AS col0 FROM tab0 cor0 WHERE NOT + 70 * - - 75 - - 75 BETWEEN - col3 + - col4 AND + + col3 * - + col3 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col2 col3 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 66 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS REAL ) * - 13, 98 ) - -Wrong conversion type -``` - - -```sql -SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 76 AS col3 FROM tab0 AS cor0 WHERE NOT - ( col0 ) + - col0 IS NOT NULL - -Expected: ["NULL"] but got ["-76"] -``` - - -```sql -SELECT ALL 55 / ( COUNT ( * ) ) FROM tab0 cor0 WHERE col5 IS NOT NULL - -Expected: ["5"] but got ["5.500"] -``` - - -```sql -SELECT - + CAST ( - SUM ( DISTINCT - - CAST ( + 91 AS INTEGER ) ) AS INTEGER ), - 51 AS col0 FROM tab0 WHERE NOT NULL <= 60 - -g is not defined -``` - - -```sql -SELECT col5 AS col1 FROM tab0 AS cor0 WHERE + 80 + col4 > - - col1 + col3 - -Expected: ["0","0"] but got ["axwip","klkhp"] -``` - -#### ☓ Ran 10,031 tests as _sqlite_ - -* 740 failed -* 92% was OK - -Time: 22709.827ms - ----- ---- ---- ---- ---- ---- ---- -### 200/620 [`./test/index/random/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + 52 / + 95 FROM tab0 WHERE + col4 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - + COUNT ( * ) AS col3 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + col4, col0 + col3 * - 24 ) - -Expected: ["0"] but got ["-100"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE col4 * + col1 + - col3 + - 64 + - col4 BETWEEN col1 + + - CAST ( + - col4 AS REAL ) AND - - CAST ( NULL AS INTEGER ) - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col3 FROM tab0 AS cor0 WHERE NOT - col3 IN ( + - 29 * 82 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - + COUNT ( * ) * + + 51 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> - col0 - -Expected: ["0","NULL"] but got ["-5100","0"] -``` - - -```sql -SELECT ALL + CAST ( COUNT ( ALL col0 ) AS INTEGER ) col3 FROM tab0 WHERE NULL IS NULL - -g is not defined -``` - - -```sql -SELECT col2 AS col0 FROM tab0 WHERE NOT - - col0 >= 54 + 23 - -Expected: ["0"] but got ["qckcw"] -``` - - -```sql -SELECT col0 * + - 7 FROM tab0 WHERE CAST ( col0 AS INTEGER ) NOT BETWEEN NULL AND + col3 - -100 results returned but expected 55 -``` - -#### ☓ Ran 10,123 tests as _sqlite_ - -* 715 failed -* 92% was OK - -Time: 30728.445ms - ----- ---- ---- ---- ---- ---- ---- -### 201/620 [`./test/index/random/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT + col5 AS col1 FROM tab0 AS cor0 WHERE ( - 0 ) BETWEEN 6 * - col4 AND ( + col0 * - - col1 - 48 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + + 77 AS col2, - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col4 AND NULL - -Expected: ["77","0"] but got ["77","-100"] -``` - - -```sql -SELECT + 92 * + - 75 FROM tab0 AS cor0 WHERE NOT + ( + - col0 ) IN ( - + ( + + 81 ) + + col3 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + - MAX ( DISTINCT + col3 ) AS col2, + ( + COUNT ( * ) ) + + 71 FROM tab0 WHERE NOT + 13 * CAST ( NULL AS INTEGER ) IS NOT NULL - -Expected: ["-9951","171"] but got ["NULL","71"] -``` - - -```sql -SELECT - COUNT ( * ) * AVG ( DISTINCT + col3 ) AS col3 FROM tab0 WHERE NOT NULL <= + + col3 - -Expected: ["NULL"] but got ["-531399"] -``` - - -```sql -SELECT col5 col5 FROM tab0 WHERE NOT ( ( col1 ) ) >= + ( - 80 ) * - 31 - col0 - -Expected: ["0","0","0","0"] but got ["kjkvp","rrlwc","uhpvq","ydhme"] -``` - - -```sql -SELECT + col5 AS col5 FROM tab0 AS cor0 WHERE + col4 NOT BETWEEN NULL AND + col3 - -100 results returned but expected 42 -``` - - -```sql -SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 75 * - 78 * + - ( ( - + 46 ) ) IS NULL - -g is not defined -``` - -#### ☓ Ran 10,123 tests as _sqlite_ - -* 655 failed -* 93% was OK - -Time: 36392.076ms - ----- ---- ---- ---- ---- ---- ---- -### 202/620 [`./test/index/random/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 AS cor0 WHERE col4 * + col1 + - col3 + - 64 + - col4 BETWEEN col1 + + - CAST ( + - col4 AS REAL ) AND - - CAST ( NULL AS INTEGER ) - -Wrong conversion type -``` - - -```sql -SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col5 FROM tab0 WHERE - 72 NOT BETWEEN 37 AND NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL > col4 - -Expected: ["0"] but got ["-1000"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col3 FROM tab0 AS cor0 WHERE NOT - col3 IN ( + - 29 * 82 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - + COUNT ( * ) * + + 51 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> - col0 - -Expected: ["0","NULL"] but got ["-51000","0"] -``` - -#### ☓ Ran 2,067 tests as _sqlite_ - -* 70 failed -* 96% was OK - -Time: 19747.184ms - ----- ---- ---- ---- ---- ---- ---- -### 203/620 [`./test/index/random/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL <> + col4 / CAST ( - col0 AS REAL ) ) - -Wrong conversion type -``` - -#### ☓ Ran 1,056 tests as _sqlite_ - -* 5 failed -* 99% was OK - -Time: 2553.016ms - ----- ---- ---- ---- ---- ---- ---- -### 204/620 [`./test/index/random/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_2.test) - -#### ★ Assuming all 1,027 tests still passes as _sqlite_ - -Time: 0.658ms - ----- ---- ---- ---- ---- ---- ---- -### 205/620 [`./test/index/random/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_3.test) - -#### ★ Assuming all 1,033 tests still passes as _sqlite_ - -Time: 0.527ms - ----- ---- ---- ---- ---- ---- ---- -### 206/620 [`./test/index/random/1000/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( - CAST ( NULL AS REAL ) + + col0 NOT IN ( - - col0 * - col3 ) ) ) - -Wrong conversion type -``` - -#### ☓ Ran 1,032 tests as _sqlite_ - -* 5 failed -* 99% was OK - -Time: 2441.731ms - ----- ---- ---- ---- ---- ---- ---- -### 207/620 [`./test/index/random/1000/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT + COUNT ( * ) AS col5 FROM tab0 WHERE NOT - ( 3 ) + col4 NOT BETWEEN NULL AND col0 - -Expected: ["0"] but got ["1000"] -``` - - -```sql -SELECT ALL 72 FROM tab0 WHERE + - col1 * - - ( - col0 ) / + col4 - + col3 + + col0 + + 62 * CAST ( NULL AS INTEGER ) * col0 * - col4 + + 91 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 42 * - col4 AS col3 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 15 FROM tab0 cor0 WHERE ( 92 ) <= col0 / + + CAST ( NULL AS REAL ) + 77 - -Wrong conversion type -``` - - -```sql -SELECT ALL + CAST ( COUNT ( ALL col0 ) AS INTEGER ) col3 FROM tab0 WHERE NULL IS NULL - -g is not defined -``` - -#### ☓ Ran 4,333 tests as _sqlite_ - -* 265 failed -* 93% was OK - -Time: 50939.702ms - ----- ---- ---- ---- ---- ---- ---- -### 208/620 [`./test/index/random/1000/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col1 - 9 * + ( + + CAST ( NULL AS INTEGER ) ) * - 41 * + + 35 FROM tab0 WHERE NOT - 70 IS NULL - -Expected: ["NULL"] but got ["1001.490","101.350","1023.170","1029.400","1040.530","1041.320","105.910","1052.610","1055.210","1061.720","1077.130","1088.150","1134.630","1136.530","1141.510","1142.310","1145.470","1184.360","1189.950","119.510","1195.480","1196.280","1202.190","121.600","1210.330",… -``` - - -```sql -SELECT ALL - 42 + + col0 AS col1, 66 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( 78 AS INTEGER ) * 42 * + 24 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + + col2 FROM tab0 WHERE col0 <= + + col4 * - + CAST ( NULL AS REAL ) + + 67 - -Wrong conversion type -``` - - -```sql -SELECT + 89 FROM tab0 WHERE + - col0 NOT BETWEEN + + 45 + - + col4 AND NULL - -1000 results returned but expected 491 -``` - - -```sql -SELECT - MIN ( + col4 ) AS col3 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL - -Expected: ["-61"] but got ["-61.500"] -``` - - -```sql -SELECT - 74 * 61 FROM tab0 AS cor0 WHERE NOT 1 IN ( 78 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 WHERE ( col3 ) IN ( + col0 ) - -Expected: ["750","79","2150","0","79","1716","0"] but got ["750","79","2150.540","kuzlf","79","1716.500","wqnrb"] -``` - -#### ☓ Ran 11,021 tests as _sqlite_ - -* 725 failed -* 93% was OK - -Time: 89561.007ms - ----- ---- ---- ---- ---- ---- ---- -### 209/620 [`./test/index/random/1000/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT MAX ( col4 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL - -Expected: ["NULL"] but got ["9994.100"] -``` - - -```sql -SELECT ALL + ( - - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col5 FROM tab0 WHERE NOT NULL IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT + col5 FROM tab0 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - COUNT ( 41 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 41 AND - 82 - -Expected: ["0"] but got ["-1000"] -``` - - -```sql -SELECT 36 FROM tab0 WHERE - col3 + col0 NOT BETWEEN NULL AND ( + - col0 ) - -1000 results returned but expected 762 -``` - - -```sql -SELECT DISTINCT + 42 / + COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL col2 FROM tab0 WHERE - + col3 BETWEEN - 72 AND 50 + + 78 - -Expected: ["0","0","0","0","0"] but got ["ernxs","orpfh","pirjf","tbpkm","zphbq"] -``` - -#### ☓ Ran 11,022 tests as _sqlite_ - -* 780 failed -* 92% was OK - -Time: 84723.283ms - ----- ---- ---- ---- ---- ---- ---- -### 210/620 [`./test/index/random/1000/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 / - - col3 + + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -1000 results returned but expected 967 -``` - - -```sql -SELECT ALL ( + + col0 ) FROM tab0 AS cor0 WHERE NOT col4 IN ( + - col1 * - + 58, + col4 * - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + ( - MAX ( - 10 ) ) * + + 59 AS col3 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL ) - -Expected: ["NULL"] but got ["590"] -``` - - -```sql -SELECT col3 AS col1 FROM tab0 WHERE NOT 2 * + col0 + + CAST ( NULL AS REAL ) + - 93 >= + 40 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col4 * + + col3 + + - col0 + - + col4 - -Expected: ["0"] but got ["1000"] -``` - - -```sql -SELECT ALL + CAST ( col3 AS INTEGER ) * col3 + - ( + col0 ) / - col3 AS col2 FROM tab0 WHERE ( NULL ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - -#### ☓ Ran 4,841 tests as _sqlite_ - -* 310 failed -* 93% was OK - -Time: 32089.808ms - ----- ---- ---- ---- ---- ---- ---- -### 211/620 [`./test/index/view/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_0.test) - -_Mimic sqlite_ -Time: 5.254ms - ----- ---- ---- ---- ---- ---- ---- -### 212/620 [`./test/index/view/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_2_tab0_153 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_154 UNION SELECT pk, col0 FROM view_2_tab0_154 - -10 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_154 - -Expected: ["1","4","5","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_155 - -Expected: ["6","0"] but got ["NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_157 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE ((col0 IS NULL) OR col3 > 5 OR col3 <= 50 OR col1 < 83.11))) OR col0 > 75 - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 8,137 tests as _sqlite_ - -* 7,698 skipped -* 91 failed -* 4% was OK - -Time: 2705.934ms - ----- ---- ---- ---- ---- ---- ---- -### 213/620 [`./test/index/view/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_302 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_302 - -Expected: ["4","11","7","70"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_302 UNION SELECT pk, col0 FROM view_2_tab0_302 - -4 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_302 - -Expected: ["0","1","2","3","5","6","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_305 - -Expected: ["6","56","7","70","8","75"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_305 - -Expected: ["0","1","2","3","4","5","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_306 - -Expected: ["4","11"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_308 - -Expected: ["2","3","5","8","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_316 - -Expected: ["6","7","8"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_322 - -Expected: ["6"] but got ["NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_367 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL OR (((col0 < 64 AND (col0 BETWEEN 25 AND 41) AND (col4 >= 33.34) OR (col4 < 22.72 AND (col0 >= 61)) AND (col0 > 4) OR col0 >= 0 OR col0 >= 45 AND col3 IN (SELECT col0 FROM tab0 WHERE col3 > 42) AND col3 IS NULL AND col3 <= … - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,465 tests as _sqlite_ - -* 1,028 skipped -* 1,361 failed -* 67% was OK - -Time: 16880.573ms - ----- ---- ---- ---- ---- ---- ---- -### 214/620 [`./test/index/view/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_376 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_376 UNION SELECT pk, col0 FROM view_2_tab0_376 - -2 results returned but expected 20 -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_377 - -Expected: ["1","72","5","85","8","94","9","95"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_377 - -Expected: ["1","5","8","9"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_378 - -Expected: ["2","52"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_378 - -Expected: ["2"] but got ["NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_385 - -Expected: ["0","2","3","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_387 - -Expected: ["0","60","1","72","9","95"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_387 - -Expected: ["2","3","4","5","6","7","8"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_405 - -Expected: ["2","6","7"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab2_406 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -CREATE VIEW view_1_tab0_408 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL AND (((((col1 < 63.79))) OR col0 >= 35 AND col4 > 76.20 AND col0 = 84 OR col0 <= 76 AND col3 IN (SELECT col0 FROM tab0 WHERE col4 = 39.20 AND col3 <= 5))) - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,271 tests as _sqlite_ - -* 4,133 skipped -* 716 failed -* 33% was OK - -Time: 9007.515ms - ----- ---- ---- ---- ---- ---- ---- -### 215/620 [`./test/index/view/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_444 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_444 - -Expected: ["1","65","5","67"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_444 UNION SELECT pk, col0 FROM view_2_tab0_444 - -4 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_444 - -Expected: ["0","2","3","4","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_446 - -Expected: ["1","65"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_447 - -Expected: ["3"] but got ["NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_448 - -Expected: ["2","3","4","8","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_462 - -Expected: ["3","6","7","52","8","29"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_462 - -Expected: ["3","7","8"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_463 - -Expected: ["0","1","2","5","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_519 AS SELECT pk, col0 FROM tab0 WHERE (((col0 >= 39) OR (col1 < 88.77) AND (((col1 <= 79.45) AND col0 IN (83,70,92,44,74) AND col4 < 94.64 OR col0 > 49 AND (col3 >= 51 OR col0 > 38)) OR col0 < 10 OR col1 > 79.73 AND col3 > 53 AND col1 BETWEEN 24.95 AND 9.14 AND col3 < 51 OR… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,563 tests as _sqlite_ - -* 223 skipped -* 1,526 failed -* 76% was OK - -Time: 18936.083ms - ----- ---- ---- ---- ---- ---- ---- -### 216/620 [`./test/index/view/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_660 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_660 - -Expected: ["2","85","3","93"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_660 UNION SELECT pk, col0 FROM view_2_tab0_660 - -4 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_660 - -Expected: ["0","1","4","5","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_661 - -Expected: ["0","48","2","85","3","93"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_661 - -Expected: ["0","2","3"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_662 - -Expected: ["2","3"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_677 - -Expected: ["0","2","3","4","5","7","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_687 - -Expected: ["8"] but got ["NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_726 AS SELECT pk, col0 FROM tab0 WHERE col0 > 84 AND col4 <= 74.98 AND col1 IN (SELECT col4 FROM tab0 WHERE (col4 > 35.62) AND ((col3 > 33) AND (((((col3 > 1))) AND (col0 = 21 OR (((col3 > 79))) AND (col1 < 18.85) AND ((col3 > 26)) OR ((col3 > 73) AND col3 <= 84)))) OR ((((c… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,384 tests as _sqlite_ - -* 1,143 skipped -* 1,371 failed -* 65% was OK - -Time: 17323.168ms - ----- ---- ---- ---- ---- ---- ---- -### 217/620 [`./test/index/view/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_946 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_946 UNION SELECT pk, col0 FROM view_2_tab0_946 - -10 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_946 - -Expected: ["1","2","5","6","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_948 - -Expected: ["7","71"] but got ["NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_952 - -Expected: ["1","35","3","18","7","71","9","0"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_952 - -Expected: ["0","2","4","5","6","8"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_961 - -Expected: ["0","1","2","4","5","6","7"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_963 - -Expected: ["8"] but got ["NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_970 - -Expected: ["0","87","3","18"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_975 - -Expected: ["3","7","9"] but got ["NULL","NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_984 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 42) AND ((col1 IS NULL)) OR ((((col3 > 72)))) OR (((col3 <= 90) AND ((col0 > 68)) AND (col0 IN (45,3,50,1) OR col4 < 9.99 OR col3 IN (76,97,24) AND col1 > 8.58 AND (col0 = 3) AND (col0 >= 50 AND col0 IN (SELECT col3 FROM tab0 WH… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 6,492 tests as _sqlite_ - -* 2,753 skipped -* 806 failed -* 45% was OK - -Time: 12387.081ms - ----- ---- ---- ---- ---- ---- ---- -### 218/620 [`./test/index/view/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_1009 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_1009 - -Expected: ["0","71","5","97"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_1009 UNION SELECT pk, col0 FROM view_2_tab0_1009 - -4 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_1009 - -Expected: ["1","2","3","4","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_1013 - -Expected: ["2","89","4","92","5","97"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_1013 - -Expected: ["0","1","3","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_1023 - -Expected: ["3","5"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_1027 - -Expected: ["6"] but got ["NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_1031 - -Expected: ["1","3","6","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_1035 - -Expected: ["3","7","8"] but got ["NULL","NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_1042 AS SELECT pk, col0 FROM tab0 WHERE ((col0 > 16 OR ((col0 < 9 OR col3 IN (SELECT col0 FROM tab0 WHERE (col0 < 94) AND col0 <= 61))) AND col3 = 18 OR col3 < 55 AND col3 IN (76,76) OR col3 >= 86 AND ((((((col0 < 9)))) AND col0 = 70 OR col1 IS NULL) AND (col3 IN (31,92,0)))… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,533 tests as _sqlite_ - -* 4,593 skipped -* 646 failed -* 30% was OK - -Time: 9631.912ms - ----- ---- ---- ---- ---- ---- ---- -### 219/620 [`./test/index/view/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_77 UNION SELECT pk, col0 FROM view_2_tab0_77 - -150 results returned but expected 200 -``` - - -```sql -SELECT * FROM view_3_tab0_84 - -Expected: ["1","26","29","4","81","94"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_93 AS SELECT pk, col0 FROM tab0 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 8,623 tests as _sqlite_ - -* 6,893 skipped -* 677 failed -* 12% was OK - -Time: 6704.087ms - ----- ---- ---- ---- ---- ---- ---- -### 220/620 [`./test/index/view/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_226 UNION SELECT pk, col0 FROM view_2_tab0_226 - -112 results returned but expected 200 -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_229 - -Expected: ["30","84","86","184"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_232 - -Expected: ["19","869","81","978","83","803"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_232 - -Expected: ["19","81","83"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_250 - -Expected: ["18","24"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_271 - -Expected: ["93"] but got ["NULL"] -``` - -#### ☓ Ran 7,122 tests as _sqlite_ - -* 2,876 failed -* 59% was OK - -Time: 26509.010ms - ----- ---- ---- ---- ---- ---- ---- -### 221/620 [`./test/index/view/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_523 UNION SELECT pk, col0 FROM view_2_tab0_523 - -64 results returned but expected 200 -``` - - -```sql -CREATE VIEW view_1_tab0_534 AS SELECT pk, col0 FROM tab0 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 8,235 tests as _sqlite_ - -* 7,008 skipped -* 457 failed -* 9% was OK - -Time: 5136.453ms - ----- ---- ---- ---- ---- ---- ---- -### 222/620 [`./test/index/view/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_597 - -Expected: ["69","996"] but got ["NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_597 UNION SELECT pk, col0 FROM view_2_tab0_597 - -198 results returned but expected 200 -``` - - -```sql -SELECT * FROM view_3_tab0_597 - -Expected: ["69"] but got ["NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_602 AS SELECT pk, col0 FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE col0 >= 795) OR col3 >= 543 OR col3 > 991 AND (((col3 < 927 OR (col3 < 430)) AND (col0 > 590) OR (col0 >= 449 AND col4 > 729.35 OR (((col3 >= 745 AND col0 IN (376,260))) AND col0 = 742 OR ((col3 < 40… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,174 tests as _sqlite_ - -* 6,548 skipped -* 207 failed -* 5% was OK - -Time: 3428.017ms - ----- ---- ---- ---- ---- ---- ---- -### 223/620 [`./test/index/view/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_799 UNION SELECT pk, col0 FROM view_2_tab0_799 - -36 results returned but expected 200 -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_804 - -Expected: ["11","576","47","71"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_804 - -Expected: ["11","47"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_813 - -Expected: ["49"] but got ["NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_817 - -Expected: ["23","34","36","67","68","8","91"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_837 - -Expected: ["54","65","74","76","96"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_869 AS SELECT pk, col0 FROM tab0 WHERE (((col0 > 796 OR ((((col0 < 642)) AND (((((col1 < 435.47 AND col0 = 220)) AND (col0 > 695) AND col3 > 66 AND (col4 > 262.50))) OR col0 > 828 AND ((col0 >= 606 AND col1 <= 821.18)) OR (col0 > 561) AND col4 < 21.23 OR col0 <= 506 AND col3… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 6,935 tests as _sqlite_ - -* 108 skipped -* 2,712 failed -* 59% was OK - -Time: 38492.646ms - ----- ---- ---- ---- ---- ---- ---- -### 224/620 [`./test/index/view/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_870 UNION SELECT pk, col0 FROM view_2_tab0_870 - -16 results returned but expected 200 -``` - - -```sql -SELECT * FROM view_3_tab0_876 - -Expected: ["2","27","51","57","6","64","75"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_879 - -Expected: ["29","638","43","152","46","772","51","862"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_879 - -Expected: ["29","43","46","51"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM tab1 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -CREATE VIEW view_1_tab0_901 AS SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= … - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,949 tests as _sqlite_ - -* 4,823 skipped -* 1,217 failed -* 24% was OK - -Time: 18256.543ms - ----- ---- ---- ---- ---- ---- ---- -### 225/620 [`./test/index/view/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/1000/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_739 UNION SELECT pk, col0 FROM view_2_tab0_739 - -1824 results returned but expected 2000 -``` - - -```sql -CREATE VIEW view_1_tab0_742 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,630 tests as _sqlite_ - -* 6,203 skipped -* 167 failed -* 16% was OK - -Time: 15495.267ms - ----- ---- ---- ---- ---- ---- ---- -### 226/620 [`./test/index/view/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10000/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_1 UNION SELECT pk, col0 FROM view_2_tab0_1 - -6920 results returned but expected 20000 -``` - -#### ☓ Ran 10,622 tests as _sqlite_ - -* 271 failed -* 97% was OK - -Time: 1179434.160ms - ----- ---- ---- ---- ---- ---- ---- -### 227/620 [`./test/random/aggregates/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 20 / - 97 FROM tab0 - -Expected: ["0"] but got ["-0.206"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 0 col0 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT MIN ( DISTINCT col1 ) * - + AVG ( DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) ) AS col2, COUNT ( ALL - col0 ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","3"] but got ["3"] -``` - - -```sql -SELECT DISTINCT - col1 AS col2, col2 AS col2 FROM tab1 WHERE - - CAST ( + - col1 AS REAL ) NOT BETWEEN - col0 AND NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + CAST ( ( + SUM ( - 14 ) ) AS INTEGER ) AS col0 FROM tab1 - -g is not defined -``` - - -```sql -SELECT ALL + col0 AS col1, + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0 - -Expected: ["15","NULL","87","NULL","97","NULL"] but got ["15","47","87","10","97","99"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + col1 * CAST ( NULL AS INTEGER ) + + 67 AS col2 FROM tab2 WHERE ( + + col2 ) <= ( 42 ) - -Expected: ["NULL","NULL"] but got ["67","67"] -``` - - -```sql -SELECT + MIN ( - 82 ) AS col0 FROM tab2 WHERE - + 5 * + col1 / - CAST ( NULL AS INTEGER ) IS NULL - -Expected: ["-82"] but got ["NULL"] -``` - - -```sql -SELECT ALL MIN ( ALL + 80 ) AS col2, 27 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + 95 + + 63 AND + 0 - -Expected: ["NULL","27"] but got ["27","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 JOIN tab2 cor1 ON + ( 90 ) IS NOT NULL, tab0 AS cor2 - -Parse error on line 1: -...+ ( 90 ) IS NOT NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT col2 + + 76 / - ( - + col1 ) AS col1, 71 + col0 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 - -Expected: ["24","NULL","40","NULL","59","NULL"] but got ["24.490","NULL","40.987","NULL","59.134","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,588 failed -* 84% was OK - -Time: 27695.248ms - ----- ---- ---- ---- ---- ---- ---- -### 228/620 [`./test/random/aggregates/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col1, + col2 col1 FROM tab2 - -Expected: ["51","23","67","58","77","40"] but got ["23","23","40","40","58","58"] -``` - - -```sql -SELECT + ( CAST ( NULL AS REAL ) ) - col0 AS col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 19 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * 44 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT - - CAST ( MAX ( ALL + col1 ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 16 AS col0 FROM tab0 WHERE NOT + 71 * + + CAST ( NULL AS INTEGER ) * - 24 + - ( - col2 ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL MAX ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT - 85 * col0 + col0 BETWEEN - 82 AND NULL - -Expected: ["99"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + 36 / + - 21 AS col1, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,374 failed -* 86% was OK - -Time: 20058.655ms - ----- ---- ---- ---- ---- ---- ---- -### 229/620 [`./test/random/aggregates/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_10.test) - -_Mimic sqlite_ - -```sql -SELECT - COUNT ( * ) / + 47 FROM tab2 WHERE NOT col2 NOT IN ( - 30 + + CAST ( col1 AS INTEGER ) * - CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + col2 / - + 26 FROM tab0 - -Expected: ["-1","-3","0"] but got ["-0.385","-1.808","-3.808"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) * - CAST ( - 49 AS INTEGER ) / col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col2 IN ( 35, + 27 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 30 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NOT NULL - -6 results returned but expected 18 -``` - - -```sql -SELECT DISTINCT + SUM ( DISTINCT + col2 ), - MAX ( DISTINCT + - 11 ) FROM tab2 WHERE NULL = - 61 + + col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - MAX ( - col1 ) FROM tab0 AS cor0 WHERE NOT - 24 - + 79 IN ( + 97, + CAST ( ( - + col2 ) AS INTEGER ) * - - col0 ) - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT - 55 * - col1 AS col0, col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["2805","NULL","3685","NULL","4235","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT - col2 / + + col1 col1, col2 / + + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["-99","NULL","0","NULL","0","NULL"] but got ["-0.476","NULL","-0.580","NULL","-99","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,656 failed -* 83% was OK - -Time: 25307.033ms - ----- ---- ---- ---- ---- ---- ---- -### 230/620 [`./test/random/aggregates/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_100.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - - 36 * - + col2 AS col2 FROM tab0 WHERE NOT + + col2 IN ( - - 41, - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ( - 34 ) + + 16 + + ( col2 ) / col0 / + 49 FROM tab0 - -Expected: ["-18","-18","-18"] but got ["-17.936","-17.979","-17.998"] -``` - - -```sql -SELECT ALL - + CAST ( - AVG ( col1 ) AS INTEGER ) * - 2 col0 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT ( - 31 ) + + CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL"] but got ["-31"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + ( + MIN ( - CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + col0 * + 42 AS col2, - col0 * col0 / 19 AS col2, - 68 AS col1 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + COUNT ( * ) / + - CAST ( - MIN ( ALL - 13 ) AS INTEGER ) FROM tab2 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ), - MAX ( + + 50 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT DISTINCT col2 AS col0, col0 / + - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1 - -Expected: ["59","NULL","68","NULL","96","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL, tab1 AS cor2 - -Parse error on line 1: -...cor1 ON NULL IS NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col0 >= - 17 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,635 failed -* 83% was OK - -Time: 19925.080ms - ----- ---- ---- ---- ---- ---- ---- -### 231/620 [`./test/random/aggregates/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_101.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 + - col0 / - col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0.531","1.338","1.441"] -``` - - -```sql -SELECT 8 AS col0, + col2 + - col0 * - 62 AS col0 FROM tab1 - -Expected: ["8","3258","8","5329","8","5710"] but got ["3258","3258","5329","5329","5710","5710"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT - ( + col1 ) * - CAST ( NULL AS REAL ) - - col1 + col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 20 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + col1 * + 98 - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IN ( - col1, + col2 * col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab0, tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT ( NULL IS NOT NULL ) ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - MIN ( - + col2 ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 87 BETWEEN NULL AND - col2 + - col1 - -Expected: ["297"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( NULL IS NOT NULL ) ) - -18 results returned but expected 54 -``` - - -```sql -SELECT - SUM ( + col0 ), SUM ( col1 ) FROM tab0 WHERE NOT ( + - col0 ) IS NOT NULL - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 * col0 col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-2601","-7225","-8281"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,677 failed -* 83% was OK - -Time: 19555.319ms - ----- ---- ---- ---- ---- ---- ---- -### 232/620 [`./test/random/aggregates/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_102.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) >= col0 - -Expected: ["0"] but got ["3"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + 65 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) col0 FROM tab1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + 8 - - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) * - - 54 / - MIN ( col1 ) col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2 WHERE col1 * - col1 / - col1 * + col2 * - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / CAST ( + MAX ( + col1 ) AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT + ( - - CAST ( + - COUNT ( * ) AS INTEGER ) ) FROM tab1 cor0 - -g is not defined -``` - - -```sql -SELECT ALL col1 * + col1 col1, - 53 * - + ( + + col2 ) AS col1, col1 + - col0 col2 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL ) - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ), - ( + col0 ) / - col2 AS col1 FROM tab0 - -Expected: ["NULL","0","NULL","8"] but got ["0","0.319","0","0.980","0","8.700"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,550 failed -* 84% was OK - -Time: 27024.050ms - ----- ---- ---- ---- ---- ---- ---- -### 233/620 [`./test/random/aggregates/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_103.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT ( + 87 ) * col0 AS col0 FROM tab1 WHERE NULL <= ( - CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col0 ) + 49 BETWEEN col0 AND col0 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT 55 * - SUM ( ALL 64 ) col0 FROM tab0 AS cor0 WHERE NOT + col1 - col0 IN ( col0 ) - -Expected: ["-10560"] but got ["0"] -``` - - -```sql -SELECT ALL + 45 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + CAST ( - + COUNT ( ALL - 16 ) AS INTEGER ) col2 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( - 43 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL 64 + MIN ( col0 ) * 42 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + CAST ( NULL AS INTEGER ) - + ( CAST ( NULL AS INTEGER ) + 66 ) IS NOT NULL - -Expected: ["1996"] but got ["NULL"] -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ), + ( + 66 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT - ( SUM ( - - col2 ) ) col0, SUM ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,568 failed -* 84% was OK - -Time: 31469.319ms - ----- ---- ---- ---- ---- ---- ---- -### 234/620 [`./test/random/aggregates/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_104.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 64 / + + col0 FROM tab1 - -Expected: ["0","1"] but got ["0.703","0.753","1.255"] -``` - - -```sql -SELECT + + SUM ( + - CAST ( NULL AS INTEGER ) ) / - 75 AS col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) ) + col1 FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL ) - -Expected: ["NULL","NULL","NULL"] but got ["14","47","5"] -``` - - -```sql -SELECT DISTINCT + - col1 + - + CAST ( NULL AS REAL ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( MIN ( ALL col0 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT * FROM tab2, tab2 AS cor0 WHERE NOT ( - 47 ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE 89 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT 4 - + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["4","0","4","0","4","0"] -``` - - -```sql -SELECT + + MAX ( - + col0 ) / 57 col2 FROM tab2 AS cor0 WHERE NOT + col1 * - ( - col1 ) + - col0 * - 56 + - + col0 BETWEEN + - ( + col2 ) + - col0 AND + - 51 * + col1 * + 53 * + 47 + + 27 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT - 14 * - ( - MAX ( ALL - ( - col1 ) ) ) AS col2, + 21 + - ( - SUM ( ALL - col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","21"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,607 failed -* 83% was OK - -Time: 27058.225ms - ----- ---- ---- ---- ---- ---- ---- -### 235/620 [`./test/random/aggregates/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_105.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - - col0 / - 47 AS col0 FROM tab0 AS cor0 - -Expected: ["-1","-2","0"] but got ["-0.319","-1.851","-2.064"] -``` - - -```sql -SELECT ALL + col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["59","NULL","68","NULL","96","NULL"] but got ["59","0","68","0","96","0"] -``` - - -```sql -SELECT COUNT ( * ) * 60 * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL col1 + - 18 FROM tab2 AS cor0 WHERE NOT col0 - + col2 NOT BETWEEN - CAST ( NULL AS REAL ) AND NULL - -Wrong conversion type -``` - - -```sql -SELECT CAST ( - - SUM ( + ( - col0 ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL + 71 AS col0, ( - - CAST ( - CAST ( + MIN ( ALL - col2 ) AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN - col2 + 71 AND + col2 / + + col0 / - ( col0 ) + + + 46 + + col1 - col0 + - col2 * col0 / - 8 - -3 results returned but expected 9 -``` - - -```sql -SELECT DISTINCT COUNT ( * ) * MIN ( ALL CAST ( + col0 AS INTEGER ) * + col0 ) FROM tab1 WHERE NOT + col2 * + ( - col1 ) IN ( col1 ) - -Expected: ["7803"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,667 failed -* 83% was OK - -Time: 41459.569ms - ----- ---- ---- ---- ---- ---- ---- -### 236/620 [`./test/random/aggregates/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_106.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 57 / 7 FROM tab0 - -Expected: ["8"] but got ["8.143"] -``` - - -```sql -SELECT DISTINCT 23 AS col1 FROM tab1 WHERE NOT + col1 IN ( col0 + - col2 * + - 43 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - 56 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["-56","NULL","-56","NULL","-56","NULL"] but got ["-56","0","-56","0","-56","0"] -``` - - -```sql -SELECT ALL + 34 * COUNT ( * ) - - 54 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["102"] -``` - - -```sql -SELECT DISTINCT col1 * - - col1 + - 78 / CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( - + SUM ( DISTINCT 71 ) AS INTEGER ) - - - 82 AS col2, - 84 AS col2 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT 77 / - - 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab1 ON NULL BETWEEN NULL AND ( NULL ) - -6 results returned but expected 18 -``` - - -```sql -SELECT ALL + COUNT ( * ) / ( + CAST ( + MAX ( col0 ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL IS NULL - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) col0, - col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-59","0","-68","0","-96"] -``` - - -```sql -SELECT DISTINCT + col0 / + col2 col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["0","NULL","8","NULL"] but got ["0.319","0","0.980","0","8.700","0"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT + - col1 ) * - - 14 * + + CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT + - col0 ) FROM tab1 - -Expected: ["NULL"] but got ["91"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,571 failed -* 84% was OK - -Time: 39570.886ms - ----- ---- ---- ---- ---- ---- ---- -### 237/620 [`./test/random/aggregates/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_107.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + + MIN ( ALL col2 ) / - - COUNT ( * ) AS col0 FROM tab0 AS cor0 - -Expected: ["3"] but got ["3.333"] -``` - - -```sql -SELECT ALL - CAST ( + - SUM ( - col1 ) AS INTEGER ) AS col2 FROM tab0 - -g is not defined -``` - - -```sql -SELECT - SUM ( 1 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 ) - -Expected: ["NULL"] but got ["-3"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) * + - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL 62 col0, col1, ( - col1 ) * - col2 * ( + ( + col2 ) ) AS col0 FROM tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT ( NOT - col1 * - + col2 * - col2 / col2 + + 61 NOT IN ( - - col1 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + 67 AS col2, ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 - -Expected: ["67","NULL","67","NULL","67","NULL"] but got ["67","0","67","0","67","0"] -``` - - -```sql -SELECT ALL - MAX ( ALL - 87 ) AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - - col2 * - - col0 / + - 2 IS NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) * + col0 + col0 * + 90 + - col2 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["1303","0","7820","0","8631","0"] -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN col0 + - col2 AND col1 + col1 - -3 results returned but expected 9 -``` - - -```sql -SELECT - COUNT ( * ) / - CAST ( + SUM ( ALL - col1 ) AS INTEGER ) + - 4 * + COUNT ( * ) FROM tab2 AS cor0 - -Expected: ["-12"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, + col1 + col0 + - - col0 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","111","NULL","195"] but got ["111","111","195","195"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,519 failed -* 84% was OK - -Time: 25715.806ms - ----- ---- ---- ---- ---- ---- ---- -### 238/620 [`./test/random/aggregates/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_108.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( * ) / - 35 AS col2 FROM tab1, tab1 cor0 - -Expected: ["0"] but got ["0.257"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT ( + - col1 ) IN ( + col2, col2 * col1 * ( + - 68 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - 88 + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL"] but got ["-88"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ), MAX ( + - col1 ) AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( - MAX ( DISTINCT + col2 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / col1 + + + col0 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["51","85","91"] -``` - - -```sql -SELECT ALL * FROM tab2, tab2 cor0 WHERE NOT - ( 34 ) = 73 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab1 cor0 WHERE NOT + col1 + + col1 * col1 BETWEEN col1 * + col1 - + col2 AND ( col1 ) - -3 results returned but expected 9 -``` - - -```sql -SELECT ALL + SUM ( ALL - - ( col0 ) ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( + col0 NOT BETWEEN + col1 AND NULL ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + + MAX ( DISTINCT - col2 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - 44 IS NULL - -Expected: ["-26"] but got ["NULL"] -``` - - -```sql -SELECT col1 * + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) - col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-46","0","-64","0","-75"] -``` - - -```sql -SELECT ALL - COUNT ( * ) AS col1, 6 + + + 15 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 - -Expected: ["-3","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 12 / + - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,643 failed -* 83% was OK - -Time: 24207.982ms - ----- ---- ---- ---- ---- ---- ---- -### 239/620 [`./test/random/aggregates/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_109.test) - -_Mimic sqlite_ - -```sql -SELECT - 37 / + 90 + + ( col1 ) FROM tab1 - -Expected: ["14","47","5"] but got ["13.589","4.589","46.589"] -``` - - -```sql -SELECT + SUM ( DISTINCT col1 ) FROM tab2 WHERE NOT - 80 IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - COUNT ( * ) + - COUNT ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","59","NULL","68","NULL","96"] but got ["0","59","0","68","0","96"] -``` - - -```sql -SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) * 24 * - ( ( - - 63 ) ) AS col2 FROM tab2 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE NOT + ( - 23 ) BETWEEN ( + col0 ) AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + MIN ( ALL - col0 ) AS col1 FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) + - CAST ( + 37 AS INTEGER ) + + + col0 IS NULL - -Expected: ["-91"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + col0 * - + col1 * CAST ( NULL AS INTEGER ) * - + ( + CAST ( NULL AS INTEGER ) ) / + - CAST ( col1 AS INTEGER ) + col2 AS col0, 60 * - - col0 * ( - CAST ( NULL AS INTEGER ) ) * + - col0 + 74 * col2 FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["59","4366","68","5032","96","7104"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON + 13 IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,629 failed -* 83% was OK - -Time: 24843.137ms - ----- ---- ---- ---- ---- ---- ---- -### 240/620 [`./test/random/aggregates/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_11.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab2 WHERE NOT - + col0 BETWEEN + col0 + + + col0 AND + 84 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + 30 * - CAST ( NULL AS INTEGER ) + - 69 + col1 AS col2, col2 AS col0 FROM tab1 - -Expected: ["NULL","59","NULL","68","NULL","96"] but got ["-22","68","-55","96","-64","59"] -``` - - -```sql -SELECT * FROM tab1 cor0 WHERE + CAST ( + col1 AS REAL ) * + 53 * - + col0 * - 27 * + + 24 BETWEEN 86 AND - - 1 / + + col1 - -Wrong conversion type -``` - - -```sql -SELECT - 18 / + 16 AS col0 FROM tab0 AS cor0 - -Expected: ["-1","-1","-1"] but got ["-1.125","-1.125","-1.125"] -``` - - -```sql -SELECT DISTINCT + 92 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["NULL"] but got ["92"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) col1 FROM tab0, tab0 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ( - 56 ), + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + col2 + - + col1 + + CAST ( NULL AS INTEGER ) + + col0 * 79 col2 FROM tab1 - -Expected: ["NULL","NULL"] but got ["0","4111","0","6769","0","7210"] -``` - - -```sql -SELECT DISTINCT + + ( MIN ( ALL + col0 ) ) + COUNT ( * ) FROM tab0 WHERE NOT + 63 * col1 + - + ( col0 ) BETWEEN + col2 AND + col1 - -Expected: ["18"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 AS cor1 ON + 93 IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,661 failed -* 83% was OK - -Time: 33249.907ms - ----- ---- ---- ---- ---- ---- ---- -### 241/620 [`./test/random/aggregates/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_110.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 8 + CAST ( NULL AS REAL ) + + + 30 AS col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT 92 + - 90 AS col1, + ( + COUNT ( * ) ) AS col1 FROM tab1 - -Expected: ["2","3"] but got ["3"] -``` - - -```sql -SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) - - 41 AS col0 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT - 53 AS col2, CAST ( NULL AS INTEGER ) * - ( col0 ) AS col1 FROM tab1 AS cor0 - -Expected: ["-53","NULL","-53","NULL","-53","NULL"] but got ["-53","0","-53","0","-53","0"] -``` - - -```sql -SELECT - 1 * - + MIN ( DISTINCT col0 ) col2 FROM tab0 cor0 WHERE NOT - 39 + 68 NOT IN ( - col1, col2 * + col2 * col2, - + col1 ) - -Expected: ["NULL"] but got ["15"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - - col1 AND ( 52 * 8 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT 37 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT ( - ( MAX ( DISTINCT + col1 ) ) ) AS col1 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL - -Expected: ["-47"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( + col0 ) / - CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL - COUNT ( - + 74 ) * - SUM ( DISTINCT - col1 ) + - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( ALL - - col1 ) * + 78 + + 33 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["-198","234"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,613 failed -* 83% was OK - -Time: 25697.965ms - ----- ---- ---- ---- ---- ---- ---- -### 242/620 [`./test/random/aggregates/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_111.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + + - ( - + col0 ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["51","85","91"] -``` - - -```sql -SELECT col0 col2 FROM tab1 WHERE - + ( - col2 ) NOT BETWEEN NULL AND ( ( col0 ) ) - -Expected: ["51"] but got ["51","85","91"] -``` - - -```sql -SELECT - MIN ( DISTINCT + col2 ) + 15 col0, COUNT ( * ) AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL - -Expected: ["NULL","0"] but got ["-8","3"] -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT NULL >= col0 + - col0 * - + CAST ( col2 AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT ALL + - col2 + 25 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col2 + col0 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( COUNT ( * ) AS INTEGER ) * - 4 FROM tab1 cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + + 59 / - CAST ( MAX ( + + 62 ) AS INTEGER ) * SUM ( DISTINCT - col0 ) + + + 45 + - 79 FROM tab2 AS cor0 - -Expected: ["-34"] but got ["NULL"] -``` - - -```sql -SELECT - 73 AS col0, 54 / + + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 - -Expected: ["-73","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + col1 AS col0, 7 AS col0, 68 - - 45 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + 92 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - MIN ( ALL col2 ) + + ( - MAX ( 47 ) ) / - - COUNT ( ALL col0 ), MAX ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["43.333","0"] -``` - - -```sql -SELECT + 90 + - col1 + ( 76 ) col2, + col2 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 - -Expected: ["145","NULL","165","NULL","85","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - - col0 AS col2, CAST ( NULL AS INTEGER ) * + + col2 + - 73 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-73","0","-73","0","-73"] -``` - - -```sql -SELECT 37 + ( + col0 ) * + 95 / - + col1 * - col2 * - CAST ( NULL AS INTEGER ) * - - col1 / - col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,651 failed -* 83% was OK - -Time: 24308.937ms - ----- ---- ---- ---- ---- ---- ---- -### 243/620 [`./test/random/aggregates/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_112.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col1 + CAST ( - + col0 AS INTEGER ) BETWEEN ( + col2 ) AND 47 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + 49 col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["49","49","49"] -``` - - -```sql -SELECT + + MIN ( + CAST ( NULL AS INTEGER ) ) / - CAST ( NULL AS REAL ) / - COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + col1 - + + CAST ( NULL AS INTEGER ) / + - col0 FROM tab0 cor0 - -Expected: ["NULL"] but got ["1","21","81"] -``` - - -```sql -SELECT DISTINCT + - 67 + 90 / + + col1 FROM tab0 AS cor0 - -Expected: ["-63","-66","23"] but got ["-62.714","-65.889","23"] -``` - - -```sql -SELECT + CAST ( + ( - + MAX ( ALL + col2 ) ) AS INTEGER ) col0 FROM tab1 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), - col1 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-1","0","-21","0","-81"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - 94 ) IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT MAX ( ALL + col0 ) AS col2 FROM tab2 cor0 WHERE NOT 1 + - col0 IN ( + + col0 ) - -Expected: ["75"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 46 + ( 60 ) ) = ( - 64 * + 55 ) - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,566 failed -* 84% was OK - -Time: 23867.862ms - ----- ---- ---- ---- ---- ---- ---- -### 244/620 [`./test/random/aggregates/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_113.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / 37 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL - 26 / + - 41 * col1 AS col2 FROM tab0 - -Expected: ["0","0","0"] but got ["0.008","0.030","0.634"] -``` - - -```sql -SELECT SUM ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * - col2 * + - 96 * - 74 / 1 + - col1 - -Expected: ["NULL"] but got ["121"] -``` - - -```sql -SELECT * FROM tab2 WHERE NOT ( 89 * - 71 - - col2 ) IN ( col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + ( - + CAST ( NULL AS REAL ) ) * + + ( + - col0 ) * + + col2 AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 56 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT MIN ( ALL - 53 ) AS col2 FROM tab2 WHERE NOT - ( - - col0 ) IN ( 1 * - col2 / + ( - col0 ) ) - -Expected: ["-53"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT ( - + col2 ) * - CAST ( NULL AS INTEGER ) + + CAST ( - - col2 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL"] but got ["10","0","47","0","99","0"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ), 74 - + - col2 + CAST ( NULL AS INTEGER ) * - col0 / - 46 AS col2 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","114","0","132","0","97"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,598 failed -* 84% was OK - -Time: 32473.129ms - ----- ---- ---- ---- ---- ---- ---- -### 245/620 [`./test/random/aggregates/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_114.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col1 / col2 - CAST ( 95 AS INTEGER ) FROM tab0 - -Expected: ["-93","-94","-95"] but got ["-92.900","-93.277","-94.990"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE + ( col0 ) * CAST ( NULL AS INTEGER ) + + col0 * - col1 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + ( CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) + + 34 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["34","34","34"] -``` - - -```sql -SELECT DISTINCT + - SUM ( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT NULL < col0 - -Expected: ["NULL"] but got ["66"] -``` - - -```sql -SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - col0 / - + CAST ( NULL AS REAL ) * + + 58 + - 69 AS col0, col0 AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col0 AS col0, - ( col1 ) + - col1 + + - 53 + + col0 - + col1 * + 70 - + 97, - col1 AS col0 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - MIN ( ALL - - ( col1 ) ) AS col1, 8 FROM tab2 AS cor0 WHERE - col0 BETWEEN ( + col0 ) AND col1 - -Expected: ["NULL","8"] but got ["8","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 86 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + MIN ( + - col2 ) * + 16 + + 45 AS col0 FROM tab0 WHERE + col0 + - col1 + - col0 + - col0 * - CAST ( - + 46 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) IS NULL - -Expected: ["-1539"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,582 failed -* 84% was OK - -Time: 27373.555ms - ----- ---- ---- ---- ---- ---- ---- -### 246/620 [`./test/random/aggregates/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_115.test) - -_Mimic sqlite_ - -```sql -SELECT - MAX ( ALL col2 ) + + 33 * MAX ( - + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 - -Expected: ["NULL"] but got ["-99"] -``` - - -```sql -SELECT + ( ( + + 81 ) ) * - col2 * + CAST ( NULL AS INTEGER ) - col0 * col0 * 8 AS col1 FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-16928","-32768","-45000"] -``` - - -```sql -SELECT DISTINCT CAST ( MIN ( DISTINCT + col0 ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT col2 AS col0, col0 AS col0 FROM tab0 - -Expected: ["10","87","47","15","99","97"] but got ["15","15","87","87","97","97"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN col2 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) + + 25 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - col2 / col0 + 58 FROM tab0 - -Expected: ["55","57","58"] but got ["54.867","56.979","57.885"] -``` - - -```sql -SELECT DISTINCT + - col0 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT - 98 BETWEEN + 3 - 22 AND col1 + - col0 - -6 results returned but expected 9 -``` - - -```sql -SELECT - 24 / - 32 AS col1 FROM tab2 AS cor0 - -Expected: ["0","0","0"] but got ["0.750","0.750","0.750"] -``` - - -```sql -SELECT + + MIN ( - col1 ) FROM tab0 WHERE NOT 52 BETWEEN col2 AND + + 60 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL NOT BETWEEN 35 AND NULL, tab2 AS cor2 - -Parse error on line 1: -... BETWEEN 35 AND NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,565 failed -* 84% was OK - -Time: 21724.444ms - ----- ---- ---- ---- ---- ---- ---- -### 247/620 [`./test/random/aggregates/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_116.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + 34 IN ( + 64 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col2 + col2 * col0 <> NULL - -Expected: ["0"] but got ["3"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + + + 59 AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["59","59","59"] -``` - - -```sql -SELECT + SUM ( DISTINCT - col1 ) AS col0 FROM tab2 cor0 WHERE + 57 IN ( - - col0 * 24 ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - + CAST ( MAX ( DISTINCT + + ( col0 ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT - col1 + 82 + CAST ( NULL AS REAL ) * col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT 37 * 50 AS col2, + col0 * + - 87 AS col0, + col1 AS col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE - 7 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT MAX ( ALL - - col1 ), SUM ( col2 ) * 5 AS col0 FROM tab2 WHERE NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT + 65 * - col1 AS col2, + col1 / 11 + - col2 / - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 - -Expected: ["-3055","NULL","-325","NULL","-910","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT MIN ( - - ( + + 10 ) ), MAX ( + - 39 ) AS col2 FROM tab0 WHERE NOT NULL <= + 43 / col2 - -Expected: ["NULL","NULL"] but got ["10","-39"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,618 failed -* 83% was OK - -Time: 25696.517ms - ----- ---- ---- ---- ---- ---- ---- -### 248/620 [`./test/random/aggregates/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_117.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 * 0 + col0 BETWEEN - 25 AND + 91 - -Expected: ["97","1","99"] but got ["15","81","47","87","21","10","97","1","99"] -``` - - -```sql -SELECT ALL + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 cor0 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col0, - col2 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","-10","NULL","-47","NULL","-99"] but got ["-10","-10","-47","-47","-99","-99"] -``` - - -```sql -SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + col0 + 75 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["75"] -``` - - -```sql -SELECT DISTINCT - col2 + + col0 FROM tab1 WHERE NOT - col0 BETWEEN ( 94 + + 87 ) AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + 64 / + + col2 col1 FROM tab0 - -Expected: ["0","1","6"] but got ["0.646","1.362","6.400"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 26 ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - col1 / col0, - col0 + + - 30 AS col2, col2 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT MAX ( - col0 ) + + COUNT ( ALL + col1 ) FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL - -Expected: ["-12"] but got ["NULL"] -``` - - -```sql -SELECT ALL col0 AS col1, col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 - -Expected: ["15","NULL","87","NULL","97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL - COUNT ( * ) * + + 3 * + CAST ( NULL AS INTEGER ) AS col2, + MIN ( 73 ) FROM tab0 AS cor0 WHERE NULL < col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,611 failed -* 83% was OK - -Time: 25998.322ms - ----- ---- ---- ---- ---- ---- ---- -### 249/620 [`./test/random/aggregates/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_118.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col2 / + + 65 AS col0 FROM tab0 - -Expected: ["0","1"] but got ["0.154","0.723","1.523"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + ( + 90 ) col0 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["90","90","90"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 - - col1 BETWEEN - - col0 * + 49 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT col1 + - + col2 + - 18 + col2 + - col2 * CAST ( NULL AS REAL ) + 77 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL 37 + - CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab1 cor0 - -g is not defined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 ) > col1 * + col1 - -Expected: ["NULL","NULL"] but got ["14","47"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / + CAST ( MIN ( 34 ) AS INTEGER ) AS col1 FROM tab0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT col2 + - CAST ( NULL AS INTEGER ) AS col2, - col2 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["10","0","47","0","99","0"] -``` - - -```sql -SELECT - col0 / + CAST ( NULL AS INTEGER ) * - 2 AS col1, CAST ( - col2 AS INTEGER ) / 20 FROM tab2 - -Expected: ["NULL","-1","NULL","-2","NULL","-2"] but got ["NULL","-1.150","NULL","-2","NULL","-2.900"] -``` - - -```sql -SELECT ALL - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * 18 AS col0, 20 FROM tab1 AS cor0 - -Expected: ["NULL","20"] but got ["20","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,508 failed -* 84% was OK - -Time: 35443.151ms - ----- ---- ---- ---- ---- ---- ---- -### 250/620 [`./test/random/aggregates/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_119.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + ( + - col2 ) + col0 * + - col0 + ( + CAST ( col1 AS INTEGER ) ) + + col2 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - col0 AS col1, col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["-51","NULL","-85","NULL","-91","NULL"] but got ["-51","0","-85","0","-91","0"] -``` - - -```sql -SELECT ALL 6 / + 28 * - col0 * + - 42 FROM tab2 - -Expected: ["0","0","0"] but got ["0.000","0.000","0.000"] -``` - - -```sql -SELECT * FROM tab2, tab2 cor0 WHERE + 10 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - COUNT ( * ) / + - CAST ( AVG ( + col1 ) AS INTEGER ) * - 93 + - MIN ( - col1 ) AS col1 FROM tab1 - -Expected: ["47"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), + col0 - - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","144","0","147","0","159"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab2 cor1 ON NOT NULL IS NULL, tab2 AS cor2 - -Parse error on line 1: -... ON NOT NULL IS NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,602 failed -* 83% was OK - -Time: 26870.835ms - ----- ---- ---- ---- ---- ---- ---- -### 251/620 [`./test/random/aggregates/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_12.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - col0 + + 64 AS col1, + 73 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL - -Expected: ["-11","73","0","73","18","73"] but got ["73","73"] -``` - - -```sql -SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) - + col2 FROM tab0 - -Expected: ["NULL"] but got ["-98","11","34"] -``` - - -```sql -SELECT col0, col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["51","NULL","85","NULL","91","NULL"] but got ["51","14","85","5","91","47"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 70 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + 15 - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 - -g is not defined -``` - - -```sql -SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT - col0 * - 45 NOT BETWEEN NULL AND - 92 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL MIN ( - 98 ) AS col2 FROM tab1 WHERE NOT - 12 IN ( - col0 * 89 - - ( 78 ) * col1 ) - -Expected: ["-98"] but got ["NULL"] -``` - - -```sql -SELECT + MAX ( DISTINCT - col1 ), ( + - MAX ( - - 97 ) ) col0 FROM tab0 WHERE NOT - 44 + - 76 > NULL - -Expected: ["NULL","NULL"] but got ["-1","-97"] -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ), col2 * - + 89 * + col1 * + - col0 * + CAST ( NULL AS INTEGER ) * - 89 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT + - COUNT ( * ) AS col0, + MAX ( - ( + 47 ) ) col0 FROM tab2 AS cor0 WHERE 93 * 75 * + + col0 IS NULL - -Expected: ["0","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,646 failed -* 83% was OK - -Time: 40546.174ms - ----- ---- ---- ---- ---- ---- ---- -### 252/620 [`./test/random/aggregates/slt_good_120.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_120.test) - -_Mimic sqlite_ - -```sql -SELECT - 78 + + col0 * + CAST ( NULL AS INTEGER ), col2 FROM tab0 - -Expected: ["NULL","10","NULL","47","NULL","99"] but got ["-78","10","-78","47","-78","99"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS REAL ) + COUNT ( DISTINCT + 72 ) * COUNT ( * ) FROM tab0 WHERE NOT 11 IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT - 15 + COUNT ( * ) / 76 FROM tab0 - -Expected: ["-15"] but got ["-14.961"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE ( + 27 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 5 BETWEEN + 62 * col1 AND + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 72 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT - COUNT ( * ) - - SUM ( - ( - 24 ) ) / - + CAST ( - + MIN ( + - col1 ) AS INTEGER ) FROM tab0 - -Expected: ["-3"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MAX ( + + col2 ), - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["-58","0"] -``` - - -```sql -SELECT - + SUM ( col2 ) AS col0, MIN ( DISTINCT - ( - 37 ) ) FROM tab2 AS cor0 WHERE NOT col0 * + col2 IS NOT NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL, tab0 AS cor2 - -Parse error on line 1: -... ON NOT NULL IS NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT 23 * + 15 * + - 99 AS col1, + MIN ( ALL col2 ) AS col1 FROM tab2 WHERE NOT ( - col0 ) <> + CAST ( - - col1 AS INTEGER ) * col1 * 50 - -Expected: ["-34155","NULL"] but got ["NULL"] -``` - - -```sql -SELECT col1 + CAST ( NULL AS INTEGER ) + - col1 * + - col0 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,601 failed -* 84% was OK - -Time: 35986.322ms - ----- ---- ---- ---- ---- ---- ---- -### 253/620 [`./test/random/aggregates/slt_good_121.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_121.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + ( + 25 ) / + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["-8"] but got ["-8.333"] -``` - - -```sql -SELECT ( CAST ( NULL AS INTEGER ) ) / - col2 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL COUNT ( * ) * - ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - COUNT ( * ) * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - + CAST ( NULL AS INTEGER ) + - 27 + - col1 * - 50 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + ( - - col2 ) / + + 51 AS col0, 80 * - + 98, col2 FROM tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - + 34 * + - col2 AS col2, - col2 * + + 23 + - col0 + + + CAST ( NULL AS REAL ) / col1 AS col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + CAST ( + - AVG ( DISTINCT - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT + MAX ( + 15 ) AS col1 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 - + CAST ( - col1 AS INTEGER ) IS NOT NULL - -Expected: ["15"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - AVG ( ALL + - 74 ) AS col2, 86 FROM tab0 WHERE 58 IS NULL - -Expected: ["NULL","86"] but got ["86","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 37 ) IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,582 failed -* 84% was OK - -Time: 40817.018ms - ----- ---- ---- ---- ---- ---- ---- -### 254/620 [`./test/random/aggregates/slt_good_122.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_122.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - SUM ( - col0 ) col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> CAST ( NULL AS INTEGER ) * CAST ( - 66 AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE col1 / + col0 + col2 NOT IN ( + 3 ) - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE - 35 + col2 / CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) - - + 51 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT 1 / + COUNT ( + + 84 ) FROM tab1 - -Expected: ["0"] but got ["0.333"] -``` - - -```sql -SELECT ALL CAST ( - COUNT ( DISTINCT 80 ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT + col0 / + col2 IS NULL - -g is not defined -``` - - -```sql -SELECT + + SUM ( - + col2 ), SUM ( - col0 ) FROM tab2 WHERE + 74 + - col0 + 96 * - ( + col2 ) > - + col1 + - CAST ( NULL AS INTEGER ) + + - 80 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 94 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - + 38 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 - -Wrong conversion type -``` - - -```sql -SELECT + 72 / - CAST ( NULL AS INTEGER ) + + + 25 AS col2, + col0 * + col1 + - ( + + ( ( + 81 ) ) ) / - col0 FROM tab1 cor0 - -Expected: ["NULL","425","NULL","4277","NULL","715"] but got ["NULL","425.953","NULL","4277.890","NULL","715.588"] -``` - - -```sql -SELECT ( + 30 ) / CAST ( - SUM ( DISTINCT + col1 ) AS INTEGER ) * - 34 + ( - MAX ( col1 ) ) * + 31 AS col2 FROM tab1 - -Expected: ["-1457"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,628 failed -* 83% was OK - -Time: 22608.324ms - ----- ---- ---- ---- ---- ---- ---- -### 255/620 [`./test/random/aggregates/slt_good_123.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_123.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT * FROM tab2 WHERE NOT - 71 IN ( + - 45 - - + col0, - 74, + col1, 80 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - COUNT ( * ) / 69 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = 25 - -Expected: ["0"] but got ["-0.043"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - col1 + + col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["1","21","81"] -``` - - -```sql -SELECT DISTINCT - CAST ( col1 AS REAL ) - - + CAST ( NULL AS REAL ) FROM tab0 cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - + ( + AVG ( - 17 ) ) AS col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL - -Expected: ["NULL"] but got ["17"] -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 1 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL COUNT ( * ) / CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - col0 + + 70 + 39 / + - 10 AS col2 FROM tab1 - -Expected: ["-18","-24","16"] but got ["-18.900","-24.900","15.100"] -``` - - -```sql -SELECT MAX ( + col1 ) AS col2, - SUM ( ALL - - col0 ) * + + 62 + - 56 * COUNT ( DISTINCT - + col1 ) - 55 FROM tab1 AS cor0 WHERE + col2 IS NULL - -Expected: ["NULL","NULL"] but got ["NULL","-55"] -``` - - -```sql -SELECT 48 + + - 47 + - MIN ( ALL 84 ) AS col1, 83 FROM tab1 WHERE + + col1 - + ( + - ( - + 30 ) ) IS NULL - -Expected: ["NULL","83"] but got ["83","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 90 IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,644 failed -* 83% was OK - -Time: 23805.014ms - ----- ---- ---- ---- ---- ---- ---- -### 256/620 [`./test/random/aggregates/slt_good_124.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_124.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - AVG ( DISTINCT + + 78 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * + + 20 / col1 + - 83 IS NULL - -Wrong conversion type -``` - - -```sql -SELECT + 70 / - col2 AS col1 FROM tab2 - -Expected: ["-1","-1","-3"] but got ["-1.207","-1.750","-3.043"] -``` - - -```sql -SELECT ALL + col2 * - - CAST ( NULL AS INTEGER ) * + col1 * + 18 + col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["46","64","75"] -``` - - -```sql -SELECT CAST ( MAX ( - 35 ) AS INTEGER ) FROM tab2 - -g is not defined -``` - - -```sql -SELECT DISTINCT + col1 - CAST ( NULL AS INTEGER ) / + - ( + col1 ) - col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-98","11","34"] -``` - - -```sql -SELECT + 71 / - col0 col0 FROM tab1 cor0 WHERE NOT - col0 + - 97 BETWEEN ( col2 ) AND - col2 * 62 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - 70 col1, - col2 * + col0 AS col1, 78 AS col2 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT col0, 19 * - col1 + + 85 col0, + 51 AS col0 FROM tab0 - -3 results returned but expected 9 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + + 81 * + ( - col2 ) * + col1 AS col0, - CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-249480","-77","-314766","-67","-95013","-51"] -``` - - -```sql -SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) AS col2, - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL - MIN ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 5 + + - 41 BETWEEN col1 AND NULL - -Expected: ["47"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,605 failed -* 83% was OK - -Time: 44945.492ms - ----- ---- ---- ---- ---- ---- ---- -### 257/620 [`./test/random/aggregates/slt_good_125.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_125.test) - -_Mimic sqlite_ - -```sql -SELECT - ( col1 ) - + ( 76 + + col2 ) / 40 FROM tab1 - -Expected: ["-18","-50","-8"] but got ["-18.300","-50.600","-8.375"] -``` - - -```sql -SELECT DISTINCT col0 FROM tab1 WHERE NOT + CAST ( col0 AS REAL ) - + col2 IS NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 22 + 48 / col1 ) IN ( 3 * col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) * 44 + col2 * + 18 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["1782","180","846"] -``` - - -```sql -SELECT COUNT ( * ) * - ( MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( + 72 * 65 IS NOT NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT CAST ( + ( + SUM ( ALL col1 ) ) AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE ( + ( 86 ) ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT col0 AS col2, col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 - -Expected: ["51","NULL","85","NULL","91","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,669 failed -* 83% was OK - -Time: 34958.692ms - ----- ---- ---- ---- ---- ---- ---- -### 258/620 [`./test/random/aggregates/slt_good_126.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_126.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( * ) / SUM ( + col2 ) FROM tab0 - -Expected: ["0"] but got ["-0.019"] -``` - - -```sql -SELECT - 36 - + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-36","-36","-36"] -``` - - -```sql -SELECT DISTINCT COUNT ( - col0 ) - + 16 FROM tab0 cor0 WHERE col1 NOT BETWEEN + CAST ( - ( - - 61 ) AS REAL ) AND 39 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - ( - CAST ( + - COUNT ( DISTINCT - 66 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT - - col0 FROM tab0 WHERE NOT col1 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + + + COUNT ( * ) col1, - MAX ( 64 ) * + 56 FROM tab0 - -Expected: ["NULL","-3584"] but got ["3","-3584"] -``` - - -```sql -SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - - 23 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + MIN ( - 84 ) FROM tab2 AS cor0 WHERE NOT + 79 + + ( - col1 ) IN ( + col0, + col0 * + - col2 ) - -Expected: ["-84"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 10 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL ( - CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) / col1 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT 1 IS NOT NULL, tab1 AS cor2 - -Parse error on line 1: -...ON NOT 1 IS NOT NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT + SUM ( + 26 ) * - + ( + 36 ) AS col1, - MIN ( - 68 ) FROM tab1 WHERE + - col2 IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,599 failed -* 84% was OK - -Time: 25766.036ms - ----- ---- ---- ---- ---- ---- ---- -### 259/620 [`./test/random/aggregates/slt_good_127.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_127.test) - -_Mimic sqlite_ - -```sql -SELECT col2, 14 AS col2 FROM tab1 - -Expected: ["59","14","68","14","96","14"] but got ["14","14","14","14","14","14"] -``` - - -```sql -SELECT ALL AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col2 * + col2, - CAST ( NULL AS REAL ) * + + col0 AS col1 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / - 46 AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT col1 AS col2, - col0 / - col1 + - col0 AS col2, - - 39 * 84 + col1 + + col1 * + 30 AS col0 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + + ( - 93 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1, + 18 * - col1 * 87 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * + 99 AS col1 FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - + ( COUNT ( * ) ) + + - COUNT ( * ) / CAST ( + + AVG ( DISTINCT - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["-3"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,629 failed -* 83% was OK - -Time: 31452.722ms - ----- ---- ---- ---- ---- ---- ---- -### 260/620 [`./test/random/aggregates/slt_good_128.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_128.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - SUM ( DISTINCT - - ( + 95 ) ) * 73 / + - SUM ( DISTINCT + 58 ) AS col0 FROM tab0 - -Expected: ["119"] but got ["119.569"] -``` - - -```sql -SELECT + CAST ( - 1 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) / 96 col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / - - 48 * 9 * col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - col1 FROM tab0 AS cor0 WHERE NOT col2 IN ( - - ( + col0 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT - - col1 / 8 + + 45, col0 AS col0, - col1 * - col2 AS col0 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 33 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) col1, CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - 63 AS col1 FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["-63"] -``` - - -```sql -SELECT - MAX ( + 68 ) AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL - -Expected: ["-68"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + col2 * + col1 + + CAST ( NULL AS INTEGER ) * - + col0 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","210","0","3807","0","99"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,645 failed -* 83% was OK - -Time: 41809.297ms - ----- ---- ---- ---- ---- ---- ---- -### 261/620 [`./test/random/aggregates/slt_good_129.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_129.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + - SUM ( 47 ) AS col1, + 39 * - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL - -Expected: ["NULL","0"] but got ["0"] -``` - - -```sql -SELECT - + 26 * - col1 * - 52 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT 50 / - col1 FROM tab1 - -Expected: ["-1","-10","-3"] but got ["-1.064","-10","-3.571"] -``` - - -```sql -SELECT - AVG ( ALL - col0 ) + - + CAST ( NULL AS REAL ) AS col2, - 48 col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT - - 96, + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["96","NULL","96","NULL","96","NULL"] but got ["96","0","96","0","96","0"] -``` - - -```sql -SELECT ALL + - CAST ( + + MAX ( ALL - + 61 ) AS INTEGER ) FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT - col2, + 38 AS col1, col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - MIN ( col2 ) FROM tab1 WHERE NOT col2 IN ( + col1 ) - -Expected: ["-59"] but got ["NULL"] -``` - - -```sql -SELECT ALL - 47 + - col2 * + CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM ( tab1 cor0 CROSS JOIN tab1 ) - -18 results returned but expected 54 -``` - -#### ☓ Ran 802 tests as _sqlite_ - -* 132 failed -* 83% was OK - -Time: 10693.856ms - ----- ---- ---- ---- ---- ---- ---- -### 262/620 [`./test/random/aggregates/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_13.test) - -_Mimic sqlite_ - -```sql -SELECT - ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ( + CAST ( + SUM ( + col2 ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT col1 - - - col0 + + col1 * - 69 col1, + col1 AS col1, + - 34 AS col1 FROM tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - 31 * - CAST ( - - ( - col1 ) AS INTEGER ) - - - col0 + col1 + + + CAST ( NULL AS INTEGER ) - + + col1 + - col2 AS col2 FROM tab2 cor0 - -Expected: ["NULL"] but got ["-1650","-2210","-2491"] -``` - - -```sql -SELECT DISTINCT - - ( + MIN ( DISTINCT - col0 ) ) / - ( + 4 ) AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0 - -Expected: ["24","3"] but got ["24.250","3"] -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( + 87 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT col0 * 27, ( + - CAST ( NULL AS INTEGER ) ) + col2 + + 64 AS col0 FROM tab2 AS cor0 - -Expected: ["1242","NULL","1728","NULL","2025","NULL"] but got ["1242","87","1728","104","2025","122"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( 30 AS INTEGER ) <= - 79 - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON + + 44 IS NOT NULL, tab0 AS cor2 - -Parse error on line 1: -...N + + 44 IS NOT NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - 95 / + CAST ( NULL AS INTEGER ) + + 82, - col0 + - + col1 * CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","-144","NULL","-147","NULL","-159"] -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ) * + col2 * - - col2 AS col1, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + + col0 + + col1 * col2 col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","1344","0","295","0","3196"] -``` - - -```sql -SELECT - COUNT ( + 59 ) / + CAST ( - COUNT ( DISTINCT col2 ) AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT ALL + col0 AS col1, 27 - 63 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["46","NULL","64","NULL","75","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,532 failed -* 84% was OK - -Time: 41207.932ms - ----- ---- ---- ---- ---- ---- ---- -### 263/620 [`./test/random/aggregates/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_14.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * + ( + 5 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 - -g is not defined -``` - - -```sql -SELECT ALL + 56 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["56","56","56"] -``` - - -```sql -SELECT DISTINCT - MIN ( + - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT 11 / - 57 FROM tab0 - -Expected: ["0","0","0"] but got ["-0.193","-0.193","-0.193"] -``` - - -```sql -SELECT + 56 AS col2, + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 - -Expected: ["56","NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab2 WHERE NOT ( col0 ) IN ( - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab0 cor0 JOIN tab0 AS cor1 ON NOT + 44 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + col2 / col1 * - 65 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["-6435","0","0"] but got ["-30.952","-37.716","-6435"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NULL BETWEEN - ( + + 34 ) AND - 8, tab2 AS cor2 - -Parse error on line 1: -...- ( + + 34 ) AND - 8, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT COUNT ( * ) AS col1, COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 - -Expected: ["3","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT MIN ( col2 ) FROM tab2 WHERE NOT col0 IN ( 71 ) - -Expected: ["23"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + AVG ( + col1 ) * + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,667 failed -* 83% was OK - -Time: 24709.612ms - ----- ---- ---- ---- ---- ---- ---- -### 264/620 [`./test/random/aggregates/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_15.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( * ) + - 77 / 37 FROM tab0 - -Expected: ["-5"] but got ["-5.081"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + + ( + - 29 ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-29","-29","-29"] -``` - - -```sql -SELECT DISTINCT col1 - + - col0 + - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 cor0 - -Expected: ["NULL"] but got ["138","65","90"] -``` - - -```sql -SELECT + col0 / col1 * col0 + + 52 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND + - 62 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( - + COUNT ( - - 0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 WHERE NOT - CAST ( - 47 AS REAL ) + - - col2 IS NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL + 84 / 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ), ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + 46 + + 38 / + CAST ( + COUNT ( * ) AS INTEGER ) - - COUNT ( - col0 ) AS col1 FROM tab0 - -Expected: ["61"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 13 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + + col2 AS col2, 95 / - CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab2 AS cor0 - -Expected: ["23","NULL","40","NULL","58","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - COUNT ( * ) AS col1, ( - MIN ( - + 95 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL <= ( 40 ) - -Expected: ["0","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,625 failed -* 83% was OK - -Time: 26978.999ms - ----- ---- ---- ---- ---- ---- ---- -### 265/620 [`./test/random/aggregates/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_16.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 WHERE NOT - - col0 BETWEEN + col1 / col2 AND + + 84 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - col2 + + col0 / + col2 FROM tab0 - -Expected: ["-2","-47","-99"] but got ["-1.300","-46.681","-98.020"] -``` - - -```sql -SELECT ALL + 20 / - col2 - + 54 AS col0, + 31, ( - - col2 ) AS col2 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + col1 AS col2 FROM tab0 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col2 + + ( + CAST ( - 36 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) * + 27 * + ( - col2 ) FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["23","32","60"] -``` - - -```sql -SELECT DISTINCT 33 * - + 4, CAST ( NULL AS REAL ) * 83 / - + col1 AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 13 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + - ( + - ( CAST ( + COUNT ( * ) AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ), + col1 + CAST ( NULL AS INTEGER ) - 37 + + - 62 + + col0 AS col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-34","0","-9","0","39"] -``` - - -```sql -SELECT DISTINCT 95 + - 46 * - + 36 AS col1, - 69 / - CAST ( NULL AS INTEGER ) * + col1 * + col2 AS col1 FROM tab1 - -Expected: ["1751","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) AS col1, + col1 / col2 * ( - - col1 ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","102","NULL","67","NULL","77"] but got ["NULL","113.087","NULL","148.225","NULL","77.397"] -``` - - -```sql -SELECT DISTINCT - 52 + + col2 * + CAST ( NULL AS INTEGER ) AS col0, ( CAST ( NULL AS INTEGER ) ) + - col0 * - col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["-52","1058","-52","2560","-52","4350"] -``` - - -```sql -SELECT DISTINCT - MAX ( + 71 ) * - + MIN ( DISTINCT col0 ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 WHERE 1 * - 83 > + col1 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT - COUNT ( * ) / + - COUNT ( * ) FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) / ( - col2 ) + + col2 * + + col0 IS NOT NULL - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT AVG ( + 22 ) AS col0, + 28 / + 78 FROM tab2 WHERE NOT - col1 IS NOT NULL - -Expected: ["NULL","0"] but got ["NULL","0.359"] -``` - - -```sql -SELECT DISTINCT col0 col0, 17 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["15","NULL","87","NULL","97","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,574 failed -* 84% was OK - -Time: 36529.991ms - ----- ---- ---- ---- ---- ---- ---- -### 266/620 [`./test/random/aggregates/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_17.test) - -_Mimic sqlite_ - -```sql -SELECT + 16 / col2 AS col2 FROM tab2 AS cor0 - -Expected: ["0","0","0"] but got ["0.276","0.400","0.696"] -``` - - -```sql -SELECT + MIN ( ALL col2 ) FROM tab1 WHERE NOT + 85 = NULL - -Expected: ["NULL"] but got ["59"] -``` - - -```sql -SELECT ALL - ( - col0 ) * + + CAST ( NULL AS INTEGER ) + - 31 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-31","-31","-31"] -``` - - -```sql -SELECT 72 + + CAST ( NULL AS REAL ) FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab1 cor0 WHERE NOT - 7 BETWEEN + 97 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NOT NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - CAST ( SUM ( DISTINCT - + col0 ) AS INTEGER ) AS col2, 20 FROM tab1 - -g is not defined -``` - - -```sql -SELECT + 31 / - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2, MIN ( 21 ) FROM tab1 - -Expected: ["-10","21"] but got ["NULL","21"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col2, MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT - 54 IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,565 failed -* 84% was OK - -Time: 35601.288ms - ----- ---- ---- ---- ---- ---- ---- -### 267/620 [`./test/random/aggregates/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_18.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab1 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT ALL + + col1 + col2 + + col2 + col2 / 47 col0 FROM tab0 cor0 - -Expected: ["176","201","41"] but got ["176","201.106","41.213"] -``` - - -```sql -SELECT ALL col2 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * - ( - CAST ( - ( - col2 ) AS INTEGER ) ) IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT 80 * - CAST ( NULL AS REAL ) FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL col0, 82 - - 37 AS col1, col0 * col2 AS col0 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + ( + ( - - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL, tab1 AS cor2 - -Parse error on line 1: -...cor1 ON NULL IS NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT DISTINCT col2 + - col0 + - + 74 * CAST ( NULL AS INTEGER ) * - 41 AS col1, - CAST ( NULL AS INTEGER ) * col2 FROM tab0 - -Expected: ["NULL","NULL"] but got ["-77","0","2","0","32","0"] -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT ( NOT - 68 * col0 NOT BETWEEN - 84 AND ( col2 - col0 ) ) - -6 results returned but expected 9 -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col0, - 15 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT - MIN ( - + 28 ) col1, 1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL - -Expected: ["NULL","1"] but got ["1","NULL"] -``` - - -```sql -SELECT + 50 AS col1, 83 / - 6 FROM tab2 AS cor0 - -Expected: ["50","-13","50","-13","50","-13"] but got ["50","-13.833","50","-13.833","50","-13.833"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,583 failed -* 84% was OK - -Time: 26036.439ms - ----- ---- ---- ---- ---- ---- ---- -### 268/620 [`./test/random/aggregates/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_19.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - + 63 * 33 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-2079"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 + + col1 + + 47 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["114","124","98"] -``` - - -```sql -SELECT ALL col1 * + CAST ( NULL AS REAL ) + 35 / 6 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT col2 AS col1 FROM tab1 WHERE ( - - col0 ) * - col1 + + col1 + + - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT col1 AS col2, col0 AS col2 FROM tab0 AS cor0 - -Expected: ["1","97","21","87","81","15"] but got ["15","15","87","87","97","97"] -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + MIN ( - + 19 ) + + 52 AS col2 FROM tab1 AS cor0 WHERE NOT col2 + + + 64 * - col1 BETWEEN col0 AND - col2 - -Expected: ["33"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NOT NULL - -6 results returned but expected 18 -``` - - -```sql -SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT + COUNT ( * ) AS col1, MIN ( - 68 ) AS col1 FROM tab2 WHERE NULL < + + ( - 12 ) - -Expected: ["0","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,643 failed -* 83% was OK - -Time: 29410.877ms - ----- ---- ---- ---- ---- ---- ---- -### 269/620 [`./test/random/aggregates/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( + SUM ( ALL - 37 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + - SUM ( + CAST ( NULL AS INTEGER ) ) + - 23 AS col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-23"] -``` - - -```sql -SELECT + - 40 / + + col2 AS col2 FROM tab2 AS cor0 - -Expected: ["-1","-1","0"] but got ["-0.690","-1","-1.739"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + + + col1 IN ( 37 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) + 77 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["77","77","77"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * - 52 * - col1 * + 92 AS col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL IS NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + + 45 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * ( - SUM ( col2 ) ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,508 failed -* 84% was OK - -Time: 25371.863ms - ----- ---- ---- ---- ---- ---- ---- -### 270/620 [`./test/random/aggregates/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_20.test) - -_Mimic sqlite_ - -```sql -SELECT ALL * FROM tab1 WHERE NOT ( - col2 * - col2 ) < ( - col2 * CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT ALL + col1 * - ( - col1 ) * col0 - - + CAST ( + + col2 AS INTEGER ) + - 37 / + col0 + + - col1 * + 12 AS col0, + ( - + 53 ) + - col0 FROM tab0 AS cor0 - -Expected: ["184","-150","38125","-140","97488","-68"] but got ["183.619","-150","38124.575","-140","97487.533","-68"] -``` - - -```sql -SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 - -Expected: ["NULL"] but got ["-10","-47","-99"] -``` - - -```sql -SELECT CAST ( - AVG ( ALL + CAST ( + ( col2 ) AS INTEGER ) ) AS INTEGER ) FROM tab2 - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - col1 / + + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * 80 + 9 / + - 32 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab0 cor0 WHERE ( NOT + 77 * 73 IN ( col0 * + col1 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 89 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - 5 - - CAST ( NULL AS INTEGER ), + MIN ( ALL col1 ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - + col1 ) - -Expected: ["NULL","NULL"] but got ["-5","3"] -``` - - -```sql -SELECT - AVG ( - ( 62 ) ) * + 46 AS col1, 60 * SUM ( - - col0 ) AS col0 FROM tab2 cor0 WHERE + 55 IS NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT MAX ( DISTINCT - col1 ) / - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 - -Expected: ["1"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,606 failed -* 83% was OK - -Time: 33583.098ms - ----- ---- ---- ---- ---- ---- ---- -### 271/620 [`./test/random/aggregates/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_21.test) - -_Mimic sqlite_ - -```sql -SELECT - 31 / - 67 * - + col1 + - - 67 FROM tab2 AS cor0 - -Expected: ["67","67","67"] but got ["66.991","66.993","66.994"] -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN + ( col0 ) AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 46 - - 29 IS NULL - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) NOT IN ( - 50 - col2 ) - -Wrong conversion type -``` - - -```sql -SELECT - col1 AS col0, col0 AS col0, - 44 col1 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + CAST ( AVG ( DISTINCT + col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 0 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT 2 * 20 + + - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["40","0","40","0","40","0"] -``` - - -```sql -SELECT DISTINCT + COUNT ( * ) / CAST ( CAST ( + - SUM ( DISTINCT - ( - ( - col1 ) ) ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 WHERE col1 >= ( + col2 ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,591 failed -* 84% was OK - -Time: 128667.925ms - ----- ---- ---- ---- ---- ---- ---- -### 272/620 [`./test/random/aggregates/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_22.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - - 18 / CAST ( + - 87 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT 50 AS col2 FROM tab0 WHERE NOT ( + col0 / col1 ) NOT BETWEEN col2 * + col0 * - col0 AND + + col1 + 90 + 61 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-14","-47","-5"] -``` - - -```sql -SELECT DISTINCT - - 35 + - - col2 + - col1 AS col2, + 45 + 25 / col0 AS col1 FROM tab0 AS cor0 - -Expected: ["1","46","133","45","24","45"] but got ["133","45.258","1","46.667","24","45.287"] -``` - - -```sql -SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) - CAST ( + + MIN ( + col0 ) AS INTEGER ) FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT MAX ( + CAST ( NULL AS REAL ) ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 32 + - ( CAST ( SUM ( - col1 ) AS INTEGER ) ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + col1 BETWEEN + - 47 + + + col2 AND - - col2 - -6 results returned but expected 9 -``` - - -```sql -SELECT COUNT ( * ) / + - CAST ( + SUM ( ALL + - 19 ) AS INTEGER ) + - 51 FROM tab2 AS cor0 - -Expected: ["-51"] but got ["NULL"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - + 74 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,661 failed -* 83% was OK - -Time: 193635.254ms - ----- ---- ---- ---- ---- ---- ---- -### 273/620 [`./test/random/aggregates/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_23.test) - -_Mimic sqlite_ - -```sql -SELECT ALL * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT - 15 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + CAST ( AVG ( - - col1 ) AS INTEGER ) + + 8 * 52 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT + ( - col0 ) * - - col1 * + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["-107916","-315392","-376875"] -``` - - -```sql -SELECT DISTINCT col0 / + 90 AS col1 FROM tab1 - -Expected: ["0","1"] but got ["0.567","0.944","1.011"] -``` - - -```sql -SELECT ALL + 51 * - + CAST ( NULL AS REAL ) col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL ( - - MIN ( - CAST ( NULL AS INTEGER ) ) ), + 95 col2 FROM tab1 - -Expected: ["NULL","95"] but got ["0","95"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) BETWEEN NULL AND - col2 / - col0 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + 46 * + ( CAST ( NULL AS INTEGER ) ) - COUNT ( + col2 ) + + - COUNT ( - 64 ) AS col0, + 42 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["-6","42"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( - + 84 ) * - 55 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT 79 + - MAX ( + col0 ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN - col2 + 77 - - col1 + + col2 * + + 82 AND NULL - -Expected: ["4"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 cor0 INNER JOIN tab1 AS cor1 ON NOT + 23 IS NULL, tab0 AS cor2 - -Parse error on line 1: -... ON NOT + 23 IS NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,601 failed -* 84% was OK - -Time: 23008.325ms - ----- ---- ---- ---- ---- ---- ---- -### 274/620 [`./test/random/aggregates/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_24.test) - -_Mimic sqlite_ - -```sql -SELECT - - COUNT ( DISTINCT + col2 ) + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT ALL ( - 67 ) + + CAST ( NULL AS REAL ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT - col0 AS col0, col1 col0 FROM tab1 AS cor0 - -Expected: ["-51","14","-85","5","-91","47"] but got ["14","14","47","47","5","5"] -``` - - -```sql -SELECT - col1 + col0 + + col1 - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - 99 * - - 94 + + - col2 IS NULL - -Expected: ["0","NULL","0","NULL","0","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT + CAST ( + + COUNT ( DISTINCT + col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL + 1 + - col0 FROM tab2 WHERE NOT - col1 IN ( col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2, + MAX ( + - col0 ) FROM tab0 AS cor0 WHERE + col1 = NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL IS NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT COUNT ( - 71 ) / COUNT ( * ) col1, + 5 / + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 26, 95 * + col2 ) - -Expected: ["1","1"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) + + ( - + COUNT ( * ) ), MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 - -Expected: ["NULL","NULL"] but got ["-3","0"] -``` - - -```sql -SELECT - col0 / - ( + 8 ), - 88 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 - -Expected: ["10","NULL","11","NULL","6","NULL"] but got ["10.625","NULL","11.375","NULL","6.375","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,587 failed -* 84% was OK - -Time: 33849.167ms - ----- ---- ---- ---- ---- ---- ---- -### 275/620 [`./test/random/aggregates/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_25.test) - -_Mimic sqlite_ - -```sql -SELECT - COUNT ( * ) + COUNT ( * ) / + 46 FROM tab1 - -Expected: ["-3"] but got ["-2.935"] -``` - - -```sql -SELECT ALL - COUNT ( * ), CAST ( NULL AS INTEGER ) * - - 37 AS col1 FROM tab2 - -Expected: ["-3","NULL"] but got ["-3","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - 96 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-96","-96","-96"] -``` - - -```sql -SELECT + col0 AS col0, 25 FROM tab2 AS cor0 WHERE NOT - col1 * + - col2 / - CAST ( - - 24 AS REAL ) = 3 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( - COUNT ( * ) AS INTEGER ) - - ( + 23 ) * + 62 AS col0 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab0 WHERE NOT col2 + + col0 IN ( col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MAX ( + + col1 ), + MAX ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT 78 = NULL - -Expected: ["NULL","NULL"] but got ["-81","-15"] -``` - - -```sql -SELECT MAX ( + col0 ) FROM tab1 WHERE NOT ( + col1 ) IN ( col0 ) - -Expected: ["91"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT ( - - 78 ) / ( - 20 ) * - col2 / - CAST ( NULL AS INTEGER ) / + col2 AS col0, + ( col0 ) / + + col1 FROM tab2 AS cor0 - -Expected: ["NULL","0","NULL","1"] but got ["NULL","0.831","NULL","0.902","NULL","1.119"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,691 failed -* 83% was OK - -Time: 39066.739ms - ----- ---- ---- ---- ---- ---- ---- -### 276/620 [`./test/random/aggregates/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_26.test) - -_Mimic sqlite_ - -```sql -SELECT + - col2 / + col0 * - 41 + + + 81 FROM tab2 AS cor0 - -Expected: ["81","81","81"] but got ["81.012","81.015","81.019"] -``` - - -```sql -SELECT MIN ( - - 92 ) * CAST ( NULL AS INTEGER ) + 27 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL"] but got ["27"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 * - ( + col1 ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + CAST ( - col0 AS INTEGER ) * + - 75 + - col2 AS col1, + col0 / - CAST ( NULL AS REAL ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT - ( - 17 ) FROM tab1 AS cor0 WHERE NOT 13 * - col2 + 87 * 34 IN ( col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( COUNT ( col1 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 16 / + 48 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + - COUNT ( * ) - + - MIN ( ALL 97 ) AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL - -Expected: ["94"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ), - 26 + + - CAST ( NULL AS INTEGER ) * + col1 * + - col2 AS col2 FROM tab1 - -Expected: ["NULL","NULL"] but got ["0","-26"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT - 6 IS NOT NULL WHERE ( NULL ) IS NULL - -6 results returned but expected 18 -``` - - -```sql -SELECT DISTINCT col0 + + 53 + + + CAST ( NULL AS INTEGER ) * + - 61 + col0 + - col2 * - 53, col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["3350","NULL","3839","NULL","5243","NULL"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) + + 67 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","67","0","67","0","67"] -``` - - -```sql -SELECT 58 / + + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + - 10 AS col2 FROM tab0 cor0 WHERE col1 > - col2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","-10","NULL","-10","NULL","-10"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,613 failed -* 83% was OK - -Time: 30092.517ms - ----- ---- ---- ---- ---- ---- ---- -### 277/620 [`./test/random/aggregates/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_27.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 / + + 70 FROM tab0 - -Expected: ["0","1"] but got ["0.214","1.243","1.386"] -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 24 * + 22 IN ( + 97 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - col2 * col0 * - CAST ( NULL AS INTEGER ) AS col2, + ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + 19 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["19","19"] -``` - - -```sql -SELECT DISTINCT + col2 + + 34 + - 62 * 80 * col1 * col0 * - + 96 - + col2 + CAST ( NULL AS INTEGER ) / - - 11 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["202368034","2036536354","339978274"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + CAST ( COUNT ( DISTINCT - col1 ) AS INTEGER ) * - 24 FROM tab1 - -g is not defined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + - col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) - - col1, CAST ( NULL AS INTEGER ) col0 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["51","0","67","0","77","0"] -``` - - -```sql -SELECT ALL 85, CAST ( col1 AS INTEGER ) * + col0 AS col2, - - 22 AS col2 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) * - - 61 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT + MIN ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN - col2 AND ( + 42 + 98 ) - -Expected: ["10"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,634 failed -* 83% was OK - -Time: 27654.343ms - ----- ---- ---- ---- ---- ---- ---- -### 278/620 [`./test/random/aggregates/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_28.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + + 86 * - 61 * + ( + - MAX ( + + ( - + col1 ) ) ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL - -Expected: ["NULL"] but got ["-267546"] -``` - - -```sql -SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + col1 + + CAST ( col1 AS INTEGER ) IN ( - col2 * + col0 * - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - - col1 AS col1, - col2 / + 98 FROM tab2 AS cor0 - -Expected: ["51","0","67","0","77","0"] but got ["51","-0.235","67","-0.592","77","-0.408"] -``` - - -```sql -SELECT ALL - col0 AS col1, + col0 AS col1, col1 + - col2 * - + col2 * - col0 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * - - col0 AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - 27 * + col1, + CAST ( NULL AS REAL ) AS col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( + + COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE 30 - - 54 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + col2 - + col2, - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-10","0","-47","0","-99","0"] -``` - - -```sql -SELECT MIN ( - col2 ) FROM tab1 AS cor0 WHERE NOT - 54 BETWEEN - ( - col2 ) + - col1 AND NULL - -Expected: ["-96"] but got ["NULL"] -``` - - -```sql -SELECT - ( + - col0 ) AS col1, - col2 AS col1 FROM tab1 AS cor0 - -Expected: ["51","-96","85","-59","91","-68"] but got ["-59","-59","-68","-68","-96","-96"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), 42 * + 65 * MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,659 failed -* 83% was OK - -Time: 55057.375ms - ----- ---- ---- ---- ---- ---- ---- -### 279/620 [`./test/random/aggregates/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_29.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab1 cor0 - -g is not defined -``` - - -```sql -SELECT ( + 23 ) / + col1 - 56 AS col0 FROM tab1 - -Expected: ["-52","-55","-56"] but got ["-51.400","-54.357","-55.511"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * - col0 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL - 4 * - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col0 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT + + 26 BETWEEN + col0 AND ( 91 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col1, col0 + - - 95, + col2 * - col0 AS col0 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT col1 / + 52, 41 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["0","NULL","1","NULL"] but got ["0.019","0","0.404","0","1.558","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,653 failed -* 83% was OK - -Time: 34488.560ms - ----- ---- ---- ---- ---- ---- ---- -### 280/620 [`./test/random/aggregates/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 57 - + CAST ( NULL AS INTEGER ) + - + col2 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-42","10","47"] -``` - - -```sql -SELECT ALL + 54 / 64 AS col0 FROM tab1 AS cor0 - -Expected: ["0","0","0"] but got ["0.844","0.844","0.844"] -``` - - -```sql -SELECT ALL - CAST ( + MAX ( DISTINCT - col2 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 / + col1 / - - 59 * 70 / col0 ) - -g is not defined -``` - - -```sql -SELECT DISTINCT COUNT ( * ) * + - CAST ( NULL AS REAL ) AS col0 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT + col2 + + col1, col2 * + - 52 * - col1 AS col0, - - ( + 43 ) / - ( + col2 ) + col0 - + col1 + + col0 * 87 AS col1 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL 73 * + SUM ( - 22 ) * + 80 AS col0, + 1 + + + 83 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["-385440","NULL"] but got ["-385440","1"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NOT - 57 + + 29 NOT BETWEEN + 93 AND + ( + col2 ) ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT 55 / + CAST ( NULL AS INTEGER ), col2 * 46 + col1 + + CAST ( NULL AS INTEGER ) + - col2 * - col0 AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","2167","NULL","4477","NULL","7085"] -``` - - -```sql -SELECT ALL - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col2, col1 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","51","0","67","0","77"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,666 failed -* 83% was OK - -Time: 29338.330ms - ----- ---- ---- ---- ---- ---- ---- -### 281/620 [`./test/random/aggregates/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_30.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 32 / + col2 - + - ( col1 ) + - 73 * col1 FROM tab2 cor0 - -Expected: ["-3671","-4824","-5544"] but got ["-3670.609","-4823.448","-5543.200"] -``` - - -```sql -SELECT + 45 / 23 FROM tab0 WHERE col0 + - + col1 + - 72 * ( CAST ( NULL AS INTEGER ) * 26 ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL 42 + + CAST ( NULL AS INTEGER ) * col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["42","42","42"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) + + col2 AS col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col1 IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 16 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL ( - MAX ( col2 ) ) * + 37 AS col0 FROM tab0 WHERE NOT ( + - col0 / col0 ) IN ( - ( - col0 ) - + ( - 36 ) ) - -Expected: ["-3663"] but got ["NULL"] -``` - - -```sql -SELECT + col1 col2, + col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["14","NULL","47","NULL","5","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 74 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - 58 + + MAX ( col0 ) AS col1, 39 FROM tab2 cor0 WHERE NOT col2 <> 26 - -Expected: ["NULL","39"] but got ["39","NULL"] -``` - - -```sql -SELECT ( - + CAST ( NULL AS INTEGER ) ) / + COUNT ( + + 72 ) col0, + ( - + 71 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["NULL","NULL"] but got ["0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,615 failed -* 83% was OK - -Time: 32415.721ms - ----- ---- ---- ---- ---- ---- ---- -### 282/620 [`./test/random/aggregates/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_31.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL col2 * - col1 + CAST ( NULL AS INTEGER ) / - 59 AS col1 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-1344","-295","-3196"] -``` - - -```sql -SELECT ALL - - 55 / - COUNT ( * ) FROM tab0 AS cor0 - -Expected: ["-18"] but got ["-18.333"] -``` - - -```sql -SELECT DISTINCT - + col2 * col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT 91 + - COUNT ( CAST ( + + col1 AS REAL ) ) FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( COUNT ( - col0 ) AS INTEGER ) FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + + col2 AS col1, - col0 AS col1, - + col0 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 92 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), - AVG ( ALL - col2 ) FROM tab1 WHERE + col1 IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL 83 + 86 / + MAX ( + 8 / - col2 + - col2 ) AS col0 FROM tab0 WHERE NOT ( 9 ) IN ( col1 ) - -Expected: ["75"] but got ["NULL"] -``` - - -```sql -SELECT - - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + MIN ( + 39 ), - SUM ( - col2 ) / + CAST ( + COUNT ( * ) AS INTEGER ) + - 10 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","64"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,691 failed -* 83% was OK - -Time: 37791.065ms - ----- ---- ---- ---- ---- ---- ---- -### 283/620 [`./test/random/aggregates/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_32.test) - -_Mimic sqlite_ - -```sql -SELECT ALL COUNT ( * ) / + 66 FROM tab0 AS cor0 - -Expected: ["0"] but got ["0.045"] -``` - - -```sql -SELECT ALL + col0 + + - col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["0","NULL","0","NULL","0","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT ALL - 4 + + col2 FROM tab2 AS cor0 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 12, col2 / - ( - - col2 ) * + CAST ( NULL AS REAL ) + col2 - col0 - + - 45 AS col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL + col1, col2 * - col1 * + + col2 AS col2, + col0 AS col2 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - 41 AS col1, CAST ( + MAX ( 9 ) AS INTEGER ) * + + 29 AS col2 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN col2 AND + 80 + + 9 / col1 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 61 AS col0 FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL, tab0 AS cor2 - -Parse error on line 1: -...NOT NULL IS NOT NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - - AVG ( ALL + col2 ) AS col2, 76 FROM tab2 WHERE NOT - 11 IS NOT NULL - -Expected: ["NULL","76"] but got ["76","NULL"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 99 IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,635 failed -* 83% was OK - -Time: 75161.621ms - ----- ---- ---- ---- ---- ---- ---- -### 284/620 [`./test/random/aggregates/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_33.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 13 * + + CAST ( NULL AS INTEGER ) * - 10 AS col1 FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + 92 * CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + col2 / + + col0 + + 17 FROM tab0 AS cor0 - -Expected: ["17","18","20"] but got ["17.115","18.021","20.133"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * - - col1 * - - col1 AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT + 97 + + col2 AS col0, col0, + - col1 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 cor0 WHERE NOT ( + 57 ) IN ( + col0 + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( + 61 AS INTEGER ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - + SUM ( 74 ) / + CAST ( - MAX ( ALL + col1 ) AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["2"] but got ["NULL"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 JOIN tab2 cor1 ON NOT NULL BETWEEN NULL AND NULL, tab1 AS cor2 - -Parse error on line 1: -...ETWEEN NULL AND NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - + col0 AS col2, ( + 72 ) / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 - -Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * 63 + 75 AS col2, CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["75","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,681 failed -* 83% was OK - -Time: 85545.943ms - ----- ---- ---- ---- ---- ---- ---- -### 285/620 [`./test/random/aggregates/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_34.test) - -_Mimic sqlite_ - -```sql -SELECT + 54 / col2 FROM tab1 AS cor0 - -Expected: ["0","0","0"] but got ["0.563","0.794","0.915"] -``` - - -```sql -SELECT col1 * + col0 + ( CAST ( NULL AS INTEGER ) ) FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["425","4277","714"] -``` - - -```sql -SELECT ALL + 80 - + CAST ( NULL AS REAL ) FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + + SUM ( + 29 ) FROM tab0 AS cor0 WHERE col1 * - col0 / col2 = NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) + 66 FROM tab2 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 WHERE NOT - col2 IN ( + - 56 * 52, - 45, + 52, - - 75 * - + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col1, - col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["14","NULL","47","NULL","5","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT - col0, col0 * - col2 + 10 col2, + col2 - 96 col2 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 61 + + 13 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 92 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["-92","0"] -``` - - -```sql -SELECT - ( COUNT ( * ) ) + + MIN ( DISTINCT - col0 ) AS col2 FROM tab2 cor0 WHERE NOT - col1 * - - col1 IN ( + - col1 ) - -Expected: ["-78"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,501 failed -* 85% was OK - -Time: 75826.504ms - ----- ---- ---- ---- ---- ---- ---- -### 286/620 [`./test/random/aggregates/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_35.test) - -_Mimic sqlite_ - -```sql -SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - col1 * 94 - - CAST ( NULL AS INTEGER ) NOT BETWEEN ( col0 ) AND + 86 - -Expected: ["0"] but got ["3"] -``` - - -```sql -SELECT ALL 93 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["93","NULL","93","NULL","93","NULL"] but got ["93","0","93","0","93","0"] -``` - - -```sql -SELECT - - CAST ( + COUNT ( ALL + col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + COUNT ( * ) AS col2, AVG ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 - -Expected: ["3","NULL"] but got ["3","0"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT + col1 / + col0 IN ( - 91 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL 99 * col0 + + + CAST ( NULL AS REAL ) AS col0 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * - 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - MAX ( - col1 ) / CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 - -Expected: ["-17"] but got ["NULL"] -``` - - -```sql -SELECT - 82 col2, AVG ( 76 ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL - -Expected: ["-82","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - col0 / + + col2, ( + - 79 ) / - + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 - -Expected: ["-1","NULL","-1","NULL","0","NULL"] but got ["-0.531","NULL","-1.338","NULL","-1.441","NULL"] -``` - - -```sql -SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,539 failed -* 84% was OK - -Time: 70711.446ms - ----- ---- ---- ---- ---- ---- ---- -### 287/620 [`./test/random/aggregates/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_36.test) - -_Mimic sqlite_ - -```sql -SELECT 89 / + col1 + - col2 FROM tab0 AS cor0 - -Expected: ["-10","-46","-6"] but got ["-10","-45.901","-5.762"] -``` - - -```sql -SELECT DISTINCT + 36 - + col1 + - CAST ( NULL AS REAL ) AS col0, col2 * - ( + 63 ) AS col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL - -g is not defined -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN + + ( - CAST ( + 19 AS INTEGER ) ) * + 26 AND ( + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) / + + 5 / - 48 * + - 22 + + + SUM ( col2 ) FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","156"] -``` - - -```sql -SELECT 39 + ( 30 + MAX ( ALL col2 ) ) FROM tab0 AS cor0 WHERE - col0 * CAST ( NULL AS INTEGER ) IS NULL AND ( 51 * 71 ) IS NOT NULL - -Expected: ["168"] but got ["NULL"] -``` - - -```sql -SELECT + 20 * 17 + + + 26 * + MIN ( DISTINCT - col0 ) col1, - 97 / - 70 FROM tab2 WHERE NULL <= + - col0 - -Expected: ["NULL","1"] but got ["NULL","1.386"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,546 failed -* 84% was OK - -Time: 69755.548ms - ----- ---- ---- ---- ---- ---- ---- -### 288/620 [`./test/random/aggregates/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_37.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - SUM ( ALL CAST ( NULL AS INTEGER ) ) * - SUM ( 89 ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + - col1 - - col2 AS col0, col0 AS col0 FROM tab2 AS cor0 - -Expected: ["-28","46","-37","64","-9","75"] but got ["46","46","64","64","75","75"] -``` - - -```sql -SELECT ALL 87 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["87","NULL","87","NULL","87","NULL"] but got ["87","0","87","0","87","0"] -``` - - -```sql -SELECT CAST ( - ( AVG ( col0 ) ) AS INTEGER ) AS col2 FROM tab0 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col2 BETWEEN ( NULL ) AND ( - 5 ) * + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - MAX ( col1 ) col0 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 84 + - col0 * + 20 ) - -Expected: ["-77"] but got ["NULL"] -``` - - -```sql -SELECT - ( - CAST ( NULL AS REAL ) ) + ( + + 39 ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - + col1 AS col0, col0 * + col0 + - + col0 AS col1, + - 18 AS col0 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON + 69 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT 56 + CAST ( NULL AS INTEGER ) col0, - ( + SUM ( col1 ) ) * - 43 - - 83 FROM tab1 WHERE NULL = - col0 + - + ( - 39 ) / - 22 - -Expected: ["NULL","NULL"] but got ["56","83"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,573 failed -* 84% was OK - -Time: 50625.688ms - ----- ---- ---- ---- ---- ---- ---- -### 289/620 [`./test/random/aggregates/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_38.test) - -_Mimic sqlite_ - -```sql -SELECT - col0 / + 92 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 AND - col2 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) = - col0 + + 49 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( COUNT ( + col0 ) AS INTEGER ) FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 * - 23 + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL - -Expected: ["NULL"] but got ["1416","1632","2304"] -``` - - -```sql -SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL > NULL - -Expected: ["0"] but got ["3"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - ( - + ( - + col0 ) ) * - 74 - col1 * - col1 + - + 7 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-6","434","6554"] -``` - - -```sql -SELECT - col1 - - 97 * - + col0 * col1 * CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT 20 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - MIN ( 32 ) AS col1 FROM tab1 WHERE NOT + - col2 + 72 + + ( + - col2 ) IN ( + 61 ) - -Expected: ["-32"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab2 cor1 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND col2 - -Expected: ["NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL - COUNT ( * ) AS col0, 85 + - - 20 / - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 45 AS col0 FROM tab1 - -Expected: ["-3","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + + SUM ( col0 ) AS col1, COUNT ( * ) * + - MIN ( ALL - - col1 ) + - 72 AS col2 FROM tab0 WHERE + col2 IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,565 failed -* 84% was OK - -Time: 48500.656ms - ----- ---- ---- ---- ---- ---- ---- -### 290/620 [`./test/random/aggregates/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_39.test) - -_Mimic sqlite_ - -```sql -SELECT COUNT ( * ) / + 71 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["0"] but got ["0.042"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 7 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + 9 * ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 WHERE NOT + col2 BETWEEN ( + col1 ) AND ( 99 / col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col0 + - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["46","64","75"] -``` - - -```sql -SELECT ALL + - col2 * col1 * - col1 - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + CAST ( - AVG ( DISTINCT + 98 ) AS INTEGER ) AS col2 FROM tab2 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT MIN ( + - ( col2 ) ) AS col0, SUM ( + col2 ) FROM tab1 cor0 WHERE col2 IS NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) AS col2, CAST ( NULL AS INTEGER ) - - - SUM ( + 86 ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","-258"] -``` - - -```sql -SELECT MIN ( ALL + 85 ) FROM tab2 WHERE NOT - col2 BETWEEN NULL AND ( col0 * - 64 ) - -Expected: ["85"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,597 failed -* 84% was OK - -Time: 24395.897ms - ----- ---- ---- ---- ---- ---- ---- -### 291/620 [`./test/random/aggregates/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 63 / col1 AS col2 FROM tab2 - -Expected: ["0","1"] but got ["0.818","0.940","1.235"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, col0 - + 58 FROM tab2 AS cor0 - -Expected: ["NULL","-12","NULL","17","NULL","6"] but got ["0","-12","0","17","0","6"] -``` - - -```sql -SELECT - - col2 * col0 + + - 40, CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( + COUNT ( DISTINCT + - col2 ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT ALL + col2 FROM tab2 WHERE NOT - col0 + col0 BETWEEN - col0 AND ( - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT MIN ( 38 ) AS col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL ) - -Expected: ["NULL"] but got ["38"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE 46 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + + COUNT ( * ) AS col1, MIN ( - - 79 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL - -Expected: ["0","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + + CAST ( NULL AS INTEGER ), ( - col2 ) * + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT col1 AS col1, + 34 / + CAST ( NULL AS INTEGER ) + col2 * - - col1 * + 65 col1 FROM tab2 - -Expected: ["51","NULL","67","NULL","77","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL - MAX ( ALL - - col1 ) AS col0 FROM tab2 WHERE NOT ( col0 ) + 87 IN ( - + 12, - 20, - - col0 ) - -Expected: ["-77"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,688 failed -* 83% was OK - -Time: 31042.253ms - ----- ---- ---- ---- ---- ---- ---- -### 292/620 [`./test/random/aggregates/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_40.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - ( - - col0 ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 cor0 - -Expected: ["-51","NULL","-85","NULL","-91","NULL"] but got ["-51","0","-85","0","-91","0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - 59 AS col1, ( + + CAST ( NULL AS REAL ) ) + + col0 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col0 / - - col2 + - 22 AS col0 FROM tab0 - -Expected: ["-14","-22"] but got ["-13.300","-21.020","-21.681"] -``` - - -```sql -SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT + + 83 IN ( - col1, - ( - 17 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + col1 * - + col0 * - col0 AS col1, col2 - - ( - - col1 ) AS col0, + - 63 AS col1 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL MIN ( DISTINCT - ( + col1 ) ) FROM tab1 WHERE NOT + col1 IN ( col2 ) - -Expected: ["-47"] but got ["NULL"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), SUM ( ALL - col0 ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL < NULL - -54 results returned but expected 18 -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) col1, - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,597 failed -* 84% was OK - -Time: 39714.892ms - ----- ---- ---- ---- ---- ---- ---- -### 293/620 [`./test/random/aggregates/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_41.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT COUNT ( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL - -Expected: ["0"] but got ["3"] -``` - - -```sql -SELECT ALL - - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 7 / col0 * - col2 AS col2 FROM tab2 WHERE NOT - 31 * + col0 / 20 IN ( + - col1, + col2, 96 * - - col2, - - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + 18 * ( ( 11 ) ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["198","198","198"] -``` - - -```sql -SELECT + CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT + 73 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( - 21 ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + + 38 / - col2, col2 + - col2 / - CAST ( NULL AS INTEGER ) + - col1 - + + ( - 37 ) + + col2 / - col1 + - 42 / + + col0 AS col2 FROM tab2 AS cor0 - -Expected: ["-1","NULL","0","NULL","0","NULL"] but got ["-0.655","NULL","-0.950","NULL","-1.652","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 61 <= 45 - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL + MIN ( - 81 ) * COUNT ( * ) AS col0, 70 FROM tab1 WHERE NOT + col0 IS NOT NULL - -Expected: ["NULL","70"] but got ["70","NULL"] -``` - - -```sql -SELECT COUNT ( * ) / + ( + CAST ( + COUNT ( - - col0 ) AS INTEGER ) ) col2 FROM tab0 - -Expected: ["1"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,464 failed -* 85% was OK - -Time: 63638.909ms - ----- ---- ---- ---- ---- ---- ---- -### 294/620 [`./test/random/aggregates/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_42.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col2 + CAST ( NULL AS INTEGER ) / + + col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["10","47","99"] -``` - - -```sql -SELECT DISTINCT COUNT ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT DISTINCT + col1 / - 82 FROM tab1 - -Expected: ["0"] but got ["-0.061","-0.171","-0.573"] -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 / col2 * + + col0 ) NOT BETWEEN ( 94 ) AND - - 69 * + 66 - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) / + - 50 * - - 32 AS col1, - CAST ( NULL AS INTEGER ) col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT - + 16 col0 FROM tab0 AS cor0 WHERE NOT - col0 IN ( + col1 + col1, col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col2 * - col0 * col1 * - - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) - - col0 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","46","0","64","0","75"] -``` - - -```sql -SELECT DISTINCT 82 / + - col1 * + CAST ( NULL AS INTEGER ) col0, col1 / + col0 AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","0","NULL","1"] but got ["NULL","0.893","NULL","1.109","NULL","1.203"] -``` - - -```sql -SELECT - SUM ( DISTINCT - 22 ) * - ( COUNT ( * ) ) AS col2, - 91 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 - -Expected: ["-66","NULL"] but got ["-66","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 14 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL MAX ( col2 ), COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) + + ( + CAST ( AVG ( col2 ) AS INTEGER ) ) * - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 0 AS col0, COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["NULL","NULL"] but got ["0","3"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,530 failed -* 84% was OK - -Time: 55585.265ms - ----- ---- ---- ---- ---- ---- ---- -### 295/620 [`./test/random/aggregates/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_43.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col1 / - - col2 + + + col1 + - - col2 + - + col2 * - col1 AS col0 FROM tab0 AS cor0 - -Expected: ["199","243","3936"] but got ["199.010","243.100","3936.723"] -``` - - -```sql -SELECT ALL - COUNT ( * ) + - - SUM ( DISTINCT + col1 ) AS col1 FROM tab1 WHERE ( ( NULL ) IS NOT NULL ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) * + col0 + - 62 + - col0 > NULL - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) * - col0 - + 80 IN ( + col1, col2 + - col2, + - 30 - + 24 * col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - ( CAST ( NULL AS INTEGER ) ) FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 92 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL CAST ( MIN ( + 74 ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE ( + 77 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + col2 / + - col0 AS col2, col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["-1","NULL","0","NULL","0","NULL"] but got ["-0.694","NULL","-0.747","NULL","-1.882","NULL"] -``` - - -```sql -SELECT DISTINCT + ( - col1 ) * - col1 + + ( - col0 ) + col2 AS col1, - 87 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 - -Expected: ["3","NULL","364","NULL","6593","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab2 WHERE NOT col2 * 43 IN ( + 38, ( + + col2 ), 92 + - + 76 ) - -Expected: ["46"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,572 failed -* 84% was OK - -Time: 29416.812ms - ----- ---- ---- ---- ---- ---- ---- -### 296/620 [`./test/random/aggregates/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_44.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 - col2 / + col1 AS col1 FROM tab0 - -Expected: ["-2","15","87"] but got ["-2","14.420","86.524"] -``` - - -```sql -SELECT - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-15","-87","-97"] -``` - - -```sql -SELECT ALL + COUNT ( + 5 ) + - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT ALL + col0 / - CAST ( NULL AS REAL ) FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1 WHERE NOT - 76 + + CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( + SUM ( ALL - 2 ) AS INTEGER ) AS col2, - ( - + CAST ( + - 99 AS INTEGER ) ), + 64 AS col1 FROM tab1 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - COUNT ( * ) / CAST ( + MIN ( - 49 ) AS INTEGER ) AS col0 FROM tab0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - + col2, CAST ( NULL AS INTEGER ) + - 19 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["-23","-19","-40","-19","-58","-19"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,597 failed -* 84% was OK - -Time: 37036.915ms - ----- ---- ---- ---- ---- ---- ---- -### 297/620 [`./test/random/aggregates/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_45.test) - -_Mimic sqlite_ - -```sql -SELECT + + 95 / 43 + - 1 FROM tab0 AS cor0 - -Expected: ["1","1","1"] but got ["1.209","1.209","1.209"] -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT col1 * - col1 BETWEEN - col2 AND ( col0 * - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 39 FROM tab1 - -g is not defined -``` - - -```sql -SELECT - ( CAST ( NULL AS INTEGER ) ) * + 78 col1 FROM tab1 cor0 CROSS JOIN tab2 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * col1 * + col0 AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) + 43 + - 55 AS col1, + 61 FROM tab1 - -Expected: ["NULL","61","NULL","61","NULL","61"] but got ["-12","61","-12","61","-12","61"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - col0 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) / + - COUNT ( * ), 38 * CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT - 46 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - COUNT ( * ) / COUNT ( col0 ) col0 FROM tab1 WHERE NOT - 25 BETWEEN ( 37 ) AND ( + col0 ) - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT MAX ( ALL col0 ), SUM ( + - 91 ) FROM tab0 WHERE NULL > col0 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,531 failed -* 84% was OK - -Time: 33947.287ms - ----- ---- ---- ---- ---- ---- ---- -### 298/620 [`./test/random/aggregates/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_46.test) - -_Mimic sqlite_ - -```sql -SELECT + COUNT ( * ) - - 85 + + 45 / SUM ( DISTINCT + 43 ) FROM tab1 AS cor0 - -Expected: ["89"] but got ["89.047"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - - - col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-10","-47","-99"] -``` - - -```sql -SELECT DISTINCT col0 + + CAST ( NULL AS REAL ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( + MAX ( - col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT 85 FROM tab1 AS cor0 WHERE NOT - 34 BETWEEN + + col0 AND CAST ( - + col2 AS INTEGER ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + ( + SUM ( CAST ( NULL AS INTEGER ) ) + + SUM ( ALL col0 ) ) AS col1 FROM tab1 WHERE NOT ( + 68 ) > 14 * col0 - -Expected: ["NULL"] but got ["227"] -``` - - -```sql -SELECT + - col2 + - col0 AS col2, + CAST ( - col0 AS INTEGER ), - col1 AS col2 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + MAX ( col1 ) * - 25 col2, 20 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT DISTINCT ( 69 ) / COUNT ( * ) - - 41 / - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 - -Expected: ["36"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + COUNT ( * ) + - 82 / - 77 FROM tab2 - -Expected: ["4"] but got ["4.065"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,606 failed -* 83% was OK - -Time: 43164.776ms - ----- ---- ---- ---- ---- ---- ---- -### 299/620 [`./test/random/aggregates/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_47.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - col2 + - 75 AS col0, + 42 * - col1 AS col0 FROM tab1 cor0 - -Expected: ["-134","-210","-143","-1974","-171","-588"] but got ["-1974","-1974","-210","-210","-588","-588"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * + + col2 + + + col2 * 61 * + + col0 - - + col0 / + col1 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) + - 90 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-90"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS REAL ) IS NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col1 * + - col2 AS col2, 75 AS col2, + ( - + CAST ( - - col1 AS INTEGER ) ) AS col2 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + CAST ( + + SUM ( DISTINCT col0 ) AS INTEGER ) + + 75 AS col1 FROM tab2 - -g is not defined -``` - - -```sql -SELECT ALL ( - 54 ) AS col0, 63 * + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab0 cor0 - -Expected: ["-54","-189"] but got ["-54","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL > NULL, tab2 AS cor2 - -Parse error on line 1: -... cor1 ON NULL > NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 77 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT col0 AS col1, + ( - col2 ) / + + ( + ( CAST ( NULL AS INTEGER ) ) ) + - 3 AS col1 FROM tab1 - -Expected: ["51","NULL","85","NULL","91","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT col1 / - CAST ( NULL AS INTEGER ) AS col2, 42 / col1 AS col1 FROM tab0 - -Expected: ["NULL","0","NULL","2","NULL","42"] but got ["NULL","0.519","NULL","2","NULL","42"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,605 failed -* 83% was OK - -Time: 47541.571ms - ----- ---- ---- ---- ---- ---- ---- -### 300/620 [`./test/random/aggregates/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_48.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + AVG ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT col2 / - col1 + col0 AS col1 FROM tab1 cor0 - -Expected: ["45","74","90"] but got ["44.143","73.200","89.553"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - - col2 AS col2 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT - CAST ( 14 AS INTEGER ) IN ( - - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + SUM ( - + col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ), - CAST ( NULL AS INTEGER ) col2 FROM tab2 - -g is not defined -``` - - -```sql -SELECT ALL 10 AS col0, - col2 * - - col1 * + - 85 AS col0, - col0 + - 51 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, - AVG ( DISTINCT ( + col1 ) ) AS col0 FROM tab0 WHERE NOT - - col0 NOT BETWEEN 4 * 53 / + col1 - - col2 AND - col2 - -Expected: ["NULL","NULL"] but got ["-34.333"] -``` - - -```sql -SELECT SUM ( ALL + - col0 ) AS col0, 79 + + - MAX ( ( 58 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,514 failed -* 84% was OK - -Time: 42903.790ms - ----- ---- ---- ---- ---- ---- ---- -### 301/620 [`./test/random/aggregates/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_49.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + COUNT ( col2 ) + + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col0 - - col2 BETWEEN + 54 AND NULL - -Expected: ["6"] but got ["0"] -``` - - -```sql -SELECT DISTINCT 91 FROM tab1 WHERE NOT col2 BETWEEN col2 + + 49 * + col0 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 cor0 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT ALL + 28 * ( - + 91 ) * + 68 * + - CAST ( NULL AS INTEGER ) + 23 * + + ( + col1 ) + + 26 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["1199","1567","1797"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) / + 49 FROM tab0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON ( NULL IS NULL ) - -18 results returned but expected 54 -``` - - -```sql -SELECT + ( - + 36 ) / 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT - + 69 / col2 AS col0 FROM tab2 AS cor0 - -Expected: ["-1","-3"] but got ["-1.190","-1.725","-3"] -``` - - -```sql -SELECT ALL + + col1 * + + col2 + + 60 + CAST ( NULL AS INTEGER ), col1 / 83 * + - 27 * - 57 + - - 3 - - col1 + + 80 - - col1 * CAST ( NULL AS INTEGER ) * + - col1 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["1404","356.590","3256","1001.482","355","180.711"] -``` - - -```sql -SELECT - COUNT ( - + 79 ) / - SUM ( ALL + ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( 76 AS INTEGER ) IN ( - col1 ) - -Expected: ["0"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,539 failed -* 84% was OK - -Time: 46048.803ms - ----- ---- ---- ---- ---- ---- ---- -### 302/620 [`./test/random/aggregates/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT + COUNT ( * ) + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col2, 95 AS col2 FROM tab0 - -Expected: ["10","95","47","95","99","95"] but got ["95","95","95","95","95","95"] -``` - - -```sql -SELECT ALL - col0 * + 64 * - CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT - CAST ( + col1 AS REAL ) * col2 + CAST ( NULL AS INTEGER ), 92 AS col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( AVG ( + col0 ) AS INTEGER ) FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT col0 * - + 59 * - - col1 col1, col0 * - col2 * 90 AS col2, ( - col1 ) AS col2 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - - col2 AS col2 FROM tab0 WHERE NOT - + ( col1 ) IN ( col1 * - + 99 + + col1, + 70 / 67, col1 * - col2, + - col2 + + col1 - + + col1, - col0, col2 + + + 94, - + 28 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL, tab1 AS cor2 - -Parse error on line 1: -...NOT NULL IS NOT NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - MIN ( + col1 ) AS col0, 84 FROM tab1 AS cor0 WHERE NOT ( - 48 ) IS NOT NULL - -Expected: ["NULL","84"] but got ["84","NULL"] -``` - - -```sql -SELECT DISTINCT + + MAX ( col2 ) FROM tab0 AS cor0 WHERE NOT 38 BETWEEN NULL AND + col1 - -Expected: ["99"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,632 failed -* 83% was OK - -Time: 46033.496ms - ----- ---- ---- ---- ---- ---- ---- -### 303/620 [`./test/random/aggregates/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_50.test) - -_Mimic sqlite_ - -```sql -SELECT - + CAST ( + MAX ( ALL 60 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - col1 / col0 / + col0 + - 60 AS col2 FROM tab1 AS cor0 - -Expected: ["-60"] but got ["-60.001","-60.005","-60.006"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 - - - 97 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["-148","-164","-174"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT + ( - 13 ) * 8 BETWEEN ( + + ( - - col1 ) ) AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + AVG ( col1 ) col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + 28 ) - -Expected: ["NULL"] but got ["65"] -``` - - -```sql -SELECT COUNT ( * ) * - 83 FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS REAL ) + col2 ) NOT IN ( col0 * - col2 ) - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( + 6 ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL COUNT ( * ) / + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - CAST ( 13 AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-13","0","-13","0","-13","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MAX ( CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( NULL AS INTEGER ) * - 46 FROM tab1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,543 failed -* 84% was OK - -Time: 42894.992ms - ----- ---- ---- ---- ---- ---- ---- -### 304/620 [`./test/random/aggregates/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_51.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 16 + - + col2 * - CAST ( NULL AS INTEGER ) + - col0 / + col1 col0 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["14.881","15.098","15.169"] -``` - - -```sql -SELECT - - CAST ( NULL AS INTEGER ) * + - 42 col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + - COUNT ( + col2 ) col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col0 < - col2 - -Expected: ["0"] but got ["-3"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT * FROM tab0, tab0 AS cor0 WHERE NOT + 87 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + 55 ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT * FROM tab1 WHERE NOT ( col2 ) IN ( col2 * col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - 66 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-66","-66","-66"] -``` - - -```sql -SELECT DISTINCT - + col1 / - + 40 - - CAST ( NULL AS INTEGER ) / + 96 AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0.025","0","0.525","0","2.025","0"] -``` - - -```sql -SELECT MAX ( DISTINCT - col2 ) + + - COUNT ( * ) FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col0 IS NULL - -Expected: ["-26"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT 46 - + 33 + - col1 AS col1, - col1 / - + CAST ( NULL AS INTEGER ) + col2 / + col2 AS col1 FROM tab0 - -Expected: ["-68","NULL","-8","NULL","12","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,585 failed -* 84% was OK - -Time: 29510.961ms - ----- ---- ---- ---- ---- ---- ---- -### 305/620 [`./test/random/aggregates/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_52.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 77 * - + 18 * + COUNT ( * ) - + COUNT ( * ) * - 9 AS col0, COUNT ( * ) * 67 - 21 / - MAX ( - 35 ) col1 FROM tab1 - -Expected: ["-4131","201"] but got ["-4131","200.400"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - 71 + col1 AS col0 FROM tab0 WHERE NOT - col1 BETWEEN - - 6 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT 54 + + + MAX ( CAST ( NULL AS INTEGER ) ) col2 FROM tab0 - -Expected: ["NULL"] but got ["54"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-59","-68","-96"] -``` - - -```sql -SELECT ALL CAST ( - MIN ( + 36 ) AS INTEGER ) FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + COUNT ( * ) + MIN ( ALL + col2 ) FROM tab1 WHERE NOT + 61 IN ( 4 - 58 ) - -Expected: ["62"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1, col1 + - ( + CAST ( NULL AS INTEGER ) ) + col0 * + + ( + col1 ) col1 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["2397","2397","5005","5005","5092","5092"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) col0 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT MAX ( - col0 ) AS col0, 94 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 11 AND + ( + ( + col0 ) ) * - col1 + - + col0 + - 30 - -Expected: ["NULL","94"] but got ["94","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,491 failed -* 85% was OK - -Time: 27170.077ms - ----- ---- ---- ---- ---- ---- ---- -### 306/620 [`./test/random/aggregates/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_53.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col2 AS col0, - col2 AS col0 FROM tab0 AS cor0 - -Expected: ["10","-10","47","-47","99","-99"] but got ["-10","-10","-47","-47","-99","-99"] -``` - - -```sql -SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -g is not defined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), col2 FROM tab2 - -Expected: ["NULL","23","NULL","40","NULL","58"] but got ["0","23","0","40","0","58"] -``` - - -```sql -SELECT + col1 * + CAST ( + - ( - CAST ( NULL AS INTEGER ) ) AS REAL ) - + 50 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT col2 * + col2 NOT BETWEEN + ( + - col2 ) - + + col1 AND 19 + col1 + + 50 * + 12 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab1 cor0 - -Expected: ["NULL"] but got ["-59","-68","-96"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + ( - COUNT ( * ) ) AS col1, 44 / - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 - -Expected: ["-3","14"] but got ["-3","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 60 * 8 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1, - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,596 failed -* 84% was OK - -Time: 35717.293ms - ----- ---- ---- ---- ---- ---- ---- -### 307/620 [`./test/random/aggregates/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_54.test) - -_Mimic sqlite_ - -```sql -SELECT MAX ( ALL - + col2 ) * CAST ( AVG ( DISTINCT - col2 ) AS INTEGER ) FROM tab0 cor0 - -Expected: ["520"] but got ["0"] -``` - - -```sql -SELECT - + CAST ( NULL AS REAL ) * + col1 + - col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - - 30 * + - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-90"] -``` - - -```sql -SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) / + + 21 * + + col1 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-10","-47","-99"] -``` - - -```sql -SELECT col0, + col0 * + col1 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["15","NULL","87","NULL","97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT + col2 * CAST ( col2 AS INTEGER ) IN ( - 43 + 9 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - CAST ( + - SUM ( + - col0 ) AS INTEGER ) AS col1 FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + 45 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MAX ( ALL - col1 ), 52 * + - MAX ( DISTINCT + 28 ) / 11 * COUNT ( * ) - - SUM ( col0 ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL - -Expected: ["NULL","NULL"] but got ["5","-170.091"] -``` - - -```sql -SELECT - COUNT ( 43 ) / - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) * 67 AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,558 failed -* 84% was OK - -Time: 33642.505ms - ----- ---- ---- ---- ---- ---- ---- -### 308/620 [`./test/random/aggregates/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_55.test) - -_Mimic sqlite_ - -```sql -SELECT - CAST ( + + col2 AS INTEGER ) + 68 / + + 67 FROM tab1 AS cor0 - -Expected: ["-58","-67","-95"] but got ["-57.985","-66.985","-94.985"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 67 AS col2 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL ) - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 AS col2, - 49 AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - 77 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL 62 * - col0 + - CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["-2852","-3968","-4650"] -``` - - -```sql -SELECT ALL ( CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 96, - CAST ( NULL AS INTEGER ) FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["-96","0"] -``` - - -```sql -SELECT + 70 - + MIN ( - col0 ) FROM tab0 AS cor0 WHERE NOT col0 IN ( ( col1 ) * 1 ) - -Expected: ["167"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,521 failed -* 84% was OK - -Time: 45977.324ms - ----- ---- ---- ---- ---- ---- ---- -### 309/620 [`./test/random/aggregates/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_56.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + col2 AS col1, 40 * - + col1 col1 FROM tab0 AS cor0 - -Expected: ["10","-840","47","-3240","99","-40"] but got ["-3240","-3240","-40","-40","-840","-840"] -``` - - -```sql -SELECT ALL - 67 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-67","-67","-67"] -``` - - -```sql -SELECT - + 87 / + CAST ( NULL AS REAL ) - - + col2 + + ( + col2 ) * + 10 * col0 / - col0 * - col2 FROM tab2 WHERE NOT NULL IS NOT NULL AND NULL IS NULL - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - - col1 * col0 + + ( + - 44 ) AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + + COUNT ( * ) / CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( COUNT ( DISTINCT 43 ) AS INTEGER ) FROM tab2 WHERE NOT 61 NOT IN ( CAST ( NULL AS INTEGER ) ) - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - COUNT ( * ) + + - ( + 12 ) / + CAST ( NULL AS INTEGER ) col0, COUNT ( DISTINCT - - col2 ) / 35 FROM tab1 - -Expected: ["NULL","0"] but got ["NULL","0.086"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,544 failed -* 84% was OK - -Time: 40321.754ms - ----- ---- ---- ---- ---- ---- ---- -### 310/620 [`./test/random/aggregates/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_57.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col1 / + 82 + + 32 AS col1 FROM tab2 AS cor0 - -Expected: ["32","32","32"] but got ["32.622","32.817","32.939"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-3"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - col2 + + - CAST ( NULL AS REAL ) IS NULL - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-10","-47","-99"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + 42 - - - 23 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - 13 - + CAST ( MAX ( + + 31 ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT ALL SUM ( + + col1 ) AS col2, ( 2 ) + MIN ( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL MIN ( + col2 ) AS col1 FROM tab1 cor0 WHERE NOT ( - col1 ) IN ( + col2 * ( ( col1 ) ) ) - -Expected: ["59"] but got ["NULL"] -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 61 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) / - 72 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT ( NULL ) IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,569 failed -* 84% was OK - -Time: 43019.640ms - ----- ---- ---- ---- ---- ---- ---- -### 311/620 [`./test/random/aggregates/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_58.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 12 FROM tab1 AS cor0 - -Expected: ["NULL","12"] but got ["0","12"] -``` - - -```sql -SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) + + - ( + + CAST ( + - 62 AS INTEGER ) ) FROM tab0 WHERE NULL NOT BETWEEN 79 + - col1 AND NULL - -Expected: ["62"] but got ["71"] -``` - - -```sql -SELECT 90 / col1 + col0 + - CAST ( NULL AS INTEGER ) + col1 * 11 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["198","322.286","907.111"] -``` - - -```sql -SELECT DISTINCT 86 AS col0, col1 + + + 34 AS col2, col2 AS col0 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( AVG ( + 82 ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL 8 AS col2, CAST ( NULL AS REAL ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL OR NOT + col1 IN ( - col1 / - col0, + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 26 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MAX ( ALL col1 ) FROM tab1 WHERE NOT ( 7 ) + col2 IN ( col2 ) - -Expected: ["-47"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + COUNT ( * ) AS col1, + MIN ( ALL col0 ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL - -Expected: ["0","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,477 failed -* 85% was OK - -Time: 45276.304ms - ----- ---- ---- ---- ---- ---- ---- -### 312/620 [`./test/random/aggregates/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_59.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 15 * CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 - -g is not defined -``` - - -```sql -SELECT ALL col2 / 22 / + col1 * + col0 col2 FROM tab1 - -Expected: ["0","0","0"] but got ["0.001","0.006","0.006"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) + + col1 * - 66, - 63 FROM tab1 WHERE NOT - 56 + - 7 / col0 * - col2 NOT IN ( + - col2 ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col2 + - - 93 + CAST ( NULL AS INTEGER ) + + - 14 FROM tab0 WHERE + col2 IS NOT NULL - -Expected: ["NULL"] but got ["126","178","89"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - - col0 + + col1 col2 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["138","65","90"] -``` - - -```sql -SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 39 * + 80 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col1 NOT IN ( 59, + col0 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - SUM ( - + col1 ) + + COUNT ( - col0 ) / - + CAST ( - AVG ( DISTINCT - ( + + col1 ) ) AS INTEGER ) AS col1 FROM tab2 - -Expected: ["195"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - + 71 / - - col0 AS col2, 78 + - - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0 - -Expected: ["-4","NULL","0","NULL"] but got ["-0.732","78","-0.816","78","-4.733","78"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 27 > 76 - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL * FROM tab1 cor0 JOIN tab0 cor1 ON NOT + + 44 IS NULL, tab2 AS cor2 - -Parse error on line 1: -...N NOT + + 44 IS NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,519 failed -* 84% was OK - -Time: 52198.890ms - ----- ---- ---- ---- ---- ---- ---- -### 313/620 [`./test/random/aggregates/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT COUNT ( * ) / + 45 AS col1, 95 FROM tab0 - -Expected: ["0","95"] but got ["95","0.067"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 - + - col1 + ( col0 ) + CAST ( NULL AS INTEGER ) * 18 ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * 8 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ( + CAST ( COUNT ( * ) AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) / - - 78 FROM tab0 - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) - + + 63 - + 61 + + 36 + - col0 - 18 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 33 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT ( - 38 ) / + col2 AS col0, col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 - -Expected: ["-3","NULL","0","NULL"] but got ["-0.384","0","-0.809","0","-3.800","0"] -``` - - -```sql -SELECT DISTINCT MAX ( ALL - 6 ) FROM tab2 WHERE NOT - col1 BETWEEN 33 + - 90 AND NULL - -Expected: ["-6"] but got ["NULL"] -``` - - -```sql -SELECT * FROM tab1 cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL < ( NULL ) - -54 results returned but expected 18 -``` - - -```sql -SELECT DISTINCT - col2 / + col0 FROM tab2 AS cor0 WHERE - 73 IS NOT NULL - -Expected: ["0"] but got ["-0.500","-0.625","-0.773"] -``` - - -```sql -SELECT DISTINCT 9 + COUNT ( * ) AS col2, AVG ( DISTINCT + + col2 ) col2, - MAX ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL - -Expected: ["9","NULL","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,649 failed -* 83% was OK - -Time: 33952.649ms - ----- ---- ---- ---- ---- ---- ---- -### 314/620 [`./test/random/aggregates/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_60.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - COUNT ( * ) / - 90 AS col1 FROM tab2 AS cor0 - -Expected: ["0"] but got ["0.033"] -``` - - -```sql -SELECT - - CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","51","NULL","67","NULL","77"] but got ["0","51","0","67","0","77"] -``` - - -```sql -SELECT + col0 * - col1 + + 99, col2 AS col1, + 40 / - col1 + 44 AS col1 FROM tab0 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + col0 * 41 + - CAST ( NULL AS REAL ) / - col1 * col0 col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - + 30 * + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 cor0 WHERE NOT 99 + - 46 BETWEEN NULL AND + 30 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + 90 AS col0, - 56 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["90","NULL","90","NULL","90","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) * ( + + 55 ) * + - COUNT ( * ) - - MIN ( - 19 ) / - 66 - - + 26 AS col0 FROM tab1 AS cor0 WHERE + col1 BETWEEN + + 53 * - 30 AND NULL - -Expected: ["0","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, + col1 * - ( + + ( + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,610 failed -* 83% was OK - -Time: 29564.517ms - ----- ---- ---- ---- ---- ---- ---- -### 315/620 [`./test/random/aggregates/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_61.test) - -_Mimic sqlite_ - -```sql -SELECT + + col2 / col0 - + - 24 + - - col2 FROM tab1 AS cor0 - -Expected: ["121","83","92"] but got ["121.882","83.694","92.747"] -``` - - -```sql -SELECT ALL col2 - + col0 + CAST ( NULL AS INTEGER ) * + + ( col2 ) + 79 * - 80 * - - col0 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-549917","-613038","-94768"] -``` - - -```sql -SELECT CAST ( COUNT ( * ) AS INTEGER ) * + 58 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT + 34 * CAST ( NULL AS INTEGER ) + - col2 * col2 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT MIN ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * 86 FROM tab2 - -Expected: ["NULL"] but got ["-258"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * - CAST ( col2 AS REAL ) BETWEEN + 59 + - col2 AND NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL COUNT ( * ) / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), col2 * - 24 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-1128","0","-2376","0","-240"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT + 73 IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,533 failed -* 84% was OK - -Time: 42072.470ms - ----- ---- ---- ---- ---- ---- ---- -### 316/620 [`./test/random/aggregates/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_62.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - COUNT ( * ) col0, 81 FROM tab0 - -Expected: ["-3","81"] but got ["81","-3"] -``` - - -```sql -SELECT + CAST ( MIN ( - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT + 87 + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + COUNT ( 1 ) * ( - COUNT ( ALL + - col2 ) ) AS col2, - MIN ( + CAST ( NULL AS INTEGER ) ) - MIN ( DISTINCT + ( + ( - col2 ) ) ) FROM tab1 cor0 - -Expected: ["-9","NULL"] but got ["-9","96"] -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT 73 + 91 IN ( + ( 52 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + col0 - - + 21 + - - CAST ( NULL AS INTEGER ), 95 / - col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["106","0","112","0","72","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + MAX ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IN ( + + col1 ) - -Expected: ["58"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - - col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT - 94 + - MIN ( 22 ) AS col1, 24 FROM tab1 cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL","24"] but got ["24","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,496 failed -* 85% was OK - -Time: 34402.646ms - ----- ---- ---- ---- ---- ---- ---- -### 317/620 [`./test/random/aggregates/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_63.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col1 AS col1, - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["51","NULL","67","NULL","77","NULL"] but got ["51","0","67","0","77","0"] -``` - - -```sql -SELECT - + col1 col0, col2 col0 FROM tab0 AS cor0 - -Expected: ["-1","99","-21","10","-81","47"] but got ["10","10","47","47","99","99"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col1, + SUM ( ALL 18 ) FROM tab2 - -Expected: ["NULL","54"] but got ["0","54"] -``` - - -```sql -SELECT + 66 / 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( col2 * ( + ( + 85 ) ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 58 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + MIN ( ALL + 66 ) AS col1, 77 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 27 AND + col1 + + col0 - -Expected: ["NULL","77"] but got ["77","NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) - - 51 FROM tab0 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( - ( + - ( - 25 ) ) AS INTEGER ) / CAST ( + - col2 AS INTEGER ) col1, + CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["0","NULL","1","NULL"] but got ["0.431","0","0.625","0","1.087","0"] -``` - - -```sql -SELECT CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1, ( MIN ( ALL + col2 ) ) * - - 43 / CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 cor1 ON NULL IS NULL, tab1 AS cor2 - -Parse error on line 1: -...cor1 ON NULL IS NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT ALL + CAST ( - 8 AS INTEGER ) / - + CAST ( - COUNT ( * ) AS INTEGER ) + + + ( - - MIN ( ALL col0 ) ) AS col0 FROM tab1 AS cor0 - -Expected: ["49"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-14","0","-47","0","-5"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,467 failed -* 85% was OK - -Time: 40379.256ms - ----- ---- ---- ---- ---- ---- ---- -### 318/620 [`./test/random/aggregates/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_64.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 19 / 18 AS col0 FROM tab1 - -Expected: ["1"] but got ["1.056"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / - 93 + 37 * 6 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["222","222","222"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT 3 IN ( + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col2 * 62 / - CAST ( NULL AS REAL ) AS col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + CAST ( - COUNT ( 26 ) AS INTEGER ) FROM tab2 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT + 65 * + MAX ( ALL + col2 * col1 ) AS col1 FROM tab0 WHERE ( NOT - col2 BETWEEN ( + 57 / 60 + col0 ) AND NULL ) - -Expected: ["247455"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NOT + 53 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON NULL <> NULL, tab1 AS cor2 - -Parse error on line 1: -...cor1 ON NULL <> NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT 82 AS col2, + 40 + col1 + + + ( col2 ) / + + 44 * - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 - -Expected: ["82","NULL","82","NULL","82","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ( - CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) - MAX ( ALL + 37 ) AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","-37"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,567 failed -* 84% was OK - -Time: 46405.744ms - ----- ---- ---- ---- ---- ---- ---- -### 319/620 [`./test/random/aggregates/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_65.test) - -_Mimic sqlite_ - -```sql -SELECT - ( - col2 ) / 73 FROM tab0 AS cor0 - -Expected: ["0","0","1"] but got ["0.137","0.644","1.356"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + 60 / COUNT ( * ) AS col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - col0 * + col1 + col2 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) * - col0 + - 61 + + - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + 71 * - col2 * CAST ( NULL AS REAL ), col2 col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + - 96 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - CAST ( + SUM ( - col1 ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT ALL CAST ( SUM ( - + 82 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 50 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0, SUM ( - 14 ) col1 FROM tab0 WHERE col1 IS NULL - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT - MAX ( + 18 ) / - CAST ( MAX ( - + col0 ) AS INTEGER ) FROM tab0 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["51","0","67","0","77","0"] -``` - - -```sql -SELECT COUNT ( * ) col1 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL, tab0 AS cor2 - -Parse error on line 1: -... ON NOT NULL IS NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,558 failed -* 84% was OK - -Time: 34152.893ms - ----- ---- ---- ---- ---- ---- ---- -### 320/620 [`./test/random/aggregates/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_66.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 / - col1 NOT IN ( CAST ( - + col1 AS INTEGER ) ) - -Expected: ["0"] but got ["-3"] -``` - - -```sql -SELECT + CAST ( - COUNT ( + col2 ) AS INTEGER ) FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL - col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-51","-67","-77"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE NOT 66 + ( col2 ) + - ( - 62 ) * col0 BETWEEN - col2 AND - + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + 24 * COUNT ( * ) + + MAX ( DISTINCT - - col1 ) + - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL"] but got ["116"] -``` - - -```sql -SELECT DISTINCT ( - 83 ) FROM tab1 AS cor0 WHERE NOT + CAST ( col2 AS REAL ) <> + 8 * 59 + - 96 + - 61 + col1 * col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL + col2 * - ( + col1 ) AS col2, + col1 AS col2, - col2 + - - 78 - + col1 * - - 64 col2 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT col0 / - 40, + col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["-1","NULL","-2","NULL"] but got ["-1.275","0","-2.125","0","-2.275","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL MAX ( + + 21 ) * - 5 FROM tab1 WHERE NOT + col1 / - 50 IN ( col2 ) - -Expected: ["-105"] but got ["NULL"] -``` - - -```sql -SELECT + MAX ( 5 ) col1, - SUM ( DISTINCT - 43 ) + ( COUNT ( * ) ) AS col2 FROM tab0 cor0 WHERE NOT ( col1 ) IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,534 failed -* 84% was OK - -Time: 25955.969ms - ----- ---- ---- ---- ---- ---- ---- -### 321/620 [`./test/random/aggregates/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_67.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col2, + col0 * - ( 81 ) FROM tab0 - -Expected: ["NULL","-1215","NULL","-7047","NULL","-7857"] but got ["0","-1215","0","-7047","0","-7857"] -``` - - -```sql -SELECT 8 * + + COUNT ( * ) / + MIN ( + - ( - - col2 ) ) AS col0 FROM tab1 - -Expected: ["0"] but got ["-0.250"] -``` - - -```sql -SELECT + 96 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL"] but got ["96"] -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT ( 77 ) IN ( col1 + + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - MIN ( + 6 ) FROM tab1 WHERE NOT col0 * + - col1 + + 15 + - - 60 BETWEEN - + 74 * - col1 AND + col1 - -Expected: ["-6"] but got ["NULL"] -``` - - -```sql -SELECT - COUNT ( * ) + - + SUM ( DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - col1, + CAST ( 46 AS INTEGER ) AS col1, - col1 AS col1 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL ) - -18 results returned but expected 54 -``` - - -```sql -SELECT + - col0 col1, + col2 / + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 - -Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,602 failed -* 83% was OK - -Time: 38653.365ms - ----- ---- ---- ---- ---- ---- ---- -### 322/620 [`./test/random/aggregates/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_68.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - COUNT ( * ) * + COUNT ( * ), - 62 / 56 AS col0 FROM tab1 - -Expected: ["-9","-1"] but got ["-9","-1.107"] -``` - - -```sql -SELECT DISTINCT + 52 * + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + AVG ( - col1 ) FROM tab0 - -Expected: ["NULL"] but got ["-34.333"] -``` - - -```sql -SELECT col2 FROM tab1 AS cor0 WHERE ( - CAST ( - 17 AS INTEGER ) - - + CAST ( NULL AS REAL ) ) NOT BETWEEN NULL AND NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( MIN ( - col0 ) AS INTEGER ) + - 43 FROM tab2 WHERE NOT - col0 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + col0 * col0 + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["225","7569","9409"] -``` - - -```sql -SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * - - 37 FROM tab1 - -g is not defined -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - col0 * 14 * - col2 / + col2 + col0 + col1 * + col2 * - col1 + + 26 * - - CAST ( NULL AS INTEGER ) AS col2, col2 AS col2, + - 73 * - - 41 AS col2 FROM tab1 AS cor0 - -3 results returned but expected 9 -``` - - -```sql -SELECT + MAX ( ALL - ( - col0 ) ) FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN 68 AND NULL - -Expected: ["75"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) ) col1 FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT + col1 + + + col1 AS col0, + col1 / + ( col0 ) * + 1 * + CAST ( NULL AS INTEGER ) - + col0 col0 FROM tab1 - -Expected: ["10","NULL","28","NULL","94","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,543 failed -* 84% was OK - -Time: 35230.790ms - ----- ---- ---- ---- ---- ---- ---- -### 323/620 [`./test/random/aggregates/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_69.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( col0 + col1 * col1 ) BETWEEN NULL AND - col1 * ( + 84 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - COUNT ( * ) * 53 AS col0 FROM tab0 WHERE NOT - 33 NOT BETWEEN col2 + col0 AND col2 - -Expected: ["0"] but got ["-159"] -``` - - -```sql -SELECT COUNT ( * ) * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL 71 + 71 AS col1, - CAST ( - + AVG ( col2 ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT col0 - - 44 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["51","85","91"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS REAL ) * 24 FROM tab2 cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 26 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - MAX ( DISTINCT - ( col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + - 90 IN ( + col2 ) - -Expected: ["51"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + 78 * + CAST ( NULL AS INTEGER ), + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,505 failed -* 84% was OK - -Time: 29559.427ms - ----- ---- ---- ---- ---- ---- ---- -### 324/620 [`./test/random/aggregates/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - + col2 + col1 / - + 86 AS col1 FROM tab1 AS cor0 - -Expected: ["-59","-68","-96"] but got ["-59.058","-68.547","-96.163"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + col1 + - 68 + col0 * + col2 AS col2 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["1041","2569","4349"] -``` - - -```sql -SELECT col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 88 * - col1 AND - col2 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab2 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT - + 94 = NULL - -54 results returned but expected 18 -``` - - -```sql -SELECT ALL - 11 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( + 58 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE - 70 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( + MAX ( - 43 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - col1 ) + col2 - -g is not defined -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 87 < - - 14 + + 1 * col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col0 + - - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","15","0","87","0","97"] -``` - - -```sql -SELECT - 34 + + COUNT ( * ) * 2 - - COUNT ( * ) AS col1, MAX ( + 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL - -Expected: ["-34","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + + SUM ( DISTINCT col0 ) / + - CAST ( - COUNT ( * ) AS INTEGER ) + - 82 + - + COUNT ( * ) FROM tab1 AS cor0 - -Expected: ["-10"] but got ["NULL"] -``` - - -```sql -SELECT - + COUNT ( * ) * - + 68 - + SUM ( DISTINCT col0 ) col2, + MAX ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 cor1 ON NOT 86 IS NOT NULL, tab0 AS cor2 - -Parse error on line 1: -...N NOT 86 IS NOT NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,634 failed -* 83% was OK - -Time: 33920.505ms - ----- ---- ---- ---- ---- ---- ---- -### 325/620 [`./test/random/aggregates/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_70.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CAST ( - AVG ( 48 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT col1 IN ( - 15, CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + SUM ( - + col2 ) AS col2 FROM tab1 WHERE NOT + col0 * - 96 + + - CAST ( NULL AS INTEGER ) + - 49 IS NULL - -Expected: ["NULL"] but got ["-223"] -``` - - -```sql -SELECT + + COUNT ( CAST ( + col2 AS INTEGER ) ) AS col0, + 53 + - 77 AS col0 FROM tab0 AS cor0 - -Expected: ["3","-24"] but got ["-24"] -``` - - -```sql -SELECT DISTINCT col2 AS col1, + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0 - -Expected: ["23","NULL","40","NULL","58","NULL"] but got ["23","0","40","0","58","0"] -``` - - -```sql -SELECT DISTINCT + col2 + col2 / - - col1 AS col1, + col1 * - 94 AS col2, + + col2 col0 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON + - ( + CAST ( NULL AS INTEGER ) ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + SUM ( - col0 ) / - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 - -Expected: ["75"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE - 83 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), AVG ( ALL - + col2 ) - AVG ( col2 ) + + AVG ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL = - 30 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,578 failed -* 84% was OK - -Time: 37933.921ms - ----- ---- ---- ---- ---- ---- ---- -### 326/620 [`./test/random/aggregates/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_71.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 3 AS col1, - 71 + CAST ( NULL AS INTEGER ) col0 FROM tab2 - -Expected: ["-3","NULL","-3","NULL","-3","NULL"] but got ["-3","-71","-3","-71","-3","-71"] -``` - - -```sql -SELECT 65 / - col0 FROM tab1 AS cor0 - -Expected: ["-1","0","0"] but got ["-0.714","-0.765","-1.275"] -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 WHERE NOT 93 * - + col1 / + 63 = CAST ( - + col0 AS REAL ) + + col1 - - + col2 - -Wrong conversion type -``` - - -```sql -SELECT + col2 + - col1 AS col0 FROM tab0 WHERE NOT + 96 + - col2 * + col2 BETWEEN NULL AND - 69 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL SUM ( DISTINCT + 48 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( col0 ) >= NULL ) ) - -Expected: ["NULL"] but got ["48"] -``` - - -```sql -SELECT + + 15 + 7 / - 41 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( ( - COUNT ( * ) ) AS INTEGER ) - - - 68 AS col0 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN ( 86 + + 27 ) AND + col2 * - 52 - -Expected: ["46"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - + CAST ( - col2 AS INTEGER ) * col1 + + 36 * - + 70, + ( + 25 ) + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-2310","35","-2421","124","1287","72"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,566 failed -* 84% was OK - -Time: 35037.220ms - ----- ---- ---- ---- ---- ---- ---- -### 327/620 [`./test/random/aggregates/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_72.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 3 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL MAX ( ALL + - 64 ) * CAST ( + + SUM ( ALL - 96 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["18432"] but got ["0"] -``` - - -```sql -SELECT - 84 * - - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-1764","-6804","-84"] -``` - - -```sql -SELECT DISTINCT + - 7 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["-7","NULL"] but got ["-7","0"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IN ( - col0 - - 14 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + 19 / + col0 * col1 / + col1 * + - CAST ( NULL AS REAL ) / - CAST ( NULL AS INTEGER ) + - + col2 + - 15 AS col2 FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( - COUNT ( 89 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 < 64 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT + MIN ( - 66 ) AS col2 FROM tab2 WHERE NOT 19 + + col2 IN ( col2, - 29 ) - -Expected: ["-66"] but got ["NULL"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON - 83 = NULL, tab1 AS cor2 - -Parse error on line 1: -... cor1 ON - 83 = NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( 8 ) IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,538 failed -* 84% was OK - -Time: 33858.746ms - ----- ---- ---- ---- ---- ---- ---- -### 328/620 [`./test/random/aggregates/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_73.test) - -_Mimic sqlite_ - -```sql -SELECT ALL MAX ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - - col2 - - ( - col0 ) AS col0, + col0 * + col0 AS col0 FROM tab1 AS cor0 - -Expected: ["-23","8281","-26","7225","45","2601"] but got ["2601","2601","7225","7225","8281","8281"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 62 * + CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / + - ( 69 ) FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + CAST ( MAX ( + col0 ) AS INTEGER ) FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab0 WHERE NOT + CAST ( 43 AS REAL ) NOT BETWEEN NULL AND - col0 - -Wrong conversion type -``` - - -```sql -SELECT col0 col0, - col0 AS col2, col2 AS col0 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 45 + COUNT ( - col2 ) * MAX ( + ( - ( - col1 ) ) ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( 59 ) - -Expected: ["288"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) col0, CAST ( NULL AS INTEGER ) + col1 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","14","0","47","0","5"] -``` - - -```sql -SELECT ALL + MAX ( ALL 34 ) - + CAST ( NULL AS INTEGER ), 65 - - COUNT ( * ) * - - COUNT ( 0 ) - - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + AVG ( - - col2 ) + 0 FROM tab2 cor0 WHERE + 91 IS NOT NULL - -Expected: ["NULL","NULL"] but got ["34","74"] -``` - - -```sql -SELECT - + col0 AS col2, - ( + - col2 ) * - 9 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["-51","NULL","-85","NULL","-91","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT 25 * + - MIN ( ALL 70 ) AS col2, 93 + + SUM ( ALL col0 ) AS col1 FROM tab2 cor0 WHERE - 33 IS NULL - -Expected: ["NULL","NULL"] but got ["NULL","93"] -``` - - -```sql -SELECT - + ( 1 ) - + + col2 / + 11, col2 + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["-1","NULL","-10","NULL","-5","NULL"] but got ["-1.909","NULL","-10","NULL","-5.273","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,552 failed -* 84% was OK - -Time: 82349.284ms - ----- ---- ---- ---- ---- ---- ---- -### 329/620 [`./test/random/aggregates/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_74.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col2 / + + 55 FROM tab0 - -Expected: ["0","1"] but got ["0.182","0.855","1.800"] -``` - - -```sql -SELECT col0 AS col2, 31 AS col2, 50 / - col2 * - col1 - + ( + 27 ) FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["10","NULL","47","NULL","99","NULL"] but got ["10","0","47","0","99","0"] -``` - - -```sql -SELECT DISTINCT + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1 FROM tab0 - -Expected: ["3","NULL"] but got ["3","0"] -``` - - -```sql -SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 - -g is not defined -``` - - -```sql -SELECT - - ( col0 ) AS col2 FROM tab2 WHERE NULL = + - ( col0 ) * + 34 * + col1 + - + CAST ( NULL AS INTEGER ) - - + col2 - + CAST ( NULL AS REAL ) * 8 - -Wrong conversion type -``` - - -```sql -SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT MIN ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( - col0 - + ( + 32 ) * - col0 ) - -Expected: ["51"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 WHERE NOT ( + 5 ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) col0, 84 * AVG ( 61 ) FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,476 failed -* 85% was OK - -Time: 36913.221ms - ----- ---- ---- ---- ---- ---- ---- -### 330/620 [`./test/random/aggregates/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_75.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 * - col1 + col0 / + + col2 + + 47 + - col2 FROM tab0 - -Expected: ["NULL"] but got ["-395.300","-52.020","-6560.681"] -``` - - -```sql -SELECT DISTINCT col2 - + + col2 + col2 / + col0 FROM tab0 - -Expected: ["0","1","3"] but got ["0.115","1.021","3.133"] -``` - - -```sql -SELECT + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT 75 + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) = ( + 90 ) - -Wrong conversion type -``` - - -```sql -SELECT - 90 FROM tab1 AS cor0 WHERE NOT ( 75 ) * + col1 IN ( - 13 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM ( tab2 cor0 CROSS JOIN tab2 cor1 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MIN ( ALL - col2 ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 33 BETWEEN 92 AND + col0 - -Expected: ["-297"] but got ["NULL"] -``` - - -```sql -SELECT + - 88 col0, + 87 * + 68 col1, + MIN ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL ) - -Expected: ["-88","5916","NULL"] but got ["-88","NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ), AVG ( + CAST ( NULL AS INTEGER ) ) / - ( + - 89 ) / 99 * + ( - 60 ) / - 22 AS col0 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,603 failed -* 83% was OK - -Time: 40315.365ms - ----- ---- ---- ---- ---- ---- ---- -### 331/620 [`./test/random/aggregates/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_76.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + ( col2 ) / - col0 AS col2 FROM tab0 - -Expected: ["-1","-3","0"] but got ["-0.115","-1.021","-3.133"] -``` - - -```sql -SELECT ALL - col0 * 55 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * col0 - col2 * 97 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0 - -g is not defined -``` - - -```sql -SELECT ALL 89 + CAST ( NULL AS REAL ) FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT ( - 33 ) + + 83 + ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["50"] -``` - - -```sql -SELECT - - ( + - CAST ( NULL AS INTEGER ) ) + + 73 AS col1 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["73","73","73"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NOT + - 24 / + 7 IS NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT * FROM tab0 WHERE - col1 <= col0 / - 72 - -6 results returned but expected 9 -``` - - -```sql -SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) col2, + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL COUNT ( * ) / + CAST ( - MIN ( - col1 ) AS INTEGER ) FROM tab0 - -Expected: ["0"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,567 failed -* 84% was OK - -Time: 37673.724ms - ----- ---- ---- ---- ---- ---- ---- -### 332/620 [`./test/random/aggregates/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_77.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT - 87 + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) * col1 IS NULL - -Wrong conversion type -``` - - -```sql -SELECT - 67 + + - col0 / col2 AS col1 FROM tab2 - -Expected: ["-68","-68","-69"] but got ["-68.293","-68.600","-69"] -``` - - -```sql -SELECT DISTINCT + + SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > col2 - -Expected: ["NULL"] but got ["-195"] -``` - - -```sql -SELECT * FROM tab0 cor0 WHERE ( NOT - CAST ( NULL AS INTEGER ) IS NOT NULL ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + + 60 + - + SUM ( + - col2 ), COUNT ( * ) * - + MIN ( 12 ) col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1 / + col1 - -Expected: ["NULL","NULL"] but got ["60","NULL"] -``` - - -```sql -SELECT ALL CAST ( + COUNT ( + col2 ) AS INTEGER ) FROM tab2 - -g is not defined -``` - - -```sql -SELECT + col1, 12 AS col0, - + col0 / + 99 + + 93 + - col1 * col1 - 73 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 95 / - 68 + - 21 AS col0, MAX ( - - col2 ) FROM tab1 WHERE NOT ( NOT - col0 > + col0 ) - -Expected: ["-22","NULL"] but got ["-22.397","NULL"] -``` - - -```sql -SELECT - SUM ( + + col0 ), AVG ( ALL 69 ) AS col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN - - 97 * + ( col2 ) AND - - col1 - -Expected: ["NULL","NULL"] but got ["-227","69"] -``` - - -```sql -SELECT ALL + MIN ( ALL - 85 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN col0 AND ( 55 - + col1 * + col0 ) - -Expected: ["-85"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL IS NOT NULL ) - -18 results returned but expected 54 -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / - col1 col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,557 failed -* 84% was OK - -Time: 26762.464ms - ----- ---- ---- ---- ---- ---- ---- -### 333/620 [`./test/random/aggregates/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_78.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + - col1 / col2 AS col2 FROM tab0 AS cor0 - -Expected: ["-1","-2","0"] but got ["-0.010","-1.723","-2.100"] -``` - - -```sql -SELECT - + col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-23","-40","-58"] -``` - - -```sql -SELECT DISTINCT + col0 * - col0 - + CAST ( NULL AS INTEGER ) + 16 * 65 * - 91 col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-101865","-102921","-97241"] -``` - - -```sql -SELECT ALL ( + CAST ( NULL AS REAL ) ) * - col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CAST ( - MIN ( + col1 ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab1, tab1 cor0 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT col0, - 5, - + 33 AS col0 FROM tab0 - -3 results returned but expected 9 -``` - - -```sql -SELECT + + col2 col0, + col0 + - 79 / + 27 * + CAST ( + col0 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * + ( - 41 ) AS col0 FROM tab2 cor0 - -Expected: ["23","NULL","40","NULL","58","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ( + COUNT ( * ) ) / + CAST ( + ( - + SUM ( + + 89 ) ) AS INTEGER ) * + + ( 17 ) FROM tab2 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL - SUM ( col0 ), + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE - 47 IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT DISTINCT + 95 / + 20 AS col2, - col1 * - 63 - col0 * + - col2 / - CAST ( NULL AS INTEGER ) + + + ( - col0 ) * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["4","NULL"] but got ["4.750","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,678 failed -* 83% was OK - -Time: 32625.075ms - ----- ---- ---- ---- ---- ---- ---- -### 334/620 [`./test/random/aggregates/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_79.test) - -_Mimic sqlite_ - -```sql -SELECT + + COUNT ( * ) / 14 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 - -Expected: ["0"] but got ["0.643"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT 82 col0, col0 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 - -Expected: ["82","NULL","82","NULL","82","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ) / - MAX ( - + col2 ) + 83 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["83"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - 98 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["-98","-98","-98"] -``` - - -```sql -SELECT 29 AS col1, CAST ( + COUNT ( ALL ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * col2 IN ( - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) + col2 AS col1, col2 * CAST ( NULL AS INTEGER ) / - 65 * - - col1 * + + ( - col1 ) AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT + 9 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) + - + col0 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","-46","0","-64","0","-75"] -``` - - -```sql -SELECT + + 86 / + MAX ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0 - -Expected: ["-1"] but got ["-1.458"] -``` - - -```sql -SELECT ALL COUNT ( * ) / + CAST ( + + SUM ( col1 ) AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["0"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,536 failed -* 84% was OK - -Time: 55143.074ms - ----- ---- ---- ---- ---- ---- ---- -### 335/620 [`./test/random/aggregates/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - CAST ( - col0 AS INTEGER ) IN ( col2, + col2 ) - -Expected: ["-3"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 BETWEEN NULL AND - + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - 25 * + CAST ( + + COUNT ( ALL - 61 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL + ( - AVG ( - CAST ( NULL AS INTEGER ) ) ) + - ( - 23 ) FROM tab0 - -Expected: ["NULL"] but got ["23"] -``` - - -```sql -SELECT ALL CAST ( - - col1 AS INTEGER ) / col1 + + col0 + - + CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["16","88","98"] -``` - - -```sql -SELECT COUNT ( * ) / - 3, - 4 / CAST ( + + AVG ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["-1","0"] but got ["-1","NULL"] -``` - - -```sql -SELECT DISTINCT col2 + col2 AS col1 FROM tab2 WHERE NOT - 89 * CAST ( NULL AS REAL ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 36 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + + col2 - - CAST ( NULL AS INTEGER ) + + 20, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["119","0","30","0","67","0"] -``` - - -```sql -SELECT DISTINCT + 6 * - 31 + col1 AS col1, + 34 / - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 - -Expected: ["-139","NULL","-172","NULL","-181","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,634 failed -* 83% was OK - -Time: 42273.954ms - ----- ---- ---- ---- ---- ---- ---- -### 336/620 [`./test/random/aggregates/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_80.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - col0 + CAST ( NULL AS INTEGER ), + col2 FROM tab0 AS cor0 - -Expected: ["NULL","10","NULL","47","NULL","99"] but got ["-15","47","-87","10","-97","99"] -``` - - -```sql -SELECT - col0 / + + 79 + + col0 FROM tab0 AS cor0 - -Expected: ["15","86","96"] but got ["14.810","85.899","95.772"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) * - 59 * 55 / CAST ( + 3 AS INTEGER ) - + AVG ( DISTINCT + 5 ) AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( + MAX ( - col1 ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND + + 40 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON - 73 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT MIN ( ALL - col2 ) AS col0 FROM tab1 WHERE NOT - 64 NOT IN ( 90 + 53 ) - -Expected: ["NULL"] but got ["-96"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) BETWEEN 90 AND ( + + CAST ( 85 AS REAL ) / - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + MIN ( ALL - col1 ) col1, + MIN ( col2 ) * ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE - 44 + col2 * - CAST ( - 90 AS INTEGER ) IS NULL - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - MIN ( - CAST ( NULL AS INTEGER ) ) + + - 72 AS col0, COUNT ( * ) col2, CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","3","NULL"] but got ["-72","3","0"] -``` - - -```sql -SELECT MIN ( ( col1 ) ) + - COUNT ( CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT - 68 * - col2 * + col0 IN ( - - col2 * + col2 + + + 73 ) - -Expected: ["2"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,568 failed -* 84% was OK - -Time: 55329.225ms - ----- ---- ---- ---- ---- ---- ---- -### 337/620 [`./test/random/aggregates/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_81.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( NULL ) - -Expected: ["0"] but got ["-3"] -``` - - -```sql -SELECT ALL 5 / - col0 + + - CAST ( NULL AS INTEGER ) + 22 * - col0 * col2 + 88 AS col1 FROM tab1 WHERE NOT + col2 <= + - col0 * 55 - -Expected: ["NULL","NULL","NULL"] but got ["-107624.098","-110242.059","-136048.055"] -``` - - -```sql -SELECT DISTINCT + ( + col0 ) + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) / + MAX ( - ( + 24 ) ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - 44 * CAST ( + COUNT ( 89 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT + ( - 79 ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + col1 * - 60 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) + + + 40 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + MIN ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 57 / 57 IN ( + col1 ) - -Expected: ["10"] but got ["NULL"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL NOT BETWEEN NULL AND NULL, tab2 AS cor2 - -Parse error on line 1: -...ETWEEN NULL AND NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT ALL + 27 + + col2 + - CAST ( NULL AS INTEGER ) + + col2 + - 47 * - - 95 / - col0 + - 73 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["103.766","0","129.533","0","97.065","0"] -``` - - -```sql -SELECT ALL + MIN ( - col1 ) AS col1, - CAST ( NULL AS INTEGER ) * + 98 AS col2 FROM tab1 WHERE NOT NULL <= + - col1 - -Expected: ["NULL","NULL"] but got ["-47","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,563 failed -* 84% was OK - -Time: 40651.343ms - ----- ---- ---- ---- ---- ---- ---- -### 338/620 [`./test/random/aggregates/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_82.test) - -_Mimic sqlite_ - -```sql -SELECT + AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL 55 / - MIN ( ALL - col0 ) col0 FROM tab1 AS cor0 - -Expected: ["0"] but got ["0.604"] -``` - - -```sql -SELECT col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["46","NULL","64","NULL","75","NULL"] but got ["46","0","64","0","75","0"] -``` - - -```sql -SELECT ALL CAST ( ( - + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT CAST ( + col1 AS REAL ) * 74 FROM tab2 WHERE NOT NULL >= NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT - col0 + + 26 IN ( col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col2, + CAST ( NULL AS INTEGER ), - + col0 AS col0 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE + col1 + - col2 NOT IN ( col1 ) - -g is not defined -``` - - -```sql -SELECT ALL - SUM ( DISTINCT - col2 ), MIN ( - + 65 ) / + + COUNT ( * ) * + ( - COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT - 75 IS NOT NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT SUM ( DISTINCT col1 ) * MIN ( DISTINCT col2 - col1 ) AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) * col2 / - 59 + + col2 IS NULL - -Expected: ["1386"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,621 failed -* 83% was OK - -Time: 32320.935ms - ----- ---- ---- ---- ---- ---- ---- -### 339/620 [`./test/random/aggregates/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_83.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + col2 * 31 / + - 6 AS col2 FROM tab2 cor0 - -Expected: ["-118","-206","-299"] but got ["-118.833","-206.667","-299.667"] -``` - - -```sql -SELECT - - CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab2 AS cor0 - -Expected: ["NULL","51","NULL","67","NULL","77"] but got ["0","51","0","67","0","77"] -``` - - -```sql -SELECT DISTINCT 31 + - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( CAST ( + 21 AS REAL ) AS INTEGER ) FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL col0 col0 FROM tab2 cor0 WHERE NOT - 65 * - - 39 BETWEEN - 81 * - + col0 + + 77 AND + col2 * col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 46 NOT IN ( 9 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT + 47 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + AVG ( + - col1 ) AS col0, - SUM ( DISTINCT 76 ) FROM tab0 WHERE 38 + - - col1 IS NULL AND NOT NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT DISTINCT - MIN ( + 88 ) - - 85 AS col2, MAX ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = col2 - -Expected: ["NULL","NULL"] but got ["-3","-23"] -``` - - -```sql -SELECT DISTINCT MAX ( ALL col1 ) col1 FROM tab1 WHERE NOT ( + col1 ) BETWEEN + col0 AND NULL - -Expected: ["47"] but got ["NULL"] -``` - - -```sql -SELECT ALL col1 / - - ( + CAST ( NULL AS INTEGER ) ) col0, 39 + + + CAST ( NULL AS INTEGER ) + + - 10 + col1 / - col0 AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","27.797","NULL","27.891","NULL","28.107"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,614 failed -* 83% was OK - -Time: 38760.941ms - ----- ---- ---- ---- ---- ---- ---- -### 340/620 [`./test/random/aggregates/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_84.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) / - - ( - col2 ) + - + 74 AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-74","-74","-74"] -``` - - -```sql -SELECT DISTINCT col0 AS col1, - col2 / + 74 AS col2 FROM tab1 - -Expected: ["51","-1","85","0","91","0"] but got ["51","-1.297","85","-0.797","91","-0.919"] -``` - - -```sql -SELECT * FROM tab2 WHERE + col0 + CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - 70 * - 14 + ( - + SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 WHERE col1 / + 6 IS NOT NULL - -Expected: ["NULL"] but got ["980"] -``` - - -```sql -SELECT - 79 * - + CAST ( NULL AS REAL ), 6 + + ( - col0 ) / + - col1 AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( MAX ( - ( + col2 ) ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 18 ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - - 44 AS col2, - col0 / + ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0 - -Expected: ["44","NULL","44","NULL","44","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT COUNT ( * ) * + COUNT ( * ) / - - CAST ( + CAST ( + COUNT ( - col1 ) AS INTEGER ) AS INTEGER ) - - 54 FROM tab1 - -Expected: ["57"] but got ["NULL"] -``` - - -```sql -SELECT - + SUM ( DISTINCT col0 ) AS col1, - AVG ( ALL 44 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 1 / - ( - 11 ) IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - - col2 / - - 62 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["0","NULL","1","NULL"] but got ["0.161","0","0.758","0","1.597","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,621 failed -* 83% was OK - -Time: 30091.612ms - ----- ---- ---- ---- ---- ---- ---- -### 341/620 [`./test/random/aggregates/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_85.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + 57 AS col2 FROM tab2 cor0 - -Expected: ["NULL"] but got ["54"] -``` - - -```sql -SELECT - 60 AS col0, COUNT ( - - 95 ) AS col0 FROM tab0 - -Expected: ["-60","3"] but got ["3"] -``` - - -```sql -SELECT - 38 + + CAST ( NULL AS INTEGER ) * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-38","-38","-38"] -``` - - -```sql -SELECT + 90 * + CAST ( NULL AS INTEGER ) + - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab2 WHERE NOT 39 IN ( col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 11 + 15 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - col1 / col0 * - + 61 AS col2, 18 - + + ( - 68 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["0","NULL","61","NULL"] but got ["54.493","18","67.630","18","73.391","18"] -``` - - -```sql -SELECT - COUNT ( * ) / CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 - -Expected: ["1"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,517 failed -* 84% was OK - -Time: 29545.303ms - ----- ---- ---- ---- ---- ---- ---- -### 342/620 [`./test/random/aggregates/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_86.test) - -_Mimic sqlite_ - -```sql -SELECT 42 / col0 - col2 FROM tab0 - -Expected: ["-10","-45","-99"] but got ["-44.200","-9.517","-98.567"] -``` - - -```sql -SELECT ALL col0 AS col2 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - ( COUNT ( + 46 ) ) FROM tab2 cor0 WHERE NOT col0 * col0 + - CAST ( NULL AS REAL ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + SUM ( + 49 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE 70 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT MIN ( DISTINCT col0 ) * - COUNT ( * ) FROM tab2 WHERE NOT ( + 64 + - col2 * + 67 ) IN ( col2 * ( 27 ) ) - -Expected: ["-138"] but got ["NULL"] -``` - - -```sql -SELECT - MIN ( DISTINCT + - col1 ) AS col1, 8 FROM tab0 AS cor0 WHERE NULL <> NULL - -Expected: ["NULL","8"] but got ["8","NULL"] -``` - - -```sql -SELECT - SUM ( DISTINCT - col0 ) AS col2, MAX ( ALL - - col2 ) FROM tab0 WHERE NOT NULL IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL col1, 5 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["14","NULL","47","NULL","5","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL CAST ( + MAX ( col2 ) AS INTEGER ), 80 - COUNT ( * ) + - 75 + CAST ( NULL AS INTEGER ) + 15 AS col1 FROM tab1 AS cor0 WHERE NULL <= NULL - -Expected: ["NULL","NULL"] but got ["0","20"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,532 failed -* 84% was OK - -Time: 59042.119ms - ----- ---- ---- ---- ---- ---- ---- -### 343/620 [`./test/random/aggregates/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_87.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - COUNT ( * ) * SUM ( ALL 48 ) / 60 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Expected: ["-64"] but got ["-64.800"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST ( + 60 AS REAL ) * - col2 ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL 6 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["6","6","6"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT - + col1 IN ( + col1 + col2 + - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + - MIN ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT - 49 + + col1 NOT BETWEEN - 59 AND NULL - -Expected: ["NULL"] but got ["-59"] -``` - - -```sql -SELECT DISTINCT + 46 / + + col0 AS col2, 46 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["0","NULL","1","NULL"] but got ["46","46"] -``` - - -```sql -SELECT ALL CAST ( + MAX ( - 36 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT ALL 81 AS col2, + col0 AS col1, col1 + - 51 + - 87 * - + col2 AS col1 FROM tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL + ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col2, - SUM ( DISTINCT + + 85 ) * MIN ( + 88 ) AS col1 FROM tab1 WHERE col0 IN ( + + col1 * - col1 + + col2, - col2 ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) - + + col2 * + - 74 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","3478","0","7326","0","740"] -``` - - -```sql -SELECT + COUNT ( * ) / + - CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 - -Expected: ["-1"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,620 failed -* 83% was OK - -Time: 69254.017ms - ----- ---- ---- ---- ---- ---- ---- -### 344/620 [`./test/random/aggregates/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_88.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT ( + col1 ) / + 70 AS col0 FROM tab2 - -Expected: ["0","1"] but got ["0.729","0.957","1.100"] -``` - - -```sql -SELECT 95, COUNT ( * ) * + ( + - CAST ( NULL AS INTEGER ) ) * + MAX ( 21 ) + 4 * 97 AS col2 FROM tab0 - -Expected: ["95","NULL"] but got ["95","388"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col1 IN ( - col1 * col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col1 * - CAST ( NULL AS REAL ) - col0 AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT + - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) / + col1, col2 FROM tab2 AS cor0 - -Expected: ["NULL","23","NULL","40","NULL","58"] but got ["0","23","0","40","0","58"] -``` - - -```sql -SELECT - ( + 38 ) + + COUNT ( * ) / - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 - -Expected: ["-39"] but got ["NULL"] -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 8 <> - + 26 + 50 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE - 51 NOT IN ( + 92 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), - ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT ALL SUM ( DISTINCT - col2 ) AS col0, CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL AND NULL > ( NULL ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,625 failed -* 83% was OK - -Time: 100006.447ms - ----- ---- ---- ---- ---- ---- ---- -### 345/620 [`./test/random/aggregates/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_89.test) - -_Mimic sqlite_ - -```sql -SELECT + + col2 + 58 * - - col1 + + col0 - - col0 / - + 76 FROM tab2 AS cor0 - -Expected: ["3027","4019","4570"] but got ["3026.395","4018.013","4569.158"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 80 + - + COUNT ( * ) + COUNT ( * ) + - - 0 * + 24 * ( + 20 ) AS col0 FROM tab0 - -Expected: ["NULL"] but got ["80"] -``` - - -```sql -SELECT ALL - col0 - + col0 + - col0 + + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-261","-291","-45"] -``` - - -```sql -SELECT col0 - CAST ( NULL AS REAL ) + + ( - - col0 ) FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT + 40 FROM tab1 WHERE NOT - ( + - col0 ) BETWEEN NULL AND - col0 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( + COUNT ( col2 ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT 64 / - CAST ( - - MAX ( + col2 ) AS INTEGER ) - 81 * + - COUNT ( * ) FROM tab0 - -Expected: ["243"] but got ["NULL"] -``` - - -```sql -SELECT ALL col1 * - CAST ( NULL AS INTEGER ) + - + 25 - 31 * + - col1 AS col2, col0 * - CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["2486","0","6","0","626","0"] -``` - - -```sql -SELECT - - 58 / - 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - MIN ( ALL + col0 ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT 98 AS col1, + AVG ( DISTINCT 53 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL - -Expected: ["98","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + + 56 * 8 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["448"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,601 failed -* 84% was OK - -Time: 76192.381ms - ----- ---- ---- ---- ---- ---- ---- -### 346/620 [`./test/random/aggregates/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_9.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS REAL ) IS NOT NULL ) - -Wrong conversion type -``` - - -```sql -SELECT ALL - + 1 * - col0 + - - 96 * ( + + 92 ) - 81 / - - ( + col0 ) AS col0 FROM tab0 AS cor0 - -Expected: ["8842","8919","8929"] but got ["8841.600","8918.069","8928.165"] -``` - - -```sql -SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + MIN ( ALL - 45 ) AS col1 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + - col0 AS col0, CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0 - -Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["-15","0","-87","0","-97","0"] -``` - - -```sql -SELECT DISTINCT - + 86 + - - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT col2 IN ( - ( col1 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - 14 AS col2, 94 AS col2, col2 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ) + 3 AS col0 FROM tab2 WHERE + + col2 - - - ( + col1 ) - - col2 <> col0 + + - col1 - -Expected: ["NULL","NULL"] but got ["3","3"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,565 failed -* 84% was OK - -Time: 34904.978ms - ----- ---- ---- ---- ---- ---- ---- -### 347/620 [`./test/random/aggregates/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_90.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1, - COUNT ( * ) col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT - + 25 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - COUNT ( DISTINCT col1 ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-3"] -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["15","87","97"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT 19 IN ( - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - col0 + + 34 + + col2 / col1 AS col2 FROM tab1 - -Expected: ["-11","-40","-56"] but got ["-10.143","-39.200","-55.553"] -``` - - -```sql -SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) * - 32 FROM tab1 - -g is not defined -``` - - -```sql -SELECT + 48 + + + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","NULL","0","NULL","0","NULL"] -``` - - -```sql -SELECT + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) IN ( ( - col2 ) + col1 ) - -Expected: ["46"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,643 failed -* 83% was OK - -Time: 51764.114ms - ----- ---- ---- ---- ---- ---- ---- -### 348/620 [`./test/random/aggregates/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_91.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab2 AS cor0 WHERE CAST ( - col0 AS REAL ) >= ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + CAST ( NULL AS INTEGER ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - - col1 * - CAST ( NULL AS INTEGER ) * + - 93 - col0 * col1 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-1215","-1827","-97"] -``` - - -```sql -SELECT + + col0 / 71 col2 FROM tab0 cor0 - -Expected: ["0","1","1"] but got ["0.211","1.225","1.366"] -``` - - -```sql -SELECT - 84 * - - col0 + - col0 + - - 33 - - - CAST ( NULL AS INTEGER ) - + col2 / + 72 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-3877.319","-5407.556","-6342.806"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT col1 + - col2 / col0 IN ( col0, col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - 71, CAST ( NULL AS INTEGER ) * - + CAST ( + + COUNT ( * ) AS REAL ) AS col2 FROM tab2 - -g is not defined -``` - - -```sql -SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 1 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - MIN ( - col2 ) AS col0, ( + AVG ( col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL <> + col0 - -Expected: ["NULL","NULL"] but got ["40.333"] -``` - - -```sql -SELECT MIN ( ALL + + CAST ( - col0 AS INTEGER ) ) FROM tab2 cor0 WHERE NOT + col1 BETWEEN NULL AND + 62 - -Expected: ["-75"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE + 57 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) * 63 / COUNT ( * ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - 92 AS col1, 26 * - + ( + MIN ( - 77 ) ) AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL - -Expected: ["-92","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,630 failed -* 83% was OK - -Time: 84781.545ms - ----- ---- ---- ---- ---- ---- ---- -### 349/620 [`./test/random/aggregates/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_92.test) - -_Mimic sqlite_ - -```sql -SELECT ( - col2 ) / 98 AS col0 FROM tab0 AS cor0 - -Expected: ["-1","0","0"] but got ["-0.102","-0.480","-1.010"] -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - + col2 * - - ( - col2 ) col1 FROM tab0 AS cor0 WHERE NOT ( NOT + + ( + col1 ) NOT BETWEEN + + col0 + + CAST ( NULL AS REAL ) + + col1 * ( + col0 ) AND NULL ) - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT - ( - col1 ) * col0 IN ( - col1 * 73 + + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( - COUNT ( * ) AS INTEGER ) / + 74 AS col1 FROM tab2 cor0 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - col1 AS col0, - col1 * col1 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-1","0","-441","0","-6561"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON ( NULL ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MIN ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + col1 AND - 21 - -Expected: ["-46"] but got ["NULL"] -``` - - -```sql -SELECT ALL - - CAST ( NULL AS INTEGER ), - SUM ( - 4 ) FROM tab2 AS cor0 WHERE + 88 NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL - -Expected: ["NULL","NULL"] but got ["0","12"] -``` - - -```sql -SELECT SUM ( - col0 ) + + AVG ( ALL - - 30 ) AS col0, 17 FROM tab1 AS cor0 WHERE ( NOT ( - col1 * + 45 * + col0 < + + 1 ) ) - -Expected: ["NULL","17"] but got ["17","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,607 failed -* 83% was OK - -Time: 34826.807ms - ----- ---- ---- ---- ---- ---- ---- -### 350/620 [`./test/random/aggregates/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_93.test) - -_Mimic sqlite_ - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col2, col0 * + + col0 + - + 22 / - col1 AS col2 FROM tab1 cor0 - -Expected: ["NULL","2602","NULL","7229","NULL","8281"] but got ["2602.571","2602.571","7229.400","7229.400","8281.468","8281.468"] -``` - - -```sql -SELECT - - col0 / + + col1 + col0 * + 1 + ( - 50 ) AS col0 FROM tab0 cor0 - -Expected: ["-35","144","41"] but got ["-34.815","144","41.143"] -``` - - -```sql -SELECT ALL MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 37 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL col2 - 54 * - - col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IN ( - col2 + + 23, col0 * - col1, + 17 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - 4 * - SUM ( DISTINCT CAST ( NULL AS REAL ) ) - COUNT ( * ) FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( + - MAX ( - 99 ) AS INTEGER ) AS col2, - 92 FROM tab2 cor0 - -g is not defined -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ), + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + + MIN ( DISTINCT - - 14 ) AS col1, - SUM ( DISTINCT 74 ) col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - COUNT ( ALL ( - - col2 ) ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["-3"] -``` - - -```sql -SELECT DISTINCT + + MAX ( - + col0 ) AS col1 FROM tab2 WHERE NOT - ( + col1 ) BETWEEN + 48 - + ( + col1 ) + - 28 * + - col2 AND + col2 - -Expected: ["-46"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,581 failed -* 84% was OK - -Time: 65193.079ms - ----- ---- ---- ---- ---- ---- ---- -### 351/620 [`./test/random/aggregates/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_94.test) - -_Mimic sqlite_ - -```sql -SELECT 75 / - 30 FROM tab2 - -Expected: ["-2","-2","-2"] but got ["-2.500","-2.500","-2.500"] -``` - - -```sql -SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + col2 AND - CAST ( + - 22 AS INTEGER ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col1 AS col1, - col0 - - - 57 AS col2, + + CAST ( NULL AS INTEGER ) * - - col2 + - + col0 AS col1 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - col1 + - - CAST ( NULL AS REAL ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - col0 * - CAST ( NULL AS INTEGER ) - + 47 + + 37 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-10","-10","-10"] -``` - - -```sql -SELECT ALL 33 * - CAST ( - + COUNT ( * ) AS INTEGER ) - + - 33 FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 13 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL - + MIN ( + col2 ) FROM tab1 WHERE NOT + col1 BETWEEN + col1 * 81 + - - 97 AND - 92 - -Expected: ["-59"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + - + ( col2 ) col1 FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-23","0","-40","0","-58"] -``` - - -```sql -SELECT DISTINCT + MIN ( + 24 ) / - ( - CAST ( NULL AS INTEGER ) ) AS col1, 47 FROM tab0 - -Expected: ["NULL","47"] but got ["47","NULL"] -``` - - -```sql -SELECT ALL - 8 / - 73 FROM tab2 - -Expected: ["0","0","0"] but got ["0.110","0.110","0.110"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL, tab2 AS cor2 - -Parse error on line 1: -... ON NULL IS NOT NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - COUNT ( * ) + MIN ( + col1 ) - - AVG ( col0 ) * + COUNT ( - col1 ) col0, - SUM ( + col1 ) col2 FROM tab1 AS cor0 WHERE - col1 <= NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT DISTINCT - 42 / + + ( - col2 ) - 44, ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 - -Expected: ["-40","NULL","-44","NULL"] but got ["-39.800","0","-43.106","0","-43.576","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,578 failed -* 84% was OK - -Time: 29132.312ms - ----- ---- ---- ---- ---- ---- ---- -### 352/620 [`./test/random/aggregates/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_95.test) - -_Mimic sqlite_ - -```sql -SELECT - ( + - CAST ( NULL AS INTEGER ) ) * - col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + col0 / - + col1 + col2 * + + col1 * - + ( - ( - + ( col2 ) ) ) * 80 AS col0 FROM tab2 AS cor0 - -Expected: ["-18031041","-2158320","-9856000"] but got ["-18031041.119","-2158320.902","-9856000.831"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 56 * + + CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( + ( COUNT ( * ) ) AS INTEGER ) FROM tab2 - -g is not defined -``` - - -```sql -SELECT ( + 25 ) * + AVG ( ALL - col1 ) * - CAST ( NULL AS INTEGER ) / - 82 FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( - col0 AS REAL ) > col2 + col1 + col0 + ( col1 ) - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - 6 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - SUM ( ALL - 29 ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + + 0 * CAST ( NULL AS INTEGER ) * - col2 * + col2 + - 27 <> NULL - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT 37 AS col2, - col2 * - + col0 + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 - -Expected: ["37","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT 3 + + MAX ( DISTINCT - 62 ) AS col0 FROM tab2 WHERE NOT ( - col2 ) BETWEEN col1 * - 9 + + 93 AND - col1 - -Expected: ["-59"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / - + ( - col1 ) AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,586 failed -* 84% was OK - -Time: 30723.574ms - ----- ---- ---- ---- ---- ---- ---- -### 353/620 [`./test/random/aggregates/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_96.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( - MIN ( 74 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT col2 * - + CAST ( NULL AS INTEGER ) - + col1 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-14","-47","-5"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 WHERE - + col2 * - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + COUNT ( * ) + 53 AS col0 FROM tab2 WHERE NOT ( + 25 ) BETWEEN col0 + + col1 * 80 AND + col2 AND NOT ( NULL ) IS NOT NULL - -Expected: ["56"] but got ["53"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - 88 IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS REAL ) AS col1, COUNT ( * ) AS col2 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ( 93 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + ( + col2 ) / - CAST ( NULL AS INTEGER ), 5 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] -``` - - -```sql -SELECT MIN ( col1 ) / CAST ( - + COUNT ( * ) AS INTEGER ) AS col2, - COUNT ( * ) FROM tab1 - -Expected: ["-1","-3"] but got ["NULL","-3"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + 79 + + CAST ( NULL AS INTEGER ) * + AVG ( ALL + ( - 69 ) ), + 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 - -Expected: ["NULL","44"] but got ["79","44"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + 25 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT 85 AS col2, - MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL - -Expected: ["85","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,549 failed -* 84% was OK - -Time: 34334.210ms - ----- ---- ---- ---- ---- ---- ---- -### 354/620 [`./test/random/aggregates/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_97.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col0, + COUNT ( * ) col0 FROM tab2 - -Expected: ["-46","3"] but got ["3"] -``` - - -```sql -SELECT * FROM tab2 cor0 WHERE NOT 35 IN ( - - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * + col2 + - col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-23","-40","-58"] -``` - - -```sql -SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 17 * + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + - col0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT - - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + SUM ( + 51 ) / - COUNT ( * ) + 37 + MIN ( + + 78 ) + - 31 - + - 82 / - - CAST ( MAX ( ALL + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["34"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + 82 / + + col0 + col1 AS col1, col1 AS col1 FROM tab1 - -Expected: ["15","14","47","47","5","5"] but got ["14","14","47","47","5","5"] -``` - - -```sql -SELECT - SUM ( ALL col0 ) - + - COUNT ( * ) AS col0, - 52 + + AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT + 47 + + 58 * + - col0 * + + col2 * + 94 + + col1 + - col0 IS NOT NULL ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col1, 91 + - col0 + + + 24 * CAST ( NULL AS INTEGER ) * 61 + + col0 AS col0 FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","91","0","91","0","91"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,633 failed -* 83% was OK - -Time: 30020.496ms - ----- ---- ---- ---- ---- ---- ---- -### 355/620 [`./test/random/aggregates/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_98.test) - -_Mimic sqlite_ - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - 75 * + COUNT ( * ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-225"] -``` - - -```sql -SELECT ALL 48 / + + col1 + - - col1 FROM tab2 AS cor0 - -Expected: ["51","67","77"] but got ["51.941","67.716","77.623"] -``` - - -```sql -SELECT - 88 * - CAST ( NULL AS INTEGER ) - col2 + - - 97 * + + ( + col2 ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["5664","6528","9216"] -``` - - -```sql -SELECT DISTINCT - - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 - -g is not defined -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) + + + col0 AS col0 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT - - col2 BETWEEN - ( + + col0 ) AND - + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + ( - + col2 ) / 27 AS col2, CAST ( NULL AS INTEGER ) * + col2 FROM tab1 - -Expected: ["-2","NULL","-3","NULL"] but got ["-2.185","0","-2.519","0","-3.556","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - - 31 + - - 88 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 58 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL, tab2 AS cor2 - -Parse error on line 1: -...NOT NULL IS NOT NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - 58 AS col0, AVG ( ALL + 42 ) col0 FROM tab2 AS cor0 WHERE - col2 = 66 - -Expected: ["-58","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + + COUNT ( * ) / + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT - - COUNT ( * ) * - - 52 + - SUM ( - + col0 ) * - + 77, MIN ( DISTINCT 44 ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,644 failed -* 83% was OK - -Time: 58268.615ms - ----- ---- ---- ---- ---- ---- ---- -### 356/620 [`./test/random/aggregates/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_99.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - ( + 47 ) * + - COUNT ( * ) * - MAX ( + col1 ) + - CAST ( + MIN ( - col1 ) AS INTEGER ) + 75 AS col1 FROM tab1 AS cor0 - -Expected: ["-6505"] but got ["-6552"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * col2 * + + col1 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + + 98 / COUNT ( DISTINCT - - col0 ) AS col1, + CAST ( NULL AS INTEGER ) * 60 FROM tab1 AS cor0 - -Expected: ["32","NULL"] but got ["32.667","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 4 ) < 66 - -18 results returned but expected 54 -``` - - -```sql -SELECT COUNT ( DISTINCT col0 ) * - COUNT ( * ) / - CAST ( COUNT ( * ) AS INTEGER ) - + - CAST ( NULL AS REAL ) * + ( - - ( ( + COUNT ( * ) ) ) ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT + 60 BETWEEN NULL AND + 3 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col0, col2 + - 81 + col1 AS col0, - + col2 AS col0 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 - -g is not defined -``` - - -```sql -SELECT - AVG ( DISTINCT - - col1 ) AS col2, 4 FROM tab2 WHERE NULL BETWEEN NULL AND - col2 * 43 - -Expected: ["NULL","4"] but got ["4","NULL"] -``` - - -```sql -SELECT DISTINCT + 9 * - CAST ( NULL AS INTEGER ) + - ( - col1 ) * + col1 AS col2, + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 - -Expected: ["NULL","NULL"] but got ["196","0","2209","0","25","0"] -``` - - -```sql -SELECT DISTINCT - MAX ( DISTINCT 49 ) * COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col1 IN ( + ( col0 ) + + col0 * col0 ) - -Expected: ["-147"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,573 failed -* 84% was OK - -Time: 32856.344ms - ----- ---- ---- ---- ---- ---- ---- -### 357/620 [`./test/random/expr/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT 20 / - - 96 + CAST ( 90 AS INTEGER ) AS col2 - -Expected: ["90"] but got ["90.208"] -``` - - -```sql -SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 67 * + 85 * - CAST ( - SUM ( - 52 ) AS INTEGER ) col2 - -g is not defined -``` - - -```sql -SELECT ALL 25 * + COUNT ( * ) + - 0 - + - 6 + + - ( + + CASE + CAST ( + + 38 AS REAL ) WHEN 3 THEN NULL WHEN + 42 THEN NULL WHEN - 80 THEN NULL ELSE 14 END ) AS col1, - 31 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2, + 77 / 37 + + + 90, + CASE - - MAX ( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM ( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST ( 16 AS INTEGER ) WH… - -Expected: ["2","92","NULL"] but got ["NULL","92.081"] -``` - - -```sql -SELECT - 37 AS col0, + MAX ( + - 74 ) * + - 55 / CAST ( - COUNT ( * ) AS INTEGER ) + 48 - - 10 + + 31 * - 27 * - 89 * - + 35 - -Expected: ["-37","-2611267"] but got ["-37","NULL"] -``` - - -```sql -SELECT SUM ( + 73 ) * - CASE WHEN NOT ( NOT 27 BETWEEN 15 AND - NULLIF ( - 63, - 28 + + 76 ) ) THEN NULL ELSE + 77 * + 69 END / - CAST ( - 69 AS INTEGER ) AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL CAST ( - - CASE + 81 WHEN - 91 THEN + 37 END AS INTEGER ), + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - 80 + - CASE - CASE + COUNT ( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2 - -Expected: ["-46","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,839 failed -* 81% was OK - -Time: 32281.398ms - ----- ---- ---- ---- ---- ---- ---- -### 358/620 [`./test/random/expr/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT ALL COUNT ( * ) AS col0, - 83 AS col0 - -Expected: ["1","-83"] but got ["-83"] -``` - - -```sql -SELECT CAST ( - COUNT ( ALL 73 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT - CASE WHEN NOT NULL BETWEEN NULL AND NULL THEN 17 ELSE NULL END + + 12 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","-15"] -``` - - -```sql -SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 - -Expected: ["67","63"] but got ["67","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,175 failed -* 88% was OK - -Time: 21211.982ms - ----- ---- ---- ---- ---- ---- ---- -### 359/620 [`./test/random/expr/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_10.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - 4 / - 44 * - 32 AS col1 - -Expected: ["0"] but got ["-0.003"] -``` - - -```sql -SELECT + CAST ( COALESCE ( - 1, + - 37, - 27 + - COUNT ( * ) ) AS INTEGER ) * - 41 * - 88 AS col1, 0 * + - CAST ( NULL AS REAL ) * 43 - -g is not defined -``` - - -```sql -SELECT 73 + - CAST ( NULL AS REAL ) * - COUNT ( * ) * + CASE + 61 WHEN COUNT ( * ) THEN - 50 * + - 4 * + + ( 3 ) + - COALESCE ( 19, 29 ) * - + ( 94 ) END * - + 4 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) / + + 67 AS col0, 24 + + CAST ( 35 AS INTEGER ) - -Expected: ["NULL","59"] but got ["0","59"] -``` - - -```sql -SELECT ALL 83 / - 45 + - CASE WHEN NOT - 30 NOT BETWEEN + ( + - 21 ) / + 34 + 87 + + + 87 AND + + 75 / ( 37 ) + + - 59 + + + ( - COALESCE ( - CASE + + COUNT ( * ) WHEN CASE WHEN - ( 56 ) IS NULL THEN + COUNT ( * ) * + + NULLIF ( - 83, + CAST ( NULL AS INTEGER ) / + 60 * + 45 + - + 82 ) * + - 4 * - … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 20 AS col0, 62 * - COALESCE ( 79, + - 65 - 55, CAST ( NULL AS INTEGER ) * 51 ) + + CASE ( 43 ) WHEN 13 THEN + - 72 END * 73 AS col0 - -Expected: ["20","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT 61 + - + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + 54 * - 0 + - 9 + + 37 AS col0, CAST ( NULL AS INTEGER ) * - 92 AS col2 - -Expected: ["NULL","NULL"] but got ["89","0"] -``` - - -```sql -SELECT CASE 71 WHEN + - 13 THEN + 1 END AS col1, COUNT ( * ) / CAST ( - - 55 AS INTEGER ) + - + 9 - -Expected: ["NULL","-9"] but got ["NULL","-8.982"] -``` - - -```sql -SELECT ALL - 73 AS col2, + CAST ( NULL AS INTEGER ) * + 26, + NULLIF ( - CASE + + 80 WHEN 1 THEN - 79 WHEN + 52 THEN + 33 * 45 ELSE NULL END, + COALESCE ( 28, COALESCE ( 24, CAST ( 85 AS INTEGER ), + 66 + 21 ) + 52, - ( - 88 ) + 46 ) * 3 - COUNT ( * ) ) * + 34 col2 - -Expected: ["-73","NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL - CASE WHEN + 36 NOT IN ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + NULLIF ( - ( - NULLIF ( ( - 57 ), COUNT ( * ) ) ), CASE 34 WHEN + 3 * + 9 THEN + 98 / 49 + 76 ELSE NULL END - 83 ) + - COALESCE ( - 80, - 31 ) END AS col2 - -Expected: ["-23"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,060 failed -* 79% was OK - -Time: 36165.298ms - ----- ---- ---- ---- ---- ---- ---- -### 360/620 [`./test/random/expr/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_100.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) * - 85 + - CAST ( + SUM ( + 31 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( + ( + 14 ), 51, + 33 ) + + COUNT ( * ) + 13 + + 15 * SUM ( - - 59 ) * - 56 * + 24 - -Expected: ["NULL"] but got ["-1189426"] -``` - - -```sql -SELECT + 17 / + + 99 col0 - -Expected: ["0"] but got ["0.172"] -``` - - -```sql -SELECT 74 - 83 * + CAST ( + + COUNT ( * ) AS INTEGER ) * - - ( + CAST ( NULL AS REAL ) ) + + 14 + + COUNT ( * ) + 3 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - - 51 * + 96 / + 44 + CASE - CASE 92 WHEN + 20 THEN + + 30 / ( + 26 ) + + 93 END WHEN NULLIF ( 16, + ( - + COUNT ( * ) ) ) THEN + 45 WHEN - COALESCE ( + - 30, - 29 * - 78, - 1 ) THEN NULL END AS col1, 25 - -Expected: ["NULL","25"] but got ["25","NULL"] -``` - - -```sql -SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + + + 27 AS col0, + 41 + CAST ( NULL AS INTEGER ) + ( NULLIF ( - 42, 62 ) ) - + + 93 + - - ( 68 ) AS col1 - -Expected: ["NULL","NULL"] but got ["27","-26"] -``` - - -```sql -SELECT DISTINCT CASE WHEN ( CAST ( NULL AS INTEGER ) ) IS NOT NULL THEN NULL ELSE MIN ( 57 ) / + 20 END AS col2 - -Expected: ["2"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 60 AS col2, - ( + CASE WHEN - 25 > + 91 THEN - COALESCE ( 74, - CAST ( 61 AS INTEGER ) + 31, - - 40 ) WHEN + 4 * + + 56 / 13 * - 15 + + CAST ( NULLIF ( - 81, 5 ) AS REAL ) NOT BETWEEN 58 + - 72 AND + COUNT ( * ) THEN NULL END ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - - 84 - + - CAST ( NULL AS INTEGER ), 29 / CASE + + 55 WHEN - COUNT ( * ) THEN NULL WHEN + SUM ( ALL - 87 ) THEN + 68 / + + ( 79 ) ELSE NULL END / - COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - 22 AS col0, CASE + - 63 WHEN + 6 * + 80 * - 2 * - - 81 + - 62 THEN + CASE + 82 WHEN + 45 + - 14 + - CAST ( NULL AS INTEGER ) * + 77 THEN 98 WHEN + + 85 - 90 / - 91 THEN NULL END END AS col0 - -Expected: ["-22","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,110 failed -* 78% was OK - -Time: 40671.064ms - ----- ---- ---- ---- ---- ---- ---- -### 361/620 [`./test/random/expr/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_101.test) - -_Mimic sqlite_ - -```sql -SELECT - COALESCE ( 14, 79 ) / + 3 AS col0 - -Expected: ["-4"] but got ["-4.667"] -``` - - -```sql -SELECT + + CASE ( - COALESCE ( 66, COALESCE ( 69, 12, 18 ) + 66, + 24 * 84 ) ) WHEN 26 THEN - 69 WHEN 64 THEN 17 ELSE NULL END * + CAST ( NULL AS REAL ) + - 25 - -Wrong conversion type -``` - - -```sql -SELECT 26 * + 61 * CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT - 74 AS col1, CASE + CAST ( NULL AS INTEGER ) WHEN - + COALESCE ( 56, + CAST ( NULL AS INTEGER ) ) THEN + COUNT ( + ( 2 ) ) END * ( + 93 ) AS col1 - -Expected: ["-74","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 61 * + CAST ( ( - COUNT ( * ) ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT - COALESCE ( - 10, + 97 ) / - CAST ( NULL AS INTEGER ) * - 13 AS col0, ( - + 36 ) * + - 36 + + - 6 - + 23 * - + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 - -Expected: ["NULL","NULL"] but got ["1290"] -``` - - -```sql -SELECT + CASE WHEN - COUNT ( * ) BETWEEN 4 * - 25 + - + COUNT ( * ) AND + 83 THEN - 50 END AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - CASE 38 WHEN - - 96 THEN + + 83 + - ( + + 77 ) + - - 43 END + + + 30 AS col1, 78 * + + 95 * - COUNT ( * ) * + 25 + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","-185250"] -``` - - -```sql -SELECT ALL + 52 * NULLIF ( - 20, ( CAST ( 26 AS INTEGER ) ) ) + - 43 - - 56 / - + 76 * + - CAST ( - + COUNT ( * ) AS INTEGER ) / COUNT ( DISTINCT 30 ) AS col0 - -Expected: ["-1083"] but got ["NULL"] -``` - - -```sql -SELECT - 9 + + 93 AS col2, CASE + 65 WHEN + 25 THEN + + 72 END * 44 + 17 * + 87 AS col2 - -Expected: ["84","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,061 failed -* 79% was OK - -Time: 41492.488ms - ----- ---- ---- ---- ---- ---- ---- -### 362/620 [`./test/random/expr/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_102.test) - -_Mimic sqlite_ - -```sql -SELECT + 84 / + 27 + + - 92 - - CAST ( + 86 AS INTEGER ) * + - 7 + 5 + - 53 + 63 * CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL"] but got ["-738.889"] -``` - - -```sql -SELECT + - 34 / - + 63 AS col2 - -Expected: ["0"] but got ["0.540"] -``` - - -```sql -SELECT ALL - 85 - CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * + 22 AS col1 - -g is not defined -``` - - -```sql -SELECT + CASE WHEN NOT CASE - 42 WHEN 25 - - + CAST ( NULL AS INTEGER ) THEN + + 61 + 87 END BETWEEN 37 AND - - COUNT ( * ) THEN + 37 END + - 0 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 0 + 95 + - ( 84 ) + + 38 / 64 * + - NULLIF ( - 12, - + 24 * - 85 ) AS col0, CASE - + 42 WHEN - ( - 38 ) THEN + 97 * + 23 END - -Expected: ["11","NULL"] but got ["18.125","NULL"] -``` - - -```sql -SELECT NULLIF ( + 33, 35 * - - 84 ) * COALESCE ( + COUNT ( * ), MAX ( ALL 17 ) * + 18, - 9 * - SUM ( DISTINCT - 17 ) ) / - CAST ( COUNT ( * ) AS INTEGER ), - 2 AS col0 - -Expected: ["-33","-2"] but got ["NULL","-2"] -``` - - -```sql -SELECT ALL 28 * + - 0 / + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT 13 * NULLIF ( + - 16, + 36 - - - COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 90 + 35 AS col2, + NULLIF ( - CASE - ( + 82 ) WHEN 48 * + - 16 * - 53 * + SUM ( ALL + 75 ) THEN NULL ELSE + SUM ( DISTINCT ( - + CAST ( NULL AS INTEGER ) ) ) END, + - CAST ( 10 AS INTEGER ) ) + - … - -Expected: ["NULL","NULL"] but got ["-263","52"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,190 failed -* 78% was OK - -Time: 49804.077ms - ----- ---- ---- ---- ---- ---- ---- -### 363/620 [`./test/random/expr/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_103.test) - -_Mimic sqlite_ - -```sql -SELECT - COUNT ( * ) * + - ( + 52 ) / + 77 + - 99 + ( - - NULLIF ( 86, + + COALESCE ( + - 84, - 91, + 76, - 48 ) ) ) - 79 * COALESCE ( MAX ( DISTINCT 26 ) + 36, - COUNT ( * ), 36 * 86 ) + 10 AS col2 - -Expected: ["-4901"] but got ["-4900.325"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col1, 28 * - 22 - -Expected: ["NULL","-616"] but got ["0","-616"] -``` - - -```sql -SELECT 80 * - CAST ( - COUNT ( * ) AS INTEGER ) + - 59 + - ( + 15 ) col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + - CASE - + 86 WHEN - NULLIF ( - 75, - 4 + - COUNT ( * ) * 26 * + 43 / - COUNT ( * ) + - + 26 - - 82 ) THEN - + ( 49 ) * 6 END AS col0, + SUM ( ALL - + 60 ) * + 25 + 82 * CAST ( 65 * + 26 + - MAX ( ALL 24 ) AS INTEGER ) AS col1 - -Expected: ["NULL","135112"] but got ["NULL","-1500"] -``` - - -```sql -SELECT - 2 AS col2, + SUM ( ( + - CAST ( NULL AS REAL ) ) ) * 38 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT ( - COUNT ( * ) ) / - CAST ( + COUNT ( * ) AS INTEGER ) + 6 - -Expected: ["7"] but got ["NULL"] -``` - - -```sql -SELECT ALL 76 + - 52 AS col0, - CASE WHEN 36 NOT BETWEEN - + SUM ( - 71 ) - 64 * - 79 AND NULL THEN 42 WHEN ( NULL NOT BETWEEN - MIN ( + + 42 ) - 85 - - CAST ( NULL AS INTEGER ) AND NULL ) THEN - 10 END * - - 69 + + 90 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 57 * - CAST ( NULL AS INTEGER ) * 40 + - COALESCE ( 25, + - 8 ), - COUNT ( * ) * AVG ( - - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["-25","0"] -``` - - -```sql -SELECT ALL 35 / 8 * + + ( + 75 ) - -Expected: ["300"] but got ["328.125"] -``` - - -```sql -SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1, CASE + 90 WHEN + 34 THEN + - 77 ELSE NULL END / + COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,064 failed -* 79% was OK - -Time: 34394.847ms - ----- ---- ---- ---- ---- ---- ---- -### 364/620 [`./test/random/expr/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_104.test) - -_Mimic sqlite_ - -```sql -SELECT 83 + + - CAST ( - COALESCE ( 63, + AVG ( + 86 ) * - 86 / - - 48 ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT COUNT ( * ) * - + COUNT ( * ) AS col1, CAST ( NULL AS REAL ) col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL COALESCE ( - + ( + + 67 ), - 64 * + MAX ( 70 ) + - - 91 ) + + CAST ( NULL AS INTEGER ) * - CAST ( 52 AS INTEGER ) + 40 - -Expected: ["NULL"] but got ["-27"] -``` - - -```sql -SELECT 7 AS col2, - 33 - + 72 * + - 74 + - - 63 AS col2 - -Expected: ["7","5358"] but got ["5358","5358"] -``` - - -```sql -SELECT ALL - 81 AS col2, CASE + ( + 92 ) WHEN + 59 THEN + 79 * - 18 / + 24 + - 76 - + 10 ELSE NULL END * CAST ( - 81 AS INTEGER ) AS col2 - -Expected: ["-81","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + ( - 56 ) / NULLIF ( - CAST ( NULL AS INTEGER ), - 61 ) AS col0, 20 + - COUNT ( * ) AS col0, - + 94 * - NULLIF ( 39, + 26 ) / - 55 + CAST ( NULL AS INTEGER ) - + 48 - -Expected: ["NULL","19","NULL"] but got ["19","-114.655"] -``` - - -```sql -SELECT DISTINCT - - 4 col1, + COUNT ( * ) + - 18 - + 61 / - CAST ( + 93 AS INTEGER ) + - - 28 + 33 / + + ( + CASE 97 WHEN + ( - - 68 ) + - 9 THEN + 17 ELSE NULL END ) AS col1 - -Expected: ["4","NULL"] but got ["NULL"] -``` - - -```sql -SELECT CASE WHEN NOT NULL > 46 THEN - 60 WHEN - 9 NOT BETWEEN + 67 AND NULL THEN + 43 / - ( 55 ) + + 67 * - NULLIF ( - 10 * + 54, COUNT ( * ) ) END - - COUNT ( * ) * 50 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - 53 * + - ( - ( + + 3 ) ) / CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( * ) - -Expected: ["-158"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 72 + + - 9 col2, + CASE - + 13 WHEN + 67 + + - 10 THEN + 48 ELSE NULL END + 43 - CAST ( NULL AS INTEGER ) * 37 * + 53 AS col0 - -Expected: ["NULL","NULL"] but got ["-9","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,069 failed -* 79% was OK - -Time: 31386.907ms - ----- ---- ---- ---- ---- ---- ---- -### 365/620 [`./test/random/expr/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_105.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 15 + - + ( - CAST ( NULL AS INTEGER ) ) AS col2, - 16 / 74 - -Expected: ["NULL","0"] but got ["15","-0.216"] -``` - - -```sql -SELECT - 10 / - - 54 + + - ( - 15 ) - -Expected: ["15"] but got ["14.815"] -``` - - -```sql -SELECT DISTINCT + - 72 AS col1, - CAST ( + - COUNT ( * ) AS INTEGER ) + + 53 * - 3 - -g is not defined -``` - - -```sql -SELECT + 17 - + - 0 * - 58 * + - CAST ( NULL AS REAL ) / 17 + + 25 AS col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 44 + + 16 * + + CASE 32 WHEN - ( + COUNT ( * ) ) + 8 THEN NULL WHEN + 54 * - 22 - - 36 + - COUNT ( * ) + - 9 * - 58 + + 17 * - - 10 * 22 * - - NULLIF ( - 94, - - 10 ) THEN 33 * - + 79 END + + CASE WHEN NOT - 79 < NULL OR ( NULL ) NOT BETWEEN NULL AND + 19 THEN - ( ( 96 ) ) ELSE 99 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ( - CASE - - SUM ( ALL + 26 ) WHEN - - 75 - + 32 THEN - + 58 WHEN - 87 THEN + 87 * 64 WHEN COUNT ( * ) THEN NULL ELSE NULL END ) + CAST ( - 58 AS INTEGER ) AS col1, 38 - -Expected: ["NULL","38"] but got ["38","NULL"] -``` - - -```sql -SELECT ALL + 63 * + + AVG ( ALL CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) + - 73 AS col0 - -Expected: ["NULL","NULL"] but got ["0","-73"] -``` - - -```sql -SELECT + COUNT ( * ) / + CAST ( + AVG ( 90 ) AS INTEGER ) * - SUM ( - + 6 ) AS col0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL 75 col1, + CASE + - 5 WHEN + - 2 THEN + 19 / - 61 ELSE NULL END + - 1 AS col1, + MIN ( DISTINCT - 43 ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 - -Expected: ["75","NULL","NULL"] but got ["NULL","-43"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,007 failed -* 79% was OK - -Time: 34899.796ms - ----- ---- ---- ---- ---- ---- ---- -### 366/620 [`./test/random/expr/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_106.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 37 + + + CAST ( NULL AS INTEGER ) * + MIN ( ALL NULLIF ( - - 23, - 7 ) ) * 18 AS col0 - -Expected: ["NULL"] but got ["37"] -``` - - -```sql -SELECT + 54 * - 79 + 85 * - 47 AS col0, - COUNT ( * ) + + 80 col0 - -Expected: ["-8261","79"] but got ["79"] -``` - - -```sql -SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + - 23 * + 67 AS col0 - -g is not defined -``` - - -```sql -SELECT + 80 + - - CASE - 70 WHEN - 92 THEN + - 29 * 17 + - 59 / - 54 + - CASE WHEN NOT + 8 BETWEEN NULL AND 39 / - MAX ( ALL + 45 ) THEN 37 * + 18 * + 37 ELSE NULL END ELSE NULL END, 76 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - + NULLIF ( - - 48, NULLIF ( + COUNT ( * ), COUNT ( * ) + + 84 + + 59 + - CAST ( NULL AS INTEGER ) + 76 * + 85 + - - CASE + + NULLIF ( + COUNT ( * ), - ( - COUNT ( * ) ) * + CASE + 99 WHEN - + COUNT ( * ) THEN - 26 * CASE - NULLIF ( - + 23, COALESCE ( - 11, COALESCE ( ( - - 75 ), + 43, + - … - -Wrong conversion type -``` - - -```sql -SELECT + - CASE WHEN NOT NULL > NULL THEN NULL ELSE - 63 END AS col2 - -Expected: ["63"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col0, CASE ( - 10 ) WHEN - COALESCE ( + - COALESCE ( + COUNT ( * ), + - 0 ), ( 33 ) * + 25 + 41 + NULLIF ( + 99, + - 52 + + 68 ) ) THEN + - COALESCE ( - + 59, COUNT ( ALL + + 41 ) * COUNT ( 28 ), - 52 + 71 ) * - 2 END / + 87 AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT DISTINCT + CASE + 24 WHEN - COUNT ( * ) * + 20 * 5 * + 24 * + 16 THEN NULL WHEN + - 44 + - 33 THEN + 94 * + 64 * 84 ELSE NULL END, + 2 * - 80 / - 64 AS col1 - -Expected: ["NULL","2"] but got ["NULL","2.500"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 39 + ( SUM ( ALL + + 30 ) ) / + 37, + MAX ( - - CAST ( NULL AS INTEGER ) ) * - 73 - 92 + - 78 - -Expected: ["NULL","NULL"] but got ["0.811","-170"] -``` - - -```sql -SELECT ALL + 86 AS col2, - 72 + + CASE - + 43 WHEN - 44 THEN NULL WHEN + 15 * 85 + + ( - ( - 33 ) ) THEN + ( 60 ) END * + + 43 AS col2 - -Expected: ["86","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,066 failed -* 79% was OK - -Time: 57801.897ms - ----- ---- ---- ---- ---- ---- ---- -### 367/620 [`./test/random/expr/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_107.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 72 / 98 * - 98 / + 78 / - 57 AS col0 - -Expected: ["0"] but got ["-52.615"] -``` - - -```sql -SELECT COUNT ( * ) * COALESCE ( - COALESCE ( - 92, - 98 * COUNT ( * ) * + 48 / 65 * + COUNT ( * ) / - 81 * + 92 ), COUNT ( * ) ) * - 2 * - + 17 * COUNT ( * ) + - AVG ( + 92 ) / + + SUM ( ALL 84 ) - + 91 - + CAST ( NULL AS INTEGER ) + + 88 + - ( - - 54 ) * 74 * + 69 * 55 * + 70 / + AVG ( ALL 8 ) + -… - -Expected: ["NULL"] but got ["-132688968.095"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) * - + 48 + - 33 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + 57 * - 52 * - 40 / + CAST ( + COUNT ( * ) AS INTEGER ) - + COUNT ( * ) AS col2 - -Expected: ["118559"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 19 / - 40 * + COUNT ( * ) AS col1, 95 / + CASE + - COUNT ( * ) WHEN + 25 THEN NULL WHEN + 25 + + - 27 THEN + 46 END AS col0 - -Expected: ["0","NULL"] but got ["0.475","NULL"] -``` - - -```sql -SELECT CAST ( COUNT ( * ) AS INTEGER ) + - 6 - -g is not defined -``` - - -```sql -SELECT - CASE WHEN NOT ( 94 ) BETWEEN ( NULL ) AND AVG ( 22 ) THEN COUNT ( * ) ELSE 28 * - 6 END + + COUNT ( 84 ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT 56 col0, CASE - ( 53 ) WHEN - 5 THEN ( 25 ) / - + 51 END col0 - -Expected: ["56","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - CASE + 51 WHEN + 29 * - + 38 / + 41 THEN - - ( + 8 ) END, CAST ( NULL AS INTEGER ) * + + 19 * - COUNT ( * ) * + 18 * + + ( 60 ) AS col1 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,081 failed -* 79% was OK - -Time: 45887.679ms - ----- ---- ---- ---- ---- ---- ---- -### 368/620 [`./test/random/expr/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_108.test) - -_Mimic sqlite_ - -```sql -SELECT + COALESCE ( + + COUNT ( * ), + COUNT ( * ) * COUNT ( * ) * - + CASE 51 WHEN - 2 + 53 THEN NULL WHEN 54 / + 88 THEN + 93 * - - 96 * 31 * - 23 ELSE + - 7 + + + CAST ( NULL AS INTEGER ) / + + 2 END ) / - 4 AS col0 - -Expected: ["0"] but got ["-0.250"] -``` - - -```sql -SELECT - 43 / + - 11 * CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), 98 ) AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( + NULLIF ( - 35, + AVG ( DISTINCT 75 ) ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - 91 + 37 AS col2, + CASE - 5 WHEN + + 63 THEN NULL WHEN - - MAX ( DISTINCT + + 7 ) THEN - COALESCE ( + - 46, - - 68 ) * + ( + NULLIF ( MIN ( 67 ), + - 51 ) ) END + 57 - -Expected: ["NULL","NULL"] but got ["37","NULL"] -``` - - -```sql -SELECT MIN ( - 39 ) AS col1, + CASE + 69 WHEN 14 + + + 25 THEN + ( COUNT ( * ) ) WHEN - - 33 THEN + SUM ( + - 74 ) END AS col1 - -Expected: ["-39","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 20 + + NULLIF ( + 37, + 37 + + NULLIF ( - 24, 2 + + ( 23 ) * + 16 ) * CAST ( NULL AS INTEGER ) ) - -Expected: ["57"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + - 62 + + 57 col1, - 11 + ( - CASE 76 WHEN - ( - 99 ) + + 72 THEN 21 * 40 ELSE NULL END ) * 24 AS col1 - -Expected: ["-5","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL + 97 - + 8 + + 67 + - CAST ( NULL AS INTEGER ), ( 57 ) + 1 + - CAST ( NULL AS INTEGER ) + + 45 - -Expected: ["NULL","NULL"] but got ["156","103"] -``` - - -```sql -SELECT + - ( - + MAX ( - - 88 ) ) + + CASE WHEN - 21 NOT BETWEEN ( NULL ) AND + 8 / + 42 / + 21 - - + 46 THEN 31 END + + - 38 + + 63 + 30 + ( ( - 84 ) + - SUM ( 35 ) * 22 ) * ( 97 ) * - NULLIF ( + ( - 83 ) * SUM ( DISTINCT 29 + 33 ) + + 0 * - 74, + 28 ) AS col1 - -Cannot read property 'toString' of undefined -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,030 failed -* 79% was OK - -Time: 49891.188ms - ----- ---- ---- ---- ---- ---- ---- -### 369/620 [`./test/random/expr/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_109.test) - -_Mimic sqlite_ - -```sql -SELECT + - CAST ( + - 69 AS REAL ) - + CAST ( NULL AS INTEGER ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 16 * + 36 + + + CAST ( NULL AS INTEGER ) / + 73 * + - 97 + 57 AS col0 - -Expected: ["NULL"] but got ["-519"] -``` - - -```sql -SELECT - 82 * - 57 - 88 / + COALESCE ( - + 96, + 22 ) AS col0 - -Expected: ["4674"] but got ["4674.917"] -``` - - -```sql -SELECT 9 * 82 - - + CAST ( + + COALESCE ( 48, + MAX ( ALL - - 35 ) + + 29 ) AS INTEGER ) + - 85 + - 43 AS col2, CAST ( NULL AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - AVG ( DISTINCT - 44 ) + CAST ( NULL AS INTEGER ) + + 24 + - 21 * COALESCE ( + 65, + 81, - CAST ( - - 95 AS INTEGER ) + MAX ( DISTINCT + 95 ) * + 74 * + 67 ) + - 2 AS col1, - CAST ( NULL AS INTEGER ) * - - 27 - -Expected: ["NULL","NULL"] but got ["-1299","0"] -``` - - -```sql -SELECT 84 + + NULLIF ( - CASE + - 45 WHEN + + COUNT ( * ) / - COUNT ( * ) THEN - 31 ELSE NULL END, 86 * 32 ) * - 7 * - 13 AS col1, + 71 + CASE + 48 WHEN + 79 THEN + + COALESCE ( - 5, - + COUNT ( * ) + + 58 ) / - COALESCE ( COUNT ( * ), + ( + - 33 ) - - - 32 - + + COUNT ( * ) - + + COUNT ( * ) + - 8… - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT NULLIF ( + 6, - COUNT ( * ) ) * - + 82 * + ( + + CASE + COUNT ( * ) WHEN - 18 / 37 THEN - 24 WHEN + 72 * - 70 * - - 4 * 26 + + 8 + ( - ( + + 54 ) ) THEN + 90 ELSE NULL END ) + + ( 77 ) AS col1, 73 - -Expected: ["NULL","73"] but got ["73","NULL"] -``` - - -```sql -SELECT - - CASE WHEN NULL NOT BETWEEN ( CASE - - 32 WHEN + COUNT ( 9 ) THEN + 48 WHEN - COUNT ( * ) * - 61 THEN NULL END ) AND ( - MIN ( 85 ) ) THEN 25 + ( - 45 + 61 / 16 ) ELSE - 37 * - 21 END + 28 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 40 / 5 / + - CASE WHEN NOT 45 <= NULL THEN NULL ELSE + 5 END - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT 27 AS col0, + 18 / - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["27","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,863 failed -* 81% was OK - -Time: 30920.069ms - ----- ---- ---- ---- ---- ---- ---- -### 370/620 [`./test/random/expr/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_11.test) - -_Mimic sqlite_ - -```sql -SELECT - 70 + - + COUNT ( * ) / - - 88 * 27 - -Expected: ["-70"] but got ["-70.000"] -``` - - -```sql -SELECT ALL - ( + + 47 ) + + CAST ( - COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT - + 63 + + CASE + CAST ( - 31 AS REAL ) WHEN - 92 / COALESCE ( + - COUNT ( * ), + + COALESCE ( - - 51, ( - + 59 ) ) + 19, + CAST ( NULL AS INTEGER ) ) * - - 54 THEN + COUNT ( * ) * + 30 * 92 * - + 95 + - - 4 END + 90 AS col1 - -Wrong conversion type -``` - - -```sql -SELECT - 58 col0, CAST ( NULL AS INTEGER ) / - 52 AS col0 - -Expected: ["-58","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + NULLIF ( + 76, - + 92 + - CASE + 82 WHEN 8 THEN 6 + 2 END * + ( - 74 ) + CASE WHEN NOT ( NULL ) NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND - COUNT ( * ) / + 24 THEN NULL WHEN 48 * 88 / - + 64 BETWEEN ( 64 ) AND ( - CASE + 30 WHEN 66 THEN NULL ELSE 19 + 67 / - 70 END ) THEN ( - 96 ) ELSE … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - - CASE + - 99 WHEN - 12 * 40 THEN NULL WHEN + 40 * COUNT ( * ) + - 19 - - CAST ( NULL AS INTEGER ) * 78 + + 11 THEN + 70 * - + 64 WHEN 66 THEN NULL ELSE NULL END + + 31 AS col0, 41 - -Expected: ["NULL","41"] but got ["41","NULL"] -``` - - -```sql -SELECT ALL + 61 * + ( - + CAST ( NULL AS INTEGER ) ) * + MAX ( 92 ) AS col0, 26 + + - CASE - 28 WHEN 32 THEN NULL WHEN + 84 + COALESCE ( 73, NULLIF ( - 3, COUNT ( * ) ), + NULLIF ( + + CAST ( NULL AS INTEGER ), + + 40 ) ) - + 65 / + 48 * 30 THEN + 91 * + + 12 / - 63 + - 74 ELSE NULL END + + + 74 AS… - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 1 + 60 - + CAST ( + - 29 AS INTEGER ) / - SUM ( ALL - 36 ) - + 21 * + + CAST ( - 82 AS INTEGER ) + + 8 * - CASE WHEN NULL NOT IN ( - 46, + 75 * NULLIF ( - 16, CAST ( NULL AS INTEGER ) ) + + 4 ) THEN NULL ELSE + + 51 END, - 73 col0 - -Expected: ["1375","-73"] but got ["NULL","-73"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + 63 + 78 col2, NULLIF ( CASE + CAST ( NULL AS INTEGER ) WHEN - - 55 + - 45 THEN NULL WHEN CAST ( COALESCE ( - 21, 52, + 95 ) AS INTEGER ) THEN NULL WHEN ( - - 57 ) - + 95 THEN CAST ( NULL AS INTEGER ) * 9 END, - + 66 ) col2 - -Expected: ["141","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,096 failed -* 79% was OK - -Time: 31594.582ms - ----- ---- ---- ---- ---- ---- ---- -### 371/620 [`./test/random/expr/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_110.test) - -_Mimic sqlite_ - -```sql -SELECT - COUNT ( * ) * + COALESCE ( - - 1, 75 ) * ( + CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL 88 / + 17 - -Expected: ["5"] but got ["5.176"] -``` - - -```sql -SELECT - CAST ( + - COALESCE ( - 15, + COUNT ( + + 58 ), - 58 + + ( 60 ) * 56, + SUM ( - 24 ) + - 42 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT + NULLIF ( ( - - 31 ), + + 84 ) / + - COUNT ( ALL CAST ( + 80 AS REAL ) ) + COALESCE ( - 5, - 56 ) - -Wrong conversion type -``` - - -```sql -SELECT ALL 50 AS col1, CASE + COUNT ( - 54 ) WHEN + - 47 THEN NULL WHEN - - 65 / - - 24 - 93 THEN 87 * - 61 WHEN + 77 THEN + 99 WHEN - 21 THEN NULL END AS col1 - -Expected: ["50","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 49 * + CASE WHEN NOT NULL BETWEEN + 62 AND + + 89 * ( - - 65 ) * 31 THEN - + 34 * - 46 / - - MIN ( ALL - 57 ) ELSE - + 81 * + - MIN ( - 90 ) + - 38 * + 98 + - 78 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + + COUNT ( DISTINCT - 76 ) * + CASE WHEN ( NULL ) NOT IN ( 95 ) THEN NULL WHEN NOT + 40 >= + 4 * 29 THEN + COUNT ( * ) - + ( 90 ) * - 46 ELSE NULL END AS col2 - -Expected: ["4141"] but got ["NULL"] -``` - - -```sql -SELECT 96 * CAST ( NULL AS INTEGER ), - COUNT ( * ) / CASE NULLIF ( + 95, - + 77 * + - 38 ) WHEN - 82 / - 26 / + + 17 THEN + 27 - + CAST ( NULL AS INTEGER ) WHEN 79 / + 70 THEN NULL ELSE NULL END * 2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 14 AS col0, + 0 + ( + + 14 ) + - 18 - - CASE - 2 WHEN - - 6 THEN NULL ELSE 47 END + 54 * + 26 * - 34 + + - 91 / + + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["14","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - AVG ( ALL CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) * + - 56 + 39 - -Expected: ["NULL","NULL"] but got ["0","39"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,056 failed -* 79% was OK - -Time: 40909.677ms - ----- ---- ---- ---- ---- ---- ---- -### 372/620 [`./test/random/expr/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_111.test) - -_Mimic sqlite_ - -```sql -SELECT - - 34 * + 25 * + MIN ( + 24 ) + - 42 / + 33 + + 39 * 52 / 44 + + + MIN ( + 2 ) + 29 * 4 - -Expected: ["20563"] but got ["20562.818"] -``` - - -```sql -SELECT 97 * + CASE WHEN NOT + 48 NOT IN ( 82 * CAST ( NULL AS INTEGER ) ) THEN - ( + 84 ) + + 46 * + + 28 WHEN 30 * - 10 IS NOT NULL THEN NULL END * 71 + ( - 92 ) - -Expected: ["NULL"] but got ["8291856"] -``` - - -```sql -SELECT CAST ( - CASE + - COUNT ( * ) WHEN 53 THEN - - MAX ( DISTINCT - + 59 ) * - COUNT ( - + 9 ) * - + 8 - CAST ( + - 6 AS INTEGER ) + - 32 ELSE 98 END AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) / - COALESCE ( 93, - + 30 * - 79 * - + ( - - 96 ) + + MAX ( 60 ), - MIN ( ALL - 28 ) + - NULLIF ( CAST ( NULL AS REAL ), - CASE + 56 WHEN ( + 22 ) * + 50 THEN NULL WHEN COUNT ( * ) THEN + 50 * + CASE - 54 WHEN + COUNT ( * ) + + 33 THEN + 48 WHEN + 40 THEN - 51 WH… - -Wrong conversion type -``` - - -```sql -SELECT - 72 * + 79 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) - 63, CASE + COUNT ( * ) WHEN + 4 THEN - 79 ELSE NULL END AS col1 - -Expected: ["NULL","NULL"] but got ["-63","NULL"] -``` - - -```sql -SELECT CASE WHEN NOT ( 84 ) BETWEEN - 57 + - 87 / - 1 AND + - 83 + - 25 THEN - 58 * + 42 - + 76 + - + 97 ELSE - 52 END + + - ( + - 61 ) * + 75 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 49 / 87, CAST ( NULL AS INTEGER ) + 22 + + - 81 + + CASE + ( 56 ) WHEN 0 + 30 THEN 58 * CAST ( NULL AS REAL ) ELSE NULL END * - 38 AS col2 - -Expected: ["0","NULL"] but got ["0.563","NULL"] -``` - - -```sql -SELECT - - ( + CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - + CAST ( 63 AS INTEGER ) * + - CASE - SUM ( + 1 ) WHEN + - COUNT ( * ) - 0 + - ( ( + COUNT ( + 9 ) ) ) / + SUM ( - 33 ) * + - 71 * - + 62 THEN + + 97 * COUNT ( * ) - + COUNT ( * ) WHEN + + 73 THEN + - 61 * + + 47 + - 72 ELSE NULL END + 57 + + - 55 AS col2 - -Expected: ["6050"] but got ["NULL"] -``` - - -```sql -SELECT + 99 AS col0, CASE - 92 WHEN - 82 THEN 58 END AS col0 - -Expected: ["99","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,043 failed -* 79% was OK - -Time: 36746.786ms - ----- ---- ---- ---- ---- ---- ---- -### 373/620 [`./test/random/expr/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_112.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 21 / + 50 + MAX ( ALL + 72 ) * - 78 + - NULLIF ( + 12, + 38 - + COUNT ( ALL 79 ) ) AS col0 - -Expected: ["-5628"] but got ["-5627.580"] -``` - - -```sql -SELECT ( - ( + - CAST ( NULL AS INTEGER ) ) ) * + 37 AS col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 5 + - 63 + + 83 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT CASE - COUNT ( * ) WHEN + + 13 + - - 83 THEN + + 30 END * - - CAST ( NULL AS REAL ) * + + 1 / 62 * 76 - -Wrong conversion type -``` - - -```sql -SELECT 26 col0, ( + 16 ) + - 57 * + CASE + 7 WHEN + 8 * + 74 * - 86 THEN - CASE + - COUNT ( * ) WHEN + - 40 * - 68 THEN + - 7 + 96 ELSE NULL END * - - 57 END AS col0 - -Expected: ["26","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 24 + - 23 / + CAST ( - SUM ( DISTINCT + - CAST ( + + 32 AS REAL ) ) AS INTEGER ) * - - 47 + - COUNT ( * ) AS col0 - -Expected: ["23"] but got ["NULL"] -``` - - -```sql -SELECT ALL CASE - 30 WHEN CAST ( - 12 AS INTEGER ) * + - 91 THEN - 44 / 28 + + ( - + 84 ) END AS col0, - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), - 38 + + + 6 + + 8 * - 22 * + 98 + + - CAST ( - CASE WHEN ( NULL ) BETWEEN + 71 AND NULL THEN + - 6 * - + 28 + 95 WHEN 26 IN ( + + 5, - 61, - 46, 76, + COUNT ( * ) * - - 91 ) THEN + 72 + + 3 END AS INTEGER ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + + 2 * + 67 * + COUNT ( * ), CAST ( NULL AS INTEGER ) + - + 4 + + CAST ( NULL AS INTEGER ) + 46 AS col2 - -Expected: ["NULL","NULL"] but got ["134","42"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,093 failed -* 79% was OK - -Time: 45000.868ms - ----- ---- ---- ---- ---- ---- ---- -### 374/620 [`./test/random/expr/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_113.test) - -_Mimic sqlite_ - -```sql -SELECT ( + CAST ( NULL AS REAL ) ), + ( - - 9 ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 10 * + 14 / - - CASE - - 27 WHEN + 26 + + 13 THEN NULL ELSE - - 0 + 99 * + 26 END - -Expected: ["0"] but got ["0.054"] -``` - - -```sql -SELECT + + ( - CAST ( NULL AS INTEGER ) ) + + 53 - -Expected: ["NULL"] but got ["53"] -``` - - -```sql -SELECT ALL + 3 * CAST ( + AVG ( DISTINCT 84 ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - - CASE + 88 WHEN + 7 / 22 THEN + - 35 * - MAX ( DISTINCT - CASE + 68 WHEN + + 62 / 57 THEN - 35 * + 62 END ) ELSE NULL END * - ( - - ( - 49 ) ) * 24 + - - 92 AS col2, + COUNT ( * ) / + 38 AS col1 - -Expected: ["NULL","0"] but got ["NULL","0.026"] -``` - - -```sql -SELECT ALL - CASE + CAST ( + CASE 22 WHEN + COUNT ( ALL - 14 ) THEN COUNT ( * ) END AS INTEGER ) WHEN 27 THEN SUM ( - CAST ( 4 AS INTEGER ) ) ELSE 88 + 29 END / CASE WHEN ( 31 / 40 ) < + 12 THEN NULL WHEN NULL NOT BETWEEN 0 * - 91 + - 5 AND COUNT ( * ) THEN MIN ( ALL + 20 ) ELSE AVG ( ALL 63 ) END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + 62 * - - 10 - - ( CAST ( + + ( 96 ) AS INTEGER ) ) + - 47 / + 76 AS col0, + NULLIF ( COUNT ( * ), - + 38 * + - 19 ) / - CAST ( + COUNT ( * ) AS INTEGER ) + - COALESCE ( + 45, - - 76, 36 + - 66 ) - -Expected: ["716","-46"] but got ["715.382","NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col1, CASE - 78 WHEN + + 51 + + 64 + - + ( + - 32 ) THEN - 67 END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * + 43 * + 9 * 24 + + ( 78 ) AS col2, - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0 - -Expected: ["NULL","NULL"] but got ["78","0"] -``` - - -```sql -SELECT ALL 66 col2, 54 * - CASE - - 57 WHEN - 29 THEN NULL WHEN - + 75 THEN 50 - CASE NULLIF ( - + 5, NULLIF ( - 17, 23 ) ) WHEN - 41 THEN NULL WHEN + 81 * + 53 THEN + + NULLIF ( - 15, - + 17 ) * - - 92 END END AS col2 - -Expected: ["66","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,035 failed -* 79% was OK - -Time: 71494.802ms - ----- ---- ---- ---- ---- ---- ---- -### 375/620 [`./test/random/expr/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_114.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - 48 * + 81 - - 56 * 28 - + CAST ( NULL AS INTEGER ), + 94 AS col1 - -Expected: ["NULL","94"] but got ["-2320","94"] -``` - - -```sql -SELECT ALL + ( ( + 87 ) ) AS col1, CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT + 7 / - 92 * - + 38 - -Expected: ["0"] but got ["0.002"] -``` - - -```sql -SELECT DISTINCT COALESCE ( ( - CAST ( - COUNT ( * ) AS INTEGER ) ), + 19, + 85 ) col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT AVG ( - - 39 ) / - CAST ( NULL AS INTEGER ) + 52 + + + COUNT ( * ) * + 61 AS col1, - COUNT ( * ) - - MAX ( + 97 ) + + - 83 / SUM ( + 45 ) - -Expected: ["NULL","95"] but got ["NULL","94.156"] -``` - - -```sql -SELECT ALL - CASE WHEN NOT COALESCE ( 33, 49, - 81, - 10 ) NOT IN ( + 94, - AVG ( DISTINCT 78 ) + - COUNT ( * ) ) THEN NULL ELSE + 12 / - - 20 END * + 63 + - COUNT ( * ) AS col2 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + 97 AS col2, CASE - + 87 WHEN 11 THEN NULL WHEN + 44 + - 24 THEN 12 ELSE NULL END * + 68 col2 - -Expected: ["97","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - 98 * - 51 * - - 34 * + 64 * - CASE WHEN NULL BETWEEN NULL AND NULL THEN NULL ELSE + 23 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + NULLIF ( + 94, + 5 ) * + CAST ( NULL AS INTEGER ) + - 20 + 56 * - ( + ( - MIN ( DISTINCT 85 ) ) ) * - 40 AS col0 - -Expected: ["NULL","NULL"] but got ["-190420"] -``` - - -```sql -SELECT ALL 48 - + NULLIF ( + COUNT ( DISTINCT - 37 ), COUNT ( * ) ) + 67 - - ( + ( - COUNT ( * ) ) ) col2, MAX ( 21 ) + + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","21"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,088 failed -* 79% was OK - -Time: 38060.428ms - ----- ---- ---- ---- ---- ---- ---- -### 376/620 [`./test/random/expr/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_115.test) - -_Mimic sqlite_ - -```sql -SELECT + 98 / + 45 - -Expected: ["2"] but got ["2.178"] -``` - - -```sql -SELECT + + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) * + 37 + + - CAST ( NULL AS INTEGER ) * + + 71 - CAST ( 85 AS INTEGER ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT + 63 * - 53 - + 61 * COALESCE ( - + CAST ( + + 3 AS INTEGER ), + 63 * - 34 - - - AVG ( + 61 ) + - 58 ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 - -Expected: ["NULL"] but got ["-3339"] -``` - - -```sql -SELECT - 92 / - 91 AS col1, - 59 / - SUM ( - 54 ), - 42 - + 17 * CASE + - 63 WHEN + - 45 THEN NULL WHEN + 71 THEN + 3 END AS col0 - -Expected: ["1","-1","NULL"] but got ["1.011","-1.093","NULL"] -``` - - -```sql -SELECT + 7 + NULLIF ( CAST ( + 92 AS INTEGER ), - 24 * CASE 7 WHEN 77 * ( CASE WHEN NULL BETWEEN + 88 AND ( NULL ) THEN + 49 * + CASE 9 / - 39 WHEN + 45 THEN NULL WHEN 17 THEN 22 + 11 END + 5 ELSE + 73 END ) THEN + NULLIF ( 15, 86 ) END ) AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT CAST ( + MIN ( - + 14 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - 17 * - + CAST ( NULL AS INTEGER ) + + MAX ( - + 52 ) + + 63 * 1 AS col0, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["11","0"] -``` - - -```sql -SELECT - ( - + 7 ) - COUNT ( * ) + SUM ( + - 96 ) + - 49 + + + 42 / CASE COUNT ( * ) + 23 / - 92 WHEN + COUNT ( ALL 91 ) THEN + 90 END - -Expected: ["-139"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 33 + 37 + + ( CASE - - 43 WHEN + ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN - + 48 + - 4 WHEN - COUNT ( * ) THEN SUM ( DISTINCT + NULLIF ( - - 29, + 44 * 96 ) ) ELSE CASE 89 WHEN - 43 THEN + 86 WHEN - CAST ( NULL AS INTEGER ) + + 72 THEN… - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,096 failed -* 79% was OK - -Time: 47317.894ms - ----- ---- ---- ---- ---- ---- ---- -### 377/620 [`./test/random/expr/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_116.test) - -_Mimic sqlite_ - -```sql -SELECT 93 * - CASE COUNT ( CAST ( NULL AS REAL ) ) WHEN - 86 / 50 THEN - COUNT ( * ) WHEN - 18 - - 73 THEN NULL WHEN 17 * 31 + - 49 * 1 THEN NULL WHEN 57 THEN - COUNT ( * ) + 74 ELSE + 35 END - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 79 + CAST ( MIN ( ALL + 2 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL + 60 + + 11 * 72 / + ( - 60 ) AS col2 - -Expected: ["47"] but got ["46.800"] -``` - - -```sql -SELECT - - 16 + + - CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["16"] -``` - - -```sql -SELECT 82 AS col1, - 11 * COUNT ( * ) * CASE 29 WHEN + COUNT ( DISTINCT - - 8 ) THEN - 25 ELSE NULL END col1 - -Expected: ["82","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 14 + - 8 + MIN ( + 18 ) + 53 / CAST ( - 92 / - SUM ( 63 ) AS INTEGER ) - -Expected: ["49"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 0 + - COUNT ( * ) * + CASE WHEN NOT ( + 85 ) BETWEEN ( NULL ) AND ( MAX ( DISTINCT - 50 ) * - 30 + 20 ) THEN NULL ELSE - COALESCE ( CAST ( + 6 AS INTEGER ), - 16 ) / 87 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * + 36, CASE 59 WHEN + 9 THEN + + 65 WHEN - 71 + + 87 THEN NULL END + + CASE + 34 WHEN 78 + - 19 THEN - 17 * + 90 ELSE NULL END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,038 failed -* 79% was OK - -Time: 31461.182ms - ----- ---- ---- ---- ---- ---- ---- -### 378/620 [`./test/random/expr/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_117.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + COUNT ( * ) / - - 9 * - 85 + - 93 + - 71 AS col0 - -Expected: ["-164"] but got ["-164.001"] -``` - - -```sql -SELECT 69 * + NULLIF ( - 21, - - 89 ) + - 41 / - - COUNT ( * ) - MIN ( ALL CAST ( NULL AS INTEGER ) ) - + 2 - -Expected: ["NULL"] but got ["-1492"] -``` - - -```sql -SELECT CASE - + 55 WHEN - 17 - + - CAST ( NULL AS REAL ) * - - 0 * - 39 THEN NULL WHEN ( - 53 ) - + CAST ( NULL AS INTEGER ) THEN + - 62 * 34 ELSE ( + 1 ) END * COALESCE ( - 46 * COUNT ( * ), + COUNT ( DISTINCT 97 ) * - COUNT ( * ), 72 * 83, + 22 * + 83 + 2 ) - -Wrong conversion type -``` - - -```sql -SELECT CAST ( - - COUNT ( DISTINCT + 25 ) AS INTEGER ) AS col1 - -g is not defined -``` - - -```sql -SELECT ALL 76 / - 12 AS col2, - 72 * + - CASE - COUNT ( * ) WHEN + 22 THEN - 12 + COALESCE ( + 79, - 40, + 17 * ( 70 ) + - - 8 - + + COALESCE ( + 86, 13 ) - - 9 * + 27 * + 39 / - + CAST ( + NULLIF ( 1, - NULLIF ( - COUNT ( * ), - 7 * + + 31 + + - 33 ) ) AS INTEGER ) + 93 ) WHEN NULLIF ( - 51, 98 * … - -Expected: ["-6","NULL"] but got ["-6.333","NULL"] -``` - - -```sql -SELECT + 23 / - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT 28 ) * - 5 + - - COUNT ( * ) AS col0, - 39 AS col1 - -Expected: ["NULL","NULL","-39"] but got ["NULL","1","-39"] -``` - - -```sql -SELECT CASE WHEN NULL IS NOT NULL THEN + COUNT ( * ) WHEN NOT + COALESCE ( - 58, + 0, COUNT ( * ) ) BETWEEN - 84 AND COUNT ( * ) THEN + 70 ELSE NULL END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) + - 9 + - 77, + 53 * 58 + 35 AS col1 - -Expected: ["-85","3109"] but got ["NULL","3109"] -``` - - -```sql -SELECT DISTINCT + 76 + - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["76","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,964 failed -* 80% was OK - -Time: 32849.834ms - ----- ---- ---- ---- ---- ---- ---- -### 379/620 [`./test/random/expr/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_118.test) - -_Mimic sqlite_ - -```sql -SELECT - - 85 * - + CAST ( NULL AS INTEGER ) + 47 + + 32 AS col2, 89 AS col0 - -Expected: ["NULL","89"] but got ["79","89"] -``` - - -```sql -SELECT ( - + CAST ( + SUM ( - + 37 ) AS INTEGER ) ) - -g is not defined -``` - - -```sql -SELECT DISTINCT - + 68 / - MAX ( 45 ) - -Expected: ["1"] but got ["1.511"] -``` - - -```sql -SELECT 71 / + 45 AS col1, 88 - - - CASE + 88 WHEN 65 + 55 THEN + - 30 ELSE NULL END + 80 / + + 10 - -Expected: ["1","NULL"] but got ["1.578","NULL"] -``` - - -```sql -SELECT 77 + - NULLIF ( + 4, - - NULLIF ( ( + 45 ), - 81 ) ) + - CASE + 52 WHEN + 96 * - ( + 11 ) * + 36 * + 62 * - CAST ( NULL AS REAL ) - + ( - COUNT ( * ) ) * - 36 + 72 * 70 THEN - 6 ELSE NULL END - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col2, CASE COUNT ( * ) WHEN - - COUNT ( * ) * - 90 + + NULLIF ( - COALESCE ( + - 36, + 84 + - 29 + - - 78 * - 8 * - + 64 * - + 26 ), COALESCE ( - 45, 48 * 96 * + MAX ( ALL 21 ) ) ) + + 33 + - ( 38 + 34 ) THEN 82 * 5 WHEN 63 + 51 * 43 THEN NULL END * 18 + - 16 … - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + 6 * CASE WHEN + 19 NOT BETWEEN NULL AND - 6 THEN NULL ELSE - COUNT ( * ) END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 5 / - 54 - -Expected: ["0"] but got ["-0.093"] -``` - - -```sql -SELECT ALL - COUNT ( * ) / + NULLIF ( + CAST ( ( - COUNT ( * ) ) AS INTEGER ), - ( 56 ) * 94 ) AS col1 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT 27 + CAST ( NULL AS INTEGER ) * + COUNT ( * ), CAST ( - - 75 AS INTEGER ) + 48 * CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["27","75"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,093 failed -* 79% was OK - -Time: 45848.549ms - ----- ---- ---- ---- ---- ---- ---- -### 380/620 [`./test/random/expr/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_119.test) - -_Mimic sqlite_ - -```sql -SELECT + 57 / - - ( - ( + + 5 ) ) AS col2 - -Expected: ["-11"] but got ["-11.400"] -``` - - -```sql -SELECT 62 * 42 + - 66 + + 15 * + + CAST ( NULL AS INTEGER ) * 94 * - + 43 + + 91 * + COUNT ( * ) - -Expected: ["NULL"] but got ["2629"] -``` - - -```sql -SELECT 90 + CASE + + 47 WHEN + 41 THEN + COUNT ( * ) * - - NULLIF ( - 68, + SUM ( + 46 ) * + 29 ) WHEN - - NULLIF ( - COUNT ( DISTINCT - 11 ), - 21 ) THEN NULL END AS col2, + 32 * + 32 * + COUNT ( ALL 48 ) * - 16 + + + ( CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["NULL","-16384"] -``` - - -```sql -SELECT - 4 + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL 21 * CAST ( - + COUNT ( * ) AS INTEGER ) + 64 * 29 - -g is not defined -``` - - -```sql -SELECT ALL + 36 + CASE WHEN NOT + 82 = ( NULL ) THEN NULL ELSE + 86 * + COUNT ( - 7 ) + - 29 END * 67 col1 - -Expected: ["3855"] but got ["NULL"] -``` - - -```sql -SELECT + 74 / + - 52 AS col0, COUNT ( * ) * - 81 + - - 37 + 33 * + - 88 + CASE 46 WHEN - 71 THEN + + 18 END - -Expected: ["-1","NULL"] but got ["-1.423","NULL"] -``` - - -```sql -SELECT ALL 42 - - + 98 + + + 64, + 68 - + + CASE WHEN 89 BETWEEN - 80 + 5 AND 21 THEN 74 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + - 74 + 9 AS col0, CASE - 77 WHEN + - 95 THEN NULL WHEN 82 + + + 62 THEN - 13 - - COALESCE ( - 6, + 64 / - CASE + - 66 WHEN 9 + - CAST ( NULL AS INTEGER ) + - 50 * 82 THEN NULL ELSE 62 END, 92 ) END AS col0 - -Expected: ["-65","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 8,938 tests as _sqlite_ - -* 1,838 failed -* 79% was OK - -Time: 32394.964ms - ----- ---- ---- ---- ---- ---- ---- -### 381/620 [`./test/random/expr/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_12.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 80 * - COALESCE ( + - 45, - - COUNT ( * ) + + 62 + - MAX ( - + 32 ) * + 63 + + 55 ), + 37 / - 46 * + - MAX ( ALL - 32 ) * 83 AS col0 - -Expected: ["3600","0"] but got ["3600","-0.000"] -``` - - -```sql -SELECT ALL 72 * - + 52 + - 45 AS col2, CASE + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS REAL ) + 38 THEN - - 42 + - 28 WHEN - 62 * + 41 - - + 24 THEN + CAST ( - - 36 AS INTEGER ) WHEN - 64 * 56 + - MAX ( + 65 ) THEN - SUM ( 80 ) / 24 * COUNT ( * ) + + - 71 + + CASE - - COUNT ( * … - -Wrong conversion type -``` - - -```sql -SELECT + MAX ( DISTINCT - + 82 ) - - 80 - + CAST ( NULL AS INTEGER ), + 78 * - - 86 AS col1 - -Expected: ["NULL","6708"] but got ["-2","6708"] -``` - - -```sql -SELECT + + 74 / - CAST ( + ( + + MIN ( + 96 ) ) AS INTEGER ), 46 AS col0 - -g is not defined -``` - - -```sql -SELECT - - 96 * 11 * + CASE WHEN NOT + 84 NOT BETWEEN 27 / 0 AND COALESCE ( + 61, + AVG ( 81 ) / + 39 + COUNT ( * ) ) THEN - 69 WHEN NULL > ( - 15 ) THEN NULL ELSE NULL END AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 71 - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["-71","0"] -``` - - -```sql -SELECT NULLIF ( 8, 57 ) AS col0, + ( - 79 ) * 88 / - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["8","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL + + 33 * - + MAX ( DISTINCT - 89 ) * CASE + 99 WHEN - 93 THEN + 83 ELSE NULL END + - 11 AS col1, 35 - -Expected: ["NULL","35"] but got ["35","NULL"] -``` - - -```sql -SELECT - CASE - + 61 WHEN - + 3 * - 72 THEN NULL WHEN + 89 THEN + 82 ELSE + 88 END / - COALESCE ( + CAST ( NULL AS INTEGER ), + 63, + 81 ) + MAX ( 27 ) + + - 28 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT CASE + 67 WHEN - 70 * + 89 * + - 73 THEN - 87 END, 8 * + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,133 failed -* 78% was OK - -Time: 31875.794ms - ----- ---- ---- ---- ---- ---- ---- -### 382/620 [`./test/random/expr/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_13.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - ( - + 37 ) AS col1, - CAST ( NULL AS INTEGER ) - -Expected: ["37","NULL"] but got ["37","0"] -``` - - -```sql -SELECT ( + - 6 ) / + - 66 - + - COUNT ( * ) * + 17 - -Expected: ["17"] but got ["17.091"] -``` - - -```sql -SELECT ALL + COUNT ( * ) * + + 25 + 37 + + 81 / 68, CASE + - COUNT ( * ) WHEN - + 26 THEN NULL WHEN + - 56 / 13 + ( 54 ) + 72 + 31 - + - COUNT ( * ) * - 67 * + 0 + - 67 - - 76 * 76 * - 36 THEN - 20 + - + ( + 42 ) - + 67 END col0 - -Expected: ["63","NULL"] but got ["63.191","NULL"] -``` - - -```sql -SELECT + 59 + + + 4 + - + 95 + - + 98 AS col0, 77 + - + CASE WHEN - NULLIF ( + - 74, 92 ) BETWEEN 31 * + 52 * - + 84 + - 50 + - COUNT ( * ) AND - 76 * + 40 - ( + 34 ) THEN - 36 ELSE NULL END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 57 / + + CAST ( NULL AS INTEGER ) / + COALESCE ( - + COUNT ( * ), + + 46 + - CAST ( 57 AS REAL ) ) + + MIN ( - 70 ) AS col1, 79 + + 39 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT ALL - + 39 * - + 30 AS col1, CASE - 9 WHEN + 78 THEN + 39 WHEN - + 68 * ( + - 80 ) THEN + 32 + - - 84 ELSE NULL END col1 - -Expected: ["1170","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT CASE 75 WHEN - - 41 THEN 43 END AS col1, COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) / 87 - -Expected: ["NULL","NULL"] but got ["NULL","1"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - 22 + + 73 AS col0, + 17 + + + MIN ( + - CAST ( NULL AS INTEGER ) ) + + + 10 + + 88 * + 79 AS col2 - -Expected: ["NULL","NULL"] but got ["51","6979"] -``` - - -```sql -SELECT + COUNT ( * ) * + CASE WHEN NOT - COALESCE ( + 30, + ( + 65 ) + - COUNT ( * ) / + 0 + - + 45, + COUNT ( * ) / 80 ) < NULL THEN - 1 WHEN ( NULL ) NOT IN ( 71 ) THEN NULL ELSE - COUNT ( * ) - 85 END + - COUNT ( * ) / CAST ( 76 * COUNT ( * ) - 10 AS INTEGER ) - -Expected: ["-86"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,659 failed -* 83% was OK - -Time: 28421.809ms - ----- ---- ---- ---- ---- ---- ---- -### 383/620 [`./test/random/expr/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_14.test) - -_Mimic sqlite_ - -```sql -SELECT + 4 / SUM ( ALL - 26 ) - -Expected: ["0"] but got ["-0.154"] -``` - - -```sql -SELECT DISTINCT 67 + + 50 + + 0 - CAST ( NULL AS INTEGER ) * COUNT ( * ) - -Expected: ["NULL"] but got ["117"] -``` - - -```sql -SELECT + 71 * - 48 + CAST ( NULL AS REAL ) * + + ( - + COUNT ( * ) ) - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + 54, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL - 74 - + + CAST ( - COUNT ( + 82 ) AS INTEGER ) * - + 80, + ( - + 21 ) AS col2 - -g is not defined -``` - - -```sql -SELECT ALL COALESCE ( + 62, - NULLIF ( + 38, - COALESCE ( - 15, 92 + 11 + - 40, + ( + - CASE + 4 WHEN + 28 / - - COUNT ( * ) * CASE - 94 WHEN - 98 THEN NULL ELSE - 54 END + + 68 * + COUNT ( * ) THEN NULL WHEN CASE - 76 WHEN 91 THEN + 72 END THEN ( 17 ) * + 96 WHEN + 57 THEN NULL END ) * 90 ) + 20 *… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 36 / - 75 col0, - 39 + - - 7 / - 70 * - + CAST ( NULL AS INTEGER ) - -Expected: ["0","NULL"] but got ["-0.480","NULL"] -``` - - -```sql -SELECT - MIN ( DISTINCT 99 ) / - - CAST ( NULL AS INTEGER ) - - + 86 * - MIN ( ALL ( - CAST ( + 93 AS INTEGER ) ) ), 0 * + + 98 + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL - NULLIF ( COALESCE ( + + CAST ( NULL AS INTEGER ), + 20 ), 0 ) AS col1 - -Expected: ["-20"] but got ["NULL"] -``` - - -```sql -SELECT + - 71 AS col2, - 53 / + CAST ( NULL AS INTEGER ) * + + 74 AS col2 - -Expected: ["-71","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,130 failed -* 78% was OK - -Time: 37073.928ms - ----- ---- ---- ---- ---- ---- ---- -### 384/620 [`./test/random/expr/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_15.test) - -_Mimic sqlite_ - -```sql -SELECT - - COUNT ( * ) col0, + 43 AS col0 - -Expected: ["1","43"] but got ["43"] -``` - - -```sql -SELECT COUNT ( * ) + + - AVG ( DISTINCT + - 86 ) * - - 22 + CAST ( NULL AS INTEGER ) - - 86 - -Expected: ["NULL"] but got ["1979"] -``` - - -```sql -SELECT ALL - CASE + CAST ( - - 97 AS INTEGER ) WHEN + 25 * - + CASE - MAX ( DISTINCT + 73 ) WHEN CAST ( 78 AS REAL ) / 10 * - 57 THEN 60 WHEN ( - 27 ) THEN NULL WHEN COUNT ( ( 42 ) ) - - CASE 17 WHEN + 19 * + 31 + 45 THEN - 18 * 44 WHEN COUNT ( * ) * COALESCE ( - 50, 90 ) THEN + 39 ELSE NULL END TH… - -Wrong conversion type -``` - - -```sql -SELECT - CASE WHEN NOT ( NOT + 61 NOT BETWEEN + 95 * + 46 AND - 46 * - - 50 + + - 85 ) THEN - 0 END + - NULLIF ( + - 47, 61 ) + + - 33 * + 48 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 22 * CAST ( + COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT COALESCE ( 83, - 86 + 21 - + + 82 * - 17 ) - + CASE 15 WHEN 46 THEN + COUNT ( * ) * + + 90 + + 74 END + - 20 + + 91 * - 42, + 77 + - MAX ( - ( - + 5 ) ) + - 24 / ( + 57 ) AS col2 - -Expected: ["NULL","72"] but got ["NULL","71.579"] -``` - - -```sql -SELECT 62 / CAST ( + - COUNT ( * ) AS INTEGER ) * - ( + 77 ) + - 7 * COALESCE ( NULLIF ( 11, - 3 * - 53 + + 66 * + COUNT ( * ) ), ( 62 ), 69 ) - -Expected: ["4697"] but got ["NULL"] -``` - - -```sql -SELECT ALL + COALESCE ( + + 74, 36, + 97 ) + - 58 - + 59 + ( - CAST ( NULL AS INTEGER ) ) / - + 69 AS col1, - CASE - NULLIF ( + COALESCE ( - 45, + 48, + ( ( 54 ) ) ), - 71 ) WHEN COUNT ( * ) THEN - 75 WHEN + 70 THEN NULL ELSE NULL END * - 8 - -Expected: ["NULL","NULL"] but got ["-43","NULL"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) * NULLIF ( - 86, - NULLIF ( - 90, + - COUNT ( + 16 ) + COUNT ( * ) * + + 63 * + 30 ) ) AS col1, CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + 38 * + 66 + - ( 97 ) col2, ( + - 1 ) * + CASE - ( ( - 44 ) ) WHEN + 35 + 23 THEN NULL WHEN + 59 / 5 + 93 THEN - 23 END - - 59 AS col2 - -Expected: ["2411","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,139 failed -* 78% was OK - -Time: 27550.392ms - ----- ---- ---- ---- ---- ---- ---- -### 385/620 [`./test/random/expr/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_16.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 9 / - 58 AS col1 - -Expected: ["0"] but got ["-0.155"] -``` - - -```sql -SELECT - 65 + - CAST ( NULL AS INTEGER ) * - 37 / - - 81 - -Expected: ["NULL"] but got ["-65"] -``` - - -```sql -SELECT ALL + CAST ( - - SUM ( + 86 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + CASE 99 WHEN NULLIF ( CAST ( + - 56 AS INTEGER ), + CAST ( 50 AS REAL ) - 91 + + - COALESCE ( - 9, - - 61 / + CAST ( + COUNT ( * ) AS INTEGER ) ) - - 15 ) / + ( + - 70 ) + + - 50 + - COALESCE ( + 68, 87 ) - 39 * - + ( - 71 ) + COUNT ( DISTINCT - 64 ) THEN CAST ( NULL AS INTEGER ) WHEN - + … - -Wrong conversion type -``` - - -```sql -SELECT ALL MIN ( DISTINCT 76 ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, - CAST ( NULL AS INTEGER ) + - 15 AS col2 - -Expected: ["NULL","NULL"] but got ["-15"] -``` - - -```sql -SELECT + - 11 / + 9 AS col1, - CASE + COUNT ( + 73 ) WHEN + + SUM ( + 18 ) * - 21 THEN - 41 END - -Expected: ["-1","NULL"] but got ["-1.222","NULL"] -``` - - -```sql -SELECT - 20 * + 99 - - CASE WHEN + COALESCE ( - 65, - 99, - AVG ( ALL NULLIF ( + + 50, + 42 * + 88 ) ) + - 28 ) BETWEEN - 51 AND ( NULL ) THEN NULL WHEN NOT ( NOT ( NULL < NULL ) ) THEN - 3 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT COUNT ( * ) + - - NULLIF ( + ( + 57 ), 57 + - MAX ( ALL + 96 + + 2 ) * CAST ( NULL AS INTEGER ) ) + + ( - 40 + - 96 * + 59 ) - -Expected: ["-5646"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 81 - - + CASE 21 WHEN 29 THEN + COUNT ( * ) WHEN COUNT ( * ) * - 12 + + 55 THEN NULL ELSE NULL END + + 70 AS col1, - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT 51 AS col0, CASE 87 WHEN - + 70 THEN 78 WHEN - - 15 THEN NULL END AS col0 - -Expected: ["51","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,077 failed -* 79% was OK - -Time: 40467.732ms - ----- ---- ---- ---- ---- ---- ---- -### 386/620 [`./test/random/expr/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_17.test) - -_Mimic sqlite_ - -```sql -SELECT + 91 / 32 / + 15 + CAST ( - - CAST ( + + ( + - 90 ) AS INTEGER ) AS INTEGER ) - -Expected: ["-90"] but got ["-89.810"] -``` - - -```sql -SELECT + 34 / - CAST ( NULL AS REAL ) col1 - -Wrong conversion type -``` - - -```sql -SELECT + + 64 * CAST ( NULL AS INTEGER ) + 87 AS col1 - -Expected: ["NULL"] but got ["87"] -``` - - -```sql -SELECT ALL + 16 - + 93 + - ( + CAST ( NULL AS INTEGER ) ) * 76 + + 62 + + 28 / - 97 * COUNT ( - 3 ) / - + AVG ( + - 45 ) - 77 * - 99 + 96 AS col2, + 37 * + - COALESCE ( NULLIF ( + 26, + 36 ), + 17, + 92 + 29 ), + 3 - ( - 64 ) + CAST ( NULL AS INTEGER ) - 28 + + COUNT ( * ) * + 77 AS col0 - -Expected: ["NULL","-962","NULL"] but got ["7691.010","-962","116"] -``` - - -```sql -SELECT ALL - 67 * CAST ( - CASE + 52 WHEN ( COUNT ( ALL 17 ) ) * COUNT ( * ) THEN + 23 - - 88 ELSE NULL END AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT + COUNT ( * ) AS col0, - COUNT ( * ) * - 88 - + 13 - + COUNT ( * ) + - COUNT ( * ) + 33 / CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 67 * + - 21 * - + COUNT ( * ) / + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 - -Expected: ["-1407"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 14 - + NULLIF ( - CASE WHEN NULL BETWEEN ( NULL ) AND ( + COUNT ( * ) ) THEN NULL ELSE + COALESCE ( + + 41, + - COUNT ( * ) + 99 ) - - - 10 END, + NULLIF ( - - 66, - 73 + + - ( + + CASE - COUNT ( * ) WHEN 26 / 78 - - 45 * 74 THEN 31 * 80 END ) ) * 20 ) + + COUNT ( * ) * + 21 * - 57 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 23 AS col0, + ( - 45 ) * 74 + 90 - + CAST ( 98 AS INTEGER ) + 55 col1, + 52 * - CASE 52 WHEN 86 THEN - COALESCE ( + 45, 48 ) END AS col0 - -Expected: ["23","-3283","NULL"] but got ["NULL","-3283","NULL"] -``` - - -```sql -SELECT + 55 / - 43 - + ( + + 57 ) * + 40 / - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,095 failed -* 79% was OK - -Time: 50255.115ms - ----- ---- ---- ---- ---- ---- ---- -### 387/620 [`./test/random/expr/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_18.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 55 * 70 / 95 AS col1 - -Expected: ["40"] but got ["40.526"] -``` - - -```sql -SELECT + 34 * 92 + + COUNT ( * ) * - 80 col0, - 1 * + - CAST ( NULL AS INTEGER ) - -Expected: ["3048","NULL"] but got ["3048","0"] -``` - - -```sql -SELECT 47 + + CAST ( + 69 - - AVG ( + 51 ) * 14 AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT - 96 * + - CASE - COUNT ( * ) WHEN - 71 * 35 THEN NULL WHEN COUNT ( * ) - - CAST ( NULL AS REAL ) / 86 THEN - 79 - - 73 ELSE 95 END - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CASE WHEN NOT 4 NOT BETWEEN - CASE + 23 WHEN - + CASE + 63 WHEN 13 THEN - + COUNT ( * ) * + COUNT ( ALL - 82 ) + - + 91 ELSE CASE + 97 WHEN ( + - SUM ( ALL - 37 ) ) + + NULLIF ( - 20, 42 - ( ( 79 ) ) * 9 ) * 21 THEN NULL ELSE - 74 - 41 END / + 21 END THEN - COUNT ( * ) ELSE 13 END A… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 27 AS col2, CASE 33 WHEN + 43 THEN NULL WHEN - ( - 21 ) THEN + 7 END * + - NULLIF ( - ( - ( + + COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), - - ( 66 ) ) ) ), 44 + + COALESCE ( + 95, 17 + - 76 ) * - 90 ) * - COUNT ( * ) - 83 * 68 - + CASE - + COUNT ( - ( 86 ) ) WHEN + + COALESCE ( 75, … - -Expected: ["-27","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + 61 * - CAST ( NULL AS INTEGER ) AS col1, CASE - COUNT ( * ) WHEN - 61 + 28 THEN NULL WHEN + COUNT ( * ) * - + 25 * + 85 THEN - + 4 ELSE NULL END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) * + 56 + + 64 * 93 AS col2 - -Expected: ["NULL","NULL"] but got ["0","5952"] -``` - - -```sql -SELECT ALL + 77 AS col0, CASE + 52 WHEN 60 THEN + - CAST ( NULL AS INTEGER ) * ( - 86 ) END AS col0 - -Expected: ["77","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT COUNT ( ALL + 84 ) * 66 / + + CAST ( - MAX ( ALL ( + - ( 55 ) ) ) AS INTEGER ) + 30 - -Expected: ["31"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,118 failed -* 78% was OK - -Time: 29543.055ms - ----- ---- ---- ---- ---- ---- ---- -### 388/620 [`./test/random/expr/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_19.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( + + COUNT ( * ) AS INTEGER ) - + COUNT ( * ) + - 39 * + 90 * - 52 - -Expected: ["182520"] but got ["182519"] -``` - - -```sql -SELECT ALL + 48 - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL"] but got ["48"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) * - - COUNT ( * ) * + 94 - -Wrong conversion type -``` - - -```sql -SELECT - 7 + - 15 * + 34 + + NULLIF ( - + CAST ( + ( + ( COUNT ( * ) ) ) AS INTEGER ), - 44 + COALESCE ( + 70, ( - 10 ) ) + 52 ) - -g is not defined -``` - - -```sql -SELECT 41 + - - 73 - 11 + - 47 + CASE WHEN + + 30 IS NOT NULL AND NOT + CAST ( + 33 AS INTEGER ) / 32 * + 57 - COUNT ( * ) >= CASE + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) WHEN - - COALESCE ( - 46, + + MIN ( - 61 ) * - 54, + 96 ) + 67 + SUM ( DISTINCT - 74 ) + - ( 1 ) THEN NULL WHEN - - 96 T… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT CASE WHEN NOT COUNT ( DISTINCT 31 ) IS NOT NULL THEN + 73 * + COALESCE ( CASE + 21 WHEN 5 THEN 63 ELSE NULL END, - COUNT ( * ) ) WHEN NOT NULL <= NULL THEN NULL ELSE + 36 * - ( ( - 44 ) ) + + 83 END * + COUNT ( * ) AS col1 - -Expected: ["1667"] but got ["NULL"] -``` - - -```sql -SELECT + 34 - - 13 + - MAX ( ALL 3 ) * - - 45 * + CAST ( NULL AS INTEGER ) * + 57 * - SUM ( - 73 ), - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["47","0"] -``` - - -```sql -SELECT DISTINCT MIN ( - 25 ) / - ( - + 86 ) + + 82 AS col2, - CASE - 0 WHEN - - CASE - 24 WHEN + 84 * - 41 THEN NULL ELSE COUNT ( + 23 ) END THEN - COUNT ( * ) * 49 * - 50 + + 93 WHEN - 72 * 10 THEN NULL ELSE NULL END + + 51 - -Expected: ["82","NULL"] but got ["81.709","NULL"] -``` - - -```sql -SELECT ALL + - 65 AS col1, CASE 21 WHEN - + 58 THEN - 42 * 9 WHEN + 24 THEN - - 39 END AS col1 - -Expected: ["-65","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - - 77 + - CASE + COUNT ( * ) WHEN + 90 THEN NULL WHEN CAST ( + 80 AS INTEGER ) THEN - - 41 END col1, CAST ( NULL AS INTEGER ) + + + 28 - -Expected: ["NULL","NULL"] but got ["NULL","28"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,089 failed -* 79% was OK - -Time: 27684.884ms - ----- ---- ---- ---- ---- ---- ---- -### 389/620 [`./test/random/expr/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT + 62 / + SUM ( - 80 ) * + + 23 + + 38 + CAST ( + 31 AS INTEGER ) * + COUNT ( DISTINCT - 54 ) * + ( + 88 + - CAST ( 95 - COUNT ( * ) * 18 AS INTEGER ) ) - -Expected: ["379"] but got ["2765.966"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), - 9 AS col0 - -Expected: ["NULL","-9"] but got ["0","-9"] -``` - - -```sql -SELECT - ( - CAST ( + - SUM ( DISTINCT - - 53 ) AS INTEGER ) ) - -g is not defined -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT + CASE + COUNT ( * ) WHEN + COALESCE ( + MAX ( DISTINCT - 17 ), 72 - + - 86 + + ( - CASE WHEN ( + CASE - 8 WHEN - 7 THEN NULL WHEN - 70 * + 18 THEN NULL ELSE 82 * + ( - - MIN ( + 47 ) ) + - SUM ( DISTINCT 97 ) END ) BETWEEN - 13 * + 57 AND - COUNT ( * ) * - 74 THEN 89 WHEN NOT - 12 >= NULL T… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 76 / + ( - - 64 ), - ( - COUNT ( * ) ) + + CASE - 49 WHEN - 8 THEN + + ( + COALESCE ( - 57, + 78, + 48 ) ) * + - CAST ( 44 AS INTEGER ) + - + 5 END col1 - -Expected: ["-1","NULL"] but got ["-1.188","NULL"] -``` - - -```sql -SELECT DISTINCT CASE WHEN NOT COUNT ( * ) IN ( + 75 ) THEN ( 79 ) WHEN + 9 IS NOT NULL THEN NULL END - -Expected: ["79"] but got ["NULL"] -``` - - -```sql -SELECT + + 14 * 93 + + CAST ( NULL AS INTEGER ) * + 60 col0, CASE - 49 WHEN + NULLIF ( + - 64, ( + 20 ) ) * + 13 / COUNT ( * ) THEN 85 / - - COUNT ( DISTINCT - 96 ) + - 38 ELSE NULL END - -Expected: ["NULL","NULL"] but got ["1302","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","-15"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,481 failed -* 85% was OK - -Time: 25019.594ms - ----- ---- ---- ---- ---- ---- ---- -### 390/620 [`./test/random/expr/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_20.test) - -_Mimic sqlite_ - -```sql -SELECT - CAST ( NULL AS INTEGER ) + + + COALESCE ( + 95, + MAX ( ALL + 16 ) ) * - COUNT ( * ) - + NULLIF ( 25, - COALESCE ( + - 75, + 50 ) + - 93 ) * + + ( + 11 ) * + 70, + 39 * 94 col1 - -Expected: ["NULL","3666"] but got ["-19345","3666"] -``` - - -```sql -SELECT DISTINCT NULLIF ( + - COUNT ( * ), - + 40 * + 58 * + + 37 ) / MAX ( DISTINCT 31 ) - - 48 + - 37 - + 15 * 56 - -Expected: ["-829"] but got ["-829.032"] -``` - - -```sql -SELECT DISTINCT - CASE - CASE - CASE 58 WHEN - 68 * - 93 + + COALESCE ( + 44, + + 43 ) * + + ( 74 ) * + 97 + 67 - 73 + + 64 + - 66 * + 97 * - ( + - 70 ) - + ( ( - NULLIF ( + 10, 29 ) ) ) * - 68 THEN NULL WHEN - 52 THEN NULL WHEN + AVG ( DISTINCT + 84 ) THEN COUNT ( 47 ) END WHEN 2 * + 81 THEN 38 + … - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( COALESCE ( - ( + + 86 ), + 25 + - AVG ( + 39 ), - - 16 / COUNT ( * ) ) AS INTEGER ) * 92 col0 - -g is not defined -``` - - -```sql -SELECT 48 * + 8 AS col1, + 95 + + + 99 * + 1 + - CASE + CAST ( NULL AS INTEGER ) WHEN - 58 THEN NULL WHEN + - 53 THEN NULL ELSE 71 * - 11 - 12 * - 81 / + 29 + - 27 + 89 + - + CAST ( - COUNT ( * ) AS INTEGER ) + + + 86 + COUNT ( - + 35 ) END + + CASE - + ( + SUM ( 45 ) ) WHEN - - CASE + 70 WHEN + 22… - -Expected: ["384","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + CASE SUM ( + CASE - 65 WHEN - 8 THEN + 98 WHEN 56 THEN NULL ELSE NULL END ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 20 * + CAST ( - + 19 AS INTEGER ) + - COUNT ( * ) + + COUNT ( * ) END + + 22 / - COALESCE ( - 33, MAX ( DISTINCT + 16 ), - + 14 ) AS col2, COUNT ( ALL - ( + + 76 ) ) A… - -Expected: ["-380","1"] but got ["NULL","1"] -``` - - -```sql -SELECT DISTINCT 31 - + CAST ( NULL AS INTEGER ), - 93 * - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["31","0"] -``` - - -```sql -SELECT ALL - CASE WHEN NULL NOT BETWEEN + 32 AND - 99 THEN - 47 ELSE + 25 END * 54 + 69 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + - CASE + 5 WHEN - - 47 * - + 92 THEN - 70 / + 66 + COUNT ( * ) END AS col2, 23 / + + 79 - + 24 + + CAST ( + 71 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 72 * MIN ( DISTINCT + 10 + - 79 ) - -Expected: ["NULL","NULL"] but got ["NULL","47.291"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,096 failed -* 79% was OK - -Time: 36470.689ms - ----- ---- ---- ---- ---- ---- ---- -### 391/620 [`./test/random/expr/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_21.test) - -_Mimic sqlite_ - -```sql -SELECT + CASE 68 WHEN - 34 * - - COUNT ( DISTINCT + - 96 ) THEN MIN ( ALL - ( ( - 14 ) ) ) ELSE + - COUNT ( * ) + - 89 * - + CAST ( NULL AS INTEGER ) * + + 20 END * + 87 / 5 / + 43 + - + 57 * 61 * 64 - -Expected: ["NULL"] but got ["-222528.405"] -``` - - -```sql -SELECT - MIN ( - 0 ) + - + ( + - 82 ) - - COUNT ( * ) / + 57 - -Expected: ["82"] but got ["82.018"] -``` - - -```sql -SELECT - MIN ( ALL + NULLIF ( - CAST ( + + 54 AS INTEGER ), + + 10 - - CAST ( NULL AS REAL ) ) ) + + + CASE + COUNT ( * ) WHEN 71 - + 37 * - 87 THEN NULL WHEN NULLIF ( + - 32, - 29 / + 90 * + 62 * + + 50 * ( + + 69 ) + + - 44 / + 87 * + CASE + 9 WHEN 12 * 99 + 15 - 0 THEN + 24 * + SUM ( 4 ) END ) T… - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( COUNT ( * ) AS REAL ) + - + 92 + - 50 - + + COALESCE ( 74, 24 ) * + CAST ( NULL AS REAL ) * + 85 AS col2 - -g is not defined -``` - - -```sql -SELECT + 60 * - CASE + 96 WHEN + SUM ( ALL + + 14 ) THEN - 33 / - 19 END, 67 * 54 * + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - - MIN ( ALL 9 ), - SUM ( DISTINCT CASE 93 WHEN 89 THEN - 84 * - 39 ELSE NULL END ) * - 7 AS col2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + COUNT ( * ) / - - COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), - 17 + + + 22 ) * + + 42 * + + 48 - 20 - + COUNT ( * ) AS col2 - -Expected: ["-21"] but got ["NULL"] -``` - - -```sql -SELECT ALL - CASE WHEN 86 BETWEEN - - AVG ( ALL - 94 ) - - 0 AND ( + + 20 * - - 22 / - 11 + 31 * - AVG ( - 46 ) + + 8 + CAST ( NULL AS INTEGER ) ) THEN - 43 * 92 END AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + CASE + 56 WHEN - + 4 THEN - COUNT ( * ) * + - 22 * + 9 + + CAST ( NULL AS INTEGER ) ELSE NULL END * + 71 AS col0, 97 - -Expected: ["NULL","97"] but got ["97","NULL"] -``` - - -```sql -SELECT DISTINCT + 75 AS col0, 85 / - + CASE + + 91 WHEN 50 / 26 THEN - 11 ELSE NULL END * + 80 col0 - -Expected: ["75","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,097 failed -* 79% was OK - -Time: 27798.936ms - ----- ---- ---- ---- ---- ---- ---- -### 392/620 [`./test/random/expr/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_22.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - - SUM ( 80 ) / - + 13 + CAST ( + COALESCE ( + 90, ( - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) ) AS INTEGER ) - -Expected: ["84"] but got ["83.846"] -``` - - -```sql -SELECT DISTINCT - 63 * - + CAST ( NULL AS INTEGER ) * - 99 AS col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 23 + + 33 * + CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT 54 * 98 / CASE WHEN + 72 NOT BETWEEN ( + 77 ) AND - 98 THEN + COUNT ( * ) ELSE NULL END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - - 94 - CAST ( - COUNT ( * ) AS INTEGER ) + - 61 - -g is not defined -``` - - -```sql -SELECT - 19 AS col0, - CASE + COUNT ( * ) WHEN - 92 THEN + 12 END AS col0 - -Expected: ["-19","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + SUM ( ALL + 25 ) + - 94 + + ( - 4 ) / + + CAST ( AVG ( - 89 ) AS INTEGER ) + - - COUNT ( * ) / + 80 + + 50 * + 27 - -Expected: ["1281"] but got ["NULL"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + + ( 72 ) / 16 AS col1, + CASE + 59 WHEN - - 24 THEN - CAST ( 8 AS INTEGER ) WHEN + + 72 + + + COUNT ( * ) THEN + 13 WHEN 37 * + 37 + - COUNT ( * ) * + 24 + 60 + - - MIN ( ALL + 77 ) THEN NULL ELSE NULL END col2 - -Expected: ["NULL","NULL"] but got ["4.500","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,025 failed -* 79% was OK - -Time: 65518.659ms - ----- ---- ---- ---- ---- ---- ---- -### 393/620 [`./test/random/expr/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_23.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - - CAST ( NULL AS REAL ) + + 96 - -Wrong conversion type -``` - - -```sql -SELECT - + 35 / - + 59 + + 31 - -Expected: ["31"] but got ["31.593"] -``` - - -```sql -SELECT ALL + 9 col2, CASE COUNT ( * ) WHEN + 16 THEN - 53 + + 65 WHEN + 10 THEN NULL ELSE MAX ( DISTINCT - ( + CASE WHEN NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND - COALESCE ( ( 22 ), 8 ) THEN + 10 + - 79 * 91 ELSE NULL END ) ) END * - 24 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT CASE + 55 WHEN - 4 THEN 97 * - 7 + - NULLIF ( - 30, + 32 ) WHEN 38 THEN 28 * 85 + - 98 * + MIN ( 59 ) ELSE + ( + CAST ( NULL AS INTEGER ) ) END col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL CAST ( + AVG ( ALL + - 2 ) AS INTEGER ) / + 44 + 12 - -g is not defined -``` - - -```sql -SELECT DISTINCT + 16 + 47 + + - 54 + - 40 + + + 78 / + SUM ( ALL - - 31 ) * - CAST ( - COUNT ( * ) AS INTEGER ) + - CAST ( - NULLIF ( 66, 42 ) AS INTEGER ) - -Expected: ["37"] but got ["NULL"] -``` - - -```sql -SELECT - - 45 + - - 94 + + 60 AS col1, CASE + 59 WHEN + + COUNT ( * ) / + 98 + + + 9 * - 52 THEN 35 END / 94 AS col1 - -Expected: ["199","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) * 84 * COUNT ( * ) * + 5 AS col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT 49 / + 2 AS col0 - -Expected: ["24"] but got ["24.500"] -``` - - -```sql -SELECT ALL - - COUNT ( * ) * - ( + CAST ( - - 11 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) - - 73 + 91 * - COUNT ( * ) * 26 * + COUNT ( * ), 67 / + + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["-2304","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,067 failed -* 79% was OK - -Time: 44626.997ms - ----- ---- ---- ---- ---- ---- ---- -### 394/620 [`./test/random/expr/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_24.test) - -_Mimic sqlite_ - -```sql -SELECT + + 6 / - + 77 - -Expected: ["0"] but got ["-0.078"] -``` - - -```sql -SELECT + - CAST ( NULL AS REAL ) + - + 6 + - + 69 + - 68 - -Wrong conversion type -``` - - -```sql -SELECT 30 + + + 45 * - 96 + - CAST ( - - 27 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL"] but got ["-4317"] -``` - - -```sql -SELECT CAST ( SUM ( + 87 ) AS INTEGER ) + 13 col2 - -g is not defined -``` - - -```sql -SELECT 44 AS col1, - CASE + 45 WHEN - - 27 * - 25 * - 91 THEN COALESCE ( + 19, + 5, + - 46 + - 63 ) WHEN + COUNT ( DISTINCT + 34 ) * AVG ( ALL 96 ) THEN + COUNT ( * ) WHEN 67 / + SUM ( ALL - 65 ) THEN + 2 + COUNT ( * ) * 56 END AS col1 - -Expected: ["44","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 29 / - - COALESCE ( + CAST ( NULL AS INTEGER ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20 - -Expected: ["20"] but got ["NULL"] -``` - - -```sql -SELECT + + CASE - - 77 WHEN 27 THEN - + 41 WHEN 74 * 16 THEN NULL ELSE NULL END, - MIN ( + - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + 63 AS col1, + CASE 54 WHEN + 8 + - 38 THEN + + 25 * + + 46 + + 30 + + 12 ELSE NULL END AS col1 - -Expected: ["63","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - COALESCE ( - CASE 36 WHEN - 17 THEN - COUNT ( * ) END, + COUNT ( * ) / - 12 ) * 71 - -Expected: ["0"] but got ["5.917"] -``` - - -```sql -SELECT + + 13 / - - COUNT ( * ), + CASE WHEN NOT + ( 39 ) BETWEEN 86 + SUM ( ALL 1 ) * + 57 + + 57 - - + 26 AND + + 95 THEN - CASE WHEN 3 < 28 THEN + + ( + 78 ) END ELSE NULL END / - - ( + SUM ( DISTINCT 73 ) ) - - 66 - + + MIN ( ALL 61 ) + - + ( - COUNT ( * ) ) * 43 * - 78 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 48 / 49 * - CAST ( NULL AS INTEGER ) * - 14 * + 21, ( CAST ( NULL AS INTEGER ) ) AS col2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL 49 / 47 * 46 - -Expected: ["46"] but got ["47.957"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,860 failed -* 81% was OK - -Time: 31952.510ms - ----- ---- ---- ---- ---- ---- ---- -### 395/620 [`./test/random/expr/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_25.test) - -_Mimic sqlite_ - -```sql -SELECT + 13 + + 12 / - 23 - -Expected: ["13"] but got ["12.478"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - - 9 AS col1, ( 44 ) AS col1 - -Expected: ["NULL","44"] but got ["44","44"] -``` - - -```sql -SELECT - 43 * + 32 + - - CAST ( NULL AS REAL ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 - -Expected: ["67","63"] but got ["67","NULL"] -``` - - -```sql -SELECT CASE 7 WHEN 79 / - COUNT ( * ) + - - COUNT ( 91 ) + + + 95 + - 41 + - CASE - MIN ( DISTINCT + 90 ) WHEN - 14 + + 81 * 50 THEN 87 WHEN + + 96 THEN + + 13 WHEN - - 34 THEN NULL ELSE - - SUM ( DISTINCT 91 ) / ( - - 64 ) END * - + 7 THEN - 98 - - - CAST ( NULL AS INTEGER ) ELSE NULL END + 67 AS … - -Expected: ["NULL","21"] but got ["21","NULL"] -``` - - -```sql -SELECT DISTINCT + NULLIF ( - 97, + COUNT ( * ) * - 42 + + ( 36 ) + - COALESCE ( + 36, + - 1 ) + - 65 + - 13 * + - 31 * + + CAST ( NULL AS INTEGER ) ), CASE WHEN + 69 BETWEEN + + 58 * + NULLIF ( - + ( - - 71 ), - 40 ) * + + 81 * - 21 + + 89 - + 53 + + 2 AND NULL THEN - COUNT ( * ) END * COUNT ( * ) … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + + CAST ( - CASE - MAX ( - CAST ( + 66 AS INTEGER ) ) WHEN + 7 THEN NULL WHEN 14 THEN NULL WHEN + + 30 THEN - 35 - 70 * + 20 ELSE NULL END AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL 74 + + 51 - - - CAST ( NULL AS INTEGER ) * - 9, - ( - - CAST ( NULL AS INTEGER ) ) AS col1 - -Expected: ["NULL","NULL"] but got ["125","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,872 failed -* 81% was OK - -Time: 50877.087ms - ----- ---- ---- ---- ---- ---- ---- -### 396/620 [`./test/random/expr/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_26.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - 82 + + 56 / - + 27 AS col2 - -Expected: ["-84"] but got ["-84.074"] -``` - - -```sql -SELECT ALL CAST ( + CASE - 46 WHEN - + 95 THEN 90 * - - 2 + - - 99 - - - 40 ELSE NULL END AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) col1 - -g is not defined -``` - - -```sql -SELECT + - CASE WHEN NOT ( + AVG ( ALL + 41 ) BETWEEN + 49 + 6 + + 32 AND + 57 / - 19 ) THEN NULL ELSE - 4 * - - 63 / - + 62 END + - ( + - 3 ) - + 63 * + + 64 * + COUNT ( * ) + - 2 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 47 - - ( COUNT ( * ) ) + - COUNT ( * ) * + - COUNT ( * ) + + NULLIF ( 74, + - 49 + - COUNT ( * ) + - + CAST ( - 17 AS REAL ) ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT 17 / - - COALESCE ( CAST ( NULL AS INTEGER ), + 48 * 7 + - 37 ) + - 16 AS col1 - -Expected: ["-16"] but got ["NULL"] -``` - - -```sql -SELECT ALL - CASE - ( - COALESCE ( + - 90, + CAST ( - 79 AS INTEGER ) ) ) WHEN 59 THEN NULL WHEN + 17 THEN - 42 ELSE NULL END * + 30 + - - COUNT ( * ) - - COUNT ( ALL + 7 ) + + 51 AS col2, 83 - -Expected: ["NULL","83"] but got ["83","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2 - -Expected: ["NULL","NULL"] but got ["-389416","-389416"] -``` - - -```sql -SELECT 64 + + CASE 84 WHEN + MIN ( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 AS col0, CASE 58 WHEN - 67 + + 84 + + 0 * - 78 THEN + 12 * - ( + - 90 ) END / 91 + + 59 AS col0 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,876 failed -* 81% was OK - -Time: 47303.686ms - ----- ---- ---- ---- ---- ---- ---- -### 397/620 [`./test/random/expr/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_27.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 13 AS col1, 10 / 84 - -Expected: ["13","0"] but got ["13","0.119"] -``` - - -```sql -SELECT ALL - MIN ( DISTINCT - 19 ) + + SUM ( DISTINCT 93 ) + + 48 + + + SUM ( DISTINCT + + 89 ) + + + CAST ( NULL AS INTEGER ) * - - CAST ( - COUNT ( * ) AS INTEGER ) * + - 97 * COUNT ( * ) - -Expected: ["NULL"] but got ["249"] -``` - - -```sql -SELECT - 23 + + + 19 + - - ( - ( - CASE + - 62 WHEN COALESCE ( + 22, + CASE 42 WHEN + + 62 * - - CAST ( NULL AS REAL ) - - 11 * - - ( + 78 ) THEN - COALESCE ( - 94, - 27 ) END ) THEN - + 43 * COUNT ( * ) * 85 - 54 WHEN - 30 THEN NULL ELSE NULL END ) ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT - + 57 + - COUNT ( * ) + + 8 * - 46 col1, + 61 * + 79 + + CASE 36 WHEN 1 THEN NULL WHEN 97 THEN - - 26 END AS col1 - -Expected: ["-426","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 99 / - 49 * + - CAST ( COUNT ( * ) AS INTEGER ) + - 29 + - 90 / - - 45 + - NULLIF ( + 31, - 98 * - 28 ) + - + 13 * - 41 * - 2 * + + COUNT ( * ) AS col2, - 8 * - 44 * - + CAST ( - + 17 AS INTEGER ) * + - COALESCE ( + 0, + 81 ) - -Expected: ["-1130","0"] but got ["NULL","0"] -``` - - -```sql -SELECT CASE WHEN COUNT ( * ) BETWEEN - - ( + + 93 ) AND + - NULLIF ( + 36, + 80 ) * + 5 THEN - 31 ELSE NULL END, 84 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL CAST ( - - CASE + 81 WHEN - 91 THEN + 37 END AS INTEGER ), + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - 80 + - CASE - CASE + COUNT ( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL 24 + + CASE COUNT ( * ) WHEN + 11 THEN NULL ELSE - 21 END + - 55 + + 92 - - + ( + CAST ( NULL AS INTEGER ) ) / + + 51 * + + CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2 - -Expected: ["-46","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,857 failed -* 81% was OK - -Time: 36012.160ms - ----- ---- ---- ---- ---- ---- ---- -### 398/620 [`./test/random/expr/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_28.test) - -_Mimic sqlite_ - -```sql -SELECT 27 + + COUNT ( * ) - + + 90 + + - 39 - 33 * CAST ( + + SUM ( - 31 ) AS INTEGER ) - -Expected: ["922"] but got ["-101"] -``` - - -```sql -SELECT ALL 51 + CAST ( NULL AS INTEGER ) + - NULLIF ( 53, - ( COUNT ( * ) ) - - 89 ), 61 AS col0 - -Expected: ["NULL","61"] but got ["-2","61"] -``` - - -```sql -SELECT + MIN ( - 15 ) * + MAX ( ALL - 90 ) * + - 64 - - 10 * + + ( + CASE + 84 WHEN - 7 + 58 - + - CAST ( + 7 AS REAL ) THEN - 27 ELSE NULL END ) - -Wrong conversion type -``` - - -```sql -SELECT + NULLIF ( + 7, CAST ( COUNT ( * ) AS INTEGER ) * 70 ) - -g is not defined -``` - - -```sql -SELECT - NULLIF ( + SUM ( ALL + CAST ( NULL AS INTEGER ) ), - 62 / 16 + CAST ( ( - - NULLIF ( - 73, 50 + + - 55 + + 4 ) ) AS INTEGER ) - - - 91 ), CASE - COALESCE ( + 71, - 47, + 19 ) WHEN + - 22 / + - 11 THEN + CASE - - 54 WHEN + 83 THEN - 11 * + 80 ELSE 64 / - - 95 + 7 * NULLIF ( + 63 + CASE + ( … - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - CASE WHEN 53 BETWEEN + 50 / 27 AND - 1 THEN + + ( - - COUNT ( * ) ) + + 26 + - + 65 + + ( - 59 ) + 41 * 48 + + + 42 END / - + COUNT ( * ), 0 * 35 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + - 38 + - COUNT ( * ) / - 82 AS col0, CASE + MIN ( DISTINCT - 97 ) WHEN + MIN ( ALL - 17 ) THEN 84 WHEN 28 THEN NULL ELSE NULL END - -Expected: ["-38","NULL"] but got ["-37.988","NULL"] -``` - - -```sql -SELECT - CASE COUNT ( * ) WHEN + 46 / + 30 THEN + + 13 END AS col1 - -Expected: ["-13"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 64 col2, 95 - - - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","95"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - MAX ( ALL 92 ) + 84 AS col2 - -Expected: ["NULL"] but got ["84"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,924 failed -* 80% was OK - -Time: 56563.626ms - ----- ---- ---- ---- ---- ---- ---- -### 399/620 [`./test/random/expr/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_29.test) - -_Mimic sqlite_ - -```sql -SELECT 47 / - 94 - -Expected: ["0"] but got ["-0.500"] -``` - - -```sql -SELECT 80 * - 17 + 24 + AVG ( DISTINCT - + 20 ) * - 65 * - CAST ( NULL AS INTEGER ) + COALESCE ( COUNT ( * ), + 54 ) AS col0 - -Expected: ["NULL"] but got ["-1335"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS REAL ) * + + ( - + 0 ) * + 14 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( COALESCE ( + SUM ( ALL 94 ), 5 ) AS INTEGER ) * 83 col2 - -g is not defined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - 22 + + 73 AS col0, + 17 + + + MIN ( + - CAST ( NULL AS INTEGER ) ) + + + 10 + + 88 * + 79 AS col2 - -Expected: ["NULL","NULL"] but got ["51","6979"] -``` - - -```sql -SELECT - CASE + + 75 WHEN - 80 THEN + + 30 + - + 21 * + 37 END, + CAST ( NULL AS INTEGER ) + - 34 AS col1 - -Expected: ["NULL","NULL"] but got ["NULL","-34"] -``` - - -```sql -SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col2, 29 * + CASE - 1 WHEN 97 THEN NULL WHEN 39 + + MAX ( DISTINCT - 88 ) * 19 * CASE - - 41 WHEN - 23 THEN NULL ELSE + + 40 END + COUNT ( * ) THEN + 29 - - 66 * + COUNT ( * ) END AS col1 - -Expected: ["-1","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - NULLIF ( + 55, - - ( 84 ) + + - 29 * - 66 ) * - 40 col1, - CASE + 84 WHEN 45 THEN + + 78 + - 11 + + 15 * - 99 / + - 72 WHEN 29 * + 64 THEN 52 END AS col1 - -Expected: ["2200","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ( + - CASE WHEN NULL BETWEEN NULL AND 93 THEN - CAST ( 90 AS INTEGER ) END ) AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + COUNT ( * ) * + CASE WHEN NOT - COALESCE ( + 30, + ( + 65 ) + - COUNT ( * ) / + 0 + - + 45, + COUNT ( * ) / 80 ) < NULL THEN - 1 WHEN ( NULL ) NOT IN ( 71 ) THEN NULL ELSE - COUNT ( * ) - 85 END + - COUNT ( * ) / CAST ( 76 * COUNT ( * ) - 10 AS INTEGER ) - -Expected: ["-86"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,476 failed -* 85% was OK - -Time: 46717.575ms - ----- ---- ---- ---- ---- ---- ---- -### 400/620 [`./test/random/expr/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT 0 AS col2, 27 AS col2 - -Expected: ["0","27"] but got ["27","27"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * 60 AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT - - COUNT ( * ), 43 + CAST ( NULL AS REAL ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT + 29 * - NULLIF ( + 80, + CAST ( + NULLIF ( + - 4, - + COUNT ( * ) ) AS INTEGER ) * - 44 * - ( COALESCE ( 0, + 36 * 1 ) ) ) AS col1 - -g is not defined -``` - - -```sql -SELECT 30 / COALESCE ( - COALESCE ( + + CAST ( NULL AS INTEGER ), 86 + + 46 ), - - 46 ) - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT 6 * - 8 * CASE - MAX ( ALL - + 82 ) WHEN + COUNT ( * ) THEN + CASE WHEN NOT COUNT ( * ) BETWEEN 77 AND ( ( + COUNT ( - 48 ) ) ) THEN NULL WHEN NULL IS NULL THEN NULL ELSE - 98 END * 3 WHEN + 75 * COUNT ( * ) THEN NULL END * 62 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 24 - - - CASE - + 7 WHEN - COUNT ( * ) THEN + SUM ( DISTINCT 34 ) WHEN + + 14 THEN + 3 / + 91 END col2, 1 * - CAST ( NULL AS INTEGER ) / - + 66, 61 col1 - -Expected: ["NULL","NULL","61"] but got ["NULL","0","61"] -``` - - -```sql -SELECT - + 55 / + - 69, + 81 * 68 + + - ( CASE + 72 WHEN - 90 * + 85 + - COALESCE ( 84, - + ( + COUNT ( * ) ) + 60, + 25 / 41 ) THEN + - 72 * 22 - - 36 - - + 93 WHEN 15 THEN - 38 END ) * 22 AS col0 - -Expected: ["0","NULL"] but got ["0.797","NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ), ( + CAST ( NULL AS INTEGER ) ) + + 79, - - 10 AS col1 - -Expected: ["NULL","NULL","10"] but got ["0","79","10"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,064 failed -* 79% was OK - -Time: 39012.282ms - ----- ---- ---- ---- ---- ---- ---- -### 401/620 [`./test/random/expr/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_30.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 14 - + 61 * + + 94 + 93 + 87 / - 26 - -Expected: ["-5630"] but got ["-5630.346"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - - 97, - 28 - + - 62 + + COUNT ( * ) AS col0 - -Expected: ["NULL","35"] but got ["0","35"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) + 82 AS col1 - -Wrong conversion type -``` - - -```sql -SELECT + + CAST ( - 51 AS INTEGER ) * - CAST ( - SUM ( + 27 ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT + COUNT ( * ) AS col2, - 72 * - 78 * - - 44 + COUNT ( * ) - CASE - 46 WHEN - 50 THEN NULL WHEN CAST ( ( + 20 ) AS INTEGER ) * - + COUNT ( * ) * 75 + + 2 THEN - 26 ELSE NULL END col2 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + - 38 + AVG ( ALL + 92 ) + - 64 + - COUNT ( * ) - - COALESCE ( + - 40, - - 22 ) * CAST ( NULL AS INTEGER ) + - 78 * 1 * - 89 * 56, - 56 * + ( CAST ( NULL AS INTEGER ) ) * + 13 * + COUNT ( * ) * + - 67 AS col2 - -Expected: ["NULL","NULL"] but got ["388741","0"] -``` - - -```sql -SELECT ALL 16 + 55 * - 78 + - - CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - ( 90 ) + - COUNT ( * ) + COUNT ( DISTINCT + 84 ), 59 * - CASE - COUNT ( * ) WHEN + 80 + COALESCE ( + 15, + COALESCE ( - + COUNT ( * ), 6 ) + 58 * + COUNT ( * ) * - 77 * 0 * + 46, - 29 ) * - - ( + AVG ( DISTINCT 4 ) ) * - C… - -Expected: ["NULL","NULL"] but got ["-4363","NULL"] -``` - - -```sql -SELECT - 29 / - - COALESCE ( + CAST ( NULL AS INTEGER ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20 - -Expected: ["20"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 63 AS col1, + CASE 54 WHEN + 8 + - 38 THEN + + 25 * + + 46 + + 30 + + 12 ELSE NULL END AS col1 - -Expected: ["63","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + + 13 / - - COUNT ( * ), + CASE WHEN NOT + ( 39 ) BETWEEN 86 + SUM ( ALL 1 ) * + 57 + + 57 - - + 26 AND + + 95 THEN - CASE WHEN 3 < 28 THEN + + ( + 78 ) END ELSE NULL END / - - ( + SUM ( DISTINCT 73 ) ) - - 66 - + + MIN ( ALL 61 ) + - + ( - COUNT ( * ) ) * 43 * - 78 AS col0 - -Cannot read property 'toString' of undefined -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,765 failed -* 82% was OK - -Time: 37327.706ms - ----- ---- ---- ---- ---- ---- ---- -### 402/620 [`./test/random/expr/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_31.test) - -_Mimic sqlite_ - -```sql -SELECT 20 / - - 96 + + + COUNT ( * ) AS col1 - -Expected: ["1"] but got ["1.208"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT - MIN ( - 37 ) / - 21 / CAST ( NULL AS INTEGER ) - - - 77 + 17 + 57 + + + 22 * ( - - 79 ) AS col1 - -Expected: ["NULL"] but got ["1735"] -``` - - -```sql -SELECT ALL - 45 + - CAST ( - + COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL + CASE WHEN NOT NULL BETWEEN NULL AND 28 THEN 77 ELSE NULL END * + 55 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 65 AS col1, CASE 33 WHEN - + 16 * + + 88 + + 9 * - 98 THEN CASE 37 WHEN 53 / COUNT ( * ) THEN 75 WHEN - ( COALESCE ( 30, - COUNT ( * ) * + 94 - 38 ) ) THEN + 40 END WHEN 52 THEN - 46 WHEN - 56 THEN NULL WHEN + 50 THEN NULL ELSE NULL END + 88 col1 - -Expected: ["-65","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 - -Expected: ["67","63"] but got ["67","NULL"] -``` - - -```sql -SELECT ALL 74 + + 51 - - - CAST ( NULL AS INTEGER ) * - 9, - ( - - CAST ( NULL AS INTEGER ) ) AS col1 - -Expected: ["NULL","NULL"] but got ["125","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,808 failed -* 81% was OK - -Time: 85991.384ms - ----- ---- ---- ---- ---- ---- ---- -### 403/620 [`./test/random/expr/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_32.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * - 36 - -Expected: ["NULL"] but got ["36"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / - 87 - -Expected: ["0"] but got ["-0.011"] -``` - - -```sql -SELECT CAST ( NULL AS REAL ) + - ( + ( + 89 ) ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL + CAST ( MAX ( + 20 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + ( + - ( - CAST ( NULL AS INTEGER ) ) ) AS col2, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - CASE WHEN NOT ( NULL ) NOT BETWEEN NULL AND + 44 THEN 5 END - -Cannot read property 'toString' of undefined -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,469 failed -* 85% was OK - -Time: 56826.603ms - ----- ---- ---- ---- ---- ---- ---- -### 404/620 [`./test/random/expr/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_33.test) - -_Mimic sqlite_ - -```sql -SELECT 17 + 76 / - COALESCE ( 21, COUNT ( * ) ) - -Expected: ["14"] but got ["13.381"] -``` - - -```sql -SELECT DISTINCT + 53 + + CAST ( NULL AS INTEGER ) * - 23 AS col0 - -Expected: ["NULL"] but got ["53"] -``` - - -```sql -SELECT + ( CASE + 53 WHEN + - 78 THEN + + 17 END ) / + CAST ( SUM ( - - ( - + CAST ( + - 67 AS INTEGER ) ) ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - 29 / + CASE + + CAST ( + 12 AS REAL ) WHEN + 86 THEN + 42 + - + 23 END * COALESCE ( COUNT ( * ), COUNT ( * ) ) + + 78 AS col1, 17 AS col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL 39 * ( - - 70 ) + + CASE WHEN NOT ( 64 ) BETWEEN + + 96 AND ( 75 ) THEN NULL ELSE - 86 END + 9 * - ( + 17 + 10 ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + 99 / + COALESCE ( - CAST ( NULL AS INTEGER ), - 9 + + + MIN ( DISTINCT + 21 ), - + COUNT ( * ) - COALESCE ( + COALESCE ( - - 19, - COUNT ( * ) ), + 68 ) * + 88 * + 89 ) - -Expected: ["8"] but got ["NULL"] -``` - - -```sql -SELECT ALL - CASE - ( - COALESCE ( + - 90, + CAST ( - 79 AS INTEGER ) ) ) WHEN 59 THEN NULL WHEN + 17 THEN - 42 ELSE NULL END * + 30 + - - COUNT ( * ) - - COUNT ( ALL + 7 ) + + 51 AS col2, 83 - -Expected: ["NULL","83"] but got ["83","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2 - -Expected: ["NULL","NULL"] but got ["-389416","-389416"] -``` - - -```sql -SELECT 64 + + CASE 84 WHEN + MIN ( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 AS col0, CASE 58 WHEN - 67 + + 84 + + 0 * - 78 THEN + 12 * - ( + - 90 ) END / 91 + + 59 AS col0 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,852 failed -* 81% was OK - -Time: 106064.231ms - ----- ---- ---- ---- ---- ---- ---- -### 405/620 [`./test/random/expr/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_34.test) - -_Mimic sqlite_ - -```sql -SELECT - + 30 + + - 62 / + 32 AS col1 - -Expected: ["-31"] but got ["-31.938"] -``` - - -```sql -SELECT + - 33 * + CAST ( NULL AS REAL ) * + 0 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT 60 * MAX ( ALL 2 ) + - SUM ( - - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL"] but got ["120"] -``` - - -```sql -SELECT ALL CAST ( - - COUNT ( DISTINCT + ( + + 50 ) ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT 99 * + 50 * 8 * + - 29 * - 75 AS col1, 55 / CASE + 29 WHEN - 41 THEN 70 + COUNT ( * ) WHEN 48 + - 39 THEN NULL END AS col1 - -Expected: ["86130000","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL 71 + COUNT ( * ) * + - 10 / MAX ( ALL 56 ) * + CASE + CAST ( + COUNT ( * ) AS INTEGER ) WHEN COUNT ( * ) THEN + 67 * + 42 ELSE NULL END - -Expected: ["71"] but got ["NULL"] -``` - - -```sql -SELECT - CASE WHEN NOT 93 BETWEEN NULL AND ( NULL ) THEN - 48 + 93 END / 66 + 32 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 50 * + CAST ( NULL AS INTEGER ) + - 9 AS col1, + CASE WHEN NOT 18 IS NOT NULL THEN NULL ELSE - - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) END AS col1 - -Expected: ["NULL","NULL"] but got ["0"] -``` - - -```sql -SELECT + 33 + - CAST ( NULL AS INTEGER ), CASE + - 97 WHEN 82 / + 30 THEN - 39 - + 17 + - - 95 + + 0 * - ( + 63 ) END + + + 99 - -Expected: ["NULL","NULL"] but got ["33","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,969 failed -* 80% was OK - -Time: 152457.934ms - ----- ---- ---- ---- ---- ---- ---- -### 406/620 [`./test/random/expr/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_35.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - COALESCE ( - - 65, - 54, - 92 ) / - 6 AS col0 - -Expected: ["10"] but got ["10.833"] -``` - - -```sql -SELECT - CASE + ( 59 ) WHEN - 63 THEN NULL ELSE + + 30 * 54 * 99 * - - 28 - NULLIF ( ( + - 22 ), + 38 ) + - CAST ( NULL AS INTEGER ) + + - 12 + + + COALESCE ( - 22, - + 34 ) * 77 + + COUNT ( * ) END - -Expected: ["NULL"] but got ["-4488957"] -``` - - -```sql -SELECT ALL 1 + - CAST ( + NULLIF ( COUNT ( * ), 98 ) AS INTEGER ) col1 - -g is not defined -``` - - -```sql -SELECT 92 / + CASE + 21 WHEN NULLIF ( - + COUNT ( * ), + 24 / - 19 + + CAST ( NULL AS INTEGER ) + - 75 / COUNT ( * ) ) THEN 78 - 77 - + + 91 + + 39 / 44 WHEN + 90 THEN + + MIN ( DISTINCT + 65 ) END AS col0, CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT + 41 * 79 * + + 79 col2, - CASE - NULLIF ( + - 59, + 93 ) WHEN + + 95 + - COALESCE ( + 41, + 74 + 66 ) THEN - 8 + 55 END col2 - -Expected: ["255881","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - - 6 AS col2, CASE - 38 WHEN - COUNT ( * ) THEN - 14 END * + 67 + - + 93 - -Expected: ["NULL","NULL"] but got ["6","NULL"] -``` - - -```sql -SELECT + - 41 AS col1, + 62 + + CASE - + MAX ( ALL 0 ) WHEN + 34 THEN - + 51 * + COUNT ( * ) / 48 END * + 61 + 94 + 71 + 27 AS col1 - -Expected: ["-41","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + CASE WHEN NOT + 17 BETWEEN - 51 + + 65 * 83 AND + 17 * NULLIF ( CASE 92 WHEN + 45 * 46 + + 71 THEN 2 WHEN 12 * + 26 THEN NULL ELSE NULL END, - 33 * 23 + ( + NULLIF ( + CASE + NULLIF ( 25, ( + 76 ) ) WHEN - 19 THEN - 49 ELSE - MIN ( + 0 ) + + 38 END, + 79 * 81 + + ( 54 + 56 ) ) + + 62 * 49 … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 60 * + + 59 + COUNT ( * ) + 84 / + CAST ( - SUM ( ALL - + 7 ) AS INTEGER ) AS col0 - -Expected: ["3553"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,902 failed -* 81% was OK - -Time: 101202.854ms - ----- ---- ---- ---- ---- ---- ---- -### 407/620 [`./test/random/expr/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_36.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 19 - + + 82 / + NULLIF ( - - 4, - COUNT ( * ) ) - -Expected: ["-1"] but got ["-1.500"] -``` - - -```sql -SELECT - 89 * + - COUNT ( * ) AS col2, COUNT ( * ) * + - CAST ( NULL AS INTEGER ) - -Expected: ["89","NULL"] but got ["89","0"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL - + 97 AS col2, 48 * - CASE + + 60 WHEN + COUNT ( 93 ) * + 51 * AVG ( 79 ) * + + 6 THEN - + 40 - - - 44 END, - 71 * + CAST ( NULL AS INTEGER ) + - 19 - -Expected: ["-97","NULL","NULL"] but got ["-97","NULL","-19"] -``` - - -```sql -SELECT - CASE WHEN NOT NULL BETWEEN NULL AND 84 THEN + ( - ( 30 ) ) END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT CAST ( + AVG ( - ( - 82 ) ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT - CASE - 66 WHEN 88 * + CASE + 2 WHEN + + 43 THEN NULL ELSE + 87 - + 67 END * + COALESCE ( + 67, + COALESCE ( - + 51, + - ( + CAST ( NULL AS INTEGER ) ), + MIN ( 94 ) ) ) + 75 / CASE - + 46 WHEN - 35 THEN + 0 - - 30 WHEN - 80 THEN NULL ELSE NULL END + 28 + + 82 * 56 + - 50 THEN - 50 * + 32 W… - -Expected: ["NULL","-76"] but got ["NULL","-76.005"] -``` - - -```sql -SELECT 41 * + 69 + - + 35 * 5 AS col0, - 93 / - + COALESCE ( + + CAST ( NULL AS INTEGER ), - COUNT ( * ) * + 59 ) - - 54 AS col1 - -Expected: ["2654","53"] but got ["2654","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,929 failed -* 80% was OK - -Time: 50615.720ms - ----- ---- ---- ---- ---- ---- ---- -### 408/620 [`./test/random/expr/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_37.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * + 46, 77 col2 - -Expected: ["NULL","77"] but got ["0","77"] -``` - - -```sql -SELECT DISTINCT CAST ( - - NULLIF ( 60, + AVG ( DISTINCT 81 ) ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT - ( ( CASE + 29 WHEN + + 91 THEN NULL ELSE - 13 / + 72 + 83 + + 38 END ) ) - -Expected: ["-121"] but got ["-120.819"] -``` - - -```sql -SELECT ALL + 21 - 17 * + 13 * - + 86 * - 60 * - CAST ( NULL AS REAL ) - - - 80 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - 11, CASE + 26 WHEN - 29 * + + ( + 25 ) + 64 - - 13 * 19 + + COUNT ( * ) THEN 58 ELSE NULL END * - - 65 - - 44 + + + 28 + + + AVG ( - - 97 ) - -Expected: ["NULL","NULL"] but got ["-11","NULL"] -``` - - -```sql -SELECT + NULLIF ( + + NULLIF ( + ( + MAX ( DISTINCT - 0 ) ), + ( CAST ( NULL AS INTEGER ) ) * - - 69 ), ( + 54 ) + - COUNT ( * ) ) - - 88, COALESCE ( - + 65, - + 56 + ( + 55 ) / + + CAST ( + + COALESCE ( 8, COUNT ( * ) - + + 25 ) AS INTEGER ) * 5 + + - 42, 28 + 97 ) + + COUNT ( * ) AS col1 - -Expected: ["88","-64"] but got ["NULL","-64"] -``` - - -```sql -SELECT ALL 37 + - CASE WHEN NOT ( COALESCE ( - 89, 88 ) - + 26 ) BETWEEN 83 AND NULL THEN 99 * - 73 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 37 AS col2, 50 / + CASE 9 WHEN 29 THEN + 78 ELSE NULL END col2 - -Expected: ["37","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL 75 / ( + MAX ( - + 2 ) ) * + 55 * 53 AS col0, 56 * + CAST ( NULL AS INTEGER ) * + + CASE + + ( 76 ) WHEN + 94 THEN + COUNT ( * ) + NULLIF ( 22, COUNT ( * ) ) WHEN + COUNT ( 33 ) THEN NULL END / - 6 - -Expected: ["-107855","NULL"] but got ["-109312.500","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,954 failed -* 80% was OK - -Time: 54182.313ms - ----- ---- ---- ---- ---- ---- ---- -### 409/620 [`./test/random/expr/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_38.test) - -_Mimic sqlite_ - -```sql -SELECT - 90 + + ( + 55 ) / + 13 - -Expected: ["-86"] but got ["-85.769"] -``` - - -```sql -SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) - -Expected: ["NULL"] but got ["-1"] -``` - - -```sql -SELECT - CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE - CAST ( + + NULLIF ( + + COUNT ( * ), - 78 * 48 + 99 ) AS INTEGER ) END AS col1 - -g is not defined -``` - - -```sql -SELECT DISTINCT - CASE WHEN 48 IN ( - 60, 50, + COALESCE ( 46, - 91 + + 11 ) * - ( + 48 ) ) THEN NULL WHEN NOT COUNT ( 74 ) * 99 BETWEEN ( + 2 ) AND ( - 16 * + 47 ) THEN COUNT ( * ) END * 26 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + ( + + SUM ( DISTINCT - CAST ( NULL AS REAL ) ) ) - -Wrong conversion type -``` - - -```sql -SELECT CASE - - 7 WHEN - + 83 THEN - 63 * - - 37 ELSE NULL END * - + 19 * 99 * 40 + + COUNT ( * ), + 34 + - - NULLIF ( - COALESCE ( CAST ( NULL AS INTEGER ), + 85 * 87, - COALESCE ( 71, + COUNT ( * ) ) ), - 56 ) + - 14 * COUNT ( * ) AS col2 - -Expected: ["NULL","-7375"] but got ["NULL","20"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), 45 + ( - + 92 ) * + + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["0","45"] -``` - - -```sql -SELECT - 87 / - CAST ( + MAX ( DISTINCT + 14 ) AS INTEGER ) + - SUM ( DISTINCT - - 52 ) + + 37 col2 - -Expected: ["-9"] but got ["NULL"] -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, CASE - 99 WHEN 4 THEN + 91 + + COUNT ( * ) + - ( - + 95 ) * + 61 END AS col2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 93 AS col1, CAST ( NULL AS INTEGER ) - 64 + - 60 * - 95 * - 76 * 91 * CASE - + 71 WHEN - 14 * - CAST ( NULL AS INTEGER ) - + 79 THEN + - 15 END AS col1 - -Expected: ["93","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,990 failed -* 80% was OK - -Time: 39461.902ms - ----- ---- ---- ---- ---- ---- ---- -### 410/620 [`./test/random/expr/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_39.test) - -_Mimic sqlite_ - -```sql -SELECT - SUM ( ALL - + 63 ) / - AVG ( ALL - 37 ) - CAST ( NULL AS REAL ) * - + 93 / + + 78 * - 73 - - 6 * - 69 + + - 77 * + - 62 col2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + 8 / SUM ( ALL + 69 ) * + COUNT ( * ) * 89 - - 76 - - + COUNT ( - ( - + 20 ) ) * - - MAX ( ALL 24 ) * + COUNT ( * ) AS col2 - -Expected: ["100"] but got ["110.319"] -``` - - -```sql -SELECT ALL NULLIF ( - - CAST ( NULL AS INTEGER ), + 11 ) * - CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL 59 AS col2, - ( CASE + SUM ( ALL + + 13 ) WHEN + + COUNT ( * ) / + 3 THEN - 47 * 36 * - 70 * AVG ( ALL ( - 61 ) ) * 77 WHEN + 33 + + CAST ( NULL AS INTEGER ) + - 87 + - COUNT ( * ) * - - 86 THEN NULL END ) + 78 * CASE 2 WHEN 84 THEN - CAST ( + 34 AS INTEGER ) * + 81 END * COUNT ( * ) AS … - -Expected: ["59","NULL"] but got ["NULL"] -``` - - -```sql -SELECT CASE WHEN - 35 BETWEEN ( + - 7 * - - 35 + 53 + - ( COUNT ( * ) ) * 44 * + 47 ) AND ( NULL ) THEN - 43 WHEN NOT ( + 81 ) NOT IN ( ( + 19 ) ) THEN NULL END + - 96 * - 14 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - ( + CAST ( + - AVG ( ALL - 12 ) AS INTEGER ) ) AS col0 - -g is not defined -``` - - -```sql -SELECT - 81 / + 25 + CASE 93 WHEN 97 * - 64 * + 59 THEN + - 40 * - 18 WHEN + 90 THEN NULL ELSE NULL END * + 10 * + 50, 30 - + MIN ( + CAST ( NULL AS INTEGER ) ) + + 43 * - CAST ( NULL AS INTEGER ) * + - 45 / - 4 + - 91 * - - 25 AS col0 - -Expected: ["NULL","NULL"] but got ["NULL","-2245"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) / - + 52, - CAST ( NULL AS INTEGER ) * + 85 * - + 39 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,993 failed -* 80% was OK - -Time: 74188.066ms - ----- ---- ---- ---- ---- ---- ---- -### 411/620 [`./test/random/expr/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT + ( - ( - 91 ) ) / - 94 * + - 88 AS col1 - -Expected: ["0"] but got ["0.011"] -``` - - -```sql -SELECT + - 87 / - - 47 + + 6 + - CAST ( + COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + + 43 + - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL"] but got ["43"] -``` - - -```sql -SELECT DISTINCT COALESCE ( + 51, + COUNT ( * ) / CASE WHEN NOT NULL NOT IN ( 95, 16, - CASE - 72 WHEN - 83 THEN - 70 * + + CAST ( NULL AS REAL ) / + + 81 WHEN CAST ( + COUNT ( * ) AS REAL ) THEN + - 13 ELSE NULL END * + 74 * + COUNT ( * ) ) THEN 69 END + 27 ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT - CASE WHEN NOT + CASE + AVG ( ALL + + 26 ) WHEN ( + 47 ) + CAST ( + 26 AS INTEGER ) - - COUNT ( * ) * - COALESCE ( - - 44, + ( 80 ) ) + + + 47 THEN - 2 ELSE NULL END BETWEEN NULL AND - COUNT ( * ) THEN + + 25 WHEN 92 + + + COUNT ( * ) <= ( + ( + 40 ) + 67 ) THEN NULL END * - 82 + 89 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ), - 10 + - + SUM ( DISTINCT + 37 ) + - CAST ( NULL AS INTEGER ) + 89 * 62 AS col0 - -Expected: ["NULL","NULL"] but got ["0","5471"] -``` - - -```sql -SELECT ALL 38 * - COALESCE ( 52, - + 49 / - 55 * + + 18, NULLIF ( + + 67, - + 39 ) ) / ( + COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) AS col0 - -Expected: ["-1976"] but got ["NULL"] -``` - - -```sql -SELECT ALL - 55 AS col1, - MAX ( ALL - 3 ) / MIN ( ALL + 53 ) * + CASE - - 47 WHEN - + 13 THEN AVG ( ALL - NULLIF ( 1, + + NULLIF ( - 69, 37 + 95 + - 77 ) ) ) ELSE NULL END * - 92 - 65 + - 51 * - 61 * 37 - COUNT ( * ) col1 - -Expected: ["-55","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col1, CASE + COUNT ( * ) WHEN - - 5 THEN + - 71 * + 32 / - 55 END / + 90 * - - 55 * - + NULLIF ( + - SUM ( ALL + 39 ), - 42 ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,064 failed -* 79% was OK - -Time: 46793.566ms - ----- ---- ---- ---- ---- ---- ---- -### 412/620 [`./test/random/expr/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_40.test) - -_Mimic sqlite_ - -```sql -SELECT 28 / + 41 + + ( 87 ) * 82 - -Expected: ["7134"] but got ["7134.683"] -``` - - -```sql -SELECT 65 * CAST ( NULL AS INTEGER ) + 92 - -Expected: ["NULL"] but got ["92"] -``` - - -```sql -SELECT ALL CAST ( SUM ( ALL + 48 ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT ALL - + 57 - + + 39, 87 * - 24 / CAST ( NULL AS REAL ) col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 28 + - + CASE - 83 WHEN COUNT ( * ) * NULLIF ( + NULLIF ( + 73, - 84 * - 36 ), - + 18 ) + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2, + COUNT ( * ) * + AVG ( ALL + 6 ) * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - 50 AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL NULLIF ( 5, + COUNT ( * ) - + 46 ) * ( - 36 ) * - 88 + + CASE + + ( + 96 ) WHEN - 58 * + NULLIF ( - 43, CASE WHEN NULL BETWEEN ( NULL ) AND 53 THEN NULLIF ( + + AVG ( ALL 5 ), ( CASE - - 39 WHEN + 93 THEN NULL WHEN + CAST ( + ( + - 0 ) AS INTEGER ) THEN - COUNT ( * ) * - - 81 * - 7 ELSE … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - 57 * - + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) AS col1 - -Expected: ["57"] but got ["NULL"] -``` - - -```sql -SELECT ALL - COUNT ( * ) / + + 95, - 2 + - + 35 + CASE 96 WHEN - 97 * + 20 THEN 50 * 23 WHEN NULLIF ( 52, 44 - COUNT ( * ) ) THEN NULL END col2 - -Expected: ["0","NULL"] but got ["-0.011","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,984 failed -* 80% was OK - -Time: 89513.788ms - ----- ---- ---- ---- ---- ---- ---- -### 413/620 [`./test/random/expr/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_41.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + MIN ( DISTINCT - 72 ) / 63 - -Expected: ["-1"] but got ["-1.143"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1, - 77 AS col0 - -Expected: ["NULL","-77"] but got ["0","-77"] -``` - - -```sql -SELECT ALL CAST ( + - 50 AS REAL ) * - 42 + + CAST ( NULL AS INTEGER ) AS col1, 97 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - 39 / - CAST ( - COALESCE ( + 34, + - 63 * 36 * + 23 - - COUNT ( * ), - - 93 * + 87 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT CASE + 81 WHEN + - 18 * + - 63 / 96 * - ( 38 ) + + NULLIF ( - 79, 55 + - COUNT ( * ) * + - COUNT ( * ) ) THEN 34 ELSE NULL END AS col2, 30 / - 87 * 10 / 50 * - - 7 - -Expected: ["NULL","0"] but got ["NULL","-0.246"] -``` - - -```sql -SELECT DISTINCT - 43 / + COALESCE ( + - CAST ( NULL AS INTEGER ), + - 55 * + ( + COUNT ( * ) ) * + + 25 ) * - MIN ( DISTINCT - 98 ) AS col2 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL AVG ( ALL 43 ) * - CASE WHEN NULL <> ( 38 ) THEN - SUM ( ALL 88 ) WHEN - 48 BETWEEN ( 35 ) AND - CAST ( NULL AS INTEGER ) * + 92 THEN 13 - + 75 ELSE NULL END + - 4 * 55 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 96, + ( - - AVG ( - CAST ( NULL AS INTEGER ) ) ) + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + CASE - - 60 WHEN - AVG ( - - 80 ) THEN + 52 END AS col1, ( - + CAST ( NULL AS INTEGER ) ) AS col2 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL - ( + 50 ) AS col2, - 47 * CASE + 55 WHEN + + 18 + + - NULLIF ( + 84, 45 ) + - - NULLIF ( 57, + 23 + + CAST ( NULL AS INTEGER ) ) + - 85 + + CAST ( 83 AS INTEGER ) THEN - - 6 + - 43 END col2 - -Expected: ["-50","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,945 failed -* 80% was OK - -Time: 52765.528ms - ----- ---- ---- ---- ---- ---- ---- -### 414/620 [`./test/random/expr/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_42.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) * + - SUM ( - COALESCE ( - 81, 55 + 5 + 53 ) ) + + + 56 AS col1 - -Expected: ["NULL"] but got ["56"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / - 34 AS col0 - -Expected: ["0"] but got ["-0.029"] -``` - - -```sql -SELECT CAST ( NULL AS REAL ) * + 42 - -Wrong conversion type -``` - - -```sql -SELECT 33 * - COUNT ( * ) / + + CAST ( - COUNT ( * ) AS INTEGER ) + ( + + 1 ) AS col2 - -Expected: ["34"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + + 43 + - 96 AS col1 - -g is not defined -``` - - -```sql -SELECT 13 / + 6, 20 / + + 81 + - 24 + + + 77 + - COUNT ( * ) * - - CASE + MAX ( DISTINCT 74 ) WHEN - ( AVG ( + + 3 ) ) THEN + 68 * + + 99 / + - MAX ( DISTINCT 65 ) - - 29 WHEN 49 + + COUNT ( * ) THEN 4 ELSE NULL END / + 62 + + NULLIF ( - 3, + 27 ) + 37 * 87 AS col0 - -Expected: ["2","NULL"] but got ["2.167","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) col0, + 80 + + NULLIF ( 89, 99 ) + CASE - - 87 WHEN + - NULLIF ( - + 14, - 17 ) * + 39 / + 67 - + 42 * + + 36 - - 24 * 63 THEN + 55 + + + COUNT ( * ) / - COUNT ( * ) + - ( + - 23 ) * 45 + - CAST ( 86 AS REAL ) END AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - CASE WHEN NOT - 60 BETWEEN + COUNT ( * ) AND + 47 + + 72 THEN - 52 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 11 * - 65 * 55 col0, CAST ( NULL AS INTEGER ) * CASE 21 WHEN - + 95 / + + 21 THEN NULL WHEN 60 THEN 3 - + + 42 - 73 - + 64 END AS col0 - -Expected: ["39325","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - 74 / 70 + - 96 - -Expected: ["-97"] but got ["-97.057"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,939 failed -* 80% was OK - -Time: 60249.642ms - ----- ---- ---- ---- ---- ---- ---- -### 415/620 [`./test/random/expr/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_43.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + 13 / + 96 AS col0, CAST ( NULL AS INTEGER ) - -Expected: ["0","NULL"] but got ["0.135","0"] -``` - - -```sql -SELECT DISTINCT - 97 / - - ( + 74 ) - -Expected: ["-1"] but got ["-1.311"] -``` - - -```sql -SELECT - - CAST ( SUM ( - 21 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - + 16 / COALESCE ( CAST ( NULL AS INTEGER ), + 89, 13 ) AS col1 - -Expected: ["0"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,588 failed -* 84% was OK - -Time: 34345.834ms - ----- ---- ---- ---- ---- ---- ---- -### 416/620 [`./test/random/expr/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_44.test) - -_Mimic sqlite_ - -```sql -SELECT + 8 - + COUNT ( ( - ( CAST ( 44 AS REAL ) ) ) ) - -Wrong conversion type -``` - - -```sql -SELECT 30 + - - 96 - - 4 + - + 77 + + 67 * + CAST ( NULL AS INTEGER ) / ( - + 58 ) - -Expected: ["NULL"] but got ["53"] -``` - - -```sql -SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT DISTINCT 64 + 63 / + 97 AS col1 - -Expected: ["64"] but got ["64.649"] -``` - - -```sql -SELECT - 33 AS col0, + 29 * + + CASE - - ( - - 93 ) WHEN + 65 THEN NULL WHEN + 84 / + 29 * - 79 + 84 + + 76 + + ( - + 19 ) * - 36 + - ( + + 8 ) * - 30 / ( - 59 ) THEN 2 WHEN - 53 - 86 THEN NULL WHEN - 1 THEN + 98 * MAX ( 59 * 89 ) END * 10 AS col0 - -Expected: ["-33","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - CASE WHEN ( NULL ) BETWEEN ( + 99 ) AND - 35 + 46 THEN NULL ELSE + ( + 59 ) + 89 / - 89 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 94 * 31 / + - CASE WHEN NULL <> 19 THEN NULL ELSE + 38 END AS col2 - -Expected: ["76"] but got ["NULL"] -``` - - -```sql -SELECT - 16 * + CASE COUNT ( DISTINCT + 35 ) WHEN - - 4 THEN - 29 END / + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - + 6 AS col1, 3 - - + CAST ( NULL AS INTEGER ) / NULLIF ( - 8, - 37 + - 87 ) AS col2 - -Expected: ["NULL","NULL"] but got ["-6","3"] -``` - - -```sql -SELECT ALL 73 col1, + 95 + - + CASE + - 80 WHEN + + ( + 13 ) + + 31 + 60 * - + 25 THEN 23 + + 60 ELSE NULL END AS col1 - -Expected: ["73","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,974 failed -* 80% was OK - -Time: 48979.929ms - ----- ---- ---- ---- ---- ---- ---- -### 417/620 [`./test/random/expr/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_45.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 38 / + - 51 + + 86 * 5 + - 74 + + 84 / + 91 + COALESCE ( - + 81, 83 * - 37, + COUNT ( * ) ) * 90 col0 - -Expected: ["-6934"] but got ["-6933.822"] -``` - - -```sql -SELECT - + 8 - - CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL"] but got ["-8"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) * SUM ( - 35 ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - 26 + - COALESCE ( + 93, + CAST ( + + COUNT ( * ) AS INTEGER ) ) + - 30 * - 52 - + 41 AS col1 - -g is not defined -``` - - -```sql -SELECT + 99 * + 51 + + COUNT ( * ) + + 59 * + - 16 + 67 + + + CASE WHEN NULL > 89 THEN NULL WHEN NULL BETWEEN - COUNT ( * ) AND - 29 THEN + ( - 1 ) * + 64 / ( - + ( - - 27 ) ) * - - 16 - - - AVG ( DISTINCT + - 79 ) + 52 WHEN NOT 5 <= COUNT ( * ) THEN NULL END * + 75 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 26 * + CASE + + CAST ( NULL AS INTEGER ) WHEN + + 31 THEN NULL WHEN + 90 * 68 - + 47 * - - 42 THEN - ( - COUNT ( * ) ) ELSE NULL END col1, - 95 / + CAST ( + 67 AS INTEGER ) - -Expected: ["NULL","-1"] but got ["NULL","-1.418"] -``` - - -```sql -SELECT CASE - 20 WHEN 67 THEN - 76 / + 29 + - - COUNT ( DISTINCT - - 53 ) END * + COUNT ( * ), 36 + + 28 + 50 * + 98 + 99 + + + 34 + ( 13 ) + + CAST ( + NULLIF ( - - COUNT ( * ), - 12 + + 49 / 57 * - 87 ) AS INTEGER ) * - 6 * CAST ( NULL AS INTEGER ) * 97 - -Expected: ["NULL","NULL"] but got ["NULL","5110"] -``` - - -```sql -SELECT 72 * CASE WHEN NOT NULL > ( NULL ) THEN NULL ELSE - 53 END AS col0 - -Expected: ["-3816"] but got ["NULL"] -``` - - -```sql -SELECT ALL 87 / + - 20 AS col2, + CASE - 78 WHEN 72 THEN - 1 + + - 9 END + 96 AS col2 - -Expected: ["-4","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT 45 + - + 1 * + - MAX ( ALL + ( 8 ) ) * - - 88 + + MAX ( ALL + 64 ) - - CAST ( NULL AS INTEGER ) * 18 + + - 72, 5 * - + 70 + 4 + 7 * - + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["741","-346"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,019 failed -* 79% was OK - -Time: 54476.813ms - ----- ---- ---- ---- ---- ---- ---- -### 418/620 [`./test/random/expr/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_46.test) - -_Mimic sqlite_ - -```sql -SELECT + - 40 + - CASE WHEN 36 + + 65 * + 55 IN ( 32 * SUM ( 13 ) + 61 / 8 ) THEN 95 WHEN NOT + CASE 19 WHEN 90 * + ( - 27 ) + 93 * + 2 THEN NULL WHEN + 32 * - 81 THEN 64 WHEN + ( CAST ( + AVG ( + 62 ) AS INTEGER ) ) * + 12 THEN NULL END NOT IN ( - 46 ) THEN NULL ELSE NULL END AS col0 - -g is not defined -``` - - -```sql -SELECT CAST ( - 35 AS INTEGER ) / 39 - 86 * - 8 AS col2 - -Expected: ["688"] but got ["687.103"] -``` - - -```sql -SELECT COALESCE ( MAX ( CAST ( NULL AS INTEGER ) ), 83 - + CASE + 60 WHEN + 43 - 67 THEN AVG ( 84 ) ELSE NULL END * COALESCE ( 9, 17 * - 72, + 99 + 88 ) ) * - 6 + + NULLIF ( + 95 + - 19 * COUNT ( * ), 9 ) - -Expected: ["NULL"] but got ["76"] -``` - - -```sql -SELECT ALL + CASE WHEN NOT ( + COUNT ( * ) ) IN ( 77 - 5 ) THEN - 38 * + COUNT ( * ) END + MIN ( - 78 ) * ( + 7 ) - -Expected: ["-584"] but got ["NULL"] -``` - - -```sql -SELECT ALL 39 + - + CAST ( NULL AS REAL ) + + + 6 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL + 0 * - - 3 AS col0, - ( - ( - + 99 ) ) / - 17 * + CASE - 9 WHEN COUNT ( * ) THEN NULL WHEN 94 THEN ( ( COUNT ( * ) ) ) + CAST ( NULL AS INTEGER ) * + 71 END AS col0 - -Expected: ["0","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + 26 * CAST ( NULL AS INTEGER ) * 68, CASE - + CAST ( NULL AS INTEGER ) WHEN 46 THEN + 23 END + - 71 AS col0 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + - 25 + - NULLIF ( - 56, + + CASE WHEN - CASE - + CAST ( - + 28 AS INTEGER ) WHEN - 17 * + MAX ( ALL + - 68 ) * 9 * - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - CAST ( + 54 AS INTEGER ) - + 95 ELSE NULL END BETWEEN ( - - 86 * + ( - 40 ) - 6 ) AND + 59 * + ( 29 ) THEN - 30 / +… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 9 + - CAST ( NULL AS INTEGER ) AS col2, + MAX ( + CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["-9","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,945 failed -* 80% was OK - -Time: 48653.537ms - ----- ---- ---- ---- ---- ---- ---- -### 419/620 [`./test/random/expr/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_47.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + + 39 * + - CASE - 38 WHEN 61 + + 41 THEN + 43 WHEN + - 37 * 99 + + CAST ( NULL AS REAL ) THEN - 59 WHEN + + ( + COUNT ( * ) ) THEN + 19 END - -Wrong conversion type -``` - - -```sql -SELECT 65 / + 98 - -Expected: ["0"] but got ["0.663"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), 58 AS col0 - -Expected: ["NULL","58"] but got ["0","58"] -``` - - -```sql -SELECT ALL CAST ( ( NULLIF ( + CAST ( - 93 AS INTEGER ), + + CAST ( + 77 AS INTEGER ) * - 84 - + - 67 + + - 56 + + 78 * + + ( - 20 ) * CASE + ( + 10 ) WHEN + COUNT ( * ) THEN COUNT ( * ) + - 50 * + + MAX ( ALL + 76 ) WHEN 18 THEN NULL WHEN - COUNT ( * ) THEN NULL END ) ) AS INTEGER ) + - - 67 AS co… - -g is not defined -``` - - -```sql -SELECT - - CASE WHEN NOT 40 NOT BETWEEN - 96 * AVG ( - 74 ) AND NULL THEN - 47 ELSE - 11 END * - 12 + - 1 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT - CASE + 61 WHEN - 98 + - 48 + ( 36 ) + - ( + 19 ) / + + 63 + + CAST ( - + 52 AS INTEGER ) + + 54 - - 39 THEN NULL WHEN + MAX ( DISTINCT 58 ) THEN NULL WHEN - + 90 * - + 69 THEN 17 END AS col2, 48 - -Expected: ["NULL","48"] but got ["48","NULL"] -``` - - -```sql -SELECT ALL ( - - CASE ( - SUM ( DISTINCT + 91 ) ) WHEN + 92 + 3 THEN - COUNT ( * ) END ) * + 50 AS col2, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT - 78 * 91 / - ( CAST ( COUNT ( * ) AS INTEGER ) ) * COUNT ( + - 21 ) + + - ( + COUNT ( * ) ) - -Expected: ["7097"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 32 + - 87 AS col1, CASE + - 60 WHEN + + 53 THEN + 17 END * CAST ( NULL AS INTEGER ) * 87 / 71 AS col1 - -Expected: ["-55","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,925 failed -* 80% was OK - -Time: 45479.603ms - ----- ---- ---- ---- ---- ---- ---- -### 420/620 [`./test/random/expr/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_48.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + CAST ( + 50 AS INTEGER ) / - SUM ( 6 ) - -Expected: ["-8"] but got ["-8.333"] -``` - - -```sql -SELECT + NULLIF ( - 90, + CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + ( ( CAST ( NULL AS INTEGER ) ) ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + + 35 col2, COUNT ( * ) / + 32 * + + CAST ( - + MAX ( + - 81 ) AS INTEGER ) * + 9 + - + 97 - 53 * ( 51 ) * - CASE - + 55 WHEN + CAST ( NULL AS INTEGER ) THEN - - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ELSE COUNT ( * ) * COALESCE ( + 72, - - 40 * + + 34 * - + 81 * + 24 * - COUNT ( * )… - -Expected: ["35","194519"] but got ["35","NULL"] -``` - - -```sql -SELECT DISTINCT - 68 / 98 + + 63 - - - 51 + CAST ( COUNT ( * ) AS REAL ) * 77 * + - CAST ( NULL AS INTEGER ) col1, + COALESCE ( 20, - 26 + - ( + - COALESCE ( 27, + ( - 92 ) ) ) ) col0 - -g is not defined -``` - - -```sql -SELECT + 19 / - + NULLIF ( - 50, - COUNT ( DISTINCT - - 34 ) * - CASE + 37 WHEN - 49 + - 74 THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 43 + - 59 + - ( - 38 ) * 1 + - COUNT ( * ) THEN - 64 / 77 + + - 18 ELSE NULL END + 5 ) + - MIN ( DISTINCT ( + CASE - 3 WHEN + ( + 98 ) THEN + 86 WHEN - 96 THEN NUL… - -Expected: ["NULL","0"] but got ["NULL","0.250"] -``` - - -```sql -SELECT - - 94 * + CAST ( NULL AS INTEGER ) + + - ( + + SUM ( DISTINCT - 16 ) ) + - 52 * 60 / + + NULLIF ( - 15, 5 ) AS col0, - CASE 51 WHEN + 12 / + COUNT ( * ) * CAST ( - - COUNT ( * ) AS INTEGER ) * 13 THEN NULL WHEN 63 * - 94 THEN 55 ELSE NULL END / - 84 + - + CASE + 31 WHEN 49 + 40 * 92 THEN - … - -Expected: ["NULL","NULL"] but got ["224","NULL"] -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * ( 47 ) AS col2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT 24 + CASE WHEN + NULLIF ( 12, + + ( - - 92 ) + - 44 + - CASE 32 WHEN + + 38 THEN + 95 * + - 30 + - 24 ELSE + CASE + ( - 99 ) WHEN 80 THEN + 32 END * 38 + + CASE + 52 - 31 * 58 WHEN 49 THEN + 92 + 4 END * 42 END ) BETWEEN ( NULL ) AND ( 20 * 3 ) THEN NULL WHEN + 15 IN ( 55 ) THEN NUL… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ( + 25 ) AS col2, 63 * - + 82 * CASE + 72 WHEN 89 THEN - + 53 + - 79 END * + 95 AS col2 - -Expected: ["25","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL 32 / + - 60 * + - 23 + - + 70 / 40 + - 26 AS col0 - -Expected: ["-27"] but got ["-27.727"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,038 failed -* 79% was OK - -Time: 28052.604ms - ----- ---- ---- ---- ---- ---- ---- -### 421/620 [`./test/random/expr/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_49.test) - -_Mimic sqlite_ - -```sql -SELECT 60 * - 67 + + COUNT ( * ) AS col2, 95 - -Expected: ["-4019","95"] but got ["95","-4019"] -``` - - -```sql -SELECT CASE 26 WHEN + COUNT ( DISTINCT + + CAST ( NULL AS REAL ) ) * - 56 * 64 + - 16 + - - ( - 23 ) THEN - ( - 29 ) * - 2 + + 16 * + + 84 * + + 93 / + CASE 43 WHEN COUNT ( * ) * + CASE - COUNT ( * ) WHEN - 48 * + + COUNT ( + 53 ) THEN NULL WHEN - 30 THEN MIN ( - 82 ) END - ( 33 ) THEN 4 WHEN - + 3… - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 29 + - - 43 + - 41 * - ( + 8 ) * CAST ( NULL AS INTEGER ) * + 5 AS col2 - -Expected: ["NULL"] but got ["72"] -``` - - -```sql -SELECT 21 + - COUNT ( * ) - 76 + - - ( + + 27 ) + 9 * CASE WHEN - CAST ( NULL AS INTEGER ) BETWEEN + 98 + + + 68 AND + 3 * + COUNT ( * ) + - 64 * - 39 * - 32 / + COUNT ( * ) THEN NULL ELSE 62 / 10 END + ( - 60 ) + + - 50 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 1 AS col0, CASE - + 46 WHEN - - 81 THEN 83 * - + 51 / + 61 * - - 91 + 93 * - COUNT ( * ) * 89 END AS col0 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + + 94, CAST ( - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * + + 20 + 53, CAST ( NULL AS INTEGER ) col0 - -Expected: ["NULL","NULL"] but got ["53","0"] -``` - - -```sql -SELECT ALL - + CASE WHEN NOT - 74 IN ( + COALESCE ( + 50, - 13, 76 * + - 63 * 21 ) * + 78 * - 21 + + ( + 15 ), 64, + - 81 ) THEN - 25 + - + 10 END * 54 + + COUNT ( DISTINCT 56 ) * + COUNT ( * ) * - - 29 * - + 56 - -Expected: ["266"] but got ["NULL"] -``` - - -```sql -SELECT - 26 AS col0, + 71 * + CASE - 50 WHEN - 16 THEN - ( 15 ) WHEN + - 52 + 43 THEN NULL END * - - 52 + - 49 AS col0 - -Expected: ["-26","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col1, + CASE 26 WHEN - - 43 THEN - 78 * - MIN ( DISTINCT - + 25 ) * NULLIF ( + 18, + 38 * + ( + 19 ) * + + 75 ) * 34 * 11 + SUM ( - 49 ) * - + 3 * + NULLIF ( + AVG ( ALL 80 ), - 71 ) END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,006 failed -* 79% was OK - -Time: 31998.523ms - ----- ---- ---- ---- ---- ---- ---- -### 422/620 [`./test/random/expr/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT 89 * + CASE 39 WHEN + - 14 THEN NULL ELSE - + ( - COUNT ( * ) ) - - - 28 END * - - CAST ( - 86 AS INTEGER ) - - CASE + AVG ( + 89 ) WHEN - CAST ( - 27 AS REAL ) THEN - 76 + + CAST ( NULL AS INTEGER ) + + - 31 + 22 * - 82 * + + COUNT ( - + ( + - ( 29 ) ) ) ELSE - 0 END + 94 - -Wrong conversion type -``` - - -```sql -SELECT - 79 / 44 + + + 90 col1 - -Expected: ["89"] but got ["88.205"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 9 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL CASE + - 88 WHEN - COALESCE ( - CAST ( - 37 AS INTEGER ), + 62 ) - + COUNT ( * ) / 56 THEN - 58 WHEN 41 THEN NULL END, 82 / 81 AS col0 - -Expected: ["NULL","1"] but got ["NULL","1.012"] -``` - - -```sql -SELECT ALL - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT + CAST ( - + CASE WHEN NOT 4 NOT BETWEEN COUNT ( * ) AND NULL THEN + 22 END AS REAL ) * 73 * - 59 / - MAX ( DISTINCT - 71 ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + MAX ( + - ( + 1 ) ) * 34 + + - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( DISTINCT - 24 ) / 41 + 68 * - CASE + 74 + - 34 * 20 WHEN 67 THEN NULL WHEN MIN ( + 97 ) + CAST ( - 84 - + 15 AS INTEGER ) * 27 THEN 56 ELSE NULL END - -Expected: ["NULL","NULL"] but got ["-34","NULL"] -``` - - -```sql -SELECT ( - 91 ) AS col0, - NULLIF ( + COUNT ( * ), ( + 67 ) * - CASE ( + COUNT ( * ) ) WHEN CASE + 85 WHEN + - 28 * - 66 THEN NULL WHEN + 94 THEN + 62 END + - 95 + CASE + + COALESCE ( - COALESCE ( 49, - ( - + ( + 72 ) ) / - + SUM ( 25 ), + 65, 15 * + NULLIF ( + - 36, + NULLIF ( NULLIF ( - COALESCE … - -Expected: ["-91","-1"] but got ["-91","NULL"] -``` - - -```sql -SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), ( - 87 ) / + COUNT ( * ) * - 62 * - 63 / + + 33 ) * 38, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + 52, + CAST ( NULL AS INTEGER ) + - NULLIF ( SUM ( ALL - - 73 ), + 53 - + 93 * - 72 + NULLIF ( - 49, + CAST ( NULL AS INTEGER ) ) + 30 ) col2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","-73"] -``` - - -```sql -SELECT CASE ( - CASE - + ( + 60 ) WHEN - COALESCE ( - 43, + 42 ) + - - 23 THEN + - COUNT ( * ) ELSE - 44 * + 52 END ) WHEN - 44 THEN - 73 END + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * + 82 AS col0 - -Expected: ["NULL","NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + 65 AS col1, CASE + + 3 WHEN + + 8 THEN 69 ELSE NULL END col1 - -Expected: ["65","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,085 failed -* 79% was OK - -Time: 63811.123ms - ----- ---- ---- ---- ---- ---- ---- -### 423/620 [`./test/random/expr/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_50.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 82 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - 64 / - + 11 - -Expected: ["5"] but got ["5.818"] -``` - - -```sql -SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT CASE WHEN NOT + 12 BETWEEN + ( - + 75 ) * - ( - + 78 ) + - - 40 + 19 AND CAST ( NULL AS REAL ) THEN + - 12 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 9 + + CASE + + NULLIF ( - 93, + 67 ) WHEN 55 * + CASE + CAST ( NULL AS INTEGER ) WHEN - - 31 THEN NULL WHEN + 76 THEN NULL ELSE + 83 END + - - 11 + + + 56 THEN NULL WHEN ( + - ( - 89 ) ) + + ( + 43 ) + + 16 + + + CAST ( NULL AS REAL ) * + 31 THEN NULL WHEN + COALESCE ( + COUNT ( * )… - -Wrong conversion type -``` - - -```sql -SELECT ALL - 53 / 66 * 44 * - - CAST ( NULL AS INTEGER ) AS col0, - 40 * + CASE + 66 WHEN - 97 THEN NULL WHEN - 65 + COUNT ( * ) * COUNT ( * ) * + 43 - 49 THEN + - 41 END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT DISTINCT - - 98 AS col0, + ( + CASE 65 WHEN - COUNT ( * ) THEN NULL WHEN - - 96 THEN + 10 * + 19 * 67 + - ( - 60 ) * 23 + 78 END ) * - + 33 + - 34 AS col0 - -Expected: ["98","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - - 17 * - 99 * 16, 29 * - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + 22 / - CAST ( - 38 AS INTEGER ) * - 78 + + 20 - - CASE - 24 WHEN - - CASE - + COALESCE ( COUNT ( * ), - 78 + - 34 * + 44, SUM ( + - 92 ) ) WHEN + 79 + + CAST ( - CAST ( - 95 AS INTEGER ) AS INTEGER ) + + CASE - 39 WHEN - SUM ( ALL + 64 ) THEN 29 END * AVG ( ALL + 92 ) THEN NULL WHEN + - 65… - -Expected: ["-657"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,998 failed -* 80% was OK - -Time: 62774.177ms - ----- ---- ---- ---- ---- ---- ---- -### 424/620 [`./test/random/expr/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_51.test) - -_Mimic sqlite_ - -```sql -SELECT 64 + CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT ALL + - 73 + - CAST ( NULL AS INTEGER ) + 19 - -Expected: ["NULL"] but got ["-54"] -``` - - -```sql -SELECT ALL + - 57 / + + 27 AS col1 - -Expected: ["-2"] but got ["-2.111"] -``` - - -```sql -SELECT ALL 21 + CAST ( NULL AS INTEGER ) AS col2, CASE 87 WHEN + 31 THEN - 8 WHEN - 3 THEN - 58 WHEN - - 59 THEN NULL END - -Expected: ["NULL","NULL"] but got ["21","NULL"] -``` - - -```sql -SELECT ALL - ( CASE WHEN + CAST ( 98 AS INTEGER ) BETWEEN + CAST ( NULL AS INTEGER ) * + ( 57 ) + + CAST ( - SUM ( + 89 ) AS REAL ) AND NULL THEN CASE COALESCE ( ( 71 ), + - COALESCE ( 11, + - CAST ( NULL AS INTEGER ), CASE 16 WHEN 70 THEN + 72 ELSE - 48 * + 52 END + 89 ) ) WHEN + + 23 THEN - + 30 … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + COUNT ( * ) AS col2, - 3 + - + ( - - 70 ) / COALESCE ( + COUNT ( * ), + - 11 * 97 ) + - + CASE + CASE COUNT ( * ) WHEN - + 38 * + - 26 THEN - + 14 * ( + 56 ) ELSE NULL END WHEN - CAST ( + 44 AS INTEGER ) + - - 28 + + - 51 * - 9 THEN ( - 73 ) + 14 END AS col2 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( + MIN ( DISTINCT 28 ) AS INTEGER ) * NULLIF ( + + 2, + ( CASE + ( + 33 ) WHEN + + 52 / - + 90 THEN + + 44 END ) ) / + + 41 AS col2 - -g is not defined -``` - - -```sql -SELECT - COUNT ( * ) AS col0, 80 / - NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), - 21 / COUNT ( * ) + - 98 ) - -Expected: ["-1","-80"] but got ["-1","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col0, + 76 * CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,968 failed -* 80% was OK - -Time: 85602.335ms - ----- ---- ---- ---- ---- ---- ---- -### 425/620 [`./test/random/expr/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_52.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - + 50 + 53 AS col0, ( - CAST ( - - COUNT ( * ) AS INTEGER ) ) * + 15 AS col2 - -g is not defined -``` - - -```sql -SELECT ALL 98 / + + 41 AS col2 - -Expected: ["2"] but got ["2.390"] -``` - - -```sql -SELECT + - 35 + - + CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["-35"] -``` - - -```sql -SELECT ALL - COALESCE ( + 32, - SUM ( DISTINCT 84 ) * 35 ) / CAST ( NULL AS INTEGER ) / MAX ( + CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT COUNT ( * ) - ( + 44 ) + - COUNT ( * ) AS col2, - 41 * - CASE 48 WHEN + 21 * - + CASE - + COUNT ( * ) WHEN - 3 THEN + - 7 * + + ( + 69 ) END * 30 - 35 THEN + 46 END AS col2 - -Expected: ["-44","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + 33 * + - CASE - 23 WHEN + 11 THEN - 0 + + CAST ( NULL AS INTEGER ) WHEN - 77 THEN NULL END AS col2, + 61 + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","61"] -``` - - -```sql -SELECT - COUNT ( * ) * + - ( + 46 ) / - 55 * CAST ( - COUNT ( * ) * 12 AS INTEGER ) - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT - 21 * - COALESCE ( - 5, 79, + AVG ( - 25 ) / + COUNT ( * ) + - 39 + + - 2 + CASE - + 51 WHEN - - 25 * 40 + - CASE WHEN 64 IS NOT NULL THEN NULL WHEN - 25 BETWEEN NULL AND 36 + 23 THEN NULL ELSE + 79 + CASE 48 + + ( - 0 - ( 33 ) * 68 ) WHEN + ( 90 ) - 95 * - 87 THEN NULL WHEN + 53 * 34 THEN … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - + 4 / + 38 + + + 19 - + - 39 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + 96 * - 91 + - 97, - 82 + 69 * + ( CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["-8776.105","-82"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,064 failed -* 79% was OK - -Time: 116796.951ms - ----- ---- ---- ---- ---- ---- ---- -### 426/620 [`./test/random/expr/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_53.test) - -_Mimic sqlite_ - -```sql -SELECT 52 * 75 / + 95 AS col2, SUM ( DISTINCT + 67 ) + + + 29 + - 62 * - 97 * - + 80 AS col1 - -Expected: ["41","-481024"] but got ["41.053","-481024"] -``` - - -```sql -SELECT ALL CASE + 75 WHEN - 57 THEN NULL ELSE - + CASE - 36 WHEN + NULLIF ( ( + - ( - 61 ) ), 36 ) THEN - + AVG ( 61 ) ELSE 74 + + 28 + 1 - 71 + - + COUNT ( * ) + - 41 END END + - 80 * CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL"] but got ["10"] -``` - - -```sql -SELECT SUM ( + 36 ) * + NULLIF ( + - 37, 58 ) * + 60 * + 5 + + CAST ( NULL AS INTEGER ) + 70 * NULLIF ( 22, 27 ) + - 44, AVG ( 3 ) / - + SUM ( ALL - CASE 83 WHEN 2 THEN 9 + + 3 * - 73 ELSE NULL END ) * COUNT ( * ) + COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["-398104","NULL"] -``` - - -```sql -SELECT DISTINCT COALESCE ( - CAST ( MIN ( 31 ) AS INTEGER ), 82 - - - 45 ) + - - 23 + - 31 * 93 * - 52 * 42 * + ( - - 19 ) col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - 20 * - - CAST ( NULL AS REAL ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT 24 * - - ( + - 85 ) * CASE WHEN NOT ( NULL ) NOT BETWEEN - CAST ( - - 55 AS INTEGER ) AND + COALESCE ( 75, + + 79 ) * - AVG ( ALL - 25 ) THEN + 81 ELSE - + 40 END + 40 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 42 - + COALESCE ( - + 94, + SUM ( COALESCE ( 86, - 89 * - 66 + + + 17 / + + 92, - COALESCE ( 45, - 8, CAST ( - 79 AS INTEGER ) + + ( + 0 ), + 8 ) ) ) + + + 41 ) AS col1, + ( - + CASE - + 22 WHEN 27 * - COUNT ( * ) THEN - 79 - - + 45 WHEN + 92 / + + 69 * + - 21 THEN - CAST ( - 94 AS INTEG… - -Expected: ["136","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 64 / COUNT ( * ) + - 61 + + CAST ( NULL AS INTEGER ) + + + 28 * ( - 4 ) * + MAX ( + 86 ) + 75 AS col1, - MAX ( ALL + 20 ) - - CASE + 10 WHEN + + 28 THEN - 2 / 95 WHEN - 60 * - 97 THEN NULL ELSE CAST ( NULL AS INTEGER ) + COUNT ( * ) END + COUNT ( * ) AS col0 - -Expected: ["NULL","NULL"] but got ["-9554","-18"] -``` - - -```sql -SELECT + 49 + CASE - 0 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 15 END AS col0 - -Expected: ["64"] but got ["NULL"] -``` - - -```sql -SELECT - 84 AS col1, 47 * - CASE + 47 WHEN ( + 79 ) THEN - 85 END AS col1 - -Expected: ["-84","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,981 failed -* 80% was OK - -Time: 78629.794ms - ----- ---- ---- ---- ---- ---- ---- -### 427/620 [`./test/random/expr/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_54.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 51, + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["51","NULL"] but got ["51","0"] -``` - - -```sql -SELECT + COUNT ( * ) / MIN ( DISTINCT - 41 ) * 88 - -Expected: ["0"] but got ["-2.146"] -``` - - -```sql -SELECT + 52 AS col1, NULLIF ( CAST ( NULL AS REAL ), - + SUM ( DISTINCT - 5 ) * + 58 * - 73 - - + COUNT ( * ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 55, CAST ( + COUNT ( * ) AS INTEGER ) * + 89 col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) - - 35 AS col0 - -Expected: ["NULL","NULL"] but got ["0","35"] -``` - - -```sql -SELECT ALL + CASE WHEN NOT SUM ( + - 68 ) = NULL THEN NULL ELSE 21 END AS col1 - -Expected: ["21"] but got ["NULL"] -``` - - -```sql -SELECT ALL 38 + 47 * - + 90 - - CASE WHEN NOT NULL BETWEEN NULL AND 61 THEN + NULLIF ( - 1, - 90 - + COALESCE ( - ( 72 ), - 3, 56 / 75 - 28 ) * COUNT ( * ) ) * - 4 ELSE ( 0 ) END - -Cannot read property 'toString' of undefined -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,612 failed -* 83% was OK - -Time: 30907.812ms - ----- ---- ---- ---- ---- ---- ---- -### 428/620 [`./test/random/expr/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_55.test) - -_Mimic sqlite_ - -```sql -SELECT + 5 / - 43 AS col2 - -Expected: ["0"] but got ["-0.116"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) + - 48 * + - COALESCE ( + + 64, + - 79 ) - -Wrong conversion type -``` - - -```sql -SELECT + 54 - - 6 + CAST ( NULL AS INTEGER ) / + COALESCE ( - + 81, CAST ( NULL AS INTEGER ) + + 49 ) col1 - -Expected: ["NULL"] but got ["60"] -``` - - -```sql -SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 5 + 80 + - 41 col0 - -g is not defined -``` - - -```sql -SELECT + 93 + + 87 * - - CASE - + 71 WHEN - 15 * 76 THEN - + CAST ( NULL AS INTEGER ) END * 32 + 7 * COUNT ( * ) + 38 AS col0, + CAST ( NULL AS INTEGER ) + - 37 + - 53 * + 81 + + + 93 - -Expected: ["NULL","NULL"] but got ["NULL","-4237"] -``` - - -```sql -SELECT + ( + + NULLIF ( - COUNT ( ALL - CAST ( NULL AS INTEGER ) ), - 14 ) ) AS col1, - CASE + 63 WHEN + - 85 THEN - 42 - - COUNT ( * ) * - - COALESCE ( + 80, + + 99, 28 * + 37 + + 69 ) END / - 26 AS col0 - -Expected: ["0","NULL"] but got ["-1","NULL"] -``` - - -```sql -SELECT 45 * + CAST ( NULL AS INTEGER ) col0, CAST ( NULL AS INTEGER ) + + 50 * + - MIN ( 71 ) AS col2 - -Expected: ["NULL","NULL"] but got ["0","-3550"] -``` - - -```sql -SELECT + - COALESCE ( - NULLIF ( - 33, + CASE WHEN - 89 NOT BETWEEN - + COALESCE ( + + 64, + 48 ) * + - 14 + + 11 + COALESCE ( 39, COUNT ( * ), 98 * ( + 87 ) + 36 ) * 79 AND 28 THEN COUNT ( * ) + - ( 87 + 71 ) END - 15 / ( 14 ) ), 27, SUM ( 28 ) ) + 34 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN + + 34 * + COUNT ( * ) ELSE NULL END col1 - -Expected: ["34"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 54 AS col1, 85 / 68 * - 72 * + 98 * + 88 * - - CASE + 0 WHEN 8 + CAST ( - 5 AS INTEGER ) THEN 85 END * - 61 AS col1 - -Expected: ["54","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) * MAX ( ALL - 99 ) AS col0 - -Wrong conversion type -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,081 failed -* 79% was OK - -Time: 46450.571ms - ----- ---- ---- ---- ---- ---- ---- -### 429/620 [`./test/random/expr/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_56.test) - -_Mimic sqlite_ - -```sql -SELECT + CASE - 20 WHEN NULLIF ( + - 51, - CAST ( 45 AS REAL ) + - 92 * + COUNT ( * ) ) * + + 76 THEN NULL WHEN - 92 * - 61 THEN + ( - 83 ) * + CAST ( NULL AS INTEGER ) WHEN 75 / COUNT ( * ) + + 56 / 49 THEN - 41 ELSE NULL END / + 32 + ( + COUNT ( * ) ) - -Wrong conversion type -``` - - -```sql -SELECT - 61 * + CAST ( COUNT ( DISTINCT 4 ) AS INTEGER ) AS col1 - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + + 31 * - MAX ( 19 ) * + 82 * + CASE - COUNT ( * ) WHEN ( + + CAST ( + 38 AS INTEGER ) ) THEN + ( 19 ) WHEN + 2 + + 40 THEN NULL ELSE - 37 + + CAST ( + 29 AS INTEGER ) * - CAST ( NULL AS INTEGER ) END + 26 + + 98 - -Expected: ["NULL"] but got ["1787150"] -``` - - -```sql -SELECT DISTINCT MAX ( - 91 ) / + 42 - - 60 + + COUNT ( * ) + 3 - -Expected: ["62"] but got ["61.833"] -``` - - -```sql -SELECT CASE WHEN NOT - 49 BETWEEN - ( - COALESCE ( - ( ( 22 ) ), - MAX ( 11 ) ) ) AND 78 + - 94 THEN NULL WHEN ( NULL ) NOT IN ( ( 60 ) ) THEN 50 / 26 ELSE 53 * - 71 + 40 END + 61 * + 19 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 95 col1, CASE - + 98 WHEN - 30 + + + 15 THEN + COUNT ( * ) END AS col1 - -Expected: ["95","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + MAX ( + 86 ) / CAST ( COUNT ( * ) / - 14 + + 41 AS INTEGER ) + 63 / 17 - -Expected: ["5"] but got ["NULL"] -``` - - -```sql -SELECT ALL - MIN ( DISTINCT + - 11 ) * CAST ( NULL AS INTEGER ) * + + NULLIF ( 51, 54 ) * + 71 + - - COUNT ( * ) - - - 9 - + + 30 * + + 81 * 70 * - - 15 + + 4, CASE - ( 59 ) WHEN + CAST ( NULL AS INTEGER ) + 29 THEN NULL WHEN + 93 * + - CASE 46 WHEN + + 48 THEN + COUNT ( * ) WHEN - + 95 THEN NULL E… - -Expected: ["NULL","NULL"] but got ["-2551504","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,014 failed -* 79% was OK - -Time: 44510.234ms - ----- ---- ---- ---- ---- ---- ---- -### 430/620 [`./test/random/expr/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_57.test) - -_Mimic sqlite_ - -```sql -SELECT - + 31 / 46 - -Expected: ["0"] but got ["-0.674"] -``` - - -```sql -SELECT ALL - - CAST ( NULL AS INTEGER ) + - ( - 84 ) + - 65 + - 13 * + 4 + - 13 AS col2 - -Expected: ["NULL"] but got ["-46"] -``` - - -```sql -SELECT ALL + NULLIF ( 12, 88 + - COUNT ( * ) + CAST ( NULL AS REAL ) * + CAST ( 27 AS INTEGER ) ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL 94 * + CAST ( + CASE + + ( + 29 ) WHEN - 69 THEN - 13 WHEN - 52 THEN NULL ELSE - CASE + 50 WHEN COUNT ( * ) THEN - 80 * 69 END * + 66 END AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - 71 AS col2, CASE + MAX ( ALL 23 ) WHEN + 31 + - + 21 THEN 14 ELSE NULL END * + COUNT ( * ) AS col2 - -Expected: ["-71","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - - 98 * + + NULLIF ( + AVG ( ALL ( - COALESCE ( - 11, + 92, - + 44 * + ( + 58 ) + 41, + - 91 ) ) ), 11 ), CAST ( NULL AS INTEGER ) / - + COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1, 97 - - + AVG ( - + 50 ) + - + CAST ( NULL AS INTEGER ) + - - 36 AS col2 - -Expected: ["NULL","NULL"] but got ["1","83"] -``` - - -```sql -SELECT DISTINCT - 97 - + CASE WHEN + 83 >= NULL THEN COALESCE ( ( - COUNT ( * ) ), 40 * 0, + 42 ) + AVG ( 14 ) WHEN NOT - 46 / + 1 NOT BETWEEN MIN ( ALL - 40 ) - ( COUNT ( * ) ) * - COUNT ( * ) AND NULL THEN NULL END + + COALESCE ( - 83, 4 + + 8, COUNT ( * ) ) * - 97 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - COUNT ( * ) * CASE WHEN NULL NOT IN ( + 55, - 6 ) THEN NULL ELSE + 74 + + 47 END AS col2 - -Expected: ["-121"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 22 AS col1, + 85 + 41 + + CASE + 22 WHEN 96 THEN NULL WHEN - 94 THEN + ( 59 ) * - 42 - + 10 END AS col1 - -Expected: ["-22","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,000 failed -* 80% was OK - -Time: 38376.271ms - ----- ---- ---- ---- ---- ---- ---- -### 431/620 [`./test/random/expr/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_58.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CAST ( NULL AS REAL ) * - COUNT ( * ) / + + 20 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT + 82 + + + 32 / 65 col1 - -Expected: ["82"] but got ["82.492"] -``` - - -```sql -SELECT DISTINCT NULLIF ( 18, + 77 ) * - 45 + - - CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["-810"] -``` - - -```sql -SELECT DISTINCT - + 56 * COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), + 21 ) AS col1 - -g is not defined -``` - - -```sql -SELECT ALL + 40, - CASE WHEN NOT + 26 BETWEEN + - 95 * + 70 / - + 96 AND - ( + - 84 ) THEN NULL WHEN + 7 BETWEEN ( + NULLIF ( + 97, + - 26 * + 45 * 0 ) ) AND NULL THEN - 34 ELSE NULL END col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 86 AS col0, + ( - 50 ) + - + ( + CASE + 77 WHEN CAST ( + 14 AS INTEGER ) THEN + 89 WHEN - 81 * - 25 THEN NULL END ) - + 21 * COUNT ( DISTINCT - 32 ) AS col0 - -Expected: ["86","NULL"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), + 97 + - CAST ( NULL AS INTEGER ) - + 93 AS col0 - -Expected: ["NULL","NULL"] but got ["0","4"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) col0, + COUNT ( * ) / + ( - 77 ) * + + 1 * 76 * 67 * AVG ( + + CAST ( NULL AS INTEGER ) ) * - 28 + + - 30 AS col2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - MIN ( ALL + 40 ) / - + CAST ( - MIN ( - - 20 ) AS INTEGER ) + - - 21 AS col2 - -Expected: ["19"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 54 * + 33 AS col0, 65 / + CAST ( NULL AS INTEGER ) - + - 53 - + 76 / - 46 * 13 * + 36 AS col0 - -Expected: ["1782","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,952 failed -* 80% was OK - -Time: 40352.406ms - ----- ---- ---- ---- ---- ---- ---- -### 432/620 [`./test/random/expr/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_59.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 41 / - 55 + + COUNT ( * ) - -Expected: ["1"] but got ["1.745"] -``` - - -```sql -SELECT ALL + 58 * + CAST ( NULL AS INTEGER ) + - 96 - -Expected: ["NULL"] but got ["-96"] -``` - - -```sql -SELECT ( - ( + CAST ( NULL AS REAL ) ) ) - -Wrong conversion type -``` - - -```sql -SELECT 63 * CAST ( - COUNT ( * ) AS INTEGER ), 48 AS col0 - -g is not defined -``` - - -```sql -SELECT - CASE WHEN NOT ( NULL ) BETWEEN NULL AND - 50 THEN NULL ELSE + - 87 END col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + COUNT ( ALL + + 19 ) * ( 30 ) * + ( + - CAST ( MAX ( ALL + 6 ) AS INTEGER ) ) AS col2, - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * + 90 / + - CAST ( NULL AS INTEGER ) - -Expected: ["-180","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - - 84 * - 91 * + ( 50 ) - - - 34 * + NULLIF ( - + ( + 25 ), + - 93 - - 4 ) + + 21 + - 97 / + CAST ( - COUNT ( * ) AS INTEGER ) + + + 67 - + 98 / COUNT ( ALL + 15 ) col2 - -Expected: ["-381263"] but got ["NULL"] -``` - - -```sql -SELECT 14 * + - 33 + - 85 * - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / + NULLIF ( 87, + 60 ) * - 64 AS col1 - -Expected: ["NULL","NULL"] but got ["-462","0"] -``` - - -```sql -SELECT + CASE - 44 WHEN 69 THEN - + 28 + - 92 + + - 32 - + 20 END, - CAST ( NULL AS INTEGER ) * 53 AS col2 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,977 failed -* 80% was OK - -Time: 42944.682ms - ----- ---- ---- ---- ---- ---- ---- -### 433/620 [`./test/random/expr/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + 77 + - 25 + COALESCE ( 17, COUNT ( * ), - NULLIF ( + 14, + - ( - 78 ) * - COUNT ( * ) ) ) + CAST ( NULL AS REAL ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT 64 / - - 90 + + 22 * + ( - 0 ) AS col1 - -Expected: ["0"] but got ["0.711"] -``` - - -```sql -SELECT 64 - + - CASE + 33 WHEN + 80 * 8 * - - 62 + + 88 + - + 5 * 63 / 11 THEN - + COALESCE ( - 93, - 63 ) ELSE NULL END + - - 51 - + + 99 AS col1, 79 AS col1 - -Expected: ["NULL","79"] but got ["79","79"] -``` - - -```sql -SELECT + + 92 * NULLIF ( COALESCE ( + - 44, 60 * + 41 ), - - 77 ) * 82 * CAST ( NULLIF ( COUNT ( * ), - 7 * - 79 + + + 35 ) AS INTEGER ) + + + 48 - -g is not defined -``` - - -```sql -SELECT 6 + - + 0 * + 51 / + ( CASE WHEN + 76 BETWEEN - 93 * + + CAST ( - - 7 AS INTEGER ) * 71 * + + 10 - + AVG ( DISTINCT - 95 ) AND - 61 THEN - - 39 WHEN 73 BETWEEN 8 AND - ( 25 ) + 86 THEN + COUNT ( * ) * AVG ( 33 ) END ) * 89 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, CASE - 45 WHEN 29 THEN + - COUNT ( * ) WHEN + 74 THEN NULL END AS col1 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 44 / - 97 - + + 36 + + 0 * 40 + + 15 * - MIN ( - 42 ) * + + 25 AS col1, - CASE - + 73 WHEN COALESCE ( - MAX ( ALL - - 70 ), + 94 * + COALESCE ( - 20, - 90 * - 32 + - 35 + - + 4, + 62 + - NULLIF ( + + ( 95 ), + 65 ), 26 ) * - 49 + + NULLIF ( 43, - 91 ) ) THEN - 62 * + 4 * + AVG ( 92 ) - - 7… - -Expected: ["15714","NULL"] but got ["15714.454","NULL"] -``` - - -```sql -SELECT + COALESCE ( - MAX ( + - 18 ), - - ( + COALESCE ( 15, - SUM ( ALL - + 6 ) ) ) ) / - - ( CAST ( + + MIN ( ALL - 30 ) AS INTEGER ) ) - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 69 + + CAST ( NULL AS INTEGER ) AS col1, - 40 - - 10 * + 5 AS col0, + SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 74 - -Expected: ["NULL","10","NULL"] but got ["-69","10","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,043 failed -* 79% was OK - -Time: 51010.488ms - ----- ---- ---- ---- ---- ---- ---- -### 434/620 [`./test/random/expr/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_60.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 89 * + CAST ( - COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + COUNT ( DISTINCT - CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col2 - -Expected: ["0"] but got ["1"] -``` - - -```sql -SELECT - 85 * - - NULLIF ( + - 1, - 95 + + CAST ( NULL AS REAL ) ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT 36 * + 74 * CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT 69 / - 21 - + + AVG ( 47 ) + + CASE + 57 WHEN COUNT ( * ) + + COUNT ( * ) THEN - + ( + 4 ) END + + 20 AS col0, CAST ( NULL AS INTEGER ) + - 28 + + COUNT ( * ) AS col0 - -Expected: ["NULL","NULL"] but got ["-27"] -``` - - -```sql -SELECT DISTINCT - 52 / + + 16 + 73 * + 6 + 28 / - ( + CASE 1 WHEN ( - 58 ) THEN - + 40 WHEN - NULLIF ( + - COALESCE ( 78, - + COUNT ( * ) / + + 13 * + 54 + - - 76 ), + 41 ) / 68 THEN - - 58 * + - COUNT ( * ) + + 20 END ) AS col2 - -Expected: ["435"] but got ["NULL"] -``` - - -```sql -SELECT ALL - CASE + MAX ( DISTINCT - ( - + 3 ) ) WHEN COALESCE ( - - 93, + 87, - + COALESCE ( - 51, 42 + - 82 + - NULLIF ( 39, + - 11 ) ) * - 4 - + 32 ) THEN - 6 - + 31 END * 89 AS col0, 97 - -Expected: ["NULL","97"] but got ["97","NULL"] -``` - - -```sql -SELECT DISTINCT 11 + - COUNT ( * ) + SUM ( ALL + 48 ) + - + COUNT ( * ) / NULLIF ( - 48, 50 * + + 34 * + CASE WHEN NULL IS NOT NULL THEN NULL WHEN NULL NOT BETWEEN ( + COALESCE ( 5, - 53 ) ) AND 93 THEN - 4 END + + MAX ( DISTINCT COALESCE ( - 51, 39, + 27 ) ) * + 40 ) + + 57 / - 77 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 91 AS col2, 90 * - - CASE 22 WHEN CAST ( NULL AS INTEGER ) * 60 THEN - 52 WHEN + 94 * - 13 THEN NULL END - 61 * + 19 AS col2 - -Expected: ["91","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + CASE 42 WHEN + 66 THEN 36 END, - COUNT ( + 40 ) * CAST ( NULL AS INTEGER ) * - 73 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,007 failed -* 79% was OK - -Time: 65080.713ms - ----- ---- ---- ---- ---- ---- ---- -### 435/620 [`./test/random/expr/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_61.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT NULLIF ( + SUM ( ( ( + 5 ) ) ), + 66 + - ( + 85 ) ) / - - 87 + + 13 * + 47 - -Expected: ["611"] but got ["611.057"] -``` - - -```sql -SELECT 62 + + CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - - 51 + + - CAST ( - + COUNT ( 49 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - ( - + ( CAST ( NULL AS INTEGER ) ) ) AS col1, - 31 - - + 48 - -Expected: ["NULL","17"] but got ["0","17"] -``` - - -```sql -SELECT - 86 + - + 69 + 30 * - 39 + - - 45 AS col2, CASE WHEN NOT ( NULL ) NOT BETWEEN - COALESCE ( + 91, - - 2 ) AND AVG ( ALL ( 40 ) ) THEN - 3 + 82 END + - 69 col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 25 * - + 78 * CASE - 71 WHEN 5 THEN - COUNT ( * ) END AS col2, 91 - -Expected: ["NULL","91"] but got ["91","NULL"] -``` - - -```sql -SELECT DISTINCT + 58 * + COUNT ( * ) + AVG ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) AS col0, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 - -Expected: ["NULL","NULL"] but got ["58","0"] -``` - - -```sql -SELECT - 79 AS col0, + CASE - - 28 WHEN + 13 THEN - + 3 - + CAST ( NULL AS INTEGER ) ELSE NULL END col0 - -Expected: ["-79","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + CASE WHEN NOT ( 30 ) >= NULL THEN NULL ELSE 2 END * + 48 + + + 83 * 97 + 12 - -Expected: ["8159"] but got ["NULL"] -``` - - -```sql -SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col0, + 36 * + 24 - + CASE + + 61 WHEN + COUNT ( * ) + - + 47 + + 36 + 79 / - 39 + + 33 * - 27 THEN NULL WHEN - COALESCE ( + 40, + - ( + 65 ), - 30 ) + + 52 + + + COUNT ( * ) / 24 * 6 * - ( - 8 / + 80 ) THEN 79 * COUNT ( * ) END AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,025 failed -* 79% was OK - -Time: 45647.673ms - ----- ---- ---- ---- ---- ---- ---- -### 436/620 [`./test/random/expr/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_62.test) - -_Mimic sqlite_ - -```sql -SELECT + 14 / + 60 - -Expected: ["0"] but got ["0.233"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * 19 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - CASE + - 58 WHEN 81 * + 23 * CASE WHEN - COUNT ( * ) < NULL THEN - - NULLIF ( - COALESCE ( + 75, 97 ), 61 - - 50 * 6 ) + NULLIF ( 3 + 69 * 42, 60 + - 80 ) WHEN NOT ( - 17 * COUNT ( * ) + COUNT ( * ) ) NOT BETWEEN ( 23 ) AND ( - 51 ) THEN + MAX ( DISTINCT 51 ) END + 54 * + 9 THEN 43 + CAST … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) / - 55 - + 35 col1 - -Wrong conversion type -``` - - -```sql -SELECT 20 * 25 * + - CAST ( - - 10 AS INTEGER ) * - 59 + NULLIF ( - CAST ( - + ( + COALESCE ( - - CASE + - COUNT ( * ) WHEN - + 2 * + ( + - 31 ) THEN NULL ELSE + 96 END, - 96 * - 70, 21 * - 34 ) ) AS INTEGER ), - CAST ( NULL AS INTEGER ) ) + + 59 * 0 AS col0 - -g is not defined -``` - - -```sql -SELECT - NULLIF ( - 54, - COUNT ( 43 ) / + - 58 * - 16 - + 70 ) * + CAST ( NULL AS INTEGER ) AS col2, + NULLIF ( - CAST ( - - CASE + AVG ( ALL - - 5 ) WHEN - 72 / 94 THEN - 32 END AS INTEGER ), + - 28 ) * + + ( - + 75 ) - + 57 * + 8 + + COALESCE ( 59, - 2 * ( COUNT ( 62 ) ), 38 ) - -Expected: ["NULL","NULL"] but got ["0","-397"] -``` - - -```sql -SELECT + AVG ( + - ( + 74 ) ) + - 86 * + - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) + - + CASE - 68 WHEN - 66 THEN + + 21 WHEN - SUM ( DISTINCT - 28 ) THEN NULL END + 12 * + + 46 - -Expected: ["NULL","NULL"] but got ["-74","NULL"] -``` - - -```sql -SELECT 79 * + + 18 + + - COUNT ( * ) / - CAST ( MAX ( 57 ) AS INTEGER ) AS col1 - -Expected: ["1422"] but got ["NULL"] -``` - - -```sql -SELECT ALL ( - CASE 58 WHEN + 62 THEN + - 81 WHEN - NULLIF ( 19, 42 / + 94 + + 89 + + + 67 ) * - - 50 THEN 57 END ) AS col0, ( 40 ) / + 99 AS col2 - -Expected: ["NULL","0"] but got ["NULL","0.404"] -``` - - -```sql -SELECT DISTINCT COUNT ( DISTINCT + 11 ) AS col1, 1 col1 - -Expected: ["1","1"] but got ["1"] -``` - - -```sql -SELECT ALL - 29 AS col0, CASE + 8 WHEN - + 25 THEN - 15 ELSE NULL END * - - 28 AS col0 - -Expected: ["-29","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,045 failed -* 79% was OK - -Time: 50511.480ms - ----- ---- ---- ---- ---- ---- ---- -### 437/620 [`./test/random/expr/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_63.test) - -_Mimic sqlite_ - -```sql -SELECT + MIN ( ALL - NULLIF ( + 89, 47 ) ) * CAST ( + COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / 76 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 52 / 72 * - COALESCE ( + 14, - COUNT ( * ) * - 38 ) AS col0 - -Expected: ["0"] but got ["-10.111"] -``` - - -```sql -SELECT ALL 65 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 37 * + CAST ( NULL AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + - 98 * - + COUNT ( * ) + - NULLIF ( 49, + + 51 * + MAX ( - - 58 ) - CAST ( NULL AS INTEGER ) ) + 80 / CAST ( - + MAX ( - 41 ) AS INTEGER ) * - 73 + - - 63 * - + 86 - -Expected: ["-5442"] but got ["NULL"] -``` - - -```sql -SELECT ALL + ( - - COUNT ( * ) ) / CASE WHEN NOT ( NOT - - ( ( - ( - COUNT ( * ) ) ) ) NOT BETWEEN NULL AND - 57 ) THEN + 5 / + + COUNT ( * ) + 35 + + 91 WHEN ( 48 ) + 82 IS NULL THEN NULL ELSE + CASE + ( 52 ) WHEN 4 THEN NULL WHEN - 0 + 85 THEN NULL ELSE 52 END END + - 77 * 76 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - CASE 93 WHEN 25 THEN - 23 WHEN + - COUNT ( * ) THEN 45 END AS col2, 97 - -Expected: ["NULL","97"] but got ["97","NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + MAX ( ALL + 49 ) - - CASE + 19 WHEN - + 5 - 9 + + 22 - - - 72 THEN NULL ELSE - 1 * - 57 - + - 84 - - + 24 * - - 86 END + - 37 / + - 75 AS col0, 7 AS col2, - + COUNT ( * ) + - 43 * CASE - COUNT ( * ) WHEN - COALESCE ( - 97, - 11, + - COALE… - -Expected: ["NULL","7","NULL"] but got ["NULL","7"] -``` - - -```sql -SELECT + 97 + CAST ( NULL AS INTEGER ), - MAX ( - - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["97","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,002 failed -* 80% was OK - -Time: 35681.828ms - ----- ---- ---- ---- ---- ---- ---- -### 438/620 [`./test/random/expr/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_64.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - SUM ( ALL 20 ) + 33 + - 11 - 8 + - 74 + + 93 - -Expected: ["53"] but got ["33"] -``` - - -```sql -SELECT 45 + - 10 * CASE + CAST ( NULL AS INTEGER ) WHEN 30 - CAST ( - COUNT ( * ) AS INTEGER ) / + - 27 THEN + NULLIF ( + 21, 3 * 39 - 33 ) WHEN + ( + CAST ( NULL AS REAL ) ) THEN NULL END AS col2 - -g is not defined -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 68 * - 62 + - 89 - -Expected: ["NULL","-4305"] but got ["0","-4305"] -``` - - -```sql -SELECT - - 52 * 99 + - + CAST ( CAST ( 70 AS REAL ) AS INTEGER ) col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + 16 + - 65 * + CAST ( NULL AS INTEGER ) AS col0, - CASE - - 72 WHEN + 50 THEN - + 14 WHEN + 42 * + - CASE - 1 WHEN 19 THEN NULL WHEN CASE + COUNT ( * ) WHEN 52 * + 83 THEN 33 WHEN + 0 THEN NULL ELSE NULL END - 19 THEN - COUNT ( DISTINCT + 38 ) END THEN NULL END + 43 - -Expected: ["NULL","NULL"] but got ["16","NULL"] -``` - - -```sql -SELECT DISTINCT + ( + - COUNT ( * ) ) / - COALESCE ( CAST ( NULL AS INTEGER ), + 97 + 71 / + 9 * 77 ) + 91 * - 88 * - ( - 16 ) * - + 44 col2 - -Expected: ["5637632"] but got ["NULL"] -``` - - -```sql -SELECT ALL + CASE WHEN NOT NULL IS NOT NULL THEN + CAST ( - 81 AS INTEGER ) WHEN NOT NULL NOT BETWEEN NULL AND 15 * 92 - - 64 THEN NULL ELSE NULL END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 16 - - + 65 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 76 + 11 * + 36 AS col0, 39 - - 37 - + CASE + 13 WHEN COUNT ( * ) + - 2 * + + 2 THEN + 60 * - CASE - 47 WHEN + + 57 + - - 21 THEN - + COUNT ( * ) * + - 13 ELSE - 45 END - 41 * + 39 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END … - -Expected: ["552","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL 7 / - CAST ( NULL AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) * + - 30 AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,056 failed -* 79% was OK - -Time: 47234.129ms - ----- ---- ---- ---- ---- ---- ---- -### 439/620 [`./test/random/expr/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_65.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - + ( ( - - CAST ( NULL AS INTEGER ) ) ) AS col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * 98 - -Wrong conversion type -``` - - -```sql -SELECT COUNT ( * ) / - + 86 AS col1 - -Expected: ["0"] but got ["-0.012"] -``` - - -```sql -SELECT ALL + + CAST ( + SUM ( + 36 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + + COUNT ( ALL - 96 ) / + CAST ( - COUNT ( * ) AS INTEGER ) - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT ALL + CASE WHEN NULL NOT BETWEEN NULL AND NULL THEN ( + 62 ) END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + - 14 / - 71 * 35 col2, COALESCE ( - 94, - 30 * - + 34, - CAST ( NULL AS INTEGER ) ) * 63 * + 40 / + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["0","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,716 failed -* 82% was OK - -Time: 35605.099ms - ----- ---- ---- ---- ---- ---- ---- -### 440/620 [`./test/random/expr/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_66.test) - -_Mimic sqlite_ - -```sql -SELECT 80 / + 92 - -Expected: ["0"] but got ["0.870"] -``` - - -```sql -SELECT 57 AS col1, 52 * - + 35, + CAST ( NULL AS REAL ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT - 82 AS col1, - 56 - + CAST ( NULL AS INTEGER ) + + MAX ( - + 6 ) - -Expected: ["-82","NULL"] but got ["-82","-62"] -``` - - -```sql -SELECT + CAST ( COUNT ( ALL + + ( - 95 ) ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT 51 * 90 + + CASE - 42 WHEN + COUNT ( * ) THEN NULL WHEN + 21 THEN - + CAST ( NULL AS INTEGER ) ELSE NULL END AS col0, 59 - -Expected: ["NULL","59"] but got ["59","NULL"] -``` - - -```sql -SELECT + CASE + 59 WHEN + 76 + - - 52 + ( - 68 ) * 91 THEN 58 END + - + 94 * 13 col2, NULLIF ( + + COALESCE ( - SUM ( - - 73 ), - 11 ), + 87 ) * CAST ( NULL AS INTEGER ) + - + 20 - -Expected: ["NULL","NULL"] but got ["NULL","-20"] -``` - - -```sql -SELECT ALL CASE - ( - 50 ) WHEN + CAST ( - + COALESCE ( - 25, 24, - 56 / 64 + 73 ) AS INTEGER ) THEN 63 * - 57 WHEN - 94 * 53 THEN + 49 / 21 END - CASE WHEN ( 37 ) NOT BETWEEN - NULLIF ( - 39, 25 ) AND ( NULL ) THEN NULL WHEN - COUNT ( * ) IS NOT NULL THEN - 68 - 55 ELSE NULL END AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 32 + 99 AS col0, CASE WHEN NOT 22 IS NOT NULL THEN + + 70 END AS col0 - -Expected: ["131","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT COALESCE ( + ( + 15 ), + COUNT ( * ) * 83 + + - ( 20 ) ) * - 31 + CASE WHEN NOT - AVG ( + 92 ) IN ( 47 ) THEN NULLIF ( 70, SUM ( 28 ) ) END / ( + 79 * - NULLIF ( - 18 * 17, - 17 ) + - 17 ) AS col1 - -Expected: ["-465"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,062 failed -* 79% was OK - -Time: 42864.782ms - ----- ---- ---- ---- ---- ---- ---- -### 441/620 [`./test/random/expr/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_67.test) - -_Mimic sqlite_ - -```sql -SELECT 78, + 75 / + 81 + - 26 col0 - -Expected: ["78","-26"] but got ["78","-25.074"] -``` - - -```sql -SELECT 2 + - CAST ( NULL AS INTEGER ) * - 35 - -Expected: ["NULL"] but got ["2"] -``` - - -```sql -SELECT ALL + ( CAST ( NULL AS REAL ) ) - 16 * + ( - AVG ( + + 1 ) ) * + - 4 * - 39 + + + ( NULLIF ( - - COUNT ( * ), SUM ( CAST ( NULL AS INTEGER ) ) + + 33 * 29 ) ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 85 + + ( 0 ) - - 3 - + COUNT ( * ) / + CAST ( + COUNT ( * ) AS INTEGER ) - 87 + + COUNT ( * ) * - COUNT ( * ) * - MIN ( ALL COALESCE ( + 21, + - 89, + 1 * - 2 ) ) / 2 AS col2 - -Expected: ["-160"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + + 13 AS col2 - -g is not defined -``` - - -```sql -SELECT - 67 - + MAX ( + 45 ) - + CASE 66 WHEN 9 THEN - 59 END + + - 64 * + + 97 AS col0, 36 - -Expected: ["NULL","36"] but got ["36","NULL"] -``` - - -```sql -SELECT DISTINCT - + 12 * 7 * + + CAST ( NULL AS INTEGER ) + 68 + + - 77, 97 / - ( - ( - 98 ) ) * + - COUNT ( * ) AS col1, - - CASE + COUNT ( * ) WHEN MAX ( 60 ) / - - 62 + 50 - 88 THEN + 2 END - -Expected: ["NULL","0","NULL"] but got ["-9","0.990","NULL"] -``` - - -```sql -SELECT ALL + CASE WHEN NOT SUM ( - + 52 ) NOT BETWEEN 87 AND - + 97 + + ( - 49 ) THEN - 12 + - COUNT ( DISTINCT - 8 + CASE NULLIF ( 26, + ( 89 ) * 5 ) WHEN - CAST ( + 3 AS INTEGER ) THEN - 93 WHEN - 71 + ( 35 ) THEN NULL ELSE 89 END ) ELSE NULL END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col0, - ( MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) * - - 52 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT 47 * 48 AS col0, 1 AS col0 - -Expected: ["2256","1"] but got ["1","1"] -``` - - -```sql -SELECT 94 AS col1, + 69 * + 83 / - + CAST ( NULL AS INTEGER ) + - 43 AS col1 - -Expected: ["94","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,033 failed -* 79% was OK - -Time: 69467.608ms - ----- ---- ---- ---- ---- ---- ---- -### 442/620 [`./test/random/expr/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_68.test) - -_Mimic sqlite_ - -```sql -SELECT + COUNT ( * ) + CASE - AVG ( ALL + + 47 ) WHEN - 62 + - + 84 + - - 49 THEN 69 WHEN ( - 68 ) / + + NULLIF ( 74, + 25 * 33 ) + + 81 * + 10 + CAST ( 76 - 87 AS REAL ) THEN NULL END * - 87 - -Wrong conversion type -``` - - -```sql -SELECT + + 16 * - 90 + - - COUNT ( * ) / + 39 - -Expected: ["-1440"] but got ["-1439.974"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - 64 AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL COUNT ( + + 7 ) / + 15 * - + CAST ( AVG ( DISTINCT - 87 ) AS INTEGER ) * - - 61 AS col0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT + - CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN 0 THEN + CAST ( COUNT ( * ) AS INTEGER ) ELSE - 93 END - -g is not defined -``` - - -```sql -SELECT DISTINCT - 67 * + CASE + + CASE WHEN 69 BETWEEN 12 AND 4 / + 13 - + AVG ( 27 ) + 45 THEN - 16 END WHEN 27 * 73 * + 80 + + NULLIF ( + 7, + 65 ) + - 54 + NULLIF ( + COALESCE ( + + 55, - 89 * 53 / ( - + 53 ) ), 88 ) * 34 - - 27 + 51 * - 50 THEN + 47 * - 50 ELSE MIN ( - 86 ) END + - COUNT ( * ) … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + 59 + + 98 + - + CAST ( NULL AS INTEGER ) + ( - CASE - 94 WHEN + 24 THEN + COUNT ( - 26 ) ELSE - - 60 END ) * - 78 AS col0, + 37 + - CASE 93 WHEN + ( 16 ) * + 58 * - 36 + + COUNT ( * ) + + - 56 * 48 * + 2 * + + SUM ( ALL + + 68 ) * - + 17 * + NULLIF ( - - 4, + - 61 + 16 + + 22 + - COUNT… - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 72 - + + 41 / - + 36 AS col2, + COUNT ( + 57 ) * + 86 * - 9 * CASE 20 WHEN + 12 THEN + 59 + - 93 END + - 3 - -Expected: ["-71","NULL"] but got ["-70.861","NULL"] -``` - - -```sql -SELECT + 77 + + + 23 AS col0, CASE NULLIF ( ( - - 61 ), 13 + 49 ) WHEN - 26 THEN - ( 4 ) + 75 WHEN + - 60 THEN - - 1 ELSE NULL END col0 - -Expected: ["100","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 96 / - 59 * + MAX ( + 17 ) AS col2, CAST ( NULL AS INTEGER ) col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,977 failed -* 80% was OK - -Time: 86039.273ms - ----- ---- ---- ---- ---- ---- ---- -### 443/620 [`./test/random/expr/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_69.test) - -_Mimic sqlite_ - -```sql -SELECT 89 / + - 12 - -Expected: ["-7"] but got ["-7.417"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + - ( - - 82 ) col2 - -Expected: ["NULL"] but got ["-82"] -``` - - -```sql -SELECT 33 / CAST ( - + COUNT ( 27 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT - 82 AS col0, 14 / + CAST ( + 80 AS INTEGER ) + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - 53 / + 68 - -Wrong conversion type -``` - - -```sql -SELECT COUNT ( * ) + + 43 AS col0, + 60 * CASE - + 82 WHEN + 64 THEN - COUNT ( * ) ELSE NULL END AS col0 - -Expected: ["44","NULL"] but got ["NULL"] -``` - - -```sql -SELECT CASE - COUNT ( * ) WHEN + - 24 THEN - 37 WHEN - 39 / 34 THEN + NULLIF ( + 14, - SUM ( ALL + - 53 ) + + - COUNT ( * ) - 30 * - CAST ( NULL AS REAL ) ) END AS col1 - -Expected: ["14"] but got ["NULL"] -``` - - -```sql -SELECT 18 * + CASE WHEN NOT 19 NOT BETWEEN NULL AND NULL THEN + COUNT ( * ) + 36 ELSE 38 * + 86 END AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ), + CASE - COUNT ( * ) WHEN 28 / + 84 + - + CASE - 36 WHEN - 8 THEN + - 17 WHEN + 73 THEN NULL ELSE NULL END * NULLIF ( - CASE - 81 WHEN 4 * + 64 + - 41 * 30 THEN + 41 ELSE NULL END, 29 ) THEN 46 + CASE + CASE ( - 52 ) WHEN + 4 - 2 THEN NULL ELSE + COUNT ( AL… - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( + CAST ( NULL AS INTEGER ) ) AS col0, + MIN ( + CAST ( NULL AS INTEGER ) ) * + CASE COUNT ( * ) WHEN MIN ( ALL + 73 ) / NULLIF ( + 74, 84 ) * 10 THEN NULL ELSE - + 25 END - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,019 failed -* 79% was OK - -Time: 79667.518ms - ----- ---- ---- ---- ---- ---- ---- -### 444/620 [`./test/random/expr/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 83 / - 36 AS col1 - -Expected: ["2"] but got ["2.306"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - + 40 col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - MIN ( + - 66 ) * + + 86 + + - SUM ( + 97 ) - - + 4 * ( + MAX ( - 8 ) ) * CASE 6 WHEN CAST ( + + 22 AS REAL ) THEN - 82 WHEN - 14 THEN NULL END AS col0 - -Wrong conversion type -``` - - -```sql -SELECT - 33 AS col0, 3 / + COUNT ( * ) + - CASE - 63 WHEN + + 43 * + COUNT ( * ) THEN + 77 * + ( 69 ) WHEN - + ( + 24 ) + + 83 * - - 92 THEN + 91 END + - - 12 * + 64 col0 - -Expected: ["-33","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CASE WHEN NOT NULLIF ( 11, - 27 ) BETWEEN - 40 + + 42 AND - CASE CAST ( + 34 AS INTEGER ) WHEN ( 22 ) + + 40 THEN - 15 * 68 ELSE - 4 * 78 END THEN 72 END / COALESCE ( + 58, + MIN ( - 44 ) ) AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 27 col1, - CASE - + 30 WHEN + 37 THEN NULL WHEN + 0 + 2 * - 60 THEN + ( 95 ) / COALESCE ( - 40, 57 / - 17 ) WHEN - 64 - - 98 THEN NULL ELSE NULL END AS col1 - -Expected: ["27","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL + 99 * + CAST ( - + COUNT ( ALL - 18 ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ), 33 * + CAST ( - 13 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) / + + 12 * - 39 - -Expected: ["NULL","NULL"] but got ["-1","0"] -``` - - -```sql -SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0, 32 + + 91 + - 95 + - NULLIF ( + CASE + 52 WHEN - + 61 + - + 37 THEN + - 27 - + - 74 / MAX ( ALL + 70 ) WHEN - 37 THEN NULL WHEN + 66 THEN NULL WHEN + ( + MIN ( DISTINCT 35 ) ) + + 29 * - 72 THEN - MIN ( DISTINCT + - ( - 20 ) ) * - + 53… - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,097 failed -* 79% was OK - -Time: 67304.733ms - ----- ---- ---- ---- ---- ---- ---- -### 445/620 [`./test/random/expr/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_70.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * 52 / - + ( 13 ) AS col1, COUNT ( * ) AS col1 - -Expected: ["NULL","1"] but got ["1"] -``` - - -```sql -SELECT DISTINCT 52 / + 42 AS col2, + 3 AS col1 - -Expected: ["1","3"] but got ["1.238","3"] -``` - - -```sql -SELECT - CAST ( + MIN ( - 85 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT 25 * - CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT + 37 AS col0, COALESCE ( - + COUNT ( * ), - COALESCE ( - 65, - 40 + 29 + + - 25 + - 71 * + - COUNT ( * ) / + 78 / - 51 ) * 27 + - - 72 ) / CASE + CASE - + 68 WHEN 58 + ( 57 ) / + 55 / 36 THEN + CAST ( 34 AS INTEGER ) WHEN - COALESCE ( 29, 60 + + 66 ) THEN NULL ELSE - CAST ( COUNT ( * ) AS IN… - -Expected: ["37","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 8 AS col0, - 26 - - - 85 + + + 56 * + CASE 78 WHEN + 57 THEN + - 71 WHEN + 33 THEN NULL END * - + 32 col0 - -Expected: ["8","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + 52 / - 9 * CAST ( NULL AS INTEGER ) col2, COUNT ( * ) + - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","1"] -``` - - -```sql -SELECT CASE WHEN ( NOT ( - 38 BETWEEN COUNT ( * ) + + 1 AND AVG ( 66 ) - 52 ) ) THEN - MIN ( ALL ( + 54 ) ) WHEN NULL NOT BETWEEN NULL AND ( NULL ) THEN NULL END / 49 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - 68 + - + 1 + + COUNT ( * ) * - 71 * - 19 - - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL","NULL"] but got ["1280","0"] -``` - - -```sql -SELECT DISTINCT + CASE + 17 WHEN + - ( + COALESCE ( + MIN ( - 87 ), COUNT ( * ) + AVG ( ALL 86 ), - 76 ) ) THEN NULL WHEN SUM ( ALL 3 ) + CASE + 53 WHEN 63 THEN - 22 WHEN - MAX ( DISTINCT 69 ) THEN - NULLIF ( + 21, + MAX ( + 31 ) ) + 11 * - 59 END THEN + 97 WHEN 17 THEN + 86 / + 23 END AS col0 - -Expected: ["3"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,000 failed -* 80% was OK - -Time: 50186.268ms - ----- ---- ---- ---- ---- ---- ---- -### 446/620 [`./test/random/expr/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_71.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + COUNT ( * ) AS col0, 4 - -Expected: ["1","4"] but got ["4","1"] -``` - - -```sql -SELECT + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * + + 23 * + + 40 + 61 + + MIN ( ALL - + 31 ) AS col2 - -Expected: ["NULL"] but got ["31"] -``` - - -```sql -SELECT + 75 * ( + - CAST ( + SUM ( - 42 ) AS INTEGER ) ) - -g is not defined -``` - - -```sql -SELECT DISTINCT + - 6 * - CAST ( + + 26 AS INTEGER ) * - CAST ( NULL AS REAL ) + + - 62 * - ( - + 99 ) - -Wrong conversion type -``` - - -```sql -SELECT NULLIF ( CASE + + 57 WHEN 85 THEN - 59 * 70 WHEN 53 THEN - 87 ELSE NULL END, - COALESCE ( CAST ( - + 47 AS INTEGER ), 11, + - 77 ) / + - 7 ) + CAST ( + 84 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL - 66 + + COUNT ( * ) + + ( + 74 ) * - 42 AS col1, - 3 / + CAST ( - MAX ( - 86 ) AS INTEGER ) - + - 68 + 54 - -Expected: ["-3173","122"] but got ["-3173","NULL"] -``` - - -```sql -SELECT - 15 / + CASE WHEN NOT NULL IN ( - CASE 96 WHEN + CAST ( - 0 AS INTEGER ) * + ( + CAST ( 65 AS INTEGER ) - + 87 ) + - 51 THEN NULL ELSE 26 * + CAST ( COUNT ( * ) AS INTEGER ) END ) THEN NULL WHEN NULL NOT BETWEEN + CAST ( NULL AS REAL ) + + 34 AND ( 24 - 71 ) THEN 89 - 36 * COUNT ( ALL - COA… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 81 + ( + + CAST ( NULL AS INTEGER ) ) AS col1, - CAST ( NULL AS INTEGER ) / + 13 - -Expected: ["NULL","NULL"] but got ["81","0"] -``` - - -```sql -SELECT ALL + SUM ( DISTINCT - 98 ) col1, 81 / - 11 - + + CASE 60 WHEN - AVG ( + 77 ) THEN NULL WHEN - + 86 THEN 18 END * - 28 * + MIN ( ALL - 21 ) AS col1 - -Expected: ["-98","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,994 failed -* 80% was OK - -Time: 33185.926ms - ----- ---- ---- ---- ---- ---- ---- -### 447/620 [`./test/random/expr/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_72.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - 66 / 9 / + - 79 - -Expected: ["0"] but got ["0.093"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - 91 * - 22 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( + AVG ( DISTINCT + - 5 ) AS INTEGER ) * + + 91 AS col0, 87 + + + 56 + 1 * - + 10 / + 84 - -g is not defined -``` - - -```sql -SELECT + NULLIF ( + COUNT ( * ), CAST ( 37 AS REAL ) * - - 90 + + + 88 ) * + - 93 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ), - 99 * CASE + SUM ( + 13 ) WHEN + 93 + - - 88 THEN CASE + 45 WHEN - 2 + 64 * - 64 THEN NULL ELSE + - NULLIF ( + ( + COUNT ( * ) ), - 52 ) * ( + + 53 ) + 85 + - 97 END WHEN + - 35 THEN + CAST ( NULL AS REAL ) * - + 77 END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + CASE 36 WHEN - - 90 THEN - 44 ELSE NULL END, 49 + - - 99 / 38 AS col1 - -Expected: ["NULL","51"] but got ["NULL","51.605"] -``` - - -```sql -SELECT - 83 * 6 * + - CASE WHEN COUNT ( * ) NOT BETWEEN + - COALESCE ( SUM ( DISTINCT 74 ), + 80, CAST ( - - 17 AS INTEGER ) ) AND - + 58 * - - 46 THEN 21 + + 78 END * 2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - - CASE + 72 WHEN + 72 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 22 * - 96 + - - 97 THEN + CAST ( - - 43 AS INTEGER ) + - 40 ELSE + 64 END * 40 AS col1 - -Expected: ["2560"] but got ["NULL"] -``` - - -```sql -SELECT + 79 * + + 75 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2, + 94 * 49 + - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["5926","4606"] -``` - - -```sql -SELECT DISTINCT - ( + 30 ) - 58 AS col1, + 37 * + 68 * - ( 67 ) / CAST ( NULL AS INTEGER ) * - 8 - - + 80 + - ( 45 ) AS col1 - -Expected: ["-88","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,050 failed -* 79% was OK - -Time: 35553.413ms - ----- ---- ---- ---- ---- ---- ---- -### 448/620 [`./test/random/expr/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_73.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 58 + - + 65 * + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL"] but got ["-58"] -``` - - -```sql -SELECT ALL COUNT ( * ) / + 79 AS col2, - 64 / + COUNT ( * ) + - - MIN ( + NULLIF ( - + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - ( + 37 ) ) ) + + 43 * COUNT ( * ) - 43 + 18 AS col0 - -Expected: ["0","NULL"] but got ["0.013","NULL"] -``` - - -```sql -SELECT ALL + COUNT ( * ) + - + COUNT ( * ) AS col0, + 92 * + - 29 col0 - -Expected: ["0","-2668"] but got ["-2668"] -``` - - -```sql -SELECT + CASE - + COUNT ( * ) WHEN - - COUNT ( * ) THEN + 49 WHEN + COALESCE ( 99, + CAST ( 64 AS INTEGER ) / + + ( - 63 ) ) THEN + - 79 END + - + NULLIF ( CASE - - 99 WHEN + 82 THEN - ( + - ( + AVG ( - CAST ( NULL AS REAL ) ) ) ) END, 99 * 37 ) / 11 - -Wrong conversion type -``` - - -```sql -SELECT CASE - SUM ( - 39 ) WHEN + - 84 THEN + - 32 WHEN 93 THEN 6 ELSE NULL END AS col2, + 18 - 43 + - CAST ( NULL AS INTEGER ) * + 77 + - 22 + + 82 AS col2 - -Expected: ["NULL","NULL"] but got ["35"] -``` - - -```sql -SELECT ALL - NULLIF ( CAST ( - COALESCE ( - - COUNT ( * ), - 38 * + 74 - - 34 * 70 * + 39 ) AS INTEGER ), - 79 ) * 71 AS col1 - -g is not defined -``` - - -```sql -SELECT ALL CASE WHEN NOT + 14 BETWEEN NULL AND + COUNT ( * ) / + COUNT ( * ) * - 86 * + - 15 * - - COALESCE ( - ( - - 34 ), - 60, + - 71 * - + COUNT ( * ) * - 72 * COUNT ( * ) ) THEN + + 89 ELSE NULL END * - 1 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - CASE WHEN NOT - COUNT ( * ) IN ( ( - 10 ) - + - NULLIF ( - - 86, - - COUNT ( * ) ) + 21 + - COALESCE ( - + ( - 85 ), - 4, + COUNT ( * ) ) * - MAX ( + 10 ), + 82 + - 31 ) THEN 63 WHEN CAST ( NULL AS INTEGER ) IS NULL THEN NULL END / 65 col2 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT 66 * 95 AS col1, + CASE ( - 82 ) WHEN + CAST ( + - 79 AS INTEGER ) + 62 + 8 + + 33 * 11 THEN 67 END AS col1 - -Expected: ["6270","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + 93 * - COUNT ( * ) * + - CASE ( + - 26 ) WHEN - + 41 * - CAST ( + + 8 AS INTEGER ) + - - 82 THEN - 11 END * - 92 AS col1, COUNT ( * ) + + + 61 + - - CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL","NULL"] but got ["NULL","62"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,032 failed -* 79% was OK - -Time: 28356.921ms - ----- ---- ---- ---- ---- ---- ---- -### 449/620 [`./test/random/expr/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_74.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + - 17 / - 55 + - 25 - - 28 AS col2, 53 AS col1 - -Expected: ["3","53"] but got ["3.309","53"] -``` - - -```sql -SELECT + 13 * + 99 AS col2, + AVG ( ALL CAST ( NULL AS INTEGER ) ) - -Expected: ["1287","NULL"] but got ["1287","0"] -``` - - -```sql -SELECT ALL COUNT ( * ) AS col1, NULLIF ( + CASE + + 4 WHEN 46 * MAX ( - 9 ) THEN 92 END, + 22 ) AS col1 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + - COALESCE ( + - COALESCE ( - 60, + 41 / + 24 + + CAST ( + CAST ( + ( + 52 ) AS REAL ) AS INTEGER ), + - 1 / + 67 + + - 52 * + 7 + - CAST ( - COUNT ( + 90 ) AS INTEGER ) ), 53 ) * - 93 - + 3 * + + 47 - -Wrong conversion type -``` - - -```sql -SELECT CASE WHEN NOT NULL >= CAST ( NULL AS INTEGER ) THEN NULL ELSE + CAST ( + 28 AS INTEGER ) + - - 42 END + - COUNT ( * ) - - - COUNT ( * ) * - MAX ( DISTINCT - 96 ) col0 - -Expected: ["-27"] but got ["NULL"] -``` - - -```sql -SELECT 60 * + CAST ( COUNT ( DISTINCT + + 81 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT - 6 / CAST ( NULL AS INTEGER ), + 58 + - - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","58"] -``` - - -```sql -SELECT ALL + - MIN ( DISTINCT + - 64 ) * + 50 + CASE 24 WHEN 12 THEN NULL WHEN + 99 + 93 + - + 5 + 35 * 2 / - - 94 * 13 - - 88 * - - CASE WHEN NOT NULL <= - 25 THEN NULL WHEN NOT 88 NOT BETWEEN 76 AND + 22 THEN - 48 ELSE NULL END THEN + 59 * - 18 END col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ), CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + 3 AS col2, - CASE - 98 WHEN - 15 THEN - + CAST ( COUNT ( * ) AS INTEGER ) / + + 59 WHEN - 72 THEN + 7 ELSE NULL END AS col2 - -Expected: ["3","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,078 failed -* 79% was OK - -Time: 32534.597ms - ----- ---- ---- ---- ---- ---- ---- -### 450/620 [`./test/random/expr/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_75.test) - -_Mimic sqlite_ - -```sql -SELECT - + 33 / - 14 AS col2 - -Expected: ["2"] but got ["2.357"] -``` - - -```sql -SELECT ALL ( 29 ) * 58 * 47 / - COALESCE ( - 44, - COUNT ( * ) * - ( + 19 ) + - - 71, 92 ) + - 38 + + COUNT ( * ) - - 68 * - 96 - - CAST ( NULL AS INTEGER ) - + - 38 * - 28 - -Expected: ["NULL"] but got ["-5832.318"] -``` - - -```sql -SELECT DISTINCT + + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) * + ( + 72 ) / - + 14 - -g is not defined -``` - - -```sql -SELECT + ( + + 67 ) * + ( - CAST ( NULL AS REAL ) ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT + 59 AS col1, - 6 AS col0, CASE + COUNT ( * ) WHEN + 89 THEN + 18 * - MIN ( ALL 49 ) END AS col0 - -Expected: ["59","-6","NULL"] but got ["59","NULL"] -``` - - -```sql -SELECT + 7 + - 55 + + 9 / + 5 + - 2 + + + 45 + 48 + - 58 * 77 / 60 * - + COUNT ( * ) / CAST ( - COUNT ( * ) AS INTEGER ) - -Expected: ["-30"] but got ["NULL"] -``` - - -```sql -SELECT + ( CASE WHEN NULL BETWEEN - 3 AND 66 + + 92 THEN COUNT ( * ) END ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 75 col1, + 74 * - 17 + + CASE 61 WHEN ( + 86 ) THEN + CAST ( 99 AS INTEGER ) * + - 15 WHEN 77 THEN NULL END * - 66 * - 56 AS col1 - -Expected: ["75","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + 15 * - CAST ( NULL AS INTEGER ) + + - NULLIF ( + + 6, - 89 - - 82 ) + 61, 20 * CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["55","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), - CASE - - 28 WHEN + - COUNT ( * ) THEN - 90 END AS col0 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,056 failed -* 79% was OK - -Time: 26864.136ms - ----- ---- ---- ---- ---- ---- ---- -### 451/620 [`./test/random/expr/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_76.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + 23 + + CAST ( NULL AS INTEGER ) col0 - -Expected: ["NULL"] but got ["23"] -``` - - -```sql -SELECT DISTINCT - 46 * 67 + 35 AS col0, 50 AS col0 - -Expected: ["-3047","50"] but got ["50","50"] -``` - - -```sql -SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - ( + 61 ) + + CAST ( NULL AS REAL ) col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / + 96 AS col1, + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL COUNT ( * ) / - CAST ( + MIN ( 44 ) AS INTEGER ) - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 53 / + 71 + - 80 AS col2, 92 - - - ( + CASE + 72 WHEN - 27 THEN - 98 WHEN CAST ( NULL AS INTEGER ) + + - NULLIF ( + 93, - 11 * - 62 ) THEN NULL ELSE NULL END ) AS col2 - -Expected: ["-80","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( 13 AS INTEGER ) / + CASE 49 WHEN MIN ( - 57 ) THEN - + 62 - - 37 - + 66 + + + 62 / AVG ( DISTINCT 79 ) WHEN 26 THEN + - 98 WHEN - COUNT ( * ) THEN + - 52 ELSE NULL END + + - 87 * + 23 + 81 AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + 29 * - CASE WHEN + 89 IS NOT NULL THEN + 63 / - 97 / + 81 + + 41 + - + COUNT ( + + 32 ) * - 48 WHEN NOT ( NULL ) NOT BETWEEN ( - 61 ) AND NULL THEN 43 - - 16 END * + + 47 + CASE + 76 WHEN + 99 THEN + 16 / + - 52 WHEN 22 * + + 54 - + 15 + COALESCE ( 64, CASE 54 WHEN - 23 / 22 THEN + 54 ELSE… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 63 * - CASE - 66 WHEN 19 * - 86 THEN - + MIN ( + - 73 ) END, CAST ( + COUNT ( * ) AS INTEGER ) AS col2 - -Expected: ["NULL","1"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,709 failed -* 82% was OK - -Time: 22868.030ms - ----- ---- ---- ---- ---- ---- ---- -### 452/620 [`./test/random/expr/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_77.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 29 / 20 - -Expected: ["1"] but got ["1.450"] -``` - - -```sql -SELECT ALL CASE + NULLIF ( + - 63, - 7 * - 49 + - 50 + 4 - - 7 * + - ( 71 ) * - ( 29 ) / - + 45 + + + 82 + - 87 * - 68 + + 90 ) WHEN 7 THEN NULL WHEN + + 50 THEN - 27 WHEN SUM ( + 13 ) + + 27 * - MAX ( + 21 ) THEN NULL END AS col0, 86 - -Expected: ["NULL","86"] but got ["86","NULL"] -``` - - -```sql -SELECT AVG ( - CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) - 2 + ( + - 69 ) - -Expected: ["NULL"] but got ["-71"] -``` - - -```sql -SELECT DISTINCT - + CAST ( + COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - 7 / + COALESCE ( + CAST ( NULL AS INTEGER ), - - COUNT ( * ) * - + 92 ) - - 8 - -Expected: ["8"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 85 * CAST ( NULL AS REAL ) + - 70 + + CASE 33 WHEN + 63 THEN COALESCE ( - 50, COUNT ( * ) ) * 67 ELSE - 7 END * - 27 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + + CASE WHEN NOT - 90 > NULL THEN - + COALESCE ( COALESCE ( 40, 89 * 57 + 53, 54 + + 20 - - 40 * NULLIF ( + 71, + COALESCE ( + 21, - 30 ) ), + 17 ), + AVG ( - 91 ) ) WHEN NULL NOT BETWEEN NULL AND 67 THEN COUNT ( * ) * + 94 - + 90 * + 56 ELSE NULL END AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + 65 * - - CAST ( NULL AS INTEGER ), ( + - CAST ( - 17 AS INTEGER ) ) / - + CASE - 94 WHEN COUNT ( * ) THEN + 42 - - + MAX ( + - 18 ) / + COUNT ( * ) * + 21 ELSE NULL END * - 9 * 2 + + - 80 / - COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) / - ( - 32 ) + - SUM ( DISTINCT - ( + 14 ) ), NULLIF ( - NULLIF ( - - AVG ( 84 ), ( MIN ( + ( 51 ) ) ) ), 5 * 45 * + AVG ( DISTINCT + 64 ) ) + + + CAST ( NULL AS INTEGER ) * 46 * 48 - -Expected: ["NULL","NULL"] but got ["14","-84"] -``` - - -```sql -SELECT 43 * - + 31 - + 29 AS col0, CASE - ( + + 79 ) WHEN - 9 + - + 99 THEN + 70 WHEN + - 91 THEN + 35 END AS col0 - -Expected: ["-1362","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,988 failed -* 80% was OK - -Time: 28233.369ms - ----- ---- ---- ---- ---- ---- ---- -### 453/620 [`./test/random/expr/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_78.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * + - 42 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL 67 AS col1, - 25 + + 83 + + + 93 / + - 41 + 93 - -Expected: ["67","149"] but got ["67","148.732"] -``` - - -```sql -SELECT ALL + ( + ( + - 53 ) ) + - NULLIF ( + + SUM ( + + 44 ), + - CAST ( - 87 AS REAL ) + 73 * - 93 ) AS col0, - COUNT ( * ) - - + 88 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( - COALESCE ( - ( + 57 ), + 30 - - 63 + - 63 * COUNT ( * ) * 39, + - 58 ) AS INTEGER ) / NULLIF ( + 96, + CAST ( 45 AS INTEGER ) ) - - 43 AS col0 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - MIN ( - 84 ) col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + 1 AS col0, + 35 + + ( - CASE WHEN NOT ( + CAST ( ( - 42 ) AS REAL ) ) IS NULL THEN NULL WHEN COUNT ( * ) BETWEEN ( NULL ) AND + COALESCE ( ( - 92 ), 86 ) THEN CAST ( 66 AS INTEGER ) END ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT - + 89 / - 26 * CAST ( COUNT ( * ) AS INTEGER ) / - COUNT ( * ) * + COUNT ( * ) + - 15 * + 62 - - 17 - -Expected: ["-916"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 3 * + 1 + 89 + + + COUNT ( * ) + 82 AS col1, - CASE + CASE 52 WHEN - - ( - COUNT ( * ) ) * ( - + COUNT ( * ) ) * NULLIF ( + MIN ( DISTINCT - 69 ), + 52 + - 22 ) THEN NULL ELSE - COUNT ( * ) + + ( - COUNT ( ALL 14 ) ) END WHEN - - 87 * - 8 THEN - + 39 WHEN - 72 THEN NULL END / + 45 AS c… - -Expected: ["175","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 24 * + MIN ( + NULLIF ( + 63, + 71 ) ) + + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - MIN ( 37 ), + 72 * - CASE + ( + SUM ( DISTINCT + 51 ) ) WHEN 93 * + 49 THEN + 44 WHEN 4 * ( - 72 ) + - 69 THEN NULL ELSE NULL END + 37 AS col1 - -Expected: ["NULL","NULL"] but got ["1475","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,030 failed -* 79% was OK - -Time: 22842.718ms - ----- ---- ---- ---- ---- ---- ---- -### 454/620 [`./test/random/expr/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_79.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 73, 21 / - CASE + COALESCE ( - 10, ( + + COALESCE ( 77, - 55 ) ), + COUNT ( * ) + 28 ) WHEN + 82 * 44 + - 75 + - 80 / 98 THEN + 27 ELSE 35 END * + 41 AS col1 - -Expected: ["73","0"] but got ["73","-0.015"] -``` - - -```sql -SELECT 43 * + + 22 * 18 * - ( - CAST ( NULL AS REAL ) ) + - 99 * - - 97 + COUNT ( * ) + 80 - -Wrong conversion type -``` - - -```sql -SELECT + 21 - + CAST ( - MAX ( + - 58 ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT ALL + 74 * COUNT ( + 45 ) * + + 63 * - CAST ( NULL AS INTEGER ) + - 62 - - 66 * + 94 / + ( 85 ) - -Expected: ["NULL"] but got ["10.988"] -``` - - -```sql -SELECT 58 + - CAST ( NULL AS INTEGER ) + - 57 AS col0 - -Expected: ["NULL"] but got ["1"] -``` - - -```sql -SELECT + 83 + + + 41 + CASE + 68 WHEN + 10 / - 92 THEN NULL WHEN + 82 + - COUNT ( * ) / - - 99 * - 4 THEN COUNT ( * ) END + + 20 * ( + 90 ) * - + 67 - - 72 * + 77 * - + 10 AS col2, 23 - -Expected: ["NULL","23"] but got ["23","NULL"] -``` - - -```sql -SELECT DISTINCT CASE WHEN NOT CAST ( NULL AS INTEGER ) NOT BETWEEN COUNT ( * ) + + 18 + - 23 + + - 18 AND 1 THEN 15 END AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + ( + + 79 ) * - 48 + + CASE WHEN NOT + 81 IN ( + 76 + + 11 ) THEN + 40 ELSE NULL END AS col0 - -Expected: ["-3752"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 28 + - 38 AS col2, CASE - 33 WHEN - 89 THEN 13 ELSE NULL END AS col2 - -Expected: ["-66","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + + 79 AS col1, CAST ( NULL AS INTEGER ) * - SUM ( - + 96 ) AS col0, + - 86 - -Expected: ["NULL","NULL","-86"] but got ["79","0","-86"] -``` - - -```sql -SELECT 91 / - ( + CAST ( NULL AS INTEGER ) ) AS col1, + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) + 22 AS col0 - -Expected: ["NULL","NULL"] but got ["NULL","22"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,066 failed -* 79% was OK - -Time: 23541.380ms - ----- ---- ---- ---- ---- ---- ---- -### 455/620 [`./test/random/expr/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT 48 / + + 76 + + - 81 + - 78 + + - 92 - -Expected: ["-251"] but got ["-250.368"] -``` - - -```sql -SELECT ALL - ( - - CAST ( COUNT ( * ) AS INTEGER ) ) + 92 - -g is not defined -``` - - -```sql -SELECT ALL - 85 * - CAST ( NULL AS INTEGER ) AS col2, 26 - -Expected: ["NULL","26"] but got ["0","26"] -``` - - -```sql -SELECT DISTINCT - 58 + + CAST ( NULL AS REAL ) - - 6 + + COUNT ( DISTINCT - 58 ) * + 23 * - COUNT ( * ) + 11 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT COALESCE ( 8, - 90 ) * + 74, + CASE - COUNT ( * ) WHEN + - CASE WHEN - 50 NOT BETWEEN + ( - 5 ) + 1 * - 15 AND COUNT ( * ) THEN - 87 * + 60 END THEN NULL WHEN + 17 THEN 0 * CAST ( - CAST ( 8 AS INTEGER ) AS INTEGER ) END / 82 + - 48 * - 21 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / - COALESCE ( + + CAST ( NULL AS INTEGER ), + - 93 + - + 11 * + 76 ), 24 / ( 29 ) - -Expected: ["0","0"] but got ["NULL","0.828"] -``` - - -```sql -SELECT DISTINCT - CASE 14 WHEN 17 + 74 THEN NULL ELSE CASE 63 WHEN + 61 THEN 95 * - - COUNT ( * ) * COUNT ( * ) - + 76 ELSE NULL END + - + 2 + 90 - 20 - - 39 / + 45 * - 43 END col2, 38 - -Expected: ["NULL","38"] but got ["38","NULL"] -``` - - -```sql -SELECT 57 + + CASE + COUNT ( * ) WHEN - 80 THEN + + 58 END - - 44 * + + 74 / - 67 + ( - COUNT ( * ) ) * + 48, CAST ( NULL AS INTEGER ) + - 20 AS col1 - -Expected: ["NULL","NULL"] but got ["NULL","-20"] -``` - - -```sql -SELECT + NULLIF ( + + 5, CAST ( - + MIN ( + COALESCE ( - - 85, + + 52 ) ) AS INTEGER ) ) - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + 7 + - CAST ( - 45 AS INTEGER ) - - - 61 + - - 1 - 74, + AVG ( - - CAST ( NULL AS INTEGER ) ) + 63 AS col2 - -Expected: ["NULL","NULL"] but got ["-82","63"] -``` - - -```sql -SELECT ALL + 2 col0, ( 32 ) + - 3 + CASE - 81 WHEN - - 81 THEN 21 END + + 27 + + 93 AS col0 - -Expected: ["2","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,139 failed -* 78% was OK - -Time: 25024.695ms - ----- ---- ---- ---- ---- ---- ---- -### 456/620 [`./test/random/expr/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_80.test) - -_Mimic sqlite_ - -```sql -SELECT + 87 * + + NULLIF ( 21, - 40 * 93 / 67 ) + + + COUNT ( * ) * + - 25 - + ( - CAST ( + - AVG ( DISTINCT + ( + + 37 ) ) AS INTEGER ) ) + 15 col2 - -Expected: ["1780"] but got ["1817"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + 47 AS col0 - -Expected: ["NULL"] but got ["47"] -``` - - -```sql -SELECT DISTINCT CAST ( - COUNT ( + 42 ) AS INTEGER ) + + COALESCE ( 50, + 50 ) / - + 96 - -g is not defined -``` - - -```sql -SELECT ALL + CASE 14 WHEN + 12 THEN CASE 11 WHEN + + ( + 55 ) THEN + COUNT ( * ) + + - 79 END + + + 97 END * + 41 + + - CAST ( + 61 AS REAL ) + + - 99 * + 21 * COUNT ( * ) * + 64 * CASE 63 WHEN - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END - -Wrong conversion type -``` - - -```sql -SELECT - 3 * - CAST ( NULL AS INTEGER ) * - 28, - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT 13 + + + 43 + - 81 / ( - CASE - COUNT ( * ) WHEN CASE WHEN NOT + 69 BETWEEN ( 12 ) AND + CAST ( NULL AS INTEGER ) / + 41 THEN NULL ELSE - 51 + ( - 36 ) END * + 28 THEN NULL WHEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 92 ELSE 84 + + MAX ( 68 ) END ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT ( COUNT ( * ) ) + + 74 * + 15 col2, + NULLIF ( + - CASE + COUNT ( DISTINCT + 77 ) WHEN CASE + CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 84 + 32 * 53 THEN COUNT ( * ) END / + 63 THEN NULL WHEN COUNT ( * ) THEN - 73 - + 47 END, - 38 * 33 ) AS col0 - -Expected: ["1111","120"] but got ["1111","NULL"] -``` - - -```sql -SELECT ALL - 47 / - 79, + CASE - 8 WHEN - 88 THEN NULL WHEN - 98 THEN - 82 END col2 - -Expected: ["0","NULL"] but got ["0.595","NULL"] -``` - - -```sql -SELECT - 15 * - CAST ( NULL AS INTEGER ) AS col0, CASE + 56 WHEN + COUNT ( ALL - 28 ) THEN - 17 * + CAST ( NULL AS INTEGER ) WHEN - + 79 + + 53 THEN NULL END AS col2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 58 * 86 AS col0, 3 / CASE 35 WHEN - - 70 THEN - 18 WHEN + 19 + 17 THEN NULL END AS col0 - -Expected: ["4988","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,050 failed -* 79% was OK - -Time: 36009.902ms - ----- ---- ---- ---- ---- ---- ---- -### 457/620 [`./test/random/expr/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_81.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 83 / + CAST ( - ( + COUNT ( DISTINCT + - 13 ) ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT + - 91 AS col1, 41 * 89 * 33 / + 49 AS col2 - -Expected: ["-91","2457"] but got ["-91","2457.490"] -``` - - -```sql -SELECT - 8 - + + 85, - CAST ( NULL AS INTEGER ) * + + AVG ( ALL - 3 ) + - + COALESCE ( 27, AVG ( ALL - 73 ) ) + + 68 AS col1 - -Expected: ["-93","NULL"] but got ["-93","41"] -``` - - -```sql -SELECT DISTINCT + 11 / - 55 AS col2, - 56 * - CASE + 59 WHEN 71 / - SUM ( DISTINCT + - 15 ) + - - 39 THEN - ( CAST ( + COUNT ( * ) AS INTEGER ) ) / + COUNT ( * ) - + + ( + AVG ( DISTINCT - - 58 ) ) END AS col2 - -Expected: ["0","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + CASE + - 24 WHEN - 20 - - ( - 25 ) - + 6 + CAST ( 1 AS REAL ) * - 60 THEN - 32 / - ( NULLIF ( CASE - CASE + 44 WHEN + COUNT ( * ) THEN 44 WHEN - SUM ( - 57 ) * - COUNT ( DISTINCT 27 ) + 32 THEN NULL END WHEN - AVG ( 15 ) * - 92 + COUNT ( * ) THEN NULL WHEN + AVG ( 87 ) THEN + 19 END, CAST … - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + NULLIF ( 94, + CASE WHEN ( NULL ) BETWEEN + - 85 AND ( - CAST ( NULL AS REAL ) ) THEN + - 65 END * 30 ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 7 / - 75 AS col2, CASE + - CAST ( NULL AS INTEGER ) WHEN 26 THEN + 12 END AS col2 - -Expected: ["0","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - 25 + CASE 55 WHEN - - 22 - - MIN ( ALL + 24 ) + - 3 + - - SUM ( ALL - 57 ) - 90 THEN - 33 + - + 75 + - 78 + 0 - - 50 ELSE NULL END AS col2, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT MAX ( - - CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + 91 AS col0, - ( - - CAST ( NULL AS INTEGER ) ) + - 4 * - - COALESCE ( CAST ( NULL AS INTEGER ), 21 ) * + 30 col2 - -Expected: ["NULL","NULL"] but got ["91","0"] -``` - - -```sql -SELECT DISTINCT + + 54 / COALESCE ( + NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) * + - 25 ), - 81 * + - 82 ) - -Expected: ["0"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,042 failed -* 79% was OK - -Time: 28305.879ms - ----- ---- ---- ---- ---- ---- ---- -### 458/620 [`./test/random/expr/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_82.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + CAST ( NULL AS REAL ) * - + ( - - 25 ) / COUNT ( * ), + 77 * - + 30 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ( - 62 ) col2, + 15 - - 94 AS col2 - -Expected: ["-62","109"] but got ["109","109"] -``` - - -```sql -SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL 73 * CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + COALESCE ( - 59, - COUNT ( * ), + 69 ) * - ( - - NULLIF ( 0, - CAST ( NULL AS INTEGER ) ) ) + 15 - -Expected: ["15"] but got ["NULL"] -``` - - -```sql -SELECT - CASE WHEN ( NULL BETWEEN 59 AND ( + 22 ) ) THEN 48 ELSE 91 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - 54 col2, - ( + 51 ) * + + 11 + - - 13 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","-574"] -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) + - - 18, COUNT ( + 5 ) / - ( - 61 ) + + CASE + 45 WHEN + 47 THEN + - MIN ( DISTINCT + + 89 ) ELSE NULL END AS col0 - -Expected: ["NULL","NULL"] but got ["18","NULL"] -``` - - -```sql -SELECT ALL + 66 AS col2, - CASE + + 15 WHEN - 55 THEN + 61 WHEN COUNT ( + 23 ) THEN COUNT ( * ) * - 72 END AS col2 - -Expected: ["66","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL 34 AS col0, - CASE - 29 WHEN - + ( 36 ) + + 11 + - 97 - + + 86 THEN - 52 * + 46 END AS col0 - -Expected: ["34","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,104 failed -* 78% was OK - -Time: 27055.651ms - ----- ---- ---- ---- ---- ---- ---- -### 459/620 [`./test/random/expr/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_83.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 59 * + + COUNT ( * ) + 2 * + 74 AS col0, - 41 * - 3 + - + COUNT ( * ) + COUNT ( - + 61 ) + 67 + + + NULLIF ( 53, - 94 ) * - + COALESCE ( - ( + + 10 ), + COUNT ( * ) * - 77 * - + 38 * + 37 + - - 22 * + - 45 * + 29 - + + 62 ) / - 1 + 47 + ( - 83 ) * - COUNT ( - 52 ) AS col0 - -Expected: ["207","-210"] but got ["-210"] -``` - - -```sql -SELECT CASE - + 55 WHEN + 44 THEN NULL ELSE + + 12 + + 10 + - - 81 END * + 9 + + 68 + + CAST ( NULL AS INTEGER ), 63 - 52 col0 - -Expected: ["NULL","11"] but got ["995","11"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) + ( 90 - 27 * + COUNT ( * ) ) - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( SUM ( 80 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL 7 AS col1, 61 - - CASE 2 WHEN + 33 - 65 THEN + COUNT ( * ) WHEN + - 43 - - + 70 - 15 * + 96 * 65 * - + 80 / - 25 * - - COUNT ( * ) THEN NULL ELSE NULL END + + 64 + + 71 * + + ( - COUNT ( * ) ) / - CASE - 36 WHEN 30 THEN NULL ELSE 57 + - ( - 61 ) * - + 51 END * + 66 * - 71 - + NULLIF ( + … - -Expected: ["7","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - CASE WHEN NOT + 0 BETWEEN + MIN ( ALL CASE 3 WHEN 84 THEN - 60 * 42 ELSE NULL END ) * 55 AND + 34 THEN + 19 + - 10 WHEN NULL <= ( NULL ) THEN COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) END + + 1 * - 6 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - + 53 / + MIN ( + 13 ) + + CASE CAST ( NULL AS INTEGER ) WHEN - 93 / + 39 / + 16 * 32 * - - CAST ( NULL AS INTEGER ) * - 88 THEN NULL ELSE 29 END + - + 54 / ( - NULLIF ( + 68, - 92 * + SUM ( DISTINCT 95 ) * 67 / - 43 + - 73 + - 69 + + 58 * - 22 * 25 + - 5 * - CAST ( NULL AS INTEGER ) + + 29… - -Expected: ["-848"] but got ["NULL"] -``` - - -```sql -SELECT ALL 87 * - ( CAST ( NULL AS INTEGER ) ), + CASE - 33 WHEN - SUM ( DISTINCT + 67 ) THEN + - ( - CASE + 97 WHEN - + 79 THEN 78 END ) * + 10 / - 46 WHEN + 27 THEN NULL END * + + 66 AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 6 * - CAST ( NULL AS INTEGER ), + CAST ( + + ( - 16 ) AS INTEGER ) * - COUNT ( * ) / + 33 + CAST ( NULL AS INTEGER ) + - - 87 * + CAST ( - 3 AS INTEGER ) - + + 95 + - 47 AS col1 - -Expected: ["NULL","NULL"] but got ["0","-402.515"] -``` - - -```sql -SELECT + 18 / + 89 - -Expected: ["0"] but got ["0.202"] -``` - - -```sql -SELECT COUNT ( * ) / 79 - + 99 AS col1 - -Expected: ["-99"] but got ["-98.987"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,995 failed -* 80% was OK - -Time: 26289.136ms - ----- ---- ---- ---- ---- ---- ---- -### 460/620 [`./test/random/expr/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_84.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CASE CAST ( NULL AS REAL ) WHEN - 52 THEN 52 WHEN 44 THEN 53 + + ( + 59 + - 46 ) * - CAST ( + 26 AS INTEGER ) END col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 83 / - 12 - -Expected: ["6"] but got ["6.917"] -``` - - -```sql -SELECT ALL + + 2 * + + 28 * - - CAST ( NULL AS INTEGER ) * 24 + + 71 - -Expected: ["NULL"] but got ["71"] -``` - - -```sql -SELECT + CAST ( - AVG ( ALL - 11 ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT 92 / + - 84 - -Expected: ["-1"] but got ["-1.095"] -``` - - -```sql -SELECT - 44 / - 64, - CASE COALESCE ( COUNT ( * ), + 87 * MAX ( + 68 ) + - 32 / - 54 + MAX ( DISTINCT 73 ) / + NULLIF ( + 44, + CASE 3 WHEN - 51 + - + COUNT ( * ) * + + 84 THEN NULL WHEN - 64 THEN - + 43 ELSE - 37 END * + 93 * + MIN ( ALL - + 27 ) ), + 64 * ( + CASE 3 WHEN 8 * - 72 - + 45 THEN 7 EN… - -Expected: ["0","NULL"] but got ["0.688","NULL"] -``` - - -```sql -SELECT + 57 * CASE WHEN NOT ( NULL ) NOT BETWEEN - 49 AND - - COUNT ( * ) * - COUNT ( * ) * - COALESCE ( - - 53, - NULLIF ( + AVG ( + 14 ), + 57 + - + COUNT ( * ) + - - ( 20 ) + + 75 / 66 ) ) + - + COALESCE ( 36, - COALESCE ( - 46, + - CASE - ( + 57 ) WHEN + 95 THEN NULL WHEN + CASE + - 33 WHEN - 2… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - NULLIF ( + ( - 0 ), + ( CAST ( NULL AS INTEGER ) ) ) AS col1 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT 31 + 95 + - COUNT ( * ) + - ( + 33 ) - + - ( - 9 ) * - - CASE - COALESCE ( AVG ( - + 35 ), - - ( + CAST ( NULL AS INTEGER ) ) * 70, + SUM ( - + ( - + 20 ) ) / + CAST ( NULL AS INTEGER ) / ( + 50 ) ) WHEN - 47 / 5 + COUNT ( * ) THEN - 61 + 86 END, 61 + + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","61"] -``` - - -```sql -SELECT 49 + - 56 + - 27 + 60 AS col2, CASE - 25 WHEN - 92 THEN NULL WHEN - 79 * - 81 THEN + 47 * + 87 END AS col2 - -Expected: ["26","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,992 failed -* 80% was OK - -Time: 33503.424ms - ----- ---- ---- ---- ---- ---- ---- -### 461/620 [`./test/random/expr/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_85.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 9 / + 92 + - 43 * - + COUNT ( * ) * - 98 - -Expected: ["-4214"] but got ["-4213.902"] -``` - - -```sql -SELECT ALL 26 * + 14 + + - 9 * - CAST ( NULL AS INTEGER ) * + + 83 + - 82 + 78 * 55 AS col2 - -Expected: ["NULL"] but got ["4572"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / + CASE - 28 WHEN - 68 THEN 80 WHEN + 37 THEN NULL WHEN - 67 THEN - 1 ELSE NULL END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL + 27 + + 98 + + CAST ( NULL AS REAL ) + + + 28 + - 8 * - 14 + - 75 - + NULLIF ( - 35, + 33 - 13 ) * 17 * COALESCE ( + COUNT ( * ), + CAST ( - 46 AS INTEGER ) ) * 8 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT 98 + + 54 * CAST ( - + COUNT ( * ) AS INTEGER ) - 18 + + 34 / 2 - 4 col1 - -g is not defined -``` - - -```sql -SELECT ALL - 84 AS col0, CASE - 33 WHEN + + 31 THEN - CAST ( 9 AS REAL ) END AS col0 - -Expected: ["-84","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT 99 / 81 - -Expected: ["1"] but got ["1.222"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - + + 71 AS col2 - -Expected: ["NULL","NULL"] but got ["0","-71"] -``` - - -```sql -SELECT ALL + 17 * + COUNT ( * ) AS col0, + 81 / + 26 + + + CASE - 1 WHEN + COALESCE ( + COUNT ( - + 7 ), + 78 ) / + 77 - - 16 - - - 42 + - 85 + + + COUNT ( * ) * COUNT ( * ) + - 67 THEN + COALESCE ( 36, - 54, + + 80 ) END AS col0 - -Expected: ["17","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + - ( - + COUNT ( * ) ) - CASE WHEN NOT ( NULL ) NOT BETWEEN + 70 AND + MAX ( ALL + + ( + 2 ) ) + - + 74 THEN + 11 ELSE NULL END AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - - CASE WHEN NOT - 9 IN ( + 59 - + SUM ( DISTINCT - + ( - 5 ) ) ) THEN - 53 WHEN ( 17 * + 60 ) NOT IN ( + 45 * 9 + 60 ) OR + ( COUNT ( * ) ) * + 19 IS NULL THEN NULL ELSE NULL END - -Expected: ["-53"] but got ["NULL"] -``` - - -```sql -SELECT 46 / - - 15 - -Expected: ["3"] but got ["3.067"] -``` - - -```sql -SELECT 5 / - 35 AS col1 - -Expected: ["0"] but got ["-0.143"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,033 failed -* 79% was OK - -Time: 27011.384ms - ----- ---- ---- ---- ---- ---- ---- -### 462/620 [`./test/random/expr/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_86.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 64 * ( - + 83 ) + - 88 + + + COUNT ( * ) * - 77 / 55 AS col1 - -Expected: ["-5401"] but got ["-5401.400"] -``` - - -```sql -SELECT ALL + 30 + CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["30"] -``` - - -```sql -SELECT ALL AVG ( DISTINCT CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT + 65 * + 50 * + - MIN ( ALL - ( + 16 ) ) + CAST ( NULL AS INTEGER ) + - 10 + - 93, + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["51897","0"] -``` - - -```sql -SELECT ALL 37 * 65 + - 66 * CAST ( AVG ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + ( + COALESCE ( + 22, - 4 + 68 ) ) + - 61 AS col1 - -g is not defined -``` - - -```sql -SELECT ALL NULLIF ( ( - CASE - 78 WHEN + + COUNT ( * ) THEN - + 84 - - + 81 END ), 44 ) AS col2, 44 - -Expected: ["NULL","44"] but got ["44","NULL"] -``` - - -```sql -SELECT 51 * + - CASE WHEN NOT 1 BETWEEN - MIN ( - NULLIF ( - 96, 11 ) ) AND ( COUNT ( * ) ) THEN COUNT ( DISTINCT - 90 ) ELSE NULL END col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + + + 83 + 10 AS col0, CASE - 86 WHEN - + 24 - 95 / - COUNT ( ALL 74 ) THEN - - 25 * + COALESCE ( 2, - 42 ) ELSE NULL END - -Expected: ["NULL","NULL"] but got ["93","NULL"] -``` - - -```sql -SELECT ALL + - MIN ( - + 93 ) * - NULLIF ( 0, + CAST ( NULL AS INTEGER ) * - 32 ) * - MIN ( - 70 ) - - 23 + - 25 AS col0 - -Expected: ["-2"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 13 col1, + 39 * - ( + 90 ) / + - CAST ( NULL AS INTEGER ) col1 - -Expected: ["13","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,906 failed -* 80% was OK - -Time: 25791.586ms - ----- ---- ---- ---- ---- ---- ---- -### 463/620 [`./test/random/expr/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_87.test) - -_Mimic sqlite_ - -```sql -SELECT - + 82 / + 97 - -Expected: ["0"] but got ["-0.845"] -``` - - -```sql -SELECT + 40 * + CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - + CAST ( - 61 AS INTEGER ) * 65 / + - CAST ( NULL AS REAL ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( - MIN ( - 52 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) AS col1 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - - CAST ( NULL AS INTEGER ), CASE 2 WHEN - - 11 THEN + - 26 ELSE NULL END + - CASE - 39 WHEN 42 THEN - 29 * - 75 WHEN 43 * 60 THEN NULL ELSE - 13 + 92 END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 94 * COUNT ( * ) / + 77 AS col0, - CASE + - 59 WHEN + 81 THEN - - 47 + COALESCE ( 76, - 97 ) WHEN - 3 THEN CAST ( 92 AS INTEGER ) + 59 WHEN + 61 THEN NULL END AS col0 - -Expected: ["1","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,739 failed -* 82% was OK - -Time: 18686.830ms - ----- ---- ---- ---- ---- ---- ---- -### 464/620 [`./test/random/expr/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_88.test) - -_Mimic sqlite_ - -```sql -SELECT 66 * - ( - 51 ) * + 9 + CAST ( NULL AS INTEGER ) + - 68 - - 59 + - 8 * - + 43 + + COUNT ( * ) AS col0 - -Expected: ["NULL"] but got ["30630"] -``` - - -```sql -SELECT DISTINCT - SUM ( ALL 2 ) * - 92 + + 94 - - ( - COUNT ( * ) ) / + 48 - 15 col0 - -Expected: ["263"] but got ["262.979"] -``` - - -```sql -SELECT ALL - COUNT ( + 82 ) * + CAST ( NULL AS REAL ) * + - 98 / - 12 AS col0, - 89 - -Wrong conversion type -``` - - -```sql -SELECT ALL + 80 * + 85 + + CAST ( + - COUNT ( * ) AS INTEGER ) * + 9 AS col2 - -g is not defined -``` - - -```sql -SELECT 80 + COUNT ( * ) * 93 * - NULLIF ( 6, + COUNT ( 33 ) ) - - CASE WHEN NOT 17 NOT BETWEEN - 91 - - 31 AND 36 THEN - + 3 ELSE NULL END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + CASE - + 44 WHEN 51 * - 55 - + + 99 * - ( - 28 ) * - + 88 THEN 40 ELSE NULL END, 84 * - + CAST ( NULL AS INTEGER ) / + 18 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + 0 + - COALESCE ( - CASE - 81 WHEN - 57 THEN NULL WHEN 91 THEN NULL WHEN - 82 * COALESCE ( + 86, 40 ) THEN NULL ELSE 48 / - CAST ( NULL AS INTEGER ) + + 16 * 43 END, 57 ) + - 69 / - 81 col0 - -Expected: ["-57"] but got ["NULL"] -``` - - -```sql -SELECT ALL CASE 45 WHEN 49 THEN COUNT ( * ) ELSE NULL END AS col1, 52 - -Expected: ["NULL","52"] but got ["52","NULL"] -``` - - -```sql -SELECT ALL 80 AS col2, + CASE - 98 WHEN 50 THEN + - 29 WHEN - + 24 / + 61 * - 43 THEN NULL END AS col2 - -Expected: ["80","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL AVG ( - - 41 ) + - - 2 * 48 * - - NULLIF ( + NULLIF ( CAST ( NULL AS INTEGER ), + 84 * + 66 + + + COUNT ( * ) + - 18 ), ( - 35 ) + 61 ) * 61 AS col0, CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL","NULL"] but got ["41","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,085 failed -* 79% was OK - -Time: 28880.761ms - ----- ---- ---- ---- ---- ---- ---- -### 465/620 [`./test/random/expr/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_89.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 84 * 63 / - - 50 + - 59 + - 22 + + + COUNT ( * ) + - 50 * - 72 * CAST ( NULL AS REAL ) / - 56 AS col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL + + ( - 63 ) * CAST ( NULL AS INTEGER ) * - 28 * AVG ( - - 65 ) / - 65 + + 98 * + 80 - -Expected: ["NULL"] but got ["7840"] -``` - - -```sql -SELECT ALL 75 * + CAST ( NULL AS INTEGER ) * ( - + 42 ), + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + COALESCE ( + - ( 51 ), 10 * - + 5 - + - 48 ) / - + 7 - - + 54 AS col1 - -Expected: ["61"] but got ["61.286"] -``` - - -```sql -SELECT - CAST ( - MIN ( + 22 ) AS INTEGER ) AS col1 - -g is not defined -``` - - -```sql -SELECT CASE - + 76 WHEN + 7 THEN - - 30 END + + - 8 * ( - - 71 ) + COUNT ( * ) AS col2, + 34 / 84 - -Expected: ["NULL","0"] but got ["NULL","0.405"] -``` - - -```sql -SELECT ALL + 38 * - - 77 AS col2, + 62 / + - CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["2926","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - 0 * 71 + CAST ( NULL AS INTEGER ) AS col0, 0 + + + CASE + 94 WHEN + 89 * + + CAST ( 35 AS INTEGER ) THEN - 28 END * - COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - - CASE WHEN NOT - + 21 BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL OR NOT + + 78 * ( + 77 ) * - 87 - + - 18 * - 28 * 4 + - + CASE - 1 WHEN + - 80 THEN - 15 WHEN 22 * ( + 38 ) + + - 64 + - CASE + 33 WHEN + - COUNT ( * ) THEN - COUNT ( ALL ( 6 ) ) END THEN NULL WHEN - 27 + + + 59 * - 87 * … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + 47 col2, 4 * - ( + 8 ) + - 16 + - 42 + SUM ( ALL - - 67 ) * ( + CASE - + SUM ( + + 41 ) WHEN + - 41 * - - 71 THEN NULL WHEN + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END ) + - - 52 col2, - - 26 - 94 + - CASE - + 20 WHEN - + CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) * - 43 +… - -Expected: ["47","NULL","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + COALESCE ( + 17, + 23 ) * 5 + + - CASE WHEN NOT NULL > NULL THEN + CASE WHEN NOT + 3 IS NULL THEN NULL ELSE ( NULLIF ( NULLIF ( COUNT ( * ), - MIN ( ALL 2 ) ), - COALESCE ( + MAX ( ALL 12 ), 23 * 61, - COUNT ( * ) ) ) ) END WHEN NULL < ( COUNT ( * ) ) THEN NULL ELSE 17 * 10 END col2 - -Expected: ["-85"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,004 failed -* 79% was OK - -Time: 32705.686ms - ----- ---- ---- ---- ---- ---- ---- -### 466/620 [`./test/random/expr/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_9.test) - -_Mimic sqlite_ - -```sql -SELECT - NULLIF ( 52, 73 ) / - 38 AS col1 - -Expected: ["1"] but got ["1.368"] -``` - - -```sql -SELECT ALL 8 + - CAST ( NULL AS INTEGER ) * ( - 85 ) AS col0 - -Expected: ["NULL"] but got ["8"] -``` - - -```sql -SELECT 22 col1, 35 * + CASE 28 WHEN 4 THEN NULL WHEN - 57 THEN 46 END * + 57 / - 91 AS col1 - -Expected: ["22","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - 53, 56 * ( + ( + ( - CAST ( NULL AS REAL ) ) ) ) + - + 68 - - - MIN ( - - ( - 69 ) ) * - 98 + + MAX ( + 97 ) * CASE - 4 WHEN - 23 * 97 + COUNT ( DISTINCT 40 ) THEN 80 WHEN 54 * 2 THEN - 96 ELSE - MAX ( 94 ) END AS col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL + CAST ( + ( COUNT ( * ) ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL + COUNT ( * ) AS col1, 53 / CASE - 61 WHEN 73 + COUNT ( * ) THEN COUNT ( * ) * - 10 + - - 16 + + + 38 / COUNT ( DISTINCT 78 ) + + 15 + 1 WHEN - + 91 THEN + COUNT ( * ) + 49 END + 14 / 6 col1 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT CASE - COALESCE ( + 2, - CAST ( NULL AS INTEGER ) ) WHEN + + 11 * - + 93 * 31 THEN 1 + + 71 WHEN - 72 THEN NULL END - - CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN - 33 BETWEEN ( NULL ) AND - 14 THEN + 27 END - + 30 / - COALESCE ( 26, - NULLIF ( - 59, - COUNT ( * ) ) + + COUNT ( * ) + + 41… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + + 74 col0, CASE WHEN NOT NULL >= ( NULL ) THEN NULL ELSE 80 END * - 68 - -Expected: ["74","-5440"] but got ["74","NULL"] -``` - - -```sql -SELECT - 12 * + ( - CAST ( NULL AS INTEGER ) ) AS col0, + CASE MAX ( - 48 ) WHEN 20 * - 45 THEN COUNT ( * ) WHEN - 8 THEN 60 ELSE NULL END AS col0 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + ( + + 12 ) + - + 36 + - 83 * - 12 * ( - 71 ) * + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + ( + 21 ) ) * 16 + - 97, CAST ( NULL AS INTEGER ) * - 90 AS col2 - -Expected: ["NULL","NULL"] but got ["-121","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,046 failed -* 79% was OK - -Time: 26486.700ms - ----- ---- ---- ---- ---- ---- ---- -### 467/620 [`./test/random/expr/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_90.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 87 / + - 33 + - - 77 AS col2 - -Expected: ["75"] but got ["74.364"] -``` - - -```sql -SELECT ALL COUNT ( * ) / + - MIN ( ( - 7 ) ) * - 70 + - - 98 + MIN ( ALL 43 ) * 36 * + - 0 - + + CAST ( NULL AS INTEGER ) + + - NULLIF ( + 75, + 17 ) / - SUM ( + 84 ) AS col0 - -Expected: ["NULL"] but got ["98.891"] -``` - - -```sql -SELECT ALL + 6 * + 21 * 76 - - + 49 AS col0, 92 + CASE - + COUNT ( * ) WHEN - COUNT ( * ) * 13 - + 63 * + + 60 * + 20 + - - 56 THEN COUNT ( * ) WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN - - 51 + - 41 ELSE NULL END + + + 44 + 51 * + 67 * 43 AS col0 - -Expected: ["9625","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + - CAST ( COUNT ( * ) AS INTEGER ) + + 43 + + 65 * 85 + + 58 - -g is not defined -``` - - -```sql -SELECT DISTINCT CASE - 86 WHEN - CASE + 36 WHEN + 88 * + 42 THEN NULL WHEN + - 54 THEN - - 43 END + ( CAST ( + 28 AS REAL ) ) + + 84 * 12 + + + NULLIF ( + 89, - 80 ) THEN NULL WHEN - 12 * 6 THEN - 37 + 91 * + ( + - 19 ) * + + COUNT ( * ) * 86 - ( 18 ) + - 91 / - + 52 * + COUNT ( * ) * - 54 END - -Wrong conversion type -``` - - -```sql -SELECT - CASE WHEN NOT 26 IN ( + 95 ) THEN - NULLIF ( 63, + COUNT ( * ) ) * MIN ( DISTINCT 12 ) WHEN NOT ( COUNT ( * ) - 68 * + 98 ) IS NULL THEN NULL ELSE NULL END * + 51 - -Expected: ["38556"] but got ["NULL"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + 83 + 0 * - CASE WHEN NOT + NULLIF ( - 5, - 71 * 0 + - - 57 ) BETWEEN - 72 AND ( 54 * - COUNT ( * ) + 86 ) THEN NULL WHEN NOT ( - ( - CAST ( NULL AS INTEGER ) ) ) NOT BETWEEN + 11 / COUNT ( * ) AND - 43 THEN - COUNT ( * ) * + NULLIF ( CAST ( NULL AS INTEGER ), 16 + 8 ) + + 93 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 79 + 54 + - 5 AS col1, CAST ( NULL AS INTEGER ), 10 * - CASE - 51 WHEN - 61 THEN 78 - + 45 WHEN - 80 * - - 76 * + - 5 + NULLIF ( - 94 + 52, - 26 ) / ( 17 + - COUNT ( * ) ) THEN + 82 ELSE NULL END - -Expected: ["128","NULL","NULL"] but got ["128","0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,060 failed -* 79% was OK - -Time: 25624.403ms - ----- ---- ---- ---- ---- ---- ---- -### 468/620 [`./test/random/expr/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_91.test) - -_Mimic sqlite_ - -```sql -SELECT - CASE + - 1 WHEN CAST ( NULL AS INTEGER ) THEN - 64 ELSE - + 18 + + ( 90 ) / - 14 + - 60 END AS col1 - -Expected: ["84"] but got ["84.429"] -``` - - -```sql -SELECT ALL + + 59 + CAST ( NULL AS INTEGER ) - + 73 / + + 14 col2 - -Expected: ["NULL"] but got ["53.786"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS REAL ) - 61 col0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + 26 AS col1, CAST ( NULL AS INTEGER ) col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT + 49 * CASE ( ( - 89 ) ) WHEN - - 55 THEN NULL WHEN - COUNT ( * ) THEN - ( 25 ) ELSE NULL END AS col2, 33 - -Expected: ["NULL","33"] but got ["33","NULL"] -``` - - -```sql -SELECT - CAST ( COALESCE ( CASE COUNT ( * ) WHEN 58 THEN NULL WHEN + ( + 76 ) THEN 40 WHEN 91 THEN - 91 * + COUNT ( * ) ELSE NULL END, - 85 ) AS INTEGER ) * - 14 + - 27 / 53 AS col2 - -g is not defined -``` - - -```sql -SELECT DISTINCT - - ( - - CASE WHEN NOT + 87 BETWEEN NULL AND ( NULL ) THEN + 33 END ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 66 AS col0, 57 - - CASE 41 WHEN - 95 - - 18 THEN - + 93 ELSE NULL END AS col0 - -Expected: ["66","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT 33 / ( + CAST ( COUNT ( * ) AS INTEGER ) ) + - COUNT ( * ) / + 26 AS col2 - -Expected: ["33"] but got ["NULL"] -``` - - -```sql -SELECT - - CAST ( NULL AS INTEGER ) + + 88 AS col2, - CASE 76 WHEN - CASE - 62 WHEN - 68 * COUNT ( + 7 ) - 54 THEN - 69 END * + 86 THEN NULL WHEN - - 25 THEN + COALESCE ( MIN ( ALL + + 5 ), - 46 * + CAST ( + CAST ( + 75 AS INTEGER ) AS INTEGER ) + 76 ) WHEN - 10 + 76 THEN 88 ELSE NULL END * 79 + + … - -Expected: ["NULL","NULL"] but got ["88","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,050 failed -* 79% was OK - -Time: 26319.393ms - ----- ---- ---- ---- ---- ---- ---- -### 469/620 [`./test/random/expr/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_92.test) - -_Mimic sqlite_ - -```sql -SELECT COALESCE ( - 92, - COUNT ( * ) * COUNT ( * ) * + 9 ) / - 68 - -Expected: ["1"] but got ["1.353"] -``` - - -```sql -SELECT 67 * - CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + - 40 * + CAST ( - ( + + COUNT ( * ) ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT ALL ( + COALESCE ( - COUNT ( * ), - 56, + MAX ( ALL - 85 ), NULLIF ( 10, + 41 ) ) ) * + COUNT ( * ) + + 42 * ( COUNT ( * ) - NULLIF ( - MAX ( ALL 58 ), NULLIF ( COUNT ( * ), + 47 + + 16 ) * - COALESCE ( COALESCE ( + CAST ( - 9 AS REAL ), + COUNT ( * ) / ( + 18 / 68 ), + 67 ) * + 51 - + 62, 9… - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CASE WHEN NOT + COALESCE ( + CAST ( ( 16 ) AS INTEGER ), + 92 + - 66, CAST ( NULL AS INTEGER ) * - 47 ) NOT BETWEEN NULLIF ( 98, 67 ) * + 63 AND COUNT ( * ) + 21 THEN CASE 84 WHEN + 36 THEN NULLIF ( 2, - ( 57 ) ) + 72 * 16 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END END col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL COUNT ( * ) AS col2, CASE + COUNT ( * ) WHEN 94 THEN 38 END AS col2 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) col2, + 46 + - - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","46"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) + + 69 / CAST ( + + MIN ( 45 ) AS INTEGER ) + + + 48 * + 31 col1 - -Expected: ["1490"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 84 + - 94 * + CAST ( NULL AS INTEGER ) + 10 AS col2 - -Expected: ["NULL"] but got ["94"] -``` - - -```sql -SELECT ALL + 8 AS col0, 32 * ( + COALESCE ( + - 41, 66 ) ) / + - CAST ( NULL AS INTEGER ) * - 97 * + 6 + - + 41 + - - 50 AS col0 - -Expected: ["8","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - ( + CAST ( NULL AS INTEGER ) ), + CASE + 89 WHEN 95 THEN 91 * + - 49 END + 19 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,097 failed -* 79% was OK - -Time: 36929.795ms - ----- ---- ---- ---- ---- ---- ---- -### 470/620 [`./test/random/expr/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_93.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 25 / 11 - -Expected: ["-2"] but got ["-2.273"] -``` - - -```sql -SELECT ALL - 98 * - ( 70 ) * + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CASE - 24 WHEN 25 / - ( + COUNT ( * ) ) + - 9 THEN 53 WHEN CAST ( - 48 AS REAL ) THEN NULL ELSE - 59 / 62 END * - 31 + - 93 - -Wrong conversion type -``` - - -```sql -SELECT ALL + 94 * CAST ( + NULLIF ( + + 66, - COUNT ( * ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) / 49 + - 27 + CASE WHEN NOT 32 BETWEEN - 37 + - 51 AND - ( + 3 ) / COUNT ( * ) THEN NULL WHEN 80 + MAX ( + ( 47 ) ) >= + 28 * 8 THEN + 29 + 81 ELSE NULL END - - 25 * + 34 * + COUNT ( * ) col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + + 68 * + COUNT ( * ) * - 50 + + + CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["-3400","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), CASE 21 WHEN CASE + 11 WHEN 9 THEN + 2 + + 60 END / - 0 + 93 THEN + + ( + - 69 ) END AS col2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 18 / 31, CASE - - 1 WHEN + 74 * 49 THEN NULL WHEN - 25 THEN 26 + 77 WHEN - 80 THEN 27 END * + 32 AS col1 - -Expected: ["0","NULL"] but got ["0.581","NULL"] -``` - - -```sql -SELECT 75 + - - CASE WHEN NOT ( NULL ) >= 4 THEN NULL WHEN NOT 24 IN ( 77 * + AVG ( + 27 ) + 72 * 4 ) THEN + 91 + - ( 2 + + ( 55 ) ) / + 18 END AS col2 - -Expected: ["163"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,047 failed -* 79% was OK - -Time: 35314.022ms - ----- ---- ---- ---- ---- ---- ---- -### 471/620 [`./test/random/expr/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_94.test) - -_Mimic sqlite_ - -```sql -SELECT - MIN ( DISTINCT - 33 ) * - 19 + - + 3 / - 39 - -Expected: ["-627"] but got ["-626.923"] -``` - - -```sql -SELECT ALL - + 13 + + CAST ( NULL AS INTEGER ) - - + 94 - -Expected: ["NULL"] but got ["81"] -``` - - -```sql -SELECT - ( + CAST ( NULL AS REAL ) ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT + 16 + - 24 AS col1, 24 / - AVG ( DISTINCT - + 34 ) * 20 * + CASE + 27 WHEN 24 THEN NULL WHEN + 51 * - COUNT ( * ) THEN NULL WHEN - CAST ( 69 AS INTEGER ) THEN NULLIF ( + 87, CAST ( NULL AS INTEGER ) ) ELSE NULL END + 45 AS col1 - -Expected: ["-8","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 35 - + + 66 * 92 + - ( - - CAST ( + MIN ( DISTINCT - 53 ) AS INTEGER ) ) AS col2 - -g is not defined -``` - - -```sql -SELECT - CASE WHEN + 88 NOT BETWEEN - 13 AND - CAST ( - 77 AS INTEGER ) / 50 - - 89 + + 31 * + 65 THEN NULLIF ( - 49, + + 71 ) END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 85 AS col2, CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - CASE COUNT ( * ) WHEN ( COUNT ( * ) ) / + 60 - + - COUNT ( - 16 ) THEN - 57 - + 28 WHEN - 42 THEN CASE + 62 WHEN 22 / - 98 + - 69 * - COUNT ( * ) THEN - 86 WHEN + ( + 13 ) THEN NULL WHEN - 86 THEN + 88 * 82 WHEN 94 * + 28 + + COUNT ( * ) THEN NULL ELSE + 81 * 49 + + 84 * - 70 END END AS co… - -Expected: ["85"] but got ["NULL"] -``` - - -```sql -SELECT 59 col2, CASE - 75 WHEN 56 THEN + 53 WHEN - - ( + CAST ( + - 44 AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) THEN ( - 20 ) * - - 19 * + 75 * + 43 END * - + 98 AS col2 - -Expected: ["59","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( + 84 ) - - COALESCE ( - + 27, - - 64 * - + 57 + - 52 ) / CASE COALESCE ( 8, 96 / - 89 ) WHEN - COUNT ( * ) * - MIN ( ALL - - 51 ) + 22 * + - MIN ( ALL - - 10 ) THEN + COUNT ( * ) - - 27 WHEN + - 41 THEN 70 * - 92 + 61 + + - 37 + + 54 / + 40 END *… - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + 29 / - COALESCE ( + + 5, 46, + 65 ) AS col1 - -Expected: ["-5"] but got ["-5.800"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,058 failed -* 79% was OK - -Time: 27335.644ms - ----- ---- ---- ---- ---- ---- ---- -### 472/620 [`./test/random/expr/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_95.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT ( + 13 ) - - 79 AS col0, CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["92","NULL"] but got ["92","0"] -``` - - -```sql -SELECT ALL 50 / + - ( + + 6 ) - -Expected: ["-8"] but got ["-8.333"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) / - - COUNT ( ALL + + 87 ) - -Wrong conversion type -``` - - -```sql -SELECT CASE + CAST ( ( - + CASE + 1 WHEN - - CASE - + 31 WHEN 86 THEN NULL ELSE + 3 + + + 75 + 85 * - 17 + - CAST ( NULL AS INTEGER ) - + 89 END + - + 42 THEN NULL ELSE COUNT ( * ) * 64 END ) AS INTEGER ) WHEN - 25 THEN CAST ( NULL AS INTEGER ) WHEN + ( 10 ) THEN NULL END AS col0 - -g is not defined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), + CASE - - 48 WHEN + 39 - + - COUNT ( * ) THEN - + 50 + - 70 WHEN + 28 + + - 4 THEN NULL ELSE NULL END * - - 85 * + COUNT ( * ) AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 36 + - + 42 + - CASE WHEN NULL BETWEEN NULL AND NULL THEN - 35 END + + - 64 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + 31 + CASE - - 29 WHEN + 17 + + 42 THEN NULL WHEN - - 19 * + - CASE - NULLIF ( - 32, COUNT ( * ) + - - 69 ) WHEN + + 72 THEN + 3 ELSE + 73 - - 18 + 58 + + 91 END - + 96 THEN 46 + + COALESCE ( + ( 49 ), 63 * CAST ( - 28 AS INTEGER ) ) * - 44 WHEN 29 THEN 37 END AS col1 - -Expected: ["68"] but got ["NULL"] -``` - - -```sql -SELECT 81 AS col2, - CASE + 29 WHEN 5 THEN NULL WHEN - 11 THEN + 92 WHEN - ( - + 77 ) THEN NULL ELSE NULL END * 5 AS col2 - -Expected: ["81","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL CASE - - CAST ( NULL AS INTEGER ) WHEN - + 62 + 96 THEN + + 62 ELSE + 1 END + - COUNT ( * ) + 78 + - + 63 + + + 55 + + + 10 / - MAX ( ALL CAST ( NULL AS INTEGER ) ) * - ( COUNT ( * ) ) + + 49 * - - COUNT ( ALL CAST ( + 19 AS INTEGER ) ) / - - COUNT ( * ), 91 * 24 / + 74 + + MIN ( - - 83 … - -Expected: ["NULL","112"] but got ["NULL","112.514"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - 34 * - + COUNT ( * ) col2, - 73 + + + CAST ( NULL AS INTEGER ) * - - 92 - -Expected: ["NULL","NULL"] but got ["34","-73"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,074 failed -* 79% was OK - -Time: 29824.546ms - ----- ---- ---- ---- ---- ---- ---- -### 473/620 [`./test/random/expr/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_96.test) - -_Mimic sqlite_ - -```sql -SELECT + + 66 / 58 * 71 * - 5 AS col2 - -Expected: ["-355"] but got ["-403.966"] -``` - - -```sql -SELECT ALL 30 * CAST ( NULL AS INTEGER ) - + 47 AS col0 - -Expected: ["NULL"] but got ["-47"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - - 79 + - 43 / CAST ( CASE - 3 WHEN + 99 THEN NULL ELSE + COUNT ( * ) * + - MAX ( ALL + 10 ) END AS INTEGER ) * - - 36 - + 96 - -g is not defined -``` - - -```sql -SELECT 97 + - - CAST ( NULL AS INTEGER ) * CASE - CAST ( - 0 AS REAL ) WHEN 46 THEN - 16 WHEN - 63 THEN NULL ELSE NULL END AS col2 - -Wrong conversion type -``` - - -```sql -SELECT COALESCE ( + 98, + MIN ( + 74 ) ) * - + 49 + COUNT ( ALL - 63 ) - + 32 * CASE CAST ( 78 AS INTEGER ) WHEN - - 28 * 9 + - - CASE WHEN NOT 40 > NULL THEN NULL WHEN + 3 BETWEEN + 8 + + 74 AND ( NULL ) THEN COUNT ( * ) + + ( - NULLIF ( + + 48, ( - + 26 ) ) ) * 43 * + + 67 * - - 97 * + 60 ELSE - … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + 78 col0, ( COUNT ( * ) ) / + + CASE + - 59 WHEN + 91 * + + 52 * - - COALESCE ( 29, - COUNT ( DISTINCT - - 33 ) + - 86 * 90, - 5 - 84 ) THEN 24 END * 23 + - 46 * 14 AS col0 - -Expected: ["78","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 28 - - ( + + 54 ) / - CAST ( - SUM ( ALL ( 81 ) ) AS INTEGER ) * - - 48 * 96 + - - 49 - + COUNT ( * ) / + 9 + - 60 + 56 + COALESCE ( + 37, - - 41 ) * - ( + - 71 ) + - 53 * + 2 - -Expected: ["2538"] but got ["NULL"] -``` - - -```sql -SELECT - CASE - COUNT ( * ) WHEN 69 + + 44 + + + 29 * - ( - 27 ) + + + 38 + + + 52 THEN - 46 WHEN + - COUNT ( * ) * + + COUNT ( * ) THEN NULL ELSE NULL END, + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - ( 48 ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,024 failed -* 79% was OK - -Time: 32926.695ms - ----- ---- ---- ---- ---- ---- ---- -### 474/620 [`./test/random/expr/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_97.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 90 col1, 64 AS col1 - -Expected: ["90","64"] but got ["64","64"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + + 0 / + - 48 + CAST ( NULL AS REAL ) - + 34 * - 86 * - CAST ( 63 AS REAL ) * + 57 + 46 + + 35 AS col1, + 26 * - 0 + 25 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT + 4 * + - CAST ( - COUNT ( * ) AS INTEGER ) - + - 22 - -g is not defined -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) col0, - AVG ( - + CAST ( NULL AS INTEGER ) ) AS col2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT + 1 * - COUNT ( * ) * + - 98 * - ( CAST ( NULL AS INTEGER ) ) + - 47 AS col1 - -Expected: ["NULL"] but got ["-47"] -``` - - -```sql -SELECT ALL - ( - CASE WHEN NOT 43 IS NULL THEN NULL WHEN NOT ( NULL ) BETWEEN 56 / 17 + - 50 AND 28 * + 61 + + 0 THEN + - 8 END ) AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + 37 AS col2, - 15 + - CASE - 20 WHEN - 85 THEN NULL WHEN - - 42 + - 67 THEN - 81 + + 69 WHEN + ( - COUNT ( * ) ) THEN COALESCE ( 86, - 68 ) END + 40 AS col2 - -Expected: ["37","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - CASE COUNT ( * ) WHEN - - COUNT ( * ) + 29 / - 40 * - ( - - CASE 37 WHEN - + MIN ( + 39 ) / CASE + + ( + - 12 ) WHEN - 23 + - 19 THEN NULL WHEN - 12 * - ( SUM ( 84 ) ) THEN 5 ELSE - - 57 - - - 61 END THEN NULL WHEN + CASE + 92 WHEN - 72 / - - COUNT ( * ) THEN NULL WHEN + - SUM ( +… - -Expected: ["79"] but got ["NULL"] -``` - - -```sql -SELECT ALL - 64 * CASE + - 89 WHEN 66 / COUNT ( * ) THEN + + COUNT ( * ) END col2, CASE - + 44 WHEN + 22 THEN - 9 END * 23 * - - 34 AS col2 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + 7 * + 13 AS col2, - ( - CASE 24 WHEN + 85 THEN NULL WHEN + 7 THEN COALESCE ( + ( 42 ), - 63 ) END ) AS col2 - -Expected: ["91","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,033 failed -* 79% was OK - -Time: 25299.271ms - ----- ---- ---- ---- ---- ---- ---- -### 475/620 [`./test/random/expr/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_98.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( CAST ( 27 AS REAL ) AS INTEGER ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 40 / - - 17 AS col2 - -Expected: ["2"] but got ["2.353"] -``` - - -```sql -SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["1","NULL"] but got ["0"] -``` - - -```sql -SELECT - 2 + + + CAST ( - COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT + CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN NULL ELSE + 26 END col2 - -Expected: ["26"] but got ["NULL"] -``` - - -```sql -SELECT - CASE WHEN NULL NOT BETWEEN ( NULL ) AND 53 THEN - - 50 WHEN NULL IS NULL THEN NULL END / + 15 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, AVG ( CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL CASE + 1 WHEN 35 + 5 / - - 2 THEN 78 END AS col1, - 17 + - + ( - COUNT ( * ) ) * - + 29 / - 32 * - 47 * - - 86 + - - 78 AS col2 - -Expected: ["NULL","61"] but got ["NULL","61.000"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,793 failed -* 82% was OK - -Time: 18127.025ms - ----- ---- ---- ---- ---- ---- ---- -### 476/620 [`./test/random/expr/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_99.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - MAX ( - 57 ) + 16 + + 44 / - + CASE - 95 WHEN 84 + 9 + + 81 * + 48 + + 37 THEN NULL WHEN - ( - + 82 ) THEN NULL ELSE 42 + - - 88 END * + 36 + + 41 * COUNT ( * ) + + 45 - -Expected: ["159"] but got ["158.991"] -``` - - -```sql -SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT COUNT ( DISTINCT - - 46 ) + + - CASE 87 WHEN 46 / + 17 * - 59 * - 83 THEN 10 END + - CASE + 85 WHEN 55 * + CAST ( NULL AS REAL ) - - 52 THEN + 70 ELSE NULL END * - - 18 + + 97 * 51 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - 55 + - 66 - -g is not defined -``` - - -```sql -SELECT ALL + + COUNT ( * ) / 25 + 85 + + + 98 + - 27 * 98 * - - SUM ( - 27 ) + + 79 / + + 94 * + + CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) - -Expected: ["71625"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 94 AS col1, ( - 51 ) - - 87 * + 99 * - - AVG ( - 2 ) * + - 75 / - 86 * + + CASE - + 13 WHEN - ( - 81 ) THEN + - COUNT ( * ) WHEN - 51 * - 13 THEN NULL END AS col1 - -Expected: ["94","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 83 - + 10 + - + 68 + + 19 - + CAST ( - ( + - 17 ) AS INTEGER ) * MIN ( 57 ) * + 46 + - - ( ( 90 ) ) + + 64 + + - NULLIF ( - 1, + - 3 ) * - + 69 + CASE WHEN NOT - SUM ( + 48 ) NOT BETWEEN ( - 53 ) AND - 29 * - COUNT ( * ) THEN COUNT ( * ) WHEN NOT NULL IS NOT NULL THEN - 41 * ( COUNT ( * ) * … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT COUNT ( * ) * - 18 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) col2, 17 + COUNT ( * ) + - COALESCE ( 13, - 15 + 62 ) + + CASE - 85 + 82 * + 81 WHEN 61 * + 60 THEN 41 / - 49 END * 19 AS col2 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL 96 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + 73 * + + 80 AS col0 - -Expected: ["NULL","NULL"] but got ["0","5840"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,071 failed -* 79% was OK - -Time: 25642.319ms - ----- ---- ---- ---- ---- ---- ---- -### 477/620 [`./test/random/groupby/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT - tab1.col0 * 84 + + 38 AS col2 FROM tab1 GROUP BY tab1.col0 - -Expected: ["-1810","-2314","-6850"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - + cor0.col1 FROM tab0, tab0 cor0 GROUP BY cor0.col1 - -Expected: ["-81","0"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1 - -Expected: ["41","59","61"] but got ["NULL"] -``` - - -```sql -SELECT ALL 59 / 26 FROM tab2 AS cor0 GROUP BY cor0.col0 - -Expected: ["2","2","2"] but got ["2.269","2.269","2.269"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 GROUP BY tab0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2 cor0 GROUP BY cor0.col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT ( cor0.col1 ) IS NULL - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,287 failed -* 57% was OK - -Time: 27397.331ms - ----- ---- ---- ---- ---- ---- ---- -### 478/620 [`./test/random/groupby/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT 47 / + cor0.col1 FROM tab1 AS cor0 GROUP BY col1 - -Expected: ["0","1","7"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col0 - -Expected: ["0","81"] but got ["NULL"] -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 GROUP BY col0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + cor0.col1 + + ( col1 ) AS col1 FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["0","162"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - NULLIF ( + cor0.col2 * cor0.col1, - cor0.col1 ) + - 31 * cor0.col2 - - col1 col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2 - -Expected: ["-2607","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY col0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 GROUP BY cor1.col1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 2 / + 19 FROM tab1 AS cor0 GROUP BY col0 - -Expected: ["0"] but got ["0.105"] -``` - - -```sql -SELECT + cor1.col0 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0, cor0.col2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT ( cor0.col1 ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) * 11 FROM tab0, tab2 AS cor0 GROUP BY tab0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL 86 + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor1.col0 - -Expected: ["112","112","129","129","169","169"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL CASE - cor0.col1 WHEN cor0.col1 THEN NULL ELSE cor0.col1 END FROM tab0 cor0 GROUP BY cor0.col1 - -Expected: ["81","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - + tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1 - -Expected: ["-81","0"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT cor1.col0 - + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0, cor1.col0 - -1 results returned but expected 9 -``` - - -```sql -SELECT NULLIF ( cor0.col1, cor0.col1 * 4 + - col1 ) * + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col1 - -Expected: ["3483","NULL","NULL"] but got ["NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,144 failed -* 58% was OK - -Time: 24621.064ms - ----- ---- ---- ---- ---- ---- ---- -### 479/620 [`./test/random/groupby/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_10.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 AS col2, + col0 + - col1 AS col2 FROM tab0 GROUP BY col1, col0 - -Expected: ["26","26","43","-38","83","83"] but got ["26","43","83"] -``` - - -```sql -SELECT DISTINCT + + col0 FROM tab0 cor0 GROUP BY col2, col0 HAVING NOT + col2 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN ( - col0 ) AND NULL GROUP BY col1 - -Expected: ["57"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT col0 AS col1, col0, col0 AS col1 FROM tab0 cor0 GROUP BY col0 - -6 results returned but expected 9 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 284 failed -* 97% was OK - -Time: 22402.512ms - ----- ---- ---- ---- ---- ---- ---- -### 480/620 [`./test/random/groupby/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_11.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 GROUP BY col2 HAVING NOT ( NOT col2 IS NOT NULL ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + col2 * col1 AS col0, - col1 AS col0 FROM tab1 AS cor0 GROUP BY col2, col1 - -Expected: ["2565","-57","3124","-44","48","-6"] but got ["-44","-57","-6"] -``` - - -```sql -SELECT + col1 AS col2, col1 * col1 - - + col1, - col1 AS col2 FROM tab1 AS cor0 GROUP BY col1 - -6 results returned but expected 9 -``` - - -```sql -SELECT ALL - - col0 / 30 AS col1 FROM tab2 AS cor0 GROUP BY col0, col1, col2 HAVING NOT col0 * + col0 NOT BETWEEN CAST ( NULL AS REAL ) AND - 74 * col1 + - col1 - -Wrong conversion type -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 GROUP BY col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + col2 + + ( + col2 ) FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL GROUP BY col2 - -Expected: ["116","158","174"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY col0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + col2, ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT 65 NOT BETWEEN - col0 + - col1 AND 78 GROUP BY col2 - -Expected: ["45","45","71","71","8","8"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - - 67 + - + col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["-14","NULL","67","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ), + ( - - col0 ) AS col0, + col0 FROM tab2 GROUP BY col0, col2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - + 5 / 17 / CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 GROUP BY col2, col1 HAVING NOT - + col2 + col1 < - col1 * + 81 * - 57 * - col1 - -Expected: ["NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT + CASE WHEN NOT NULL NOT BETWEEN NULL AND NULL THEN - col1 ELSE NULL END FROM tab2 GROUP BY col0 - -Cannot read property 'toString' of undefined -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 873 failed -* 91% was OK - -Time: 24278.216ms - ----- ---- ---- ---- ---- ---- ---- -### 481/620 [`./test/random/groupby/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_12.test) - -_Mimic sqlite_ - -```sql -SELECT - col0 FROM tab1 AS cor0 WHERE NOT - 48 * - 90 IN ( + + 87 ) GROUP BY col0 - -Expected: ["-22","-28","-82"] but got ["NULL"] -``` - - -```sql -SELECT ALL + col2 + - + ( - 41 ) - - - col1 col1, 7 FROM tab1 cor0 GROUP BY col2, col1 - -Expected: ["29","7","43","7","68","7"] but got ["7","29","7","43","7","68"] -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab2 GROUP BY col2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL - - 46 * CAST ( NULL AS REAL ) * + col0 col1 FROM tab0 AS cor0 GROUP BY col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 75 + CAST ( - 81 AS INTEGER ) AS col2 FROM tab1 GROUP BY col1, col2 HAVING + col2 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL 20 + + 77 + - - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * - 88 FROM tab1 GROUP BY col0 HAVING NOT NULL IS NOT NULL - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["97","0","97","0","97","0"] -``` - - -```sql -SELECT ALL + col1 * - col0 * CASE WHEN NULL = + col2 THEN NULL ELSE col0 END + + col1 FROM tab0 AS cor0 GROUP BY col0, col1 - -Expected: ["-149688","0","0"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + - col2 AS col1, col2 FROM tab0 WHERE NOT + - col1 IN ( - - 38, + 41, CAST ( + + col1 AS INTEGER ) ) GROUP BY col2, col2 - -Expected: ["-24","24"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) FROM tab0 GROUP BY col1 HAVING + 79 IS NOT NULL - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - 74 AS col1, col0 * + 6, - + 87 AS col1 FROM tab2 GROUP BY col1, col0 HAVING NOT NULL IS NOT NULL - -6 results returned but expected 9 -``` - - -```sql -SELECT DISTINCT - - col1 - - col0 * + CAST ( NULL AS INTEGER ) * col0, CASE - 55 WHEN + 36 THEN NULL WHEN - + col0 THEN NULL WHEN - 29 THEN - + col1 WHEN + 19 THEN NULL ELSE NULL END AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL GROUP BY col2, col1, col0 - -Expected: ["NULL","NULL"] but got ["0","NULL","81","NULL"] -``` - - -```sql -SELECT ALL col2 + + col2 col0, col2 * col2 AS col2, 87 FROM tab2 GROUP BY col2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - col0 / - CAST ( NULL AS INTEGER ) + col0 - + 52 AS col0, 69 FROM tab2 AS cor0 GROUP BY col0, col1 - -Expected: ["NULL","69","NULL","69","NULL","69"] but got ["69","NULL","69","NULL","69","NULL"] -``` - - -```sql -SELECT ALL col2 + col2 - - 43 * + - COUNT ( * ) / CASE + CAST ( NULL AS INTEGER ) WHEN - - COALESCE ( - + 59, col1 / col1 * + COUNT ( ALL + - 40 ) * - 52, - - CASE WHEN col1 NOT BETWEEN NULL AND NULL THEN NULL ELSE 33 + + col0 / 65 END * col2 ) * - col2 + col0 THEN - COUNT ( * ) WHEN col0 THEN NULL… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 56 BETWEEN - - 14 + col2 * - + col1 / - col1 * + - col1 AND - ( + col1 ) + + col2 GROUP BY col1, col1 - -Expected: ["NULL","NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + ( NULLIF ( - cor0.col1, col1 ) ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 - -Expected: ["-81","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,446 failed -* 85% was OK - -Time: 28094.339ms - ----- ---- ---- ---- ---- ---- ---- -### 482/620 [`./test/random/groupby/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_13.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + cor0.col2 - + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2 - -Expected: ["0","0","0"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT cor0.col0 + - ( - cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col1, col0 - -Expected: ["164","44","56"] but got ["NULL"] -``` - - -```sql -SELECT ALL 97 * + 3 + - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["210","291"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL col2 / 60 FROM tab0 AS cor0 GROUP BY col0, cor0.col2 - -Expected: ["0","0","1"] but got ["0.400","0.633","1.317"] -``` - - -```sql -SELECT DISTINCT NULLIF ( + cor0.col2 * cor0.col1, - cor0.col1 ) + - 31 * cor0.col2 + - col1 col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2 - -Expected: ["1119","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - 3 FROM tab0 AS cor0 GROUP BY cor0.col2 - -Expected: ["NULL","NULL","NULL"] but got ["-3","-3","-3"] -``` - - -```sql -SELECT NULLIF ( - cor0.col1, cor0.col1 ) FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["-81","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) - 56 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 cor0 GROUP BY cor0.col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1, cor0.col2 - -Correct amount of values returned but hash was different than expected. -``` - -#### ☓ Ran 3,182 tests as _sqlite_ - -* 1,259 failed -* 60% was OK - -Time: 11280.771ms - ----- ---- ---- ---- ---- ---- ---- -### 483/620 [`./test/random/groupby/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - ( 50 ) + tab1.col2 AS col1 FROM tab1 GROUP BY col2 - -Expected: ["-42","-5","21"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1 - -Expected: ["41","59","61"] but got ["NULL"] -``` - - -```sql -SELECT - 66 + cor0.col1 FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["-66","15"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - 70 / - 15 + col1 AS col2 FROM tab0 GROUP BY tab0.col1 - -Expected: ["4","85"] but got ["4.667","85.667"] -``` - - -```sql -SELECT NULLIF ( + col1, cor0.col1 * - ( cor0.col1 ) ) AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0 - -Expected: ["81","NULL","NULL"] but got ["0","0","81"] -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab0 cor0 GROUP BY cor0.col1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 GROUP BY cor0.col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + cor0.col2 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor0.col2, cor1.col1 - -Expected: ["58","58","79","79","87","87"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2, cor0.col1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - tab2.col2 FROM tab2 GROUP BY tab2.col2 HAVING + col2 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - cor0.col2 * - cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor0.col2, cor1.col0 - -1 results returned but expected 9 -``` - - -```sql -SELECT + cor0.col1 - + NULLIF ( cor0.col1, COALESCE ( - cor0.col1, - cor0.col0, cor0.col1 + 52 ) ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0 - -Expected: ["0","NULL","NULL"] but got ["NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,198 failed -* 58% was OK - -Time: 27250.032ms - ----- ---- ---- ---- ---- ---- ---- -### 484/620 [`./test/random/groupby/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT 49 - - col2 * cor0.col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col2 - -Expected: ["1993","49","49"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + tab1.col2 AS col1 FROM tab1 GROUP BY col2 - -Expected: ["45","71","8"] but got ["NULL"] -``` - - -```sql -SELECT 82 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["0","6642"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + 82 / 87 FROM tab0 GROUP BY tab0.col2 - -Expected: ["0","0","0"] but got ["0.943","0.943","0.943"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 92 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0 - -Expected: ["NULL"] but got ["92"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) FROM tab1 GROUP BY col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT CASE cor0.col0 WHEN cor0.col2 * + cor0.col2 THEN cor0.col2 WHEN - 42 / cor0.col2 + cor0.col0 THEN + ( - cor0.col0 ) WHEN - col2 + - cor0.col0 THEN NULL END + NULLIF ( + cor0.col2, + cor0.col0 ) FROM tab0 cor0 GROUP BY cor0.col0, col2 - -Expected: ["53","NULL","NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT - cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1 - -Expected: ["-26","-43","-83"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL - cor1.col1 + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1, cor0.col0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2 - -Wrong conversion type -``` - - -```sql -SELECT tab1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 GROUP BY tab1.col2 HAVING NOT tab1.col2 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT cor1.col1 + - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor1.col1 - -Expected: ["-41","-59","-61","20","22","40"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,465 failed -* 55% was OK - -Time: 21427.186ms - ----- ---- ---- ---- ---- ---- ---- -### 485/620 [`./test/random/groupby/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - - ( - tab0.col0 ) FROM tab0 GROUP BY tab0.col0 - -Expected: ["-26","-43","-83"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - 35 FROM tab1 AS cor0 GROUP BY cor0.col0 - -Expected: ["NULL","NULL","NULL"] but got ["-35","-35","-35"] -``` - - -```sql -SELECT DISTINCT - cor0.col0 * - cor0.col0 AS col1 FROM tab1 cor0 GROUP BY col0 - -Expected: ["484","6724","784"] but got ["NULL"] -``` - - -```sql -SELECT ALL cor0.col1 + col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1 - -Expected: ["0","162"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor0.col2, cor1.col1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 12 / 68 FROM tab2 GROUP BY tab2.col2 - -Expected: ["0","0","0"] but got ["0.176","0.176","0.176"] -``` - - -```sql -SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 GROUP BY tab0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT NULLIF ( + 79, + cor0.col2 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1 - -Expected: ["79","79","NULL"] but got ["79","79","79"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY col1 - -Wrong conversion type -``` - - -```sql -SELECT + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2, cor1.col1 - -Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1 HAVING NOT ( tab1.col1 ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT cor0.col1 - cor0.col1 * + 37 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1 - -Expected: ["-1476","-2124","-2196"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL - + NULLIF ( tab0.col1, + 29 / - 88 ) AS col0 FROM tab0 GROUP BY tab0.col1 - -Expected: ["-81","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,369 failed -* 56% was OK - -Time: 21141.759ms - ----- ---- ---- ---- ---- ---- ---- -### 486/620 [`./test/random/groupby/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + tab2.col1 col2 FROM tab2 GROUP BY col1 - -Expected: ["41","59","61"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, col1 - -Expected: ["0","81"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - 0 / - cor0.col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY col1, cor0.col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT 3 / + 5 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0 - -Expected: ["0","0","0"] but got ["0.600","0.600","0.600"] -``` - - -```sql -SELECT - - CAST ( NULL AS REAL ) AS col2 FROM tab1 GROUP BY tab1.col2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 GROUP BY tab0.col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - col1 * - CAST ( NULL AS INTEGER ) + - 97 FROM tab0 GROUP BY tab0.col1 - -Expected: ["NULL","NULL"] but got ["-97","-97"] -``` - - -```sql -SELECT ALL - 90 / - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor1.col0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1 HAVING NOT + tab0.col1 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 - -Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL + cor0.col2 * NULLIF ( - cor0.col1, cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1 - -Expected: ["-1944","NULL","NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT cor0.col1 * + CASE cor0.col0 / + cor0.col2 WHEN + cor0.col0 / cor0.col0 THEN cor0.col1 * + cor0.col1 WHEN cor0.col0 / - cor0.col0 THEN NULL END FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2 - -Expected: ["205379","68921","NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT NULLIF ( cor0.col1, + cor0.col1 + + cor0.col1 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["81","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,488 failed -* 55% was OK - -Time: 20861.798ms - ----- ---- ---- ---- ---- ---- ---- -### 487/620 [`./test/random/groupby/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 * - cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0 - -Expected: ["-1806","-650","-6806"] but got ["NULL"] -``` - - -```sql -SELECT ALL - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col1, cor0.col1 - -Expected: ["-41","-59","-61"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL + cor0.col1 * - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1 - -Expected: ["-6561","0"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + 92 / + 53 FROM tab2 GROUP BY tab2.col2 - -Expected: ["1","1","1"] but got ["1.736","1.736","1.736"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0 GROUP BY cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 - -Wrong conversion type -``` - - -```sql -SELECT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2, cor0.col0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + tab1.col1 FROM tab1 GROUP BY tab1.col1 HAVING tab1.col1 IS NOT NULL - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,625 failed -* 53% was OK - -Time: 23373.015ms - ----- ---- ---- ---- ---- ---- ---- -### 488/620 [`./test/random/groupby/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col2 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2 - -Expected: ["-1944","0","0"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT - cor0.col1 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["-81","0"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT cor0.col2 + - cor0.col2 + + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2 - -Expected: ["41","59","61"] but got ["NULL"] -``` - - -```sql -SELECT - ( + cor0.col1 * CAST ( NULL AS REAL ) ) + + 69 * col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 GROUP BY cor0.col0, col2, cor0.col1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - 66 FROM tab0 AS cor0 GROUP BY cor0.col2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( - cor0.col1 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1 - -Expected: ["-44","-57","-6"] but got ["0","0","0"] -``` - - -```sql -SELECT + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 - -Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT + NULLIF ( - COALESCE ( - cor0.col2, cor0.col1 ), 79 ) / cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1 - -Expected: ["1","1","NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL tab0.col0 FROM tab0 GROUP BY tab0.col0 HAVING NOT tab0.col0 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT NULLIF ( cor0.col1, - cor0.col1 ) * - col1 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["-6561","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - NULLIF ( + cor0.col1, cor0.col1 / - 16 ) FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["-81","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,547 failed -* 54% was OK - -Time: 28699.951ms - ----- ---- ---- ---- ---- ---- ---- -### 489/620 [`./test/random/groupby/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT - tab2.col2 / - tab2.col2 AS col1 FROM tab2 GROUP BY col2 - -Expected: ["1","1","1"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + col1 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["0","6561"] but got ["NULL"] -``` - - -```sql -SELECT - cor0.col1 * - cor0.col1 FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["0","6561"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - NULLIF ( cor0.col0, + 26 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0 - -Expected: ["-43","-83","NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT + - CAST ( NULL AS REAL ) * + tab0.col2 AS col0 FROM tab0 GROUP BY tab0.col2 - -Wrong conversion type -``` - - -```sql -SELECT 65 / 40 AS col1 FROM tab1 GROUP BY tab1.col0 - -Expected: ["1","1","1"] but got ["1.625","1.625","1.625"] -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 GROUP BY tab1.col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT tab2.col2 FROM tab2 GROUP BY tab2.col2 HAVING NOT ( tab2.col2 ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * 22 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL cor0.col2 + - 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor1.col2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT cor0.col2 * - ( + cor0.col2 ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 - -Expected: ["-3364","-3364","-6241","-6241","-7569","-7569"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,975 failed -* 70% was OK - -Time: 21104.628ms - ----- ---- ---- ---- ---- ---- ---- -### 490/620 [`./test/random/groupby/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_9.test) - -_Mimic sqlite_ - -```sql -SELECT col1 AS col1 FROM tab1 GROUP BY col1 HAVING col1 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col0, - col0 AS col0 FROM tab0 AS cor0 GROUP BY col0, col2 - -Expected: ["26","-26","43","-43","83","-83"] but got ["26","43","83"] -``` - - -```sql -SELECT DISTINCT + cor0.col0 * 74 FROM tab0 AS cor0 GROUP BY cor0.col0 - -Expected: ["1924","3182","6142"] but got ["NULL"] -``` - - -```sql -SELECT + cor0.col2 * 38 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2 - -Expected: ["1444","3002","912"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT 67 + 43 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["3550","67"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT * FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * 93 FROM tab1 AS cor0 GROUP BY cor0.col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) * ( + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL col2 AS col1, - AVG ( - col2 ) AS col1, - col2 AS col1 FROM tab0 AS cor0 GROUP BY col2 - -3 results returned but expected 9 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 503 failed -* 94% was OK - -Time: 20537.234ms - ----- ---- ---- ---- ---- ---- ---- -### 491/620 [`./test/random/select/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 cor0 - -18 results returned but expected 54 -``` - - -```sql -SELECT - col2 / - col0 - + 69 AS col0 FROM tab1 AS cor0 - -Expected: ["-51","-68","-69"] but got ["-51","-67.800","-68.109"] -``` - - -```sql -SELECT DISTINCT + col0 + col1 / CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT + 63 - 48 * col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0 - -Expected: ["NULL"] but got ["63"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT ( - col2 * + col0 ) IN ( - col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,572 failed -* 84% was OK - -Time: 18468.317ms - ----- ---- ---- ---- ---- ---- ---- -### 492/620 [`./test/random/select/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - col2 + + ( 69 ) / - col2 FROM tab1 AS cor0 - -Expected: ["-55","-58","-96"] but got ["-55.278","-58.211","-96.719"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1 - -27 results returned but expected 243 -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab0, tab1, tab2 AS cor0, tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col0 FROM tab1 WHERE NOT ( col0 ) IN ( + col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,338 failed -* 86% was OK - -Time: 18960.251ms - ----- ---- ---- ---- ---- ---- ---- -### 493/620 [`./test/random/select/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_10.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 / + ( ( cor0.col2 ) ) AS col0 FROM tab0 AS cor0 - -Expected: ["0","1","35"] but got ["0.727","1.085","35"] -``` - - -```sql -SELECT - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-26","-27","-38"] -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) / - 31 FROM tab1, tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + 50 / + tab0.col2 AS col0 FROM tab0, tab2 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["3","64","80"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT - col0 + - col2 FROM tab1 WHERE NOT col0 BETWEEN col1 AND - col2 - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,287 failed -* 87% was OK - -Time: 26788.021ms - ----- ---- ---- ---- ---- ---- ---- -### 494/620 [`./test/random/select/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_100.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab1 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL + 69 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT + + cor0.col0 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col2 / + 51 + + col0 FROM tab2 AS cor0 - -Expected: ["7","78","79"] but got ["7.529","78.510","79.745"] -``` - - -```sql -SELECT col1 * + CAST ( NULL AS INTEGER ) + 30 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["30","30","30"] -``` - - -```sql -SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) - - col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["86","91","97"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + + 63 AS col2 FROM tab2, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + col2 BETWEEN ( col0 * col2 ) AND col2 - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,441 failed -* 85% was OK - -Time: 24379.690ms - ----- ---- ---- ---- ---- ---- ---- -### 495/620 [`./test/random/select/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_101.test) - -_Mimic sqlite_ - -```sql -SELECT + ( col0 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] -``` - - -```sql -SELECT - col1 - col2 / + col0 AS col2 FROM tab2 AS cor0 - -Expected: ["-17","-34","-59"] but got ["-17.481","-34.857","-59.333"] -``` - - -```sql -SELECT + cor3.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2, tab0, tab0 cor0, tab1 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + 93 + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["93"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( cor0.col2 ) AND - col2 * col2 * + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 cor0, tab1, tab2 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,435 failed -* 85% was OK - -Time: 24177.338ms - ----- ---- ---- ---- ---- ---- ---- -### 496/620 [`./test/random/select/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_102.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab2 WHERE NOT + col1 IN ( - col2 * col2 * - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT col0 + - ( col0 + tab2.col2 ) * + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 - -Expected: ["NULL"] but got ["7","78","79"] -``` - - -```sql -SELECT DISTINCT col2 / cor0.col0 + 11 col0 FROM tab0 AS cor0 - -Expected: ["11","12"] but got ["11.029","11.921","12.375"] -``` - - -```sql -SELECT ALL ( + col2 ) + CAST ( NULL AS REAL ) * - 9 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) * 5 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT cor0.col1 * 71 / 92 AS col0 FROM tab1, tab1 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab2 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,458 failed -* 85% was OK - -Time: 25632.155ms - ----- ---- ---- ---- ---- ---- ---- -### 497/620 [`./test/random/select/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_103.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + + cor0.col1 + col0 / ( + col0 * ( - cor0.col0 ) ) FROM tab1 AS cor0 - -Expected: ["10","13","26"] but got ["12.988","25.667","9.984"] -``` - - -```sql -SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab0 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL + 37 - - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["37","37","37"] -``` - - -```sql -SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) * + 34 + + col0 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["14","156","158"] -``` - - -```sql -SELECT ALL - + col1 * ( + col2 * + CAST ( ( col1 ) AS REAL ) ) + + col0 AS col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab1 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT col2 IN ( col0 / - col2 + + col0 * col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,457 failed -* 85% was OK - -Time: 21529.683ms - ----- ---- ---- ---- ---- ---- ---- -### 498/620 [`./test/random/select/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_104.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col0 + + tab1.col2 + CAST ( NULL AS INTEGER ) * + 57 FROM tab1 - -Expected: ["NULL"] but got ["121","176","57"] -``` - - -```sql -SELECT ALL + - CAST ( + col1 AS REAL ) + col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + col0 / 37 + col2 * - col0 AS col2 FROM tab0 cor0 - -Expected: ["-35","-7296","-792"] but got ["-34.054","-7295.595","-791.351"] -``` - - -```sql -SELECT cor0.col2 + - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["54","57","96"] -``` - - -```sql -SELECT cor0.col2 * - 5 FROM tab1 cor0 CROSS JOIN tab0, tab0 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… -``` - - -```sql -SELECT - cor0.col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab0 WHERE NOT + col1 + + col1 IN ( tab0.col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab0 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,433 failed -* 85% was OK - -Time: 28275.224ms - ----- ---- ---- ---- ---- ---- ---- -### 499/620 [`./test/random/select/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_105.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 / 73 FROM tab2 - -Expected: ["0","1"] but got ["0.096","1.068","1.082"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS REAL ) FROM tab2, tab0, tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - ( + 90 ) + cor1.col0 / 90 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 + col1 ) IN ( + tab2.col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col0 * + CAST ( NULL AS INTEGER ) * + tab2.col0 AS col2 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 cor1, tab0 AS cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,443 failed -* 85% was OK - -Time: 23704.004ms - ----- ---- ---- ---- ---- ---- ---- -### 500/620 [`./test/random/select/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_106.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + - cor1.col2 / 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] -``` - - -```sql -SELECT cor0.col1 / col0 + col1 * - col1 FROM tab2 AS cor0 - -Expected: ["-289","-3481","-957"] but got ["-288.785","-3480.244","-956.571"] -``` - - -```sql -SELECT ALL - col0 * - CAST ( + 27 AS REAL ) FROM tab2 cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL tab0.col2 * 10 + cor0.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT + col1 FROM tab2 WHERE NOT ( + col2 ) IN ( + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 * col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab1, tab0 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,415 failed -* 85% was OK - -Time: 20801.215ms - ----- ---- ---- ---- ---- ---- ---- -### 501/620 [`./test/random/select/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_107.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( NULL AS INTEGER ) - 91 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT tab0.col1 * col2 + - CAST ( NULL AS INTEGER ) + col1 FROM tab0 - -Expected: ["NULL"] but got ["194","2924","7553"] -``` - - -```sql -SELECT DISTINCT - ( col2 ) / col0 AS col2 FROM tab2 - -Expected: ["-3","0"] but got ["-0.333","-0.481","-3.857"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - + 85 col0 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-85","-85","-85"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) * + col2 + col0 * + tab1.col2 / + tab1.col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 cor1, tab2, tab2 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT ( col0 + + col2 + col2 ) IN ( + col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,454 failed -* 85% was OK - -Time: 21876.717ms - ----- ---- ---- ---- ---- ---- ---- -### 502/620 [`./test/random/select/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_108.test) - -_Mimic sqlite_ - -```sql -SELECT - - ( col2 ) / col1 AS col2 FROM tab1 AS cor0 - -Expected: ["2","5","7"] but got ["2.077","5.700","7.385"] -``` - - -```sql -SELECT ALL col0 + + 3 * - col2 * - CAST ( NULL AS INTEGER ) + 97 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["121","132","186"] -``` - - -```sql -SELECT cor0.col2 / - ( - 49 ) AS col1 FROM tab0, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col2 + col2 * CAST ( NULL AS REAL ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + 2 * tab2.col0 + CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab2 - -Expected: ["NULL"] but got ["14","156","158"] -``` - - -```sql -SELECT + cor0.col1 FROM tab2 cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 cor1, tab1, t ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT ( col2 ) IN ( + col0 + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 cor1, tab1, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,399 failed -* 86% was OK - -Time: 20644.964ms - ----- ---- ---- ---- ---- ---- ---- -### 503/620 [`./test/random/select/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_109.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( - col2 ) AS col2 FROM tab1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - 76 / + cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + col1 / 59 - + col0 AS col2 FROM tab2 AS cor0 - -Expected: ["-7","-77","-79"] but got ["-6.475","-77","-78.712"] -``` - - -```sql -SELECT ALL - - cor0.col2 + - CAST ( NULL AS INTEGER ) * - 31 col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] -``` - - -```sql -SELECT DISTINCT + col2 * - tab2.col1 - - CAST ( NULL AS REAL ) col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT - col0 FROM tab1 WHERE NOT col0 + col1 / - col1 + + tab1.col2 IN ( col1 * + tab1.col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab0 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,408 failed -* 85% was OK - -Time: 27035.858ms - ----- ---- ---- ---- ---- ---- ---- -### 504/620 [`./test/random/select/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_11.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col1 / 77 - col0 col0 FROM tab0 - -Expected: ["-23","-34","-88"] but got ["-22.883","-33.740","-87.818"] -``` - - -```sql -SELECT ALL - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-86","-91","-97"] -``` - - -```sql -SELECT DISTINCT cor0.col1 * CAST ( NULL AS INTEGER ) * + col2 + col1 / col0 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0.215","0.756","4.429"] -``` - - -```sql -SELECT + tab1.col0 / + cor0.col0 FROM tab1, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 29 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL col0 FROM tab1 WHERE NOT - col1 + + col1 IN ( col0 + - col2 - + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) / 44 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 - -Wrong conversion type -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,340 failed -* 86% was OK - -Time: 24199.012ms - ----- ---- ---- ---- ---- ---- ---- -### 505/620 [`./test/random/select/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_110.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 FROM tab0 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT - ( col2 ) + - col2 / col1 AS col0 FROM tab2 AS cor0 - -Expected: ["-26","-27","-40"] but got ["-26.441","-27.871","-40.235"] -``` - - -```sql -SELECT ALL - + col0 + + CAST ( NULL AS REAL ) * + col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - - 58 + 34 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL cor0.col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["24","35","89"] -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN col2 AND ( NULL ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 cor1, tab2, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,009 tests as _sqlite_ - -* 1,415 failed -* 85% was OK - -Time: 21307.125ms - ----- ---- ---- ---- ---- ---- ---- -### 506/620 [`./test/random/select/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_111.test) - -_Mimic sqlite_ - -```sql -SELECT - col2 * - 70 + tab0.col1 / col0 + 50 * col1 AS col0 FROM tab0 - -Expected: ["10291","4922","6613"] but got ["10291.022","4922.771","6613.583"] -``` - - -```sql -SELECT tab2.col2 * - CAST ( - 11 * - col1 AS REAL ) AS col0 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] -``` - - -```sql -SELECT ALL + - cor1.col2 / - ( + cor1.col1 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 - - col1 AS col2 FROM tab1 - -Expected: ["NULL"] but got ["109","67","80"] -``` - - -```sql -SELECT ALL ( + 21 ) FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab0 cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,476 failed -* 85% was OK - -Time: 20799.093ms - ----- ---- ---- ---- ---- ---- ---- -### 507/620 [`./test/random/select/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_112.test) - -_Mimic sqlite_ - -```sql -SELECT col1 / ( + 63 ) FROM tab1 AS cor0 - -Expected: ["0","0","0"] but got ["0.159","0.206","0.413"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) + col1 + - col0 * - ( + col2 ) / col0 col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-26","-27","-38"] -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) + 2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["2","2","2"] -``` - - -```sql -SELECT ALL + tab1.col1 / 79 AS col0 FROM tab1, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 cor1, tab2 AS cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT - col0 IN ( tab1.col0 * + col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,452 failed -* 85% was OK - -Time: 20851.687ms - ----- ---- ---- ---- ---- ---- ---- -### 508/620 [`./test/random/select/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_113.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 63 + col2 * - CAST ( - col1 AS REAL ) + - col2 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 97 + - col1 / - 75 AS col1 FROM tab2 AS cor0 - -Expected: ["97"] but got ["97.227","97.413","97.787"] -``` - - -```sql -SELECT col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + 76 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL 94 / - cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 + - col0 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-24","-35","-89"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT + col2 - col2 BETWEEN col0 / col0 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0, tab2 cor0, tab2 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,365 failed -* 86% was OK - -Time: 25097.073ms - ----- ---- ---- ---- ---- ---- ---- -### 509/620 [`./test/random/select/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_114.test) - -_Mimic sqlite_ - -```sql -SELECT - 40 * cor0.col2 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-2160","-2280","-3840"] -``` - - -```sql -SELECT - 15 + col0 / 99 FROM tab1 AS cor0 - -Expected: ["-15","-15","-15"] but got ["-14.192","-14.354","-14.970"] -``` - - -```sql -SELECT * FROM tab1, tab0 cor0, tab0 cor1, tab0 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) * + col0 * col1 + - col2 + + col0 AS col2 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 42 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col0 IN ( + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + cor0.col2 + + cor1.col2 / tab2.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 - -27 results returned but expected 9 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,393 failed -* 86% was OK - -Time: 26484.674ms - ----- ---- ---- ---- ---- ---- ---- -### 510/620 [`./test/random/select/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_115.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + + 32 / col1 AS col0 FROM tab0 AS cor0 - -Expected: ["0","0","0"] but got ["0.330","0.352","0.372"] -``` - - -```sql -SELECT 82 + col1 * CAST ( NULL AS INTEGER ) * col1 col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["82","82","82"] -``` - - -```sql -SELECT tab0.col1 / 28 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col2 + CAST ( NULL AS REAL ) + 25 * col2 AS col0 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab0 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT col0 / - col2 IN ( col0 + - col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,445 failed -* 85% was OK - -Time: 21614.169ms - ----- ---- ---- ---- ---- ---- ---- -### 511/620 [`./test/random/select/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_116.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - + col1 / ( col2 * - col1 ) AS col1 FROM tab1 AS cor0 - -Expected: ["0"] but got ["0.010","0.018","0.019"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - ( col1 ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-10","-13","-26"] -``` - - -```sql -SELECT - cor0.col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + - cor1.col1 / cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - cor0.col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-86","-91","-97"] -``` - - -```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL ) - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col1 * - col2 - col1 IN ( tab1.col0 * + col1 / + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0 cor1 - -27 results returned but expected 243 -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,466 failed -* 85% was OK - -Time: 20937.936ms - ----- ---- ---- ---- ---- ---- ---- -### 512/620 [`./test/random/select/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_117.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col0 / + 21 AS col2 FROM tab2 AS cor0 - -Expected: ["0","3","3"] but got ["0.333","3.714","3.762"] -``` - - -```sql -SELECT col1 + + CAST ( NULL AS REAL ) * - col0 col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) / + col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + col0 * col2 + CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL"] but got ["162","3648","7680"] -``` - - -```sql -SELECT ALL - cor1.col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT + + col1 / CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["0","0","4"] but got ["0.215","0.756","4.429"] -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT ( + col2 * + col1 ) IN ( + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2, tab1 cor0, tab1 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT + col1 / + col0 + + col0 FROM tab2 AS cor0 - -Expected: ["11","78","79"] but got ["11.429","78.756","79.215"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,524 failed -* 84% was OK - -Time: 21318.401ms - ----- ---- ---- ---- ---- ---- ---- -### 513/620 [`./test/random/select/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_118.test) - -_Mimic sqlite_ - -```sql -SELECT - col2 - + CAST ( - col1 AS INTEGER ) / + col2 AS col0 FROM tab0 AS cor0 - -Expected: ["-31","-81","96"] but got ["-30.394","-80.890","96"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab0 cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + cor1.col0 * + 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT + 50 * + tab0.col2 + col2 * CAST ( NULL AS INTEGER ) / 19 AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["1650","4100","50"] -``` - - -```sql -SELECT DISTINCT cor0.col0 * + cor0.col0 - - CAST ( NULL AS INTEGER ) * + 88 FROM tab0, tab0 AS cor0 - -Expected: ["NULL"] but got ["1225","576","7921"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) / + 17 AS col0 FROM tab0, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col1 * col1 * - col1 FROM tab0 WHERE NOT col0 IN ( col1 + - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,447 failed -* 85% was OK - -Time: 23216.468ms - ----- ---- ---- ---- ---- ---- ---- -### 514/620 [`./test/random/select/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_119.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - col2 / + col0 FROM tab2 cor0 - -Expected: ["-3","0"] but got ["-0.333","-0.481","-3.857"] -``` - - -```sql -SELECT + + col1 * - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-7396","-8281","-9409"] -``` - - -```sql -SELECT ALL + col1 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab2, tab1 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT - col2 FROM tab1 WHERE NOT col0 BETWEEN ( + col1 + col2 ) AND NULL - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,441 failed -* 85% was OK - -Time: 28639.829ms - ----- ---- ---- ---- ---- ---- ---- -### 515/620 [`./test/random/select/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_12.test) - -_Mimic sqlite_ - -```sql -SELECT - col1 / col2 AS col0 FROM tab0 - -Expected: ["-1","-2","-97"] but got ["-1.110","-2.606","-97"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab1 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) + col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… -``` - - -```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-54","-57","-96"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT + col2 - tab0.col1 IN ( col0 * col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,256 failed -* 87% was OK - -Time: 20834.771ms - ----- ---- ---- ---- ---- ---- ---- -### 516/620 [`./test/random/select/slt_good_120.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_120.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - + col2 - - col0 / col1 AS col2 FROM tab0 AS cor0 - -Expected: ["-1","-33","-82"] but got ["-0.639","-32.721","-81.022"] -``` - - -```sql -SELECT DISTINCT cor0.col2 / CAST ( NULL AS REAL ) FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 75 / tab2.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + col0 * - CAST ( NULL AS INTEGER ) / + tab1.col0 + col2 + 92 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["146","149","188"] -``` - - -```sql -SELECT cor1.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= ( NULL ) OR NOT + col2 * col1 IN ( + col1 / - col1 - - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + col0 * + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["35","7298","792"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,434 failed -* 85% was OK - -Time: 20826.518ms - ----- ---- ---- ---- ---- ---- ---- -### 517/620 [`./test/random/select/slt_good_121.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_121.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - 59 / col2 AS col0 FROM tab1 AS cor0 - -Expected: ["-1","0"] but got ["-0.615","-1.035","-1.093"] -``` - - -```sql -SELECT ALL - - cor0.col1 * CAST ( - col2 AS REAL ) AS col2 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-24","-35","-89"] -``` - - -```sql -SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-26","-27","-38"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - col0 * col1 * + tab2.col2 FROM tab2 WHERE NOT ( col2 ) IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0, tab1 cor0, tab0 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT - col0 / 45 + - col1 AS col2 FROM tab2 AS cor0 - -Expected: ["-18","-31","-60"] but got ["-18.756","-31.156","-60.733"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,397 failed -* 86% was OK - -Time: 20758.083ms - ----- ---- ---- ---- ---- ---- ---- -### 518/620 [`./test/random/select/slt_good_122.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_122.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col1 / + col0 + col2 FROM tab1 AS cor0 - -Expected: ["57","62","96"] but got ["57.156","62.667","96.162"] -``` - - -```sql -SELECT CAST ( + 92 AS REAL ) * + col1 + - col2 + col1 * cor0.col2 AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT + - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + col0 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab1 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 - - col0 * + col1 IN ( col1 * col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,464 failed -* 85% was OK - -Time: 21272.181ms - ----- ---- ---- ---- ---- ---- ---- -### 519/620 [`./test/random/select/slt_good_123.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_123.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - col2 / col1 col1 FROM tab0 AS cor0 - -Expected: ["0"] but got ["-0.010","-0.384","-0.901"] -``` - - -```sql -SELECT ALL - col1 * tab2.col0 * CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) + col0 / - col1 FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT - cor0.col1 / + 11 AS col2 FROM tab2, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT col0 / col1 BETWEEN + col0 * col0 AND + col0 - - col2 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 cor1, tab2, tab0 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,443 failed -* 85% was OK - -Time: 31050.740ms - ----- ---- ---- ---- ---- ---- ---- -### 520/620 [`./test/random/select/slt_good_124.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_124.test) - -_Mimic sqlite_ - -```sql -SELECT + 56 / col2 - - col0 FROM tab1 cor0 - -Expected: ["4","64","80"] but got ["4.037","64.982","80.583"] -``` - - -```sql -SELECT DISTINCT ( + col2 ) * col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["35","7298","792"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] -``` - - -```sql -SELECT DISTINCT - - cor0.col0 * CAST ( col0 AS REAL ) - col1 AS col1 FROM tab0 cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab1, tab1 cor0, tab2, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + tab1.col1 AS col2 FROM tab1 WHERE NOT + col0 IN ( - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 cor0, tab0, tab0 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 2,865 tests as _sqlite_ - -* 396 failed -* 86% was OK - -Time: 7061.630ms - ----- ---- ---- ---- ---- ---- ---- -### 521/620 [`./test/random/select/slt_good_125.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_125.test) - -#### ★ Assuming all 12 tests still passes as _sqlite_ - -Time: 0.427ms - ----- ---- ---- ---- ---- ---- ---- -### 522/620 [`./test/random/select/slt_good_126.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_126.test) - -#### ★ Assuming all 12 tests still passes as _sqlite_ - -Time: 0.616ms - ----- ---- ---- ---- ---- ---- ---- -### 523/620 [`./test/random/select/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_13.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 97 * - col1 + CAST ( + col1 AS REAL ) - col2 * - tab2.col1 col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 1 / - cor0.col0 AS col0 FROM tab0, tab0 AS cor0 - -Expected: ["0"] but got ["-0.011","-0.029","-0.042"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + 49 col1 FROM tab0 - -Expected: ["NULL"] but got ["49"] -``` - - -```sql -SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT 12 * + 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 cor0, tab2 AS cor1, tab0 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT col1 / col0 FROM tab2 WHERE NOT - col2 BETWEEN ( col2 * + col1 ) AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - 17 * - 37 * + col2 + CAST ( NULL AS REAL ) * - col2 FROM tab1 AS cor0 - -Wrong conversion type -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,314 failed -* 86% was OK - -Time: 21159.992ms - ----- ---- ---- ---- ---- ---- ---- -### 524/620 [`./test/random/select/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_14.test) - -_Mimic sqlite_ - -```sql -SELECT + - col1 / + col2 + + col0 FROM tab1 cor0 - -Expected: ["3","64","80"] but got ["2.519","63.825","79.865"] -``` - - -```sql -SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + col2 * - col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT 57 - + ( + col1 * - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["57","57","57"] -``` - - -```sql -SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) / - col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["1","33","82"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 cor0, tab2, tab2 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT + col2 + col1 + + col2 FROM tab2 AS cor0 WHERE NOT col2 IN ( col1 * - col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,300 failed -* 87% was OK - -Time: 20382.591ms - ----- ---- ---- ---- ---- ---- ---- -### 525/620 [`./test/random/select/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_15.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col1 + - CAST ( NULL AS REAL ) * + 98 AS col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + 81 + col2 / 38 FROM tab1 AS cor0 - -Expected: ["82","82","83"] but got ["82.421","82.500","83.526"] -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… -``` - - -```sql -SELECT + + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab2 WHERE NOT col1 IN ( + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-54","-57","-96"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab0 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,280 failed -* 87% was OK - -Time: 19956.137ms - ----- ---- ---- ---- ---- ---- ---- -### 526/620 [`./test/random/select/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_16.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - cor0.col0 / col1 - + cor0.col1 FROM tab0 AS cor0 - -Expected: ["-86","-91","-97"] but got ["-86.279","-91.978","-97.361"] -``` - - -```sql -SELECT ALL - cor0.col0 / 75 col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - cor0.col0 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-7","-78","-79"] -``` - - -```sql -SELECT ALL + 94 / - tab0.col2 FROM tab0, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( col0 AS REAL ) * cor0.col0 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0, tab1 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( + col2 + col1 + col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,295 failed -* 87% was OK - -Time: 19961.805ms - ----- ---- ---- ---- ---- ---- ---- -### 527/620 [`./test/random/select/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_17.test) - -_Mimic sqlite_ - -```sql -SELECT - + CAST ( NULL AS INTEGER ) + 99 * col0 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["2376","3465","8811"] -``` - - -```sql -SELECT - + col0 + col2 / + col1 FROM tab2 AS cor0 - -Expected: ["-7","-77","-78"] but got ["-6.129","-76.765","-77.559"] -``` - - -```sql -SELECT - CAST ( + col1 AS REAL ) + - col0 * - col2 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + 28 + - cor0.col1 / + 8 AS col0 FROM tab0, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT + col0 - CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL"] but got ["24","35","89"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0, tab2 AS cor0, tab1 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT col0 * + col0 FROM tab1 WHERE NOT col0 * + col1 + - col0 * - col2 NOT BETWEEN ( - col0 ) AND ( + col2 * + col2 + + col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,327 failed -* 86% was OK - -Time: 29946.970ms - ----- ---- ---- ---- ---- ---- ---- -### 528/620 [`./test/random/select/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_18.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL + col2 * col1 / - 27 FROM tab2 - -Expected: ["-23","-31","-56"] but got ["-23.926","-31","-56.815"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * + col1 * - col0 AS col0 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) / + col2 + - cor0.col0 * col0 AS col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab1, tab0 AS cor0, tab0 cor1, tab2 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT + col0 * col1 IN ( col0 + - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab0 AS cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,335 failed -* 86% was OK - -Time: 21906.421ms - ----- ---- ---- ---- ---- ---- ---- -### 529/620 [`./test/random/select/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_19.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT - col0 - col2 / + col0 AS col0 FROM tab0 AS cor0 - -Expected: ["-25","-35","-89"] but got ["-25.375","-35.029","-89.921"] -``` - - -```sql -SELECT ALL * FROM tab2, tab0 cor0, tab1, tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - cor0.col1 + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-17","-31","-59"] -``` - - -```sql -SELECT CAST ( 95 AS REAL ) AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - cor0.col1 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( - col2 ) AS col1 FROM tab0 - -Expected: ["NULL"] but got ["-1","-33","-82"] -``` - - -```sql -SELECT col2 AS col2 FROM tab1 WHERE col0 IN ( - col0 / tab1.col1 + + col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,306 failed -* 86% was OK - -Time: 20120.555ms - ----- ---- ---- ---- ---- ---- ---- -### 530/620 [`./test/random/select/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col2 * + tab0.col1 + - col0 / - col1 FROM tab0 - -Expected: ["2838","7462","97"] but got ["2838.279","7462.978","97.361"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 + col0 AS col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["171","36","57"] -``` - - -```sql -SELECT CAST ( col1 AS REAL ) + - tab1.col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL 86 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT * FROM tab1 WHERE NOT ( col1 ) IN ( col2 + col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,291 failed -* 87% was OK - -Time: 19230.292ms - ----- ---- ---- ---- ---- ---- ---- -### 531/620 [`./test/random/select/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_20.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - cor0.col1 / - 12 col2 FROM tab0, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1, tab0 AS cor0, tab0 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT cor0.col1 / + col0 FROM tab2 AS cor0 - -Expected: ["0","4"] but got ["0.215","0.756","4.429"] -``` - - -```sql -SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + col1 * - col0 - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL col1 * + 84 - - ( tab1.col0 + CAST ( NULL AS INTEGER ) ) FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["1172","2187","904"] -``` - - -```sql -SELECT ALL - tab1.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… -``` - - -```sql -SELECT col2 * col2 FROM tab0 AS cor0 WHERE NOT col1 * col2 * - cor0.col2 BETWEEN col2 AND NULL - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,299 failed -* 87% was OK - -Time: 20203.980ms - ----- ---- ---- ---- ---- ---- ---- -### 532/620 [`./test/random/select/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_21.test) - -_Mimic sqlite_ - -```sql -SELECT + 94 / - col2 + col1 + 9 FROM tab0 AS cor0 - -Expected: ["12","93","99"] but got ["12","92.152","98.854"] -``` - - -```sql -SELECT ALL - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab1 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( col2 AS REAL ) AS col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT col2 FROM tab2 WHERE NOT - col0 BETWEEN col2 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,347 failed -* 86% was OK - -Time: 25256.290ms - ----- ---- ---- ---- ---- ---- ---- -### 533/620 [`./test/random/select/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_22.test) - -_Mimic sqlite_ - -```sql -SELECT ALL cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) * 41 FROM tab1 - -Expected: ["NULL"] but got ["10","13","26"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-86","-91","-97"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - - col2 / + col1 + + cor0.col0 / 24 AS col0 FROM tab0 AS cor0 - -Expected: ["1","1","3"] but got ["1.384","1.469","4.609"] -``` - - -```sql -SELECT 9 / - col2 + + col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT col1 * col0 * col0 IN ( - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0, tab1 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,324 failed -* 86% was OK - -Time: 24767.506ms - ----- ---- ---- ---- ---- ---- ---- -### 534/620 [`./test/random/select/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_23.test) - -_Mimic sqlite_ - -```sql -SELECT col2 - - tab2.col0 / + tab2.col1 AS col1 FROM tab2 - -Expected: ["27","27","42"] but got ["27.226","27.322","42.647"] -``` - - -```sql -SELECT ALL + - col0 * ( + cor0.col0 ) + + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-49","-6084","-6241"] -``` - - -```sql -SELECT ALL + col2 * CAST ( 27 AS REAL ) AS col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL * FROM tab2, tab1, tab0 AS cor0, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT 20 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["20"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0, tab0 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE NOT col0 + col2 IN ( + col0 - + cor0.col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,346 failed -* 86% was OK - -Time: 20604.366ms - ----- ---- ---- ---- ---- ---- ---- -### 535/620 [`./test/random/select/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_24.test) - -_Mimic sqlite_ - -```sql -SELECT col1 / - 43 + + col0 * tab2.col2 FROM tab2 - -Expected: ["189","2027","3002"] but got ["188.279","2026.628","3001.605"] -``` - - -```sql -SELECT ALL - col1 + cor0.col0 * + CAST ( NULL AS INTEGER ) * 34 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-17","-31","-59"] -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1 + - col1 * + col0 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-2064","-3395","-8099"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2, tab1 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col1 FROM tab2 WHERE NOT - col1 BETWEEN col2 AND NULL - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,321 failed -* 86% was OK - -Time: 20100.159ms - ----- ---- ---- ---- ---- ---- ---- -### 536/620 [`./test/random/select/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_25.test) - -_Mimic sqlite_ - -```sql -SELECT + - 18 - - col2 * col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-18","-18","-18"] -``` - - -```sql -SELECT + CAST ( col0 AS REAL ) - col1 AS col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - tab2.col0 AS col1 FROM tab2 WHERE NOT - col1 * col2 IN ( + col1 * col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - col2 / + col1 AS col0 FROM tab2 - -Expected: ["-2","0","0"] but got ["-0.441","-0.871","-2.235"] -``` - - -```sql -SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab0 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - + col0 * - CAST ( NULL AS INTEGER ) + - 92 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-92"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,313 failed -* 86% was OK - -Time: 19977.665ms - ----- ---- ---- ---- ---- ---- ---- -### 537/620 [`./test/random/select/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_26.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( col0 AS INTEGER ) / - col2 + ( - col1 ) - + col1 AS col0 FROM tab1 AS cor0 - -Expected: ["-21","-26","-52"] but got ["-21.123","-26.833","-52.056"] -``` - - -```sql -SELECT - cor0.col0 * + col0 + CAST ( NULL AS REAL ) * col0 * + col0 AS col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 98 FROM tab1 cor0 - -Expected: ["NULL"] but got ["-98"] -``` - - -```sql -SELECT - col2 * col1 - col1 * + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-1248","-1404","-570"] -``` - - -```sql -SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab1, tab1 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + cor1.col1 * - 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL tab0.col2 * - tab0.col0 FROM tab0 WHERE NOT - col2 - - col2 BETWEEN col0 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT + col2 / + cor0.col0 + col2 FROM tab2 AS cor0 - -Expected: ["26","30","38"] but got ["26.333","30.857","38.481"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,349 failed -* 86% was OK - -Time: 21578.205ms - ----- ---- ---- ---- ---- ---- ---- -### 538/620 [`./test/random/select/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_27.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - cor0.col1 / col0 + col0 FROM tab0 AS cor0 - -Expected: ["21","33","88"] but got ["20.417","32.229","87.978"] -``` - - -```sql -SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1, tab1, tab0 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - cor1.col0 * + 21 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + col1 * - col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-1248","-1404","-570"] -``` - - -```sql -SELECT + - CAST ( NULL AS REAL ) * - col0 + + col2 * + 31 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1, tab1 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( + tab0.col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 45 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,287 failed -* 87% was OK - -Time: 28339.338ms - ----- ---- ---- ---- ---- ---- ---- -### 539/620 [`./test/random/select/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_28.test) - -_Mimic sqlite_ - -```sql -SELECT + ( - cor0.col1 ) + 93 / - col1 FROM tab1 AS cor0 - -Expected: ["-19","-20","-29"] but got ["-19.300","-20.154","-29.577"] -``` - - -```sql -SELECT ALL * FROM tab2, tab1, tab0 AS cor0, tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT ( - tab0.col0 + - CAST ( NULL AS INTEGER ) * ( col1 ) ) FROM tab0 - -Expected: ["NULL"] but got ["-24","-35","-89"] -``` - - -```sql -SELECT - 54 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT + tab0.col2 + col1 * CAST ( NULL AS INTEGER ) / + col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["1","33","82"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab2 AS cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT col1 + CAST ( - 60 AS REAL ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1 cor0 WHERE NOT - col2 IN ( cor0.col2 / - cor0.col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,306 failed -* 86% was OK - -Time: 21299.590ms - ----- ---- ---- ---- ---- ---- ---- -### 540/620 [`./test/random/select/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_29.test) - -_Mimic sqlite_ - -```sql -SELECT col2 * - ( + col1 ) + col0 / - col1 - 86 AS col2 FROM tab0 AS cor0 - -Expected: ["-183","-2924","-7548"] but got ["-183.361","-2924.279","-7548.978"] -``` - - -```sql -SELECT ( cor0.col1 + - cor2.col0 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT CAST ( - 33 AS INTEGER ) - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-33","-33","-33"] -``` - - -```sql -SELECT ALL - - CAST ( col1 AS REAL ) * + col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 * - col0 col0 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-4096","-6400","-9"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1, tab2 cor0, tab2 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab1 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + tab2.col0 * col2 AS col1 FROM tab2 WHERE NOT ( + col0 * - col1 ) IN ( tab2.col0 + col1 * col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,405 failed -* 85% was OK - -Time: 20251.482ms - ----- ---- ---- ---- ---- ---- ---- -### 541/620 [`./test/random/select/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT 40 + ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["40","40","40"] -``` - - -```sql -SELECT ALL cor0.col0 + 94 / col2 FROM tab1 AS cor0 - -Expected: ["4","65","80"] but got ["4.741","65.649","80.979"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - ( + col2 ) * col2 + ( col1 * - col1 ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-7396","-8281","-9409"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IN ( col0 + col0 * col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,258 failed -* 87% was OK - -Time: 19602.442ms - ----- ---- ---- ---- ---- ---- ---- -### 542/620 [`./test/random/select/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_30.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - - col1 + - col2 / + col0 FROM tab0 AS cor0 - -Expected: ["85","91","97"] but got ["84.625","90.079","96.971"] -``` - - -```sql -SELECT ( col0 ) + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] -``` - - -```sql -SELECT - col0 + CAST ( ( col1 ) AS REAL ) FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL - col2 FROM tab2 WHERE NOT col0 IN ( - col2 / - col0 + + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( col0 ) + ( - col2 ) * - col2 FROM tab1 - -Expected: ["NULL"] but got ["2919","3313","9296"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,409 failed -* 85% was OK - -Time: 20837.734ms - ----- ---- ---- ---- ---- ---- ---- -### 543/620 [`./test/random/select/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_31.test) - -_Mimic sqlite_ - -```sql -SELECT + col2 + + col2 / col1 AS col0 FROM tab2 AS cor0 - -Expected: ["26","27","40"] but got ["26.441","27.871","40.235"] -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * cor0.col2 col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + col0 * - col0 + 48 AS col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["48","48","48"] -``` - - -```sql -SELECT ALL - tab1.col0 / 51 AS col2 FROM tab1, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT CAST ( NULL AS REAL ) * - ( col0 * + ( 40 ) ) AS col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1, tab1 cor0, tab1 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - col1 IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,382 failed -* 86% was OK - -Time: 27073.920ms - ----- ---- ---- ---- ---- ---- ---- -### 544/620 [`./test/random/select/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_32.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - col0 + + CAST ( 60 AS INTEGER ) / + col0 AS col0 FROM tab1 - -Expected: ["-64","-80","17"] but got ["-63.063","-79.250","17"] -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) * - col1 + cor0.col1 FROM tab2 cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab2, tab0 AS cor0, tab2 cor1, tab2 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab0 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT ( col2 ) IN ( - col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,354 failed -* 86% was OK - -Time: 23966.453ms - ----- ---- ---- ---- ---- ---- ---- -### 545/620 [`./test/random/select/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_33.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + - cor0.col2 + - CAST ( NULL AS INTEGER ) * 58 AS col2 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-1","-33","-82"] -``` - - -```sql -SELECT col1 + - 77 / col0 AS col0 FROM tab1 AS cor0 - -Expected: ["1","13","9"] but got ["0.333","12.037","8.797"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * cor1.col0 FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) / - col1 col2 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col2 * col2 + col1 * col0 AS col1 FROM tab0 WHERE NOT ( - col0 ) IN ( col0 * tab0.col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab2, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,384 failed -* 86% was OK - -Time: 21141.155ms - ----- ---- ---- ---- ---- ---- ---- -### 546/620 [`./test/random/select/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_34.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col1 + 14 / - col0 + - col1 FROM tab1 AS cor0 - -Expected: ["-4","0"] but got ["-0.175","-0.219","-4.667"] -``` - - -```sql -SELECT col0 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col0 - + cor0.col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-17","-31","-59"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1, tab2, tab2 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT ( col0 ) IN ( + col2 + col2 * col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,385 failed -* 86% was OK - -Time: 20495.557ms - ----- ---- ---- ---- ---- ---- ---- -### 547/620 [`./test/random/select/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_35.test) - -_Mimic sqlite_ - -```sql -SELECT ALL ( 17 ) / col0 FROM tab2 - -Expected: ["0","0","2"] but got ["0.215","0.218","2.429"] -``` - - -```sql -SELECT + col1 + - ( - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] -``` - - -```sql -SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab1 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + col2 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["26","27","38"] -``` - - -```sql -SELECT ALL - - col0 + - col2 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - col2 * - col2 IN ( col1 + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1, tab2 cor0, tab0 AS cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,344 failed -* 86% was OK - -Time: 20660.236ms - ----- ---- ---- ---- ---- ---- ---- -### 548/620 [`./test/random/select/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_36.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 cor1, tab0, t ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL - col2 / col0 AS col1 FROM tab0 - -Expected: ["-1","0","0"] but got ["-0.029","-0.921","-1.375"] -``` - - -```sql -SELECT DISTINCT col1 * CAST ( + 86 AS REAL ) + + col2 - + col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) * - col1 + col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 + + col2 ) BETWEEN - cor0.col2 AND ( NULL ) OR NOT + col0 IN ( col1 + col2 - col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,438 failed -* 85% was OK - -Time: 25221.575ms - ----- ---- ---- ---- ---- ---- ---- -### 549/620 [`./test/random/select/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_37.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT ( col2 ) + + cor0.col2 / + cor0.col0 FROM tab0 AS cor0 - -Expected: ["1","34","82"] but got ["1.029","34.375","82.921"] -``` - - -```sql -SELECT DISTINCT + col2 + + ( - col0 ) / + CAST ( NULL AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 cor0, tab1, tab1 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 cor0 - -Expected: ["NULL"] but got ["17","31","59"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * col2 + col1 * col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["2064","3395","8099"] -``` - - -```sql -SELECT + cor0.col1 * tab0.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT * FROM tab0, tab0 cor0, tab2 cor1, tab2 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT - col1 IN ( col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + ( col2 ) + CAST ( NULL AS INTEGER ) - + 63 * col0 * - col1 AS col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["40377","4968","65616"] -``` - - -```sql -SELECT DISTINCT - + col0 / + cor0.col1 + col0 FROM tab0 AS cor0 - -Expected: ["24","35","89"] but got ["23.721","34.639","88.022"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,300 failed -* 87% was OK - -Time: 26442.624ms - ----- ---- ---- ---- ---- ---- ---- -### 550/620 [`./test/random/select/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_38.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( + col1 AS REAL ) * + col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT col0 / - col2 + col2 AS col2 FROM tab0 - -Expected: ["-34","33","81"] but got ["-34","32.273","80.915"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + + 52 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["52","52","52"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab2 cor0 - -Expected: ["NULL"] but got ["-17","-31","-59"] -``` - - -```sql -SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 + col1 + - col1 ) IN ( col2 ) OR - col1 * col0 <= NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,339 failed -* 86% was OK - -Time: 21278.089ms - ----- ---- ---- ---- ---- ---- ---- -### 551/620 [`./test/random/select/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_39.test) - -_Mimic sqlite_ - -```sql -SELECT + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - col0 + CAST ( col0 AS INTEGER ) / col2 FROM tab0 AS cor0 - -Expected: ["-24","-88","0"] but got ["-23.273","-87.915","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - 24 * + cor0.col1 * 41 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab2 cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT - + CAST ( + ( cor0.col1 ) AS REAL ) / - col1 - cor0.col2 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - tab0.col1 FROM tab0, tab2, tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab2 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT * FROM tab1 WHERE NOT - col0 * + col1 IN ( col0 / col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,334 failed -* 86% was OK - -Time: 20762.883ms - ----- ---- ---- ---- ---- ---- ---- -### 552/620 [`./test/random/select/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + 60 / ( tab0.col0 + 64 ) FROM tab0 - -Expected: ["0","0","0"] but got ["0.392","0.606","0.682"] -``` - - -```sql -SELECT ALL * FROM tab1, tab1 cor0, tab2 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + col2 * + CAST ( col0 AS REAL ) + + col1 AS col0 FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN + col1 / - col2 AND col2 - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,317 failed -* 86% was OK - -Time: 19715.389ms - ----- ---- ---- ---- ---- ---- ---- -### 553/620 [`./test/random/select/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_40.test) - -_Mimic sqlite_ - -```sql -SELECT - col2 / 47 + col0 * - col2 * + col2 FROM tab0 AS cor0 - -Expected: ["-26136","-35","-598437"] but got ["-26136.702","-35.021","-598437.745"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) / col0 AS col1 FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-34","-7","9"] -``` - - -```sql -SELECT ALL - cor1.col1 / - ( + cor1.col2 ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2, tab2 AS cor0, tab1 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT + col0 AS col2 FROM tab2 WHERE NOT ( col1 ) BETWEEN NULL AND - col0 + - col0 - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,324 failed -* 86% was OK - -Time: 22419.479ms - ----- ---- ---- ---- ---- ---- ---- -### 554/620 [`./test/random/select/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_41.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( NULL AS REAL ) * + 15 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + 83 / - col1 FROM tab1 - -Expected: ["-3","-6","-8"] but got ["-3.192","-6.385","-8.300"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) + cor0.col1 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["17","31","59"] -``` - - -```sql -SELECT * FROM tab0, tab0 cor0, tab2, tab2 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + - col2 + + col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-28","-47","-83"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col2 * + col0 IN ( col1 + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT cor0.col1 / + col0 FROM tab0 AS cor0 - -Expected: ["1","2","3"] but got ["1.022","2.771","3.583"] -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,362 failed -* 86% was OK - -Time: 29212.685ms - ----- ---- ---- ---- ---- ---- ---- -### 555/620 [`./test/random/select/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_42.test) - -_Mimic sqlite_ - -```sql -SELECT + col2 / 50 AS col0 FROM tab2 AS cor0 - -Expected: ["0","0","0"] but got ["0.520","0.540","0.760"] -``` - - -```sql -SELECT DISTINCT - col2 + - CAST ( - col2 + col1 * + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) * 86 + col1 * + 90 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["7740","8190","8730"] -``` - - -```sql -SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0, tab1 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - cor0.col1 + - col0 * 85 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-2040","-2975","-7565"] -``` - - -```sql -SELECT * FROM tab2 WHERE NOT - col2 IN ( col0 * + col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,431 failed -* 85% was OK - -Time: 21183.268ms - ----- ---- ---- ---- ---- ---- ---- -### 556/620 [`./test/random/select/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_43.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col2 * 24 / col0 + col1 * - 3 AS col2 FROM tab0 - -Expected: ["-225","-251","-291"] but got ["-225","-250.888","-290.314"] -``` - - -```sql -SELECT - + 21 + - col2 * - col2 * - col1 + cor0.col2 * - CAST ( NULL AS INTEGER ) * col2 col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-118","-611905","-93675"] -``` - - -```sql -SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0 - -Expected: ["NULL"] but got ["26","27","38"] -``` - - -```sql -SELECT + - col1 - - CAST ( + ( col0 ) AS REAL ) AS col2 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab0 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + tab0.col0 * + col1 + col0 * + tab0.col0 * - col1 FROM tab0 WHERE NOT col2 + tab0.col0 IN ( col1 / col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 AS cor1, tab1, tab2 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,317 failed -* 86% was OK - -Time: 22207.191ms - ----- ---- ---- ---- ---- ---- ---- -### 557/620 [`./test/random/select/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_44.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + + col2 / + col0 AS col2 FROM tab0 AS cor0 - -Expected: ["0","0","1"] but got ["0.029","0.921","1.375"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * col1 + - col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-54","-57","-96"] -``` - - -```sql -SELECT DISTINCT + CAST ( + 18 AS REAL ) - col1 * - 3 AS col1 FROM tab2 cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab1, tab0 cor0, tab0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1, tab2, tab0 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - col0 IN ( col1 * + col1 * + col0 + - col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,341 failed -* 86% was OK - -Time: 20459.826ms - ----- ---- ---- ---- ---- ---- ---- -### 558/620 [`./test/random/select/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_45.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT * FROM tab2, tab1, tab0 AS cor0, tab1 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT - cor0.col2 / cor0.col1 AS col2 FROM tab1 AS cor0 - -Expected: ["-2","-5","-7"] but got ["-2.077","-5.700","-7.385"] -``` - - -```sql -SELECT DISTINCT + cor0.col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + + col2 * col2 * - CAST ( NULL AS INTEGER ) + col2 + col0 * - col1 col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-24","-583","-944"] -``` - - -```sql -SELECT ALL * FROM tab1, tab0 cor0, tab0 AS cor1, tab0 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + cor0.col0 * col1 col2 FROM tab0 cor0 - -Expected: ["NULL"] but got ["2064","3395","8099"] -``` - - -```sql -SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab2 WHERE NOT ( + col1 + + col0 * col0 ) IN ( + col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,346 failed -* 86% was OK - -Time: 24146.494ms - ----- ---- ---- ---- ---- ---- ---- -### 559/620 [`./test/random/select/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_46.test) - -_Mimic sqlite_ - -```sql -SELECT + cor0.col1 * + col0 + - col1 / + col0 + 99 FROM tab0 AS cor0 - -Expected: ["2160","3492","8197"] but got ["2159.417","3491.229","8196.978"] -``` - - -```sql -SELECT ALL + col1 / CAST ( NULL AS REAL ) FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT + col2 + - col1 * + CAST ( NULL AS INTEGER ) / 71 AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] -``` - - -```sql -SELECT - 52 / cor0.col1 FROM tab1, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["3","64","80"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col0 IN ( col1 * col1 * tab1.col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab1 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,389 failed -* 86% was OK - -Time: 42177.684ms - ----- ---- ---- ---- ---- ---- ---- -### 560/620 [`./test/random/select/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_47.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col2 / - 16 FROM tab0 AS cor0 - -Expected: ["-2","-5","0"] but got ["-0.063","-2.063","-5.125"] -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IN ( cor0.col2 ) OR - col2 IN ( - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0 cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 cor1, tab1 AS cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT 37 / 34 AS col1 FROM tab0, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) + 69 FROM tab0 - -Expected: ["NULL"] but got ["69"] -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,374 failed -* 86% was OK - -Time: 33064.355ms - ----- ---- ---- ---- ---- ---- ---- -### 561/620 [`./test/random/select/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_48.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 81 / - col1 FROM tab0 - -Expected: ["0"] but got ["-0.835","-0.890","-0.942"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN col1 * col0 * + col1 + + col1 * + col0 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab2 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + cor0.col1 + + CAST ( NULL AS INTEGER ) * - ( - col0 ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] -``` - - -```sql -SELECT DISTINCT - CAST ( 64 AS REAL ) FROM tab2 cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0, tab2 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0, tab2 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI… -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab2, tab2 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,375 failed -* 86% was OK - -Time: 29979.740ms - ----- ---- ---- ---- ---- ---- ---- -### 562/620 [`./test/random/select/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_49.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 81 / col0 AS col0 FROM tab1 - -Expected: ["-1","-1","-27"] but got ["-1.012","-1.266","-27"] -``` - - -```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) + - ( cor0.col1 ) * - ( cor0.col0 ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["1040","640","78"] -``` - - -```sql -SELECT - tab2.col0 * + CAST ( col1 AS REAL ) * tab2.col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) - cor0.col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-54","-57","-96"] -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL 9 / cor0.col1 FROM tab2, tab1 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 AS cor1, tab0 AS cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT ( - col2 ) IN ( col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,342 failed -* 86% was OK - -Time: 38702.468ms - ----- ---- ---- ---- ---- ---- ---- -### 563/620 [`./test/random/select/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT ALL * FROM tab0, tab0 cor0, tab2 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + col1 / - 99 AS col1 FROM tab0 - -Expected: ["0"] but got ["-0.869","-0.919","-0.980"] -``` - - -```sql -SELECT CAST ( 24 + - col2 AS REAL ) AS col0 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 cor1 - -18 results returned but expected 54 -``` - - -```sql -SELECT + col1 - - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 * col1 / 84 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["18.262","7.690","9.964"] -``` - - -```sql -SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL - col0 * + col1 AS col2 FROM tab2 WHERE NOT - col1 * tab2.col1 IN ( col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,323 failed -* 86% was OK - -Time: 28190.507ms - ----- ---- ---- ---- ---- ---- ---- -### 564/620 [`./test/random/select/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_50.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 57 / + col0 AS col0 FROM tab2 AS cor0 - -Expected: ["0","0","8"] but got ["0.722","0.731","8.143"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) - 0 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT + cor0.col1 + col0 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + col0 * col2 + CAST ( NULL AS INTEGER ) * col0 - - col2 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["2054","216","3040"] -``` - - -```sql -SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab1 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL tab2.col0 * tab2.col2 AS col0 FROM tab2 WHERE NOT col0 BETWEEN col0 * col1 + col0 AND col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,405 failed -* 85% was OK - -Time: 21634.933ms - ----- ---- ---- ---- ---- ---- ---- -### 565/620 [`./test/random/select/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_51.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - col0 + + cor0.col0 / + ( col1 ) AS col1 FROM tab0 cor0 - -Expected: ["-24","-35","-89"] but got ["-23.721","-34.639","-88.022"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + + col1 + CAST ( 97 AS REAL ) * - cor0.col0 - + col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2, tab1 AS cor0, tab0 cor1, tab0, tab0 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["-3","-64","-80"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 cor1, tab0, t ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab0 AS cor1 - -27 results returned but expected 243 -``` - - -```sql -SELECT DISTINCT - col1 * + col1 * + col2 + + col2 * col1 * + col2 FROM tab0 WHERE NOT + col0 IN ( col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,362 failed -* 86% was OK - -Time: 21202.038ms - ----- ---- ---- ---- ---- ---- ---- -### 566/620 [`./test/random/select/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_52.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - CAST ( + col2 AS REAL ) AS col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - + cor0.col0 / 95 AS col1 FROM tab1 AS cor0 - -Expected: ["0","0","0"] but got ["-0.032","-0.674","-0.842"] -``` - - -```sql -SELECT ALL - - 23 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["23","23","23"] -``` - - -```sql -SELECT 14 col2 FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / - 81 AS col2 FROM tab1, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - tab2.col1 - CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL"] but got ["-17","-31","-59"] -``` - - -```sql -SELECT DISTINCT col2 FROM tab0 WHERE NOT ( - col0 ) IN ( col2 / col1 + col2 / col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,428 failed -* 85% was OK - -Time: 20832.399ms - ----- ---- ---- ---- ---- ---- ---- -### 567/620 [`./test/random/select/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_53.test) - -_Mimic sqlite_ - -```sql -SELECT col2 + col0 + - col0 / col2 FROM tab1 - -Expected: ["120","176","57"] but got ["119.877","175.167","56.944"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1, tab0 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT + - cor0.col0 * col1 * - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["13520","2028","6400"] -``` - - -```sql -SELECT - - ( + col1 ) * cor0.col0 - CAST ( NULL AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + col1 / - col1 + CAST ( NULL AS INTEGER ) + - ( col0 ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-4","-65","-81"] -``` - - -```sql -SELECT ALL cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT 81 / + 97 col2 FROM tab0, tab2 AS cor0, tab2 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT col2 IN ( + tab1.col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,370 failed -* 86% was OK - -Time: 30171.424ms - ----- ---- ---- ---- ---- ---- ---- -### 568/620 [`./test/random/select/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_54.test) - -_Mimic sqlite_ - -```sql -SELECT ALL cor0.col2 * col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT col0 + col0 / + 58 FROM tab1 - -Expected: ["3","65","81"] but got ["3.052","65.103","81.379"] -``` - - -```sql -SELECT - 75 / 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL CAST ( + 43 AS INTEGER ) / + col1 + + CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0.443","0.473","0.500"] -``` - - -```sql -SELECT DISTINCT - + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0 - -Expected: ["NULL"] but got ["-17","-31","-59"] -``` - - -```sql -SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL col2 FROM tab1 WHERE NOT col1 IN ( + col0 * + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0, tab0 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,459 failed -* 85% was OK - -Time: 22173.148ms - ----- ---- ---- ---- ---- ---- ---- -### 569/620 [`./test/random/select/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_55.test) - -_Mimic sqlite_ - -```sql -SELECT - col1 + col1 + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - cor0.col0 / 6 AS col2 FROM tab1, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - col0 * - col0 - col0 / - col1 AS col0 FROM tab0 AS cor0 - -Expected: ["1225","576","7921"] but got ["1225.361","576.279","7921.978"] -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col1 * - col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-289","-3481","-961"] -``` - - -```sql -SELECT ALL cor2.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT * FROM tab0 WHERE NOT - col0 IN ( + col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,009 tests as _sqlite_ - -* 1,391 failed -* 86% was OK - -Time: 21628.232ms - ----- ---- ---- ---- ---- ---- ---- -### 570/620 [`./test/random/select/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_56.test) - -_Mimic sqlite_ - -```sql -SELECT - col0 / col2 AS col0 FROM tab1 - -Expected: ["-1","0","0"] but got ["-0.056","-0.833","-1.123"] -``` - - -```sql -SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * + cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["1343","217","4602"] -``` - - -```sql -SELECT ALL + tab0.col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT CAST ( - cor1.col0 AS REAL ) FROM tab2, tab2 AS cor0, tab1 cor1 - -Wrong conversion type -``` - - -```sql -SELECT ALL - tab2.col0 * CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col1 IN ( + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab2, tab0 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,322 failed -* 86% was OK - -Time: 21101.240ms - ----- ---- ---- ---- ---- ---- ---- -### 571/620 [`./test/random/select/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_57.test) - -_Mimic sqlite_ - -```sql -SELECT + col1 / col0 FROM tab0 cor0 - -Expected: ["1","2","3"] but got ["1.022","2.771","3.583"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 63 + col0 * col1 + col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["2150","3492","8190"] -``` - - -```sql -SELECT col0 - + CAST ( col2 AS REAL ) FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT + + col2 + 98 * + cor0.col1 + CAST ( NULL AS INTEGER ) * cor0.col2 * + col2 AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["8461","9000","9507"] -``` - - -```sql -SELECT ALL * FROM tab0, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab2, tab0, tab0 AS cor0, tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col0 * - col2 IN ( col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1, tab2 cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,442 failed -* 85% was OK - -Time: 21021.587ms - ----- ---- ---- ---- ---- ---- ---- -### 572/620 [`./test/random/select/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_58.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( NULL AS INTEGER ) - col2 * col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-1","-1089","-6724"] -``` - - -```sql -SELECT DISTINCT ( col2 ) / + col0 + ( - ( + col1 ) ) AS col0 FROM tab2 AS cor0 - -Expected: ["-17","-28","-59"] but got ["-16.519","-27.143","-58.667"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) * col1 - - col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL 21 / + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * cor0.col2 col0 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - col0 + col1 BETWEEN col1 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,411 failed -* 85% was OK - -Time: 28234.270ms - ----- ---- ---- ---- ---- ---- ---- -### 573/620 [`./test/random/select/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_59.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col2 / + tab0.col1 - + col1 / col0 AS col2 FROM tab0 - -Expected: ["-1","-2","-3"] but got ["-0.121","-2.761","-3.200"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 cor1, tab2, tab2 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT - ( - col0 ) * col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["4096","6400","9"] -``` - - -```sql -SELECT col1 + CAST ( NULL AS REAL ) AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) - + cor0.col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-3","-64","-80"] -``` - - -```sql -SELECT ALL 9 AS col2 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab1 WHERE NOT ( - col2 ) IN ( + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + + col0 / + col1 FROM tab1 AS cor0 - -Expected: ["0","6"] but got ["0.115","6.154","6.400"] -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,418 failed -* 85% was OK - -Time: 24252.117ms - ----- ---- ---- ---- ---- ---- ---- -### 574/620 [`./test/random/select/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT + col0 / - col1 + - ( - col2 ) col0 FROM tab2 AS cor0 - -Expected: ["25","27","34"] but got ["24.678","26.774","33.353"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT col2 + + col2 / + CAST ( NULL AS REAL ) FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT ALL 43 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + 35 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["35"] -``` - - -```sql -SELECT ALL tab2.col1 * tab2.col0 FROM tab2 WHERE NOT ( + col0 ) IN ( col1 + + col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,345 failed -* 86% was OK - -Time: 20478.133ms - ----- ---- ---- ---- ---- ---- ---- -### 575/620 [`./test/random/select/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_60.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col0 / col2 AS col0 FROM tab1 AS cor0 - -Expected: ["0","1"] but got ["0.056","0.833","1.123"] -``` - - -```sql -SELECT col1 + + col0 * - col2 + col0 * ( - col2 + CAST ( NULL AS INTEGER ) ) / col0 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["-190","-3695","-7763"] -``` - - -```sql -SELECT + cor0.col2 / cor0.col1 FROM tab0, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT ( ( - col2 ) ) * CAST ( NULL AS INTEGER ) + 29 * + tab0.col2 * col1 FROM tab0 - -Expected: ["NULL"] but got ["216398","2813","82302"] -``` - - -```sql -SELECT ALL cor0.col2 + + col0 - CAST ( NULL AS REAL ) / 33 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL col2 FROM tab2 WHERE NOT - col2 IN ( col1 + tab2.col1 * col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - cor0.col2 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab2 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,421 failed -* 85% was OK - -Time: 23081.708ms - ----- ---- ---- ---- ---- ---- ---- -### 576/620 [`./test/random/select/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_61.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + 69 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + col1 + CAST ( - 56 AS INTEGER ) / + col1 AS col0 FROM tab1 AS cor0 - -Expected: ["24","5","9"] but got ["23.846","4.400","8.692"] -``` - - -```sql -SELECT CAST ( NULL AS REAL ) * + col0 + col2 / - 74 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab2 AS cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + col0 AS col0 FROM tab2 WHERE NOT col0 IN ( col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2, tab0 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,417 failed -* 85% was OK - -Time: 27074.143ms - ----- ---- ---- ---- ---- ---- ---- -### 577/620 [`./test/random/select/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_62.test) - -_Mimic sqlite_ - -```sql -SELECT - col1 / - col0 AS col2 FROM tab0 - -Expected: ["1","2","3"] but got ["1.022","2.771","3.583"] -``` - - -```sql -SELECT ALL + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] -``` - - -```sql -SELECT DISTINCT + CAST ( + col2 AS REAL ) * tab0.col0 AS col0 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT + cor0.col2 / + 85 AS col0 FROM tab2, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["24","35","89"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT + col1 + col2 * col0 IN ( - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,353 failed -* 86% was OK - -Time: 30713.200ms - ----- ---- ---- ---- ---- ---- ---- -### 578/620 [`./test/random/select/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_63.test) - -_Mimic sqlite_ - -```sql -SELECT - col0 + col2 + + col2 / - 2 FROM tab1 cor0 - -Expected: ["-32","-35","24"] but got ["-32","-35.500","24"] -``` - - -```sql -SELECT CAST ( NULL AS REAL ) FROM tab2, tab1, tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - cor1.col0 col2 FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 63 AS col1 FROM tab2, tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab2 WHERE NOT + col2 + col2 + col1 IN ( - tab2.col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,421 failed -* 85% was OK - -Time: 22364.626ms - ----- ---- ---- ---- ---- ---- ---- -### 579/620 [`./test/random/select/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_64.test) - -_Mimic sqlite_ - -```sql -SELECT - + 36 * col0 - + CAST ( NULL AS REAL ) * 65 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT cor0.col1 / + 34 + 84 / + cor0.col0 FROM tab0 AS cor0 - -Expected: ["2","4","5"] but got ["3.620","5.253","6.029"] -``` - - -```sql -SELECT ALL - cor1.col1 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 + col0 + - col2 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-20","41","52"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - col1 * - tab2.col2 AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + col2 IN ( col2 * + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,367 failed -* 86% was OK - -Time: 21320.998ms - ----- ---- ---- ---- ---- ---- ---- -### 580/620 [`./test/random/select/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_65.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col0 / 82 AS col0 FROM tab0 - -Expected: ["0","0","1"] but got ["0.293","0.427","1.085"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + 88 col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["88","88","88"] -``` - - -```sql -SELECT tab1.col2 - CAST ( ( col1 ) AS REAL ) AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + 35 + - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["NULL"] but got ["-54","0","11"] -``` - - -```sql -SELECT ALL * FROM tab1, tab1 cor0, tab1 AS cor1, tab0, tab0 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL col0 FROM tab2 WHERE NOT - col1 BETWEEN ( col2 / col1 ) AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab1 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,400 failed -* 86% was OK - -Time: 20930.483ms - ----- ---- ---- ---- ---- ---- ---- -### 581/620 [`./test/random/select/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_66.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - cor0.col2 / cor0.col0 + col0 * - 21 FROM tab1 AS cor0 - -Expected: ["-1344","-1681","-81"] but got ["-1344.891","-1681.200","-81"] -``` - - -```sql -SELECT + col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["17","31","59"] -``` - - -```sql -SELECT ALL + 6 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["1","33","82"] -``` - - -```sql -SELECT DISTINCT col1 * + CAST ( cor0.col1 AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col1 col0 FROM tab1 WHERE NOT col0 BETWEEN col1 AND col2 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 cor1, tab0, tab2 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT + 29 / - col0 + - col1 AS col1 FROM tab0 - -Expected: ["-87","-91","-97"] but got ["-87.208","-91.326","-97.829"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,377 failed -* 86% was OK - -Time: 20773.952ms - ----- ---- ---- ---- ---- ---- ---- -### 582/620 [`./test/random/select/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_67.test) - -_Mimic sqlite_ - -```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL - - col1 * - ( + col1 ) + col0 / + 98 AS col2 FROM tab2 AS cor0 - -Expected: ["-289","-3481","-961"] but got ["-288.194","-3480.204","-960.929"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + 48 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["48","48","48"] -``` - - -```sql -SELECT DISTINCT + col0 + - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["7","78","79"] -``` - - -```sql -SELECT DISTINCT - CAST ( - col1 AS REAL ) * col1 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1, tab2 AS cor0, tab1 cor1, tab0, tab0 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT + col0 + - col1 * + col0 + col2 IN ( - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab2 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,354 failed -* 86% was OK - -Time: 27970.103ms - ----- ---- ---- ---- ---- ---- ---- -### 583/620 [`./test/random/select/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_68.test) - -_Mimic sqlite_ - -```sql -SELECT - CAST ( NULL AS INTEGER ) + col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] -``` - - -```sql -SELECT ALL - ( + 2 ) * - col0 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2, tab0 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + col2 / + col0 + + col2 * + col1 FROM tab0 - -Expected: ["2839","7462","97"] but got ["2839.375","7462.921","97.029"] -``` - - -```sql -SELECT DISTINCT + col0 * + col2 * CAST ( NULL AS INTEGER ) + - col2 * col1 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-2838","-7462","-97"] -``` - - -```sql -SELECT + col1 AS col0 FROM tab1 WHERE NOT col0 * col0 * - col2 IN ( + tab1.col2 + - col2 * col0 + - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + col0 + - col1 BETWEEN - col2 AND - col2 + col1 - -6 results returned but expected 9 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,386 failed -* 86% was OK - -Time: 24112.579ms - ----- ---- ---- ---- ---- ---- ---- -### 584/620 [`./test/random/select/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_69.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( NULL AS INTEGER ) * col2 * cor0.col2 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - col2 / 70 + col1 AS col2 FROM tab1 AS cor0 - -Expected: ["10","12","26"] but got ["11.629","25.229","9.186"] -``` - - -```sql -SELECT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - tab0.col2 - CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 FROM tab2 cor0 - -Expected: ["NULL"] but got ["-17","-31","-59"] -``` - - -```sql -SELECT DISTINCT - col1 + tab2.col1 FROM tab2 WHERE NOT col0 IN ( col1 + + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,403 failed -* 85% was OK - -Time: 21413.288ms - ----- ---- ---- ---- ---- ---- ---- -### 585/620 [`./test/random/select/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col2 * cor0.col0 * col0 IN ( cor0.col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - col0 / col2 FROM tab0 AS cor0 - -Expected: ["-1","-35","0"] but got ["-0.727","-1.085","-35"] -``` - - -```sql -SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["1","33","82"] -``` - - -```sql -SELECT - + cor0.col1 / CAST ( - col1 AS REAL ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) / col0 FROM tab0 cor0 - -Expected: ["NULL"] but got ["24","35","89"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,283 failed -* 87% was OK - -Time: 20058.289ms - ----- ---- ---- ---- ---- ---- ---- -### 586/620 [`./test/random/select/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_70.test) - -_Mimic sqlite_ - -```sql -SELECT + col2 / + col0 + - CAST ( + ( + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["-36","-57","-95"] but got ["-36","-56.109","-94.800"] -``` - - -```sql -SELECT DISTINCT 40 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-17","-31","-59"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) * ( + col0 ) + 28 FROM tab2 cor0 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * cor0.col1 / + col2 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1, tab0 cor0, tab2 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT ALL - tab1.col2 * - col1 * + col0 AS col1 FROM tab1 WHERE NOT ( - col1 - + col0 ) BETWEEN + col0 + + col1 AND NULL - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,449 failed -* 85% was OK - -Time: 21064.831ms - ----- ---- ---- ---- ---- ---- ---- -### 587/620 [`./test/random/select/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_71.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( - 72 AS INTEGER ) / - col2 FROM tab0 cor0 - -Expected: ["-2","-72","0"] but got ["-0.878","-2.182","-72"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 67 AS col1 FROM tab2, tab2 AS cor0 - -Expected: ["NULL"] but got ["67"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - cor0.col0 + cor0.col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-19","-62","24"] -``` - - -```sql -SELECT - + CAST ( NULL AS REAL ) * + col2 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab1 WHERE NOT - col0 IN ( + col2 + tab1.col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,400 failed -* 86% was OK - -Time: 26349.765ms - ----- ---- ---- ---- ---- ---- ---- -### 588/620 [`./test/random/select/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_72.test) - -_Mimic sqlite_ - -```sql -SELECT - col2 + 4 / - col0 AS col1 FROM tab0 AS cor0 - -Expected: ["-1","-33","-82"] but got ["-1.114","-33.167","-82.045"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT tab0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + cor0.col1 + CAST ( - col2 AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col2 * col0 + + col1 + + col1 * col2 IN ( tab1.col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,437 failed -* 85% was OK - -Time: 25445.324ms - ----- ---- ---- ---- ---- ---- ---- -### 589/620 [`./test/random/select/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_73.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col0 + 64 / col1 AS col2 FROM tab1 AS cor0 - -Expected: ["5","70","84"] but got ["5.462","70.400","84.923"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) / col1 + col1 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] -``` - - -```sql -SELECT ALL + 6 / + cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) * col2 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT + col2 + + CAST ( NULL AS REAL ) * - 28 - - cor0.col0 * - CAST ( - 50 + col1 AS INTEGER ) * 0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT + col1 / + col0 IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab2 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,433 failed -* 85% was OK - -Time: 21876.474ms - ----- ---- ---- ---- ---- ---- ---- -### 590/620 [`./test/random/select/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_74.test) - -_Mimic sqlite_ - -```sql -SELECT col1 / col2 + col2 AS col2 FROM tab0 - -Expected: ["35","83","98"] but got ["35.606","83.110","98"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL + CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * col0 + - col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-7","-78","-79"] -``` - - -```sql -SELECT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab0 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - + ( - col0 ) * - col2 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-189","-2028","-3002"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col2 IN ( col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1, tab0, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,400 failed -* 86% was OK - -Time: 20752.755ms - ----- ---- ---- ---- ---- ---- ---- -### 591/620 [`./test/random/select/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_75.test) - -_Mimic sqlite_ - -```sql -SELECT + col0 + tab0.col2 / - tab0.col1 FROM tab0 - -Expected: ["24","35","89"] but got ["23.616","34.990","88.099"] -``` - - -```sql -SELECT col1 * - col2 * - col0 col0 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IN ( - cor0.col1 * col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * col2 col1 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * tab0.col2 FROM tab0, tab2 cor0, tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT tab2.col1 - - tab2.col2 * CAST ( NULL AS REAL ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - 17 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab0 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,336 failed -* 86% was OK - -Time: 21664.426ms - ----- ---- ---- ---- ---- ---- ---- -### 592/620 [`./test/random/select/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_76.test) - -_Mimic sqlite_ - -```sql -SELECT + col0 * - tab1.col0 + + col2 / col1 FROM tab1 - -Expected: ["-4091","-6393","-7"] but got ["-4090.300","-6.923","-6392.615"] -``` - - -```sql -SELECT - tab0.col0 + - CAST ( NULL AS REAL ) * - 77 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT 57 col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 + cor0.col0 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["3","64","80"] -``` - - -```sql -SELECT - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT col0 / - col2 + + tab0.col0 IN ( - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + 80 / - cor0.col2 FROM tab2, tab1 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 cor0, tab1, tab0 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,440 failed -* 85% was OK - -Time: 29072.108ms - ----- ---- ---- ---- ---- ---- ---- -### 593/620 [`./test/random/select/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_77.test) - -_Mimic sqlite_ - -```sql -SELECT + col2 * col2 / - 36 + + col0 AS col1 FROM tab2 AS cor0 - -Expected: ["-13","39","60"] but got ["-13.250","38.889","59.222"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT CAST ( NULL AS REAL ) * col1 + + col2 * - 5 AS col2 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + cor0.col0 / + cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT col2 * - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL"] but got ["-2916","-3249","-9216"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 cor1, tab0, t ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT ALL col2 + col0 AS col2 FROM tab1 WHERE NOT - col0 + - col1 IN ( - tab1.col1 / col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,415 failed -* 85% was OK - -Time: 30178.911ms - ----- ---- ---- ---- ---- ---- ---- -### 594/620 [`./test/random/select/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_78.test) - -_Mimic sqlite_ - -```sql -SELECT col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] -``` - - -```sql -SELECT ( - col0 ) / - col1 + 33 FROM tab0 - -Expected: ["33","33","33"] but got ["33.279","33.361","33.978"] -``` - - -```sql -SELECT + + col0 * CAST ( + col2 AS REAL ) AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1, tab0 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT ALL - 92 / 11 FROM tab1, tab0 cor0, tab2, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL col1 - col1 * col0 AS col0 FROM tab2 WHERE NOT ( col0 * col0 * col1 ) IN ( - tab2.col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,395 failed -* 86% was OK - -Time: 23851.092ms - ----- ---- ---- ---- ---- ---- ---- -### 595/620 [`./test/random/select/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_79.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 * col2 / col1 AS col0 FROM tab1 - -Expected: ["364","590","6"] but got ["364.800","590.769","6.231"] -``` - - -```sql -SELECT * FROM tab2 WHERE NOT col0 * + col1 IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT col0 * + col1 + CAST ( NULL AS REAL ) * - col2 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] -``` - - -```sql -SELECT ALL - 87 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab0, tab0 cor0, tab1, tab2 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 64 + col0 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["7","78","79"] -``` - - -```sql -SELECT DISTINCT + col1 / tab1.col2 AS col1 FROM tab1 - -Expected: ["0"] but got ["0.135","0.175","0.481"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 AS cor1, tab0, tab0 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,395 failed -* 86% was OK - -Time: 23913.871ms - ----- ---- ---- ---- ---- ---- ---- -### 596/620 [`./test/random/select/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT col0 / col2 AS col1 FROM tab0 - -Expected: ["0","1","35"] but got ["0.727","1.085","35"] -``` - - -```sql -SELECT ALL * FROM tab0, tab1 AS cor0, tab0 cor1, tab2 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - 77 + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["-77","-77","-77"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT - 46 col1 FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1, tab2 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 cor1, tab2 co ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col0 FROM tab0 - -Expected: ["NULL"] but got ["-24","-35","-89"] -``` - - -```sql -SELECT ALL + CAST ( - col0 AS REAL ) * col2 * ( col0 ) col0 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT - col2 + col0 + - col1 * + col2 FROM tab2 WHERE NOT col2 + - col1 + + col0 BETWEEN col2 + + col2 AND ( - col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,322 failed -* 86% was OK - -Time: 23879.636ms - ----- ---- ---- ---- ---- ---- ---- -### 597/620 [`./test/random/select/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_80.test) - -_Mimic sqlite_ - -```sql -SELECT cor0.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["24","35","89"] -``` - - -```sql -SELECT - col2 + col0 / - col2 AS col2 FROM tab0 AS cor0 - -Expected: ["-33","-36","-83"] but got ["-33.727","-36","-83.085"] -``` - - -```sql -SELECT + col1 * CAST ( cor0.col2 AS REAL ) AS col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL - ( 11 ) / - tab0.col0 AS col1 FROM tab0, tab0 cor0, tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 cor1, tab2 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + + 49 + - col2 / col0 + col0 / - cor0.col0 FROM tab1 AS cor0 - -Expected: ["30","47","48"] but got ["30","46.800","47.109"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,423 failed -* 85% was OK - -Time: 35479.025ms - ----- ---- ---- ---- ---- ---- ---- -### 598/620 [`./test/random/select/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_81.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["24","35","89"] -``` - - -```sql -SELECT DISTINCT - tab1.col1 + 57 / + col1 + tab1.col0 col0 FROM tab1 - -Expected: ["-21","59","71"] but got ["-20.808","59.700","71.385"] -``` - - -```sql -SELECT - CAST ( col0 AS REAL ) AS col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 cor1, tab2 co ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab2 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 cor1, tab1, tab1 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * cor0.col0 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["162","3648","7680"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col0 BETWEEN + col1 + col1 AND col0 - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,406 failed -* 85% was OK - -Time: 27059.045ms - ----- ---- ---- ---- ---- ---- ---- -### 599/620 [`./test/random/select/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_82.test) - -_Mimic sqlite_ - -```sql -SELECT + col0 + - CAST ( NULL AS INTEGER ) / cor0.col2 AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] -``` - - -```sql -SELECT DISTINCT - col1 * + col0 * CAST ( col1 AS INTEGER ) - col1 / col0 FROM tab1 AS cor0 - -Expected: ["-13520","-2036","-6400"] but got ["-13520.163","-2036.667","-6400.156"] -``` - - -```sql -SELECT ALL CAST ( col0 AS REAL ) * - col2 AS col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) / tab2.col0 FROM tab2, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 + + col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["1","33","82"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 cor1, tab0, tab0 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT col0 * - tab2.col1 IN ( col2 - - col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,379 failed -* 86% was OK - -Time: 24549.909ms - ----- ---- ---- ---- ---- ---- ---- -### 600/620 [`./test/random/select/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_83.test) - -_Mimic sqlite_ - -```sql -SELECT cor0.col0 * CAST ( NULL AS INTEGER ) * cor0.col1 + col1 - + ( col2 ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["53","9","96"] -``` - - -```sql -SELECT - col0 * ( + 95 ) / col1 + - ( - col2 ) - col1 FROM tab2 AS cor0 - -Expected: ["-158","-25","-420"] but got ["-158.593","-25.452","-420.471"] -``` - - -```sql -SELECT ALL - cor0.col1 + CAST ( + col1 * + col2 AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col0 * col1 * - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 - -Expected: ["NULL"] but got ["-7","-78","-79"] -``` - - -```sql -SELECT ALL - 83 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT + col0 AS col0 FROM tab2 WHERE NOT col0 * + col1 IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) - 15 AS col1 FROM tab0, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0, tab1 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,430 failed -* 85% was OK - -Time: 25427.453ms - ----- ---- ---- ---- ---- ---- ---- -### 601/620 [`./test/random/select/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_84.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - col0 * col2 + + col0 / col1 AS col2 FROM tab1 AS cor0 - -Expected: ["-162","-3642","-7674"] but got ["-161.885","-3641.600","-7673.846"] -``` - - -```sql -SELECT ALL - col1 * col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-2838","-7462","-97"] -``` - - -```sql -SELECT ALL 35 / - tab2.col1 FROM tab2, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1, tab0 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 cor1, tab1, t ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT col2 * - tab0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + col1 + CAST ( col0 AS REAL ) + + col1 AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 cor1, tab0, tab0 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL col2 + tab2.col1 FROM tab2 WHERE NOT + col1 IN ( - col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,451 failed -* 85% was OK - -Time: 31491.463ms - ----- ---- ---- ---- ---- ---- ---- -### 602/620 [`./test/random/select/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_85.test) - -_Mimic sqlite_ - -```sql -SELECT - - ( + 62 ) / col1 + 11 FROM tab0 AS cor0 - -Expected: ["11","11","11"] but got ["11.639","11.681","11.721"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col2 IN ( col1 * col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - 59 * cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 WHERE NULL BETWEEN NULL AND NULL - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1 WHERE ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT col1 * - CAST ( NULL AS REAL ) col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT - - CAST ( NULL AS INTEGER ) * 34 FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["1","33","82"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab1 cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,433 failed -* 85% was OK - -Time: 30959.542ms - ----- ---- ---- ---- ---- ---- ---- -### 603/620 [`./test/random/select/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_86.test) - -_Mimic sqlite_ - -```sql -SELECT - CAST ( NULL AS REAL ) + + col1 * col2 * col0 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - tab1.col2 / - 99 FROM tab1 - -Expected: ["0","0","0"] but got ["0.545","0.576","0.970"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT 56 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT 68 + - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 - -Expected: ["NULL"] but got ["68"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT col2 + col1 IN ( col2 * col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 cor1, tab2 AS cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,378 failed -* 86% was OK - -Time: 25446.248ms - ----- ---- ---- ---- ---- ---- ---- -### 604/620 [`./test/random/select/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_87.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - col2 / + 81 FROM tab2 AS cor0 - -Expected: ["0"] but got ["-0.321","-0.333","-0.469"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1, tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT 69 * col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + 92 / - 33 FROM tab2, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab1 cor1 - -27 results returned but expected 243 -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 51 AS col1 FROM tab2 - -Expected: ["NULL"] but got ["-51"] -``` - - -```sql -SELECT - col1 * col1 col0 FROM tab1 WHERE NOT col0 BETWEEN ( col1 ) AND tab1.col2 * col2 - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,377 failed -* 86% was OK - -Time: 24805.255ms - ----- ---- ---- ---- ---- ---- ---- -### 605/620 [`./test/random/select/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_88.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - + cor0.col0 / col2 AS col1 FROM tab1 AS cor0 - -Expected: ["-1","0","0"] but got ["-0.056","-0.833","-1.123"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * col0 + col2 FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 14 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["14"] -``` - - -```sql -SELECT cor0.col1 + + col0 * col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - 17 FROM tab1, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + col0 * + tab0.col2 + col0 * + col2 FROM tab0 WHERE NOT - tab0.col2 - - col2 * col2 IN ( col1 * tab0.col0 - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab1 cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,429 failed -* 85% was OK - -Time: 30815.974ms - ----- ---- ---- ---- ---- ---- ---- -### 606/620 [`./test/random/select/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_89.test) - -_Mimic sqlite_ - -```sql -SELECT + cor0.col2 / + 96 AS col2 FROM tab0 AS cor0 - -Expected: ["0","0","0"] but got ["0.010","0.344","0.854"] -``` - - -```sql -SELECT DISTINCT tab0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + 54 AS col2 FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT + 52 / - cor0.col2 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-3","-64","-80"] -``` - - -```sql -SELECT ALL + - col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2 cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,404 failed -* 85% was OK - -Time: 33371.298ms - ----- ---- ---- ---- ---- ---- ---- -### 607/620 [`./test/random/select/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_9.test) - -_Mimic sqlite_ - -```sql -SELECT + ( - col0 ) + - col2 * CAST ( - 77 AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + col0 / col2 + + col1 FROM tab0 cor0 - -Expected: ["132","86","92"] but got ["132","86.727","92.085"] -``` - - -```sql -SELECT ALL * FROM tab0, tab2, tab1 cor0, tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 91 * + cor0.col1 * - 95 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-146965","-267995","-510055"] -``` - - -```sql -SELECT - cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-24","-35","-89"] -``` - - -```sql -SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2 AS cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT * FROM tab1 WHERE NOT - col2 * col2 + - col1 IN ( col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,295 failed -* 87% was OK - -Time: 26969.420ms - ----- ---- ---- ---- ---- ---- ---- -### 608/620 [`./test/random/select/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_90.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 86 / + col2 FROM tab1 cor0 - -Expected: ["0","1"] but got ["0.896","1.509","1.593"] -``` - - -```sql -SELECT DISTINCT - col0 * - CAST ( cor0.col0 AS REAL ) AS col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - cor0.col1 / ( - cor0.col0 ) AS col0 FROM tab2, tab1 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - 86 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT * FROM tab2 WHERE NOT - col0 IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab2 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,375 failed -* 86% was OK - -Time: 25303.313ms - ----- ---- ---- ---- ---- ---- ---- -### 609/620 [`./test/random/select/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_91.test) - -_Mimic sqlite_ - -```sql -SELECT + + col1 + col2 / 86 FROM tab2 cor0 - -Expected: ["17","31","59"] but got ["17.442","31.314","59.302"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab2 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL + + 85 / - tab1.col2 FROM tab0, tab2, tab1 AS cor0, tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + cor0.col2 * CAST ( NULL AS INTEGER ) * - col2 - + col2 col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-26","-27","-38"] -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) * col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - cor0.col2 * - CAST ( NULL AS INTEGER ) + + col2 * + cor0.col1 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["1248","1404","570"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 + col1 ) IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + col2 * - col1 + - 87 / col2 FROM tab1 AS cor0 - -Expected: ["-1248","-1405","-571"] but got ["-1248.906","-1405.611","-571.526"] -``` - - -```sql -SELECT ALL - - 85 / col0 AS col2 FROM tab1 AS cor0 - -Expected: ["1","1","28"] but got ["1.063","1.328","28.333"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,371 failed -* 86% was OK - -Time: 30387.498ms - ----- ---- ---- ---- ---- ---- ---- -### 610/620 [`./test/random/select/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_92.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 64 / 94 AS col2 FROM tab2, tab0 cor0, tab1 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT col2 / + col0 - - col2 * col1 * cor0.col1 FROM tab2 AS cor0 - -Expected: ["10982","25950","90506"] but got ["10982.481","25950.857","90506.333"] -``` - - -```sql -SELECT ALL - - CAST ( - 42 AS REAL ) * cor0.col0 col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + col1 * col1 + CAST ( NULL AS INTEGER ) + + ( + col0 ) * cor0.col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["3748","7849","838"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab0 AS cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT + col0 FROM tab0 WHERE NOT ( col2 ) BETWEEN col1 * tab0.col2 AND ( NULL ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,485 failed -* 85% was OK - -Time: 35825.161ms - ----- ---- ---- ---- ---- ---- ---- -### 611/620 [`./test/random/select/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_93.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col0 / - cor0.col2 + 90 col1 FROM tab0 AS cor0 - -Expected: ["55","89","90"] but got ["55","88.915","89.273"] -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) * - col1 + col2 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["1","33","82"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL + CAST ( NULL AS REAL ) * - 26 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + + ( cor0.col1 ) AS col1 FROM tab2, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) * col1 / col0 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-3","-64","-80"] -``` - - -```sql -SELECT tab0.col0 - col0 FROM tab0 WHERE NOT ( - col2 ) IN ( + col0 * col0 + - col2 * col2 + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab0, tab0 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,389 failed -* 86% was OK - -Time: 27956.519ms - ----- ---- ---- ---- ---- ---- ---- -### 612/620 [`./test/random/select/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_94.test) - -_Mimic sqlite_ - -```sql -SELECT + - 13 + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-13","-13","-13"] -``` - - -```sql -SELECT + + 3 / col2 AS col2 FROM tab1 AS cor0 - -Expected: ["0","0","0"] but got ["0.031","0.053","0.056"] -``` - - -```sql -SELECT DISTINCT CAST ( + col1 AS REAL ) AS col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - 20 AS col0 FROM tab1, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col2 + col1 AS col0 FROM tab1 cor0 - -Expected: ["NULL"] but got ["10","13","26"] -``` - - -```sql -SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL col1 AS col1 FROM tab1 WHERE NOT col1 BETWEEN NULL AND - col0 * - col0 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab1, tab0 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,435 failed -* 85% was OK - -Time: 24759.894ms - ----- ---- ---- ---- ---- ---- ---- -### 613/620 [`./test/random/select/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_95.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col0 / col1 - + 8 AS col2 FROM tab0 AS cor0 - -Expected: ["-8"] but got ["-7.022","-7.639","-7.721"] -``` - - -```sql -SELECT 62 * - tab0.col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-5332","-5642","-6014"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col2 + col1 + + col2 col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["109","67","80"] -``` - - -```sql -SELECT + cor0.col2 / cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) * - 98 col1 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 cor1, tab0 co ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 cor1, tab0, tab1 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT ( col2 ) IN ( col0 + col0 * - col0 - - col2 * tab2.col2 * col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,399 failed -* 86% was OK - -Time: 29720.538ms - ----- ---- ---- ---- ---- ---- ---- -### 614/620 [`./test/random/select/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_96.test) - -_Mimic sqlite_ - -```sql -SELECT - col1 / 22 FROM tab2 - -Expected: ["-1","-2","0"] but got ["-0.773","-1.409","-2.682"] -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IN ( - col0 ) OR NULL BETWEEN NULL AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + + 94 AS col2 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["94","94","94"] -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT 27 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1, tab0 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT + col2 / - col1 col2 FROM tab1 AS cor0 - -Expected: ["-2","-5","-7"] but got ["-2.077","-5.700","-7.385"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,324 failed -* 86% was OK - -Time: 35043.031ms - ----- ---- ---- ---- ---- ---- ---- -### 615/620 [`./test/random/select/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_97.test) - -_Mimic sqlite_ - -```sql -SELECT + - col1 * + col2 + col0 + + col0 / cor0.col2 FROM tab0 AS cor0 - -Expected: ["-27","-2814","-7372"] but got ["-27","-2813.273","-7371.915"] -``` - - -```sql -SELECT cor0.col2 * CAST ( NULL AS INTEGER ) + - col2 * col1 * 99 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-123552","-138996","-56430"] -``` - - -```sql -SELECT ALL + cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT - - CAST ( + col2 AS REAL ) AS col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 + col0 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["24","35","89"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab0 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT + col0 * - col2 - - col0 FROM tab2 WHERE NOT ( - col1 * col2 ) IN ( + col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,412 failed -* 85% was OK - -Time: 25163.935ms - ----- ---- ---- ---- ---- ---- ---- -### 616/620 [`./test/random/select/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_98.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["NULL"] but got ["10","13","26"] -``` - - -```sql -SELECT - col1 / ( + col0 ) - - col2 col1 FROM tab0 AS cor0 - -Expected: ["-1","30","81"] but got ["-1.771","29.417","80.978"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT - - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS REAL ) + col0 / col0 AS col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab2 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL col0 * - col0 AS col2 FROM tab2 WHERE NOT col2 * col0 IN ( tab2.col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,404 failed -* 85% was OK - -Time: 22269.385ms - ----- ---- ---- ---- ---- ---- ---- -### 617/620 [`./test/random/select/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_99.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT ( + tab1.col1 ) / + 96 + col0 * - col2 FROM tab1 - -Expected: ["-162","-3648","-7680"] but got ["-161.729","-3647.896","-7679.865"] -``` - - -```sql -SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + + col2 * + col2 * col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["611884","93654","97"] -``` - - -```sql -SELECT - + col2 * + CAST ( - col2 AS REAL ) * - col2 AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL 9 col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT 80 / - 39 FROM tab1, tab1 cor0, tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - + col1 + + CAST ( NULL AS INTEGER ) + + 56 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-30","-35","-41"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( + col1 * col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1, tab2 cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,382 failed -* 86% was OK - -Time: 21806.945ms - ----- ---- ---- ---- ---- ---- ---- -### 618/620 [`./test/select1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select1.test) - -#### ★ Assuming all 1,031 tests still passes as _sqlite_ - -Time: 0.442ms - ----- ---- ---- ---- ---- ---- ---- -### 619/620 [`./test/select2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select2.test) - -_Mimic sqlite_ - -```sql -SELECT a, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, b FROM t1 - -Correct amount of values returned but hash was different than expected. -``` - -#### ☓ Ran 1,031 tests as _sqlite_ +### Node +* Total tested: 4,632,007 +* Failed tests: 688,764 +* Skipped tests: 53,316 +* Assumed still OK: 1,309,487 +* Final score: 87 % was OK -* 104 failed -* 89% was OK +See full result [here](https://github.com/agershun/alasql/tree/develop/test/!testlog/SQLlogic.md) -Time: 10367.363ms +### Chakra +It has not yet been possible to run the SQLlogic tests on the Chrakra engine. ----- ---- ---- ---- ---- ---- ---- -### 620/620 [`./test/select3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select3.test) -_Mimic sqlite_ +## Regression test +The [regression tests for AlaSQL](https://github.com/agershun/alasql/tree/develop/test/) consists of more than 1000 test cases (hopefully) covering all of the functionality in the library. By executing `npm run test:only` the regression test will run via node. By executing `npm run test:browser` it will run in a browser. -```sql -SELECT d-e, c-d, (a+b+c+d+e)/5 FROM t1 WHERE d NOT BETWEEN 110 AND 150 OR e+d BETWEEN a+b-10 AND c+130 OR b>c -81 results returned but expected 72 -``` -```sql -SELECT (SELECT count(*) FROM t1 AS x WHERE x.b=d+2) OR c BETWEEN b-2 AND d+2 +### Chrome 48 +- `alasql@0.2.3-develop-1206` +- Failures: 61 +- Passes 1063 -Correct amount of values returned but hash was different than expected. -``` +See full result [here](https://github.com/agershun/alasql/tree/develop/test/!testlog/Chrome.md) +_It needs more investigations, but as Chrome uses the same V8 engine as Node the errors are likely caused by how some of the tests loads or stores test data. The amount of Chrome errors will be therefor (probably) also be represented in other browsers._ -```sql -SELECT e FROM t1 WHERE b>c AND d NOT BETWEEN 110 AND 150 AND a>b +### Safari 9 +- `alasql@0.2.3-develop-1206` +- Failures: 79 +- Passes 1045 -Expected: ["197","227","230"] but got ["157","165","197","227","230","NULL"] -``` +See full result [here](https://github.com/agershun/alasql/tree/develop/test/!testlog/Safari.md) -```sql -SELECT c FROM t1 WHERE (a>b-2 AND a (http://localhost:7387/test127.js:13:3) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 +2. Test on loaded database ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test127.js:20:13) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +Test 128 ASSERT +1. Assert on SOURCE and run statements ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at yy.Source.execute (http://localhost:7387/dist/alasql.js:15575:2) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4286:45) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test128.js:15:3) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 +Test 168a - read XLSX +1. Read XLSX file ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +2. Read XLSX file with Headers ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +3. Read XLSX file with Headers and range ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +4. Read XLSX file with Headers and sheet ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +Test 168b - read XLS +1. Read XLS file ‣ +Error: Uncaught Unsupported file (http://localhost:7387/lib/xlsx/xls.core.min.js:7) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +2. Read XLS file with Headers ‣ +Error: Uncaught Unsupported file (http://localhost:7387/lib/xlsx/xls.core.min.js:7) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +3. Read XLS file with Headers and range ‣ +Error: Uncaught Unsupported file (http://localhost:7387/lib/xlsx/xls.core.min.js:7) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +4. Read XLS file with Headers and sheet ‣ +Error: Uncaught Unsupported file (http://localhost:7387/lib/xlsx/xls.core.min.js:7) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +Test 172 - XLSX to array +1. Load XLSX file into array ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +Test 198 - MS SQL compatibility +1. Create tables ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at yy.Source.execute (http://localhost:7387/dist/alasql.js:15575:2) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4286:45) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:12:9) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 +2. Select ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at yy.Source.execute (http://localhost:7387/dist/alasql.js:15575:2) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4286:45) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:32:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 +3. CROSS JOIN ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:40:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +4. ON ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:47:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +5. LEFT OUTER JOIN ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:55:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +6. LEFT OUTER JOIN ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:63:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +7. GROUP BY ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:72:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +8. HAVING ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:85:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +9. SELECT ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:99:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +10. ORDER BY ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:112:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +11. SELECT ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:128:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +12. TOP ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:142:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +17. UNION ALL ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:195:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +18. Complex Statement ‣ +TypeError: Cannot read property 'columns' of undefined + at http://localhost:7387/dist/alasql.js:8861:13 + at Array.forEach (native) + at yy.Select.compileDefCols (http://localhost:7387/dist/alasql.js:8854:13) + at yy.Select.compile (http://localhost:7387/dist/alasql.js:6777:23) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4265:38) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test198.js:218:19) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) +99. Drop database ‣ +Test 203 REQUIRE ASYNC +1. REQUIRE() ASYN ‣ +2. REQUIRE SYNC ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at http://localhost:7387/dist/alasql.js:15620:4 + at Array.forEach (native) + at yy.Require.execute (http://localhost:7387/dist/alasql.js:15619:14) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4286:45) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test203.js:24:9) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +Test 242 Multi-columns Excel file +1. Read multi-column file ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +2. Read multi-column file ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +Test 271 RECORDSET and Excel tests +1. Open Excel and columns ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +Test 286 CREATE UNIQUE INDEX +1. CREATE TABLE and FIRST INSERT ‣ +2. Fill tables with data ‣ +TypeError: test is not a function + at Context. (http://localhost:7387/test286.js:29:14) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 + at next (http://localhost:7387/lib/mocha/mocha.js:4707:14) + at http://localhost:7387/lib/mocha/mocha.js:4717:7 + at next (http://localhost:7387/lib/mocha/mocha.js:4655:23) + at http://localhost:7387/lib/mocha/mocha.js:4684:5 + at timeslice (http://localhost:7387/lib/mocha/mocha.js:5904:27) +3. DROP DATABASE ‣ +Test 291 Promised version +1. CREATE DATABASE ‣ +2. Promise ‣ +TypeError: Promise is not a function + at Function.alasql.promise (http://localhost:7387/dist/alasql.js:4423:12) + at Context. (http://localhost:7387/test291.js:32:12) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 + at next (http://localhost:7387/lib/mocha/mocha.js:4707:14) + at http://localhost:7387/lib/mocha/mocha.js:4717:7 + at next (http://localhost:7387/lib/mocha/mocha.js:4655:23) + at http://localhost:7387/lib/mocha/mocha.js:4684:5 + at timeslice (http://localhost:7387/lib/mocha/mocha.js:5904:27) +3. Promise Exception ‣ +TypeError: Promise is not a function + at Function.alasql.promise (http://localhost:7387/dist/alasql.js:4423:12) + at Context. (http://localhost:7387/test291.js:43:12) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 + at next (http://localhost:7387/lib/mocha/mocha.js:4707:14) + at http://localhost:7387/lib/mocha/mocha.js:4717:7 + at next (http://localhost:7387/lib/mocha/mocha.js:4655:23) + at http://localhost:7387/lib/mocha/mocha.js:4684:5 + at timeslice (http://localhost:7387/lib/mocha/mocha.js:5904:27) +4. DROP DATABASE ‣ +Test 298 PLUG-IN TEST +1. CREATE DATABASE ‣ +2.REQURE ECHO plugin ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at http://localhost:7387/dist/alasql.js:15635:5 + at Array.forEach (native) + at yy.Require.execute (http://localhost:7387/dist/alasql.js:15632:16) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4286:45) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test298.js:23:15) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +99. DROP DATABASE ‣ +Test 305 CREATE GRAPH +1. Create database ‣ +2. CREATE GRAPH ‣ +3. CREATE GRAPH ‣ +4. CREATE GRAPH ‣ +5. Search over graph ‣ +6. Search over graph ‣ +7. Search over graph ‣ +8. Search over graph ‣ +9a. Search over graph with >> ‣ +9b. Search over graph with << ‣ +10. CREATE GRAPH ‣ +11. CREATE GRAPH ‣ +12. CREATE GRAPH ‣ +13. CREATE GRAPH ‣ +14. CREATE GRAPH ‣ +15. CREATE GRAPH ‣ +16. Create database ‣ +17. Create database ‣ +18. Create graph from file ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at Object.utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at alasql.from.XML (http://localhost:7387/dist/alasql.js:15265:16) + at doSearch (http://localhost:7387/dist/alasql.js:5337:58) + at statement (http://localhost:7387/dist/alasql.js:5435:22) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4280:27) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test305.js:113:15) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +99. Drop database ‣ +Test 306 XML reader +1. Read XML file / SEARCH like JSON ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at Object.utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at alasql.from.XML (http://localhost:7387/dist/alasql.js:15265:16) + at doSearch (http://localhost:7387/dist/alasql.js:5337:58) + at statement (http://localhost:7387/dist/alasql.js:5435:22) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4280:27) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test306.js:21:5) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +1a. Read XML file / SEARCH XML ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at Object.utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at alasql.from.XML (http://localhost:7387/dist/alasql.js:15265:16) + at doSearch (http://localhost:7387/dist/alasql.js:5337:58) + at statement (http://localhost:7387/dist/alasql.js:5435:22) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4280:27) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test306.js:29:5) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +2. Read XML file / SEARCH XML ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at Object.utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at alasql.from.XML (http://localhost:7387/dist/alasql.js:15265:16) + at doSearch (http://localhost:7387/dist/alasql.js:5337:58) + at statement (http://localhost:7387/dist/alasql.js:5435:22) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4249:11) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test306.js:39:5) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +3. Read XML file / SEARCH XML ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at Object.utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at alasql.from.XML (http://localhost:7387/dist/alasql.js:15265:16) + at doSearch (http://localhost:7387/dist/alasql.js:5337:58) + at statement (http://localhost:7387/dist/alasql.js:5435:22) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4280:27) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test306.js:47:6) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +4. Read XML file / SEARCH XML ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at Object.utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at alasql.from.XML (http://localhost:7387/dist/alasql.js:15265:16) + at doSearch (http://localhost:7387/dist/alasql.js:5337:58) + at statement (http://localhost:7387/dist/alasql.js:5435:22) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4280:27) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test306.js:55:6) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +5. Read XML file / SEARCH XML ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at Object.utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at alasql.from.XML (http://localhost:7387/dist/alasql.js:15265:16) + at doSearch (http://localhost:7387/dist/alasql.js:5337:58) + at statement (http://localhost:7387/dist/alasql.js:5435:22) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4280:27) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test306.js:62:6) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +6a. Read GEFX file / SEARCH XML ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at Object.utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at alasql.from.XML (http://localhost:7387/dist/alasql.js:15265:16) + at doSearch (http://localhost:7387/dist/alasql.js:5337:58) + at statement (http://localhost:7387/dist/alasql.js:5435:22) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4280:27) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test306.js:71:6) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +6b. Read GEFX file / SEARCH XML ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at Object.utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at alasql.from.XML (http://localhost:7387/dist/alasql.js:15265:16) + at doSearch (http://localhost:7387/dist/alasql.js:5337:58) + at statement (http://localhost:7387/dist/alasql.js:5435:22) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4280:27) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test306.js:81:6) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +7. Edges ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at Object.utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at alasql.from.XML (http://localhost:7387/dist/alasql.js:15265:16) + at doSearch (http://localhost:7387/dist/alasql.js:5337:58) + at statement (http://localhost:7387/dist/alasql.js:5435:22) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4280:27) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test306.js:89:6) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +7. SEARCH INTO ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at Object.utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at alasql.from.XML (http://localhost:7387/dist/alasql.js:15265:16) + at doSearch (http://localhost:7387/dist/alasql.js:5337:58) + at statement (http://localhost:7387/dist/alasql.js:5435:22) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4280:27) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test306.js:97:6) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) +Test 330 PROLOG +"before all" hook ‣ +Error: Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document. + at Error (native) + at utils.loadFile (http://localhost:7387/dist/alasql.js:3331:34) + at http://localhost:7387/dist/alasql.js:15635:5 + at Array.forEach (native) + at yy.Require.execute (http://localhost:7387/dist/alasql.js:15632:16) + at Function.alasql.dexec (http://localhost:7387/dist/alasql.js:4286:45) + at Function.alasql.exec (http://localhost:7387/dist/alasql.js:4231:17) + at alasql (http://localhost:7387/dist/alasql.js:120:18) + at Context. (http://localhost:7387/test330.js:14:5) + at callFn (http://localhost:7387/lib/mocha/mocha.js:4387:21) +Test 353 Compiled Promised Statements +1. CREATE DATABASE ‣ +2. Compiled Sync ‣ +3. Compiled Sync with Error ‣ +5. Compiles Async ‣ +7. Compile Promise ‣ +TypeError: Promise is not a function + at Function.statement.promise (http://localhost:7387/dist/alasql.js:4385:14) + at Context. (http://localhost:7387/test353.js:70:8) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 + at next (http://localhost:7387/lib/mocha/mocha.js:4707:14) + at http://localhost:7387/lib/mocha/mocha.js:4717:7 + at next (http://localhost:7387/lib/mocha/mocha.js:4655:23) + at http://localhost:7387/lib/mocha/mocha.js:4684:5 + at timeslice (http://localhost:7387/lib/mocha/mocha.js:5904:27) +5. Compile With Error ‣ +TypeError: Promise is not a function + at Function.statement.promise (http://localhost:7387/dist/alasql.js:4385:14) + at Context. (http://localhost:7387/test353.js:79:8) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 + at next (http://localhost:7387/lib/mocha/mocha.js:4707:14) + at http://localhost:7387/lib/mocha/mocha.js:4717:7 + at next (http://localhost:7387/lib/mocha/mocha.js:4655:23) + at http://localhost:7387/lib/mocha/mocha.js:4684:5 + at timeslice (http://localhost:7387/lib/mocha/mocha.js:5904:27) +99. DROP DATABASE ‣ +373. Use functions in group by +1. Use functions from GROUP BY without alias ‣ +AssertionError: [{"MONTH(fecha_Venta)":"NaN","Sales":0}] deepEqual [{"MONTH(fecha_Venta)":10,"Sales":12500},{"MONTH(fecha_Venta)":9,"Sales":25000}] + at Context. (http://localhost:7387/test373.js:34:16) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 + at next (http://localhost:7387/lib/mocha/mocha.js:4707:14) + at http://localhost:7387/lib/mocha/mocha.js:4717:7 + at next (http://localhost:7387/lib/mocha/mocha.js:4655:23) + at http://localhost:7387/lib/mocha/mocha.js:4684:5 + at timeslice (http://localhost:7387/lib/mocha/mocha.js:5904:27) +2. Use functions with alias from GROUP BY ‣ +AssertionError: [{"mes":"NaN","Sales":0}] deepEqual [{"mes":10,"Sales":12500},{"mes":9,"Sales":25000}] + at Context. (http://localhost:7387/test373.js:45:16) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 + at next (http://localhost:7387/lib/mocha/mocha.js:4707:14) + at http://localhost:7387/lib/mocha/mocha.js:4717:7 + at next (http://localhost:7387/lib/mocha/mocha.js:4655:23) + at http://localhost:7387/lib/mocha/mocha.js:4684:5 + at timeslice (http://localhost:7387/lib/mocha/mocha.js:5904:27) +Test 395 SQLLOGICTEST SELECT 1 +1. CREATE DATABASE ‣ +2. Test inline ‣ +3. Test from table ‣ +4. Test like in command-line ‣ +TypeError: Promise is not a function + at Function.alasql.promise (http://localhost:7387/dist/alasql.js:4423:12) + at Context. (http://localhost:7387/test395.js:36:12) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 + at next (http://localhost:7387/lib/mocha/mocha.js:4707:14) + at http://localhost:7387/lib/mocha/mocha.js:4717:7 + at next (http://localhost:7387/lib/mocha/mocha.js:4655:23) + at http://localhost:7387/lib/mocha/mocha.js:4684:5 + at timeslice (http://localhost:7387/lib/mocha/mocha.js:5904:27) +5. More tests ‣ +99. DROP DATABASE ‣ +Test 418 Load data from internet +.xlsx from URL +Load http ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +Load https ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +.xls from URL +Load http ‣ +Error: Uncaught Unsupported file (http://localhost:7387/lib/xlsx/xls.core.min.js:7) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +Load https ‣ +Error: Uncaught Unsupported file (http://localhost:7387/lib/xlsx/xls.core.min.js:7) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +Test 419 Load data from text file with default headers option +1. Load TXT ‣ +2. Load CSV with {headers:true} ‣ +3. Load CSV by default ‣ +4. Load CSV with {headers:false} ‣ +4. Load XLSX with {headers:true} ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +5. Load XLSX ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +6. Load XLSX with {headers:true} ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +Test 420 Load data from XLSX without extra line +1. Load XLSX ‣ +Error: Uncaught Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + at global.onerror (http://localhost:7387/lib/mocha/mocha.js:5879:10) +Test 421 Test for JOINSTAR +1. Create tables ‣ +2. OVERWRITE JOINSTAR ‣ +3. JSON JOINSTAR ‣ +TypeError: Cannot read property 'dbversion' of undefined + at Context. (http://localhost:7387/test421.js:38:29) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 + at next (http://localhost:7387/lib/mocha/mocha.js:4707:14) + at http://localhost:7387/lib/mocha/mocha.js:4717:7 + at next (http://localhost:7387/lib/mocha/mocha.js:4655:23) + at http://localhost:7387/lib/mocha/mocha.js:4684:5 + at timeslice (http://localhost:7387/lib/mocha/mocha.js:5904:27) +4. UNDESCORE JOINSTAR ‣ +TypeError: Cannot read property 'dbversion' of undefined + at Context. (http://localhost:7387/test421.js:52:29) + at Test.Runnable.run (http://localhost:7387/lib/mocha/mocha.js:4354:15) + at Runner.runTest (http://localhost:7387/lib/mocha/mocha.js:4782:10) + at http://localhost:7387/lib/mocha/mocha.js:4860:12 + at next (http://localhost:7387/lib/mocha/mocha.js:4707:14) + at http://localhost:7387/lib/mocha/mocha.js:4717:7 + at next (http://localhost:7387/lib/mocha/mocha.js:4655:23) + at http://localhost:7387/lib/mocha/mocha.js:4684:5 + at timeslice (http://localhost:7387/lib/mocha/mocha.js:5904:27) \ No newline at end of file diff --git a/test/!testlog/Edge.md b/test/!testlog/Edge.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/!testlog/Firefox.md b/test/!testlog/Firefox.md new file mode 100644 index 0000000000..406cb47397 --- /dev/null +++ b/test/!testlog/Firefox.md @@ -0,0 +1,1363 @@ + +### Firefox 42 + + - `alasql@0.2.3-develop-1206` + - Failures: 80 + - Passes 1044 + + + +``` + + duration: 23.29s + + Test 127 SOURCE + 1. Load and run statements + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + yy.Source.prototype.execute@http://localhost:7387/dist/alasql.js:15575:1 + alasql.dexec@http://localhost:7387/dist/alasql.js:4286:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test127.js:13:3 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 2. Test on loaded database + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test127.js:20:13 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + Test 128 ASSERT + 1. Assert on SOURCE and run statements + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + yy.Source.prototype.execute@http://localhost:7387/dist/alasql.js:15575:1 + alasql.dexec@http://localhost:7387/dist/alasql.js:4286:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test128.js:15:3 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + Test 154 - IndexedDB test + 1. Create Database and Table + ‣ + + AbortError (http://localhost:7387/dist/alasql.js:15826) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Test 155 - InsexedDB INSERT + 1. Multiple lines async + ‣ + + AbortError (http://localhost:7387/dist/alasql.js:15826) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Test 168a - read XLSX + 1. Read XLSX file + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + 2. Read XLSX file with Headers + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + 3. Read XLSX file with Headers and range + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + 4. Read XLSX file with Headers and sheet + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Test 168b - read XLS + 1. Read XLS file + ‣ + + uncaught exception: Unsupported file (:0) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + 2. Read XLS file with Headers + ‣ + + uncaught exception: Unsupported file (:0) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + 3. Read XLS file with Headers and range + ‣ + + uncaught exception: Unsupported file (:0) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + 4. Read XLS file with Headers and sheet + ‣ + + uncaught exception: Unsupported file (:0) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Test 172 - XLSX to array + 1. Load XLSX file into array + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Test 198 - MS SQL compatibility + 1. Create tables + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + yy.Source.prototype.execute@http://localhost:7387/dist/alasql.js:15575:1 + alasql.dexec@http://localhost:7387/dist/alasql.js:4286:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:12:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 2. Select + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + yy.Source.prototype.execute@http://localhost:7387/dist/alasql.js:15575:1 + alasql.dexec@http://localhost:7387/dist/alasql.js:4286:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:32:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 3. CROSS JOIN + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:40:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 4. ON + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:47:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 5. LEFT OUTER JOIN + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:55:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 6. LEFT OUTER JOIN + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:63:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 7. GROUP BY + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:72:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 8. HAVING + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:85:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 9. SELECT + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:99:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 10. ORDER BY + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:112:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 11. SELECT + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:128:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 12. TOP + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:142:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 17. UNION ALL + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:195:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 18. Complex Statement + ‣ + + table is undefined + yy.Select.prototype.compileDefCols/<@http://localhost:7387/dist/alasql.js:8861:1 + yy.Select.prototype.compileDefCols@http://localhost:7387/dist/alasql.js:8854:3 + yy.Select.prototype.compile@http://localhost:7387/dist/alasql.js:6777:18 + alasql.dexec@http://localhost:7387/dist/alasql.js:4265:20 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test198.js:218:19 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 99. Drop database + ‣ + Test 202 GETTIME and CAST + 1. GETDATE() + ‣ + 2. CONVERT(,,110) + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test202.js:20:1 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + Test 203 REQUIRE ASYNC + 1. REQUIRE() ASYN + ‣ + 2. REQUIRE SYNC + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + yy.Require.prototype.execute/<@http://localhost:7387/dist/alasql.js:15620:1 + yy.Require.prototype.execute@http://localhost:7387/dist/alasql.js:15619:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4286:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test203.js:24:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + Test 207 WHILE + 1. FALSE WHILE + ‣ + 2. ONE WHILE ASYNC + ‣ + + loop is not defined + yy.While.prototype.execute@http://localhost:7387/dist/alasql.js:12286:3 + adrunone@http://localhost:7387/dist/alasql.js:4362:5 + yy.SetVariable.prototype.execute@http://localhost:7387/dist/alasql.js:13399:13 + adrunone@http://localhost:7387/dist/alasql.js:4362:5 + alasql.adrun@http://localhost:7387/dist/alasql.js:4367:2 + alasql.dexec@http://localhost:7387/dist/alasql.js:4292:4 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test207.js:18:1 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 3. ONE WHILE SYNC + ‣ + Test 212: CONVERT dates with style + 1. CONVERT DATES + ‣ + 2. CONVERT DATE TO STRING + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test212.js:72:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 3. CONVERT JAVASCRIPT DATE TO STRING + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test212.js:80:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 4. CONVERT JAVASCRIPT DATE TO STRING + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test212.js:87:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 5. CONVERT DATE TO STRING FROM TABLE + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test212.js:99:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 6. CONVERT DATE TO STRING FROM TABLE + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test212.js:112:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 7. CONVERT DATE TO STRING FROM TABLE + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test212.js:125:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 8. CONVERT DATE TO STRING FROM TABLE without columns + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test212.js:138:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 9. CONVERT DATE TO STRING FROM TABLE without columns + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test212.js:151:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + Test 232 Errors handling + 1. Prepare database + ‣ + 2. Throw error + ‣ + 3. Log error async + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test232.js:29:13 + alasql.exec@http://localhost:7387/dist/alasql.js:4227:5 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test232.js:28:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 4. Log error sync + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test232.js:37:9 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 99. DROP + ‣ + Test 242 Multi-columns Excel file + 1. Read multi-column file + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + 2. Read multi-column file + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Test 271 RECORDSET and Excel tests + 1. Open Excel and columns + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Test 286 CREATE UNIQUE INDEX + 1. CREATE TABLE and FIRST INSERT + ‣ + 2. Fill tables with data + ‣ + + test is not a function + @http://localhost:7387/test286.js:29:14 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 3. DROP DATABASE + ‣ + Test 291 Promised version + 1. CREATE DATABASE + ‣ + 2. Promise + ‣ + + Promise is not a constructor + alasql.promise@http://localhost:7387/dist/alasql.js:4423:1 + @http://localhost:7387/test291.js:32:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 3. Promise Exception + ‣ + + Promise is not a constructor + alasql.promise@http://localhost:7387/dist/alasql.js:4423:1 + @http://localhost:7387/test291.js:43:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 4. DROP DATABASE + ‣ + Test 298 PLUG-IN TEST + 1. CREATE DATABASE + ‣ + 2.REQURE ECHO plugin + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + yy.Require.prototype.execute/<@http://localhost:7387/dist/alasql.js:15635:1 + yy.Require.prototype.execute@http://localhost:7387/dist/alasql.js:15632:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4286:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test298.js:23:15 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 99. DROP DATABASE + ‣ + Test 305 CREATE GRAPH + 1. Create database + ‣ + 2. CREATE GRAPH + ‣ + 3. CREATE GRAPH + ‣ + 4. CREATE GRAPH + ‣ + 5. Search over graph + ‣ + 6. Search over graph + ‣ + 7. Search over graph + ‣ + 8. Search over graph + ‣ + 9a. Search over graph with >> + ‣ + 9b. Search over graph with << + ‣ + 10. CREATE GRAPH + ‣ + 11. CREATE GRAPH + ‣ + 12. CREATE GRAPH + ‣ + 13. CREATE GRAPH + ‣ + 14. CREATE GRAPH + ‣ + 15. CREATE GRAPH + ‣ + 16. Create database + ‣ + 17. Create database + ‣ + 18. Create graph from file + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + alasql.from.XML@http://localhost:7387/dist/alasql.js:15265:1 + doSearch@http://localhost:7387/dist/alasql.js:5337:14 + yy.Search.prototype.compile/statement@http://localhost:7387/dist/alasql.js:5435:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4280:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test305.js:113:15 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 99. Drop database + ‣ + Test 306 XML reader + 1. Read XML file / SEARCH like JSON + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + alasql.from.XML@http://localhost:7387/dist/alasql.js:15265:1 + doSearch@http://localhost:7387/dist/alasql.js:5337:14 + yy.Search.prototype.compile/statement@http://localhost:7387/dist/alasql.js:5435:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4280:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test306.js:21:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 1a. Read XML file / SEARCH XML + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + alasql.from.XML@http://localhost:7387/dist/alasql.js:15265:1 + doSearch@http://localhost:7387/dist/alasql.js:5337:14 + yy.Search.prototype.compile/statement@http://localhost:7387/dist/alasql.js:5435:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4280:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test306.js:29:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 2. Read XML file / SEARCH XML + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + alasql.from.XML@http://localhost:7387/dist/alasql.js:15265:1 + doSearch@http://localhost:7387/dist/alasql.js:5337:14 + yy.Search.prototype.compile/statement@http://localhost:7387/dist/alasql.js:5435:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4249:1 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test306.js:39:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 3. Read XML file / SEARCH XML + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + alasql.from.XML@http://localhost:7387/dist/alasql.js:15265:1 + doSearch@http://localhost:7387/dist/alasql.js:5337:14 + yy.Search.prototype.compile/statement@http://localhost:7387/dist/alasql.js:5435:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4280:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test306.js:47:6 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 4. Read XML file / SEARCH XML + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + alasql.from.XML@http://localhost:7387/dist/alasql.js:15265:1 + doSearch@http://localhost:7387/dist/alasql.js:5337:14 + yy.Search.prototype.compile/statement@http://localhost:7387/dist/alasql.js:5435:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4280:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test306.js:55:6 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 5. Read XML file / SEARCH XML + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + alasql.from.XML@http://localhost:7387/dist/alasql.js:15265:1 + doSearch@http://localhost:7387/dist/alasql.js:5337:14 + yy.Search.prototype.compile/statement@http://localhost:7387/dist/alasql.js:5435:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4280:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test306.js:62:6 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 6a. Read GEFX file / SEARCH XML + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + alasql.from.XML@http://localhost:7387/dist/alasql.js:15265:1 + doSearch@http://localhost:7387/dist/alasql.js:5337:14 + yy.Search.prototype.compile/statement@http://localhost:7387/dist/alasql.js:5435:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4280:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test306.js:71:6 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 6b. Read GEFX file / SEARCH XML + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + alasql.from.XML@http://localhost:7387/dist/alasql.js:15265:1 + doSearch@http://localhost:7387/dist/alasql.js:5337:14 + yy.Search.prototype.compile/statement@http://localhost:7387/dist/alasql.js:5435:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4280:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test306.js:81:6 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 7. Edges + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + alasql.from.XML@http://localhost:7387/dist/alasql.js:15265:1 + doSearch@http://localhost:7387/dist/alasql.js:5337:14 + yy.Search.prototype.compile/statement@http://localhost:7387/dist/alasql.js:5435:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4280:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test306.js:89:6 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 7. SEARCH INTO + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + alasql.from.XML@http://localhost:7387/dist/alasql.js:15265:1 + doSearch@http://localhost:7387/dist/alasql.js:5337:14 + yy.Search.prototype.compile/statement@http://localhost:7387/dist/alasql.js:5435:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4280:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test306.js:97:6 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + Test 330 PROLOG + "before all" hook + ‣ + + A parameter or an operation is not supported by the underlying object + utils.loadFile@http://localhost:7387/dist/alasql.js:3331:17 + yy.Require.prototype.execute/<@http://localhost:7387/dist/alasql.js:15635:1 + yy.Require.prototype.execute@http://localhost:7387/dist/alasql.js:15632:3 + alasql.dexec@http://localhost:7387/dist/alasql.js:4286:27 + alasql.exec@http://localhost:7387/dist/alasql.js:4231:10 + alasql@http://localhost:7387/dist/alasql.js:120:11 + @http://localhost:7387/test330.js:14:5 + callFn@http://localhost:7387/lib/mocha/mocha.js:4387:18 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4380:7 + next@http://localhost:7387/lib/mocha/mocha.js:4667:5 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + Test 353 Compiled Promised Statements + 1. CREATE DATABASE + ‣ + 2. Compiled Sync + ‣ + 3. Compiled Sync with Error + ‣ + 5. Compiles Async + ‣ + 7. Compile Promise + ‣ + + Promise is not a constructor + alasql.compile/statement.promise@http://localhost:7387/dist/alasql.js:4385:1 + @http://localhost:7387/test353.js:70:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 5. Compile With Error + ‣ + + Promise is not a constructor + alasql.compile/statement.promise@http://localhost:7387/dist/alasql.js:4385:1 + @http://localhost:7387/test353.js:79:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 99. DROP DATABASE + ‣ + 373. Use functions in group by + 1. Use functions from GROUP BY without alias + ‣ + + [{"MONTH(fecha_Venta)":"NaN","Sales":0}] deepEqual [{"MONTH(fecha_Venta)":10,"Sales":12500},{"MONTH(fecha_Venta)":9,"Sales":25000}] + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + deepEqual@http://localhost:7387/lib/assert/assert.js:244:5 + @http://localhost:7387/test373.js:34:1 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 2. Use functions with alias from GROUP BY + ‣ + + [{"mes":"NaN","Sales":0}] deepEqual [{"mes":10,"Sales":12500},{"mes":9,"Sales":25000}] + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + deepEqual@http://localhost:7387/lib/assert/assert.js:244:5 + @http://localhost:7387/test373.js:45:1 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + Test 392 Observable (issue #499) + 1. CREATE DATABASE + ‣ + 2. Prepare test data + ‣ + + Array.observe is not a function + @http://localhost:7387/test392.js:27:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 99. DROP DATABASE + ‣ + Test 395 SQLLOGICTEST SELECT 1 + 1. CREATE DATABASE + ‣ + 2. Test inline + ‣ + 3. Test from table + ‣ + 4. Test like in command-line + ‣ + + Promise is not a constructor + alasql.promise@http://localhost:7387/dist/alasql.js:4423:1 + @http://localhost:7387/test395.js:36:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 5. More tests + ‣ + 99. DROP DATABASE + ‣ + Test 400 Trigger with INSERTED + 1. CREATE DATABASE + ‣ + 2. Create table and trigger + ‣ + 3. Insert + ‣ + + [[100,"undefined"],[200,"undefined"]] deepEqual [[100,2016],[200,2016]] + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + deepEqual@http://localhost:7387/lib/assert/assert.js:244:5 + @http://localhost:7387/test400.js:31:1 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 99. DROP DATABASE + ‣ + Test 408 - DATEADD() and DATEDIFF() + 1. CREATE DATABASE + ‣ + 2. DATEDIFF() + ‣ + + [{"Duration":"undefined"}] deepEqual [{"Duration":1}] + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + deepEqual@http://localhost:7387/lib/assert/assert.js:244:5 + @http://localhost:7387/test408.js:32:1 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 3. DATEDIFF() + ‣ + + "undefined" deepEqual -1 + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + deepEqual@http://localhost:7387/lib/assert/assert.js:244:5 + @http://localhost:7387/test408.js:43:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 4. DATEADD() + ‣ + 4. DATE_ADD() MySQL-style + ‣ + + false == true + AssertionError@http://localhost:7387/lib/assert/assert.js:151:21 + fail@http://localhost:7387/lib/assert/assert.js:198:1 + ok@http://localhost:7387/lib/assert/assert.js:218:15 + @http://localhost:7387/test408.js:83:1 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 99. DROP DATABASE + ‣ + Test 418 Load data from internet + .xlsx from URL + Load http + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Load https + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + .xls from URL + Load http + ‣ + + uncaught exception: Unsupported file (:0) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Load https + ‣ + + uncaught exception: Unsupported file (:0) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Test 419 Load data from text file with default headers option + 1. Load TXT + ‣ + 2. Load CSV with {headers:true} + ‣ + 3. Load CSV by default + ‣ + 4. Load CSV with {headers:false} + ‣ + 4. Load XLSX with {headers:true} + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + 5. Load XLSX + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + 6. Load XLSX with {headers:true} + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Test 420 Load data from XLSX without extra line + 1. Load XLSX + ‣ + + Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) + process.on/global.onerror@http://localhost:7387/lib/mocha/mocha.js:5879:10 + + Test 421 Test for JOINSTAR + 1. Create tables + ‣ + 2. OVERWRITE JOINSTAR + ‣ + 3. JSON JOINSTAR + ‣ + + alasql.databases.test421 is undefined + @http://localhost:7387/test421.js:38:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + + 4. UNDESCORE JOINSTAR + ‣ + + alasql.databases.test421 is undefined + @http://localhost:7387/test421.js:52:5 + Runnable.prototype.run@http://localhost:7387/lib/mocha/mocha.js:4354:7 + Runner.prototype.runTest@http://localhost:7387/lib/mocha/mocha.js:4782:5 + next/<@http://localhost:7387/lib/mocha/mocha.js:4860:7 + next@http://localhost:7387/lib/mocha/mocha.js:4707:1 + next/<@http://localhost:7387/lib/mocha/mocha.js:4717:7 + next@http://localhost:7387/lib/mocha/mocha.js:4655:1 + Runner.prototype.hook/<@http://localhost:7387/lib/mocha/mocha.js:4684:5 + timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:5 + diff --git a/test/!testlog/IE.md b/test/!testlog/IE.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/!testlog/SQLlogic Chakra.md b/test/!testlog/SQLlogic Chakra.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/!testlog/SQLlogic.md b/test/!testlog/SQLlogic.md new file mode 100644 index 0000000000..e7af42a0c8 --- /dev/null +++ b/test/!testlog/SQLlogic.md @@ -0,0 +1,36146 @@ +# SQLlogictest results for AlaSQL + +`2016-02-27T07:24:14.883Z target: alasql@0.2.3-develop-1210` + +This is a subset of the total 622 tests. +Results from 620 test files: + +---- ---- ---- ---- ---- ---- ---- +### 1/620 [`./test/evidence/in1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/in1.test) + +_Mimic sqlite_ + +```sql +SELECT 1 IN t1 + +Cannot read property 't1' of undefined +``` + + +```sql +INSERT INTO t5 SELECT * FROM t4 + +Cannot insert record, because it already exists in primary key index +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 216 tests as _sqlite_ + +* 148 skipped +* 19 failed +* 22% was OK + +Time: 187.665ms + +---- ---- ---- ---- ---- ---- ---- +### 2/620 [`./test/evidence/in2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/in2.test) + +_Mimic sqlite_ + +```sql +SELECT 1 FROM t1 WHERE 1 IN (SELECT 1,2) + +Expected to get an error but did not +``` + +#### ☓ Ran 53 tests as _sqlite_ + +* 4 failed +* 92% was OK + +Time: 109.357ms + +---- ---- ---- ---- ---- ---- ---- +### 3/620 [`./test/evidence/slt_lang_aggfunc.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_aggfunc.test) + +_Mimic sqlite_ + +```sql +SELECT avg(DISTINCT x) FROM t1 + +Expected: ["0"] but got ["0.500"] +``` + + +```sql +SELECT total(DISTINCT x) FROM t1 + +Unexpected token , +``` + + +```sql +SELECT avg(y) FROM t1 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT sum(y) FROM t1 + +Expected: ["0"] but got ["truefalseNULLtruetrue"] +``` + + +```sql +SELECT sum(DISTINCT y) FROM t1 + +Expected: ["0"] but got ["truefalseNULL"] +``` + + +```sql +SELECT count(DISTINCT *) FROM t1 WHERE y='false' + +Expected to get an error but did not +``` + + +```sql +SELECT sum(x) FROM t1 WHERE y='null' + +Expected: ["NULL"] but got ["0"] +``` + +#### ☓ Ran 80 tests as _sqlite_ + +* 37 failed +* 53% was OK + +Time: 173.514ms + +---- ---- ---- ---- ---- ---- ---- +### 4/620 [`./test/evidence/slt_lang_createtrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createtrigger.test) + +_Mimic sqlite_ + +```sql +CREATE TRIGGER t1r1 UPDATE ON t1 BEGIN SELECT 1; END; + +Expected to get an error but did not +``` + + +```sql +DROP TRIGGER t1r1 + +Cannot read property 'beforeinsert' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 26 tests as _sqlite_ + +* 9 skipped +* 2 failed +* 57% was OK + +Time: 41.364ms + +---- ---- ---- ---- ---- ---- ---- +### 5/620 [`./test/evidence/slt_lang_createview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createview.test) + +_Mimic sqlite_ + +```sql +SELECT x FROM view1 + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +DELETE FROM view1 WHERE x>0 + +Expected to get an error but did not +``` + +#### ☓ Ran 23 tests as _sqlite_ + +* 8 failed +* 65% was OK + +Time: 39.095ms + +---- ---- ---- ---- ---- ---- ---- +### 6/620 [`./test/evidence/slt_lang_dropindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropindex.test) + +_Mimic sqlite_ + +```sql +DROP INDEX t1i1; + +Expected to get an error but did not +``` + +#### ☓ Ran 8 tests as _sqlite_ + +* 2 failed +* 75% was OK + +Time: 9.138ms + +---- ---- ---- ---- ---- ---- ---- +### 7/620 [`./test/evidence/slt_lang_droptable.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptable.test) + +_Mimic sqlite_ + +```sql +DROP INDEX t1i1; + +Expected to get an error but did not +``` + +#### ☓ Ran 12 tests as _sqlite_ + +* 1 failed +* 91% was OK + +Time: 18.653ms + +---- ---- ---- ---- ---- ---- ---- +### 8/620 [`./test/evidence/slt_lang_droptrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptrigger.test) + +_Mimic sqlite_ + +```sql +DROP TRIGGER t1r1 + +Cannot read property 'beforeinsert' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 12 tests as _sqlite_ + +* 5 skipped +* 1 failed +* 50% was OK + +Time: 14.684ms + +---- ---- ---- ---- ---- ---- ---- +### 9/620 [`./test/evidence/slt_lang_dropview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropview.test) + +_Mimic sqlite_ + +```sql +SELECT x FROM view2 + +Expected: ["0"] but got ["NULL"] +``` + +#### ☓ Ran 13 tests as _sqlite_ + +* 1 failed +* 92% was OK + +Time: 27.652ms + +---- ---- ---- ---- ---- ---- ---- +### 10/620 [`./test/evidence/slt_lang_reindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_reindex.test) + +#### ★ Assuming all 7 tests still passes as _sqlite_ + +Time: 0.396ms + +---- ---- ---- ---- ---- ---- ---- +### 11/620 [`./test/evidence/slt_lang_replace.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_replace.test) + +#### ★ Assuming all 14 tests still passes as _sqlite_ + +Time: 0.537ms + +---- ---- ---- ---- ---- ---- ---- +### 12/620 [`./test/evidence/slt_lang_update.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_update.test) + +_Mimic sqlite_ + +```sql +UPDATE t1 SET z='foo' + +Expected to get an error but did not +``` + +#### ☓ Ran 27 tests as _sqlite_ + +* 2 failed +* 92% was OK + +Time: 55.898ms + +---- ---- ---- ---- ---- ---- ---- +### 13/620 [`./test/index/between/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((col0 IN (SELECT col3 FROM tab0 WHERE (((col0 > 9 OR col3 IN (SELECT col0 FROM tab0 WHERE col1 < 4.40) OR col3 BETWEEN 6 AND 3) AND col1 IS NULL OR (col3 < 1 AND col3 < 2))) OR (col3 IS NULL) AND col0 > 3) OR col3 > 9)) + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,022 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 73309.016ms + +---- ---- ---- ---- ---- ---- ---- +### 14/620 [`./test/index/between/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_0.test) + +#### ★ Assuming all 10,033 tests still passes as _sqlite_ + +Time: 0.546ms + +---- ---- ---- ---- ---- ---- ---- +### 15/620 [`./test/index/between/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col4 < 28.47 AND col1 IN (SELECT col4 FROM tab0 WHERE (((col3 = 64 OR (((col3 IN (SELECT col0 FROM tab0 WHERE col3 BETWEEN 85 AND 52 OR (((col3 < 20)) AND col3 > 60)))))) AND col1 = 95.83))) + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,029 tests as _sqlite_ + +* 40 failed +* 99% was OK + +Time: 76099.241ms + +---- ---- ---- ---- ---- ---- ---- +### 16/620 [`./test/index/between/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col3 < 32) AND ((((col3 <= 73 AND col0 < 84 OR col0 >= 3 AND (((col4 < 22.55) OR col0 <= 88 AND (col4 <= 26.20) OR col3 < 9) AND col0 >= 80 AND col0 = 25 AND (((col3 = 9)))) OR (col3 <= 96) AND col1 < 20.30 AND col3 > 2 OR (col4 >= 34.97 OR ((col1 > 27.35))) AND ((col4 < … + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 40 failed +* 99% was OK + +Time: 79000.914ms + +---- ---- ---- ---- ---- ---- ---- +### 17/620 [`./test/index/between/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_3.test) + +#### ★ Assuming all 10,032 tests still passes as _sqlite_ + +Time: 0.360ms + +---- ---- ---- ---- ---- ---- ---- +### 18/620 [`./test/index/between/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_4.test) + +#### ★ Assuming all 10,032 tests still passes as _sqlite_ + +Time: 0.342ms + +---- ---- ---- ---- ---- ---- ---- +### 19/620 [`./test/index/between/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((col3 < 49 AND (col4 >= 2.37 AND col3 <= 34 OR (col0 > 45 AND col3 IN (84,55,60,5,10,51) AND col3 > 44)) AND ((col4 BETWEEN 85.7 AND 68.3 AND col0 > 12) OR col3 >= 61 AND col1 < 44.10 OR ((((col1 <= 88.54)) AND col3 BETWEEN 50 AND 64) AND col0 < 7) OR ((col0 > 68)) AND co… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,031 tests as _sqlite_ + +* 50 failed +* 99% was OK + +Time: 80199.144ms + +---- ---- ---- ---- ---- ---- ---- +### 20/620 [`./test/index/between/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_0.test) + +#### ★ Assuming all 10,123 tests still passes as _sqlite_ + +Time: 0.499ms + +---- ---- ---- ---- ---- ---- ---- +### 21/620 [`./test/index/between/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col0 < 732) OR (col4 IN (SELECT col1 FROM tab0 WHERE (((col3 IN (SELECT col0 FROM tab0 WHERE col4 > 814.80) AND col0 IS NULL AND ((col4 >= 266.93) OR col3 < 534) AND (col0 > 608) AND (col0 <= 34) AND col0 < 942)) OR col3 BETWEEN 616 AND 482)) AND col4 > 307.71 AND col0 > … + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,125 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 99210.697ms + +---- ---- ---- ---- ---- ---- ---- +### 22/620 [`./test/index/between/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col3 <= 554) AND col0 BETWEEN 735 AND 859 AND col0 IN (SELECT col3 FROM tab0 WHERE (col1 >= 36.15))) AND ((((col1 <= 171.81))))) AND col4 < 379.48 OR col4 IS NULL AND col1 >= 914.18 OR col3 >= 324 OR ((col4 > 84.85 AND col0 >= … + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,121 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 98315.648ms + +---- ---- ---- ---- ---- ---- ---- +### 23/620 [`./test/index/between/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col4 IN (SELECT col1 FROM tab0 WHERE col3 IN (808,18,855,768,767,23) AND ((col0 > 394 AND col1 = 993.11 AND col3 < 701 AND col3 >= 317 OR ((col0 <= 101 OR col0 < 928)) AND (col3 IN (SELECT col0 FROM tab0 WHERE ((col3 >= 671) OR col0 > 775) AND ((((col0 <= 903 OR (col0 > 9)… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,121 tests as _sqlite_ + +* 40 failed +* 99% was OK + +Time: 91529.833ms + +---- ---- ---- ---- ---- ---- ---- +### 24/620 [`./test/index/between/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE col4 IN (SELECT col1 FROM tab0 WHERE (((((((col3 BETWEEN 320 AND 970 AND col3 <= 223) OR col4 <= 829.17) AND (col3 >= 651 AND (col3 < 768 OR col0 > 379 OR ((col0 <= 960 OR ((((col4 >= 450.22 AND (col0 = 332 AND col3 < 129)) OR (col1 IN… + +Cannot read property '1' of undefined +``` + +#### ☓ Ran 10,125 tests as _sqlite_ + +* 50 failed +* 99% was OK + +Time: 98940.147ms + +---- ---- ---- ---- ---- ---- ---- +### 25/620 [`./test/index/between/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col0 > 2377 OR ((col1 > 2834.62)) AND (col0 IS NULL OR (col4 < 7463.98 AND (col3 <= 1805)) OR ((col3 >= 5222))) AND col0 <= 9495 AND col3 IN (SELECT col0 FROM tab0 WHERE col1 >= 6814.64 OR (col1 > 7430.5) AND col3 > 6478 OR col3 < 2867 AND col1 > 1953.89 AND (col3 >= 2268 … + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 3,792 tests as _sqlite_ + +* 11 failed +* 99% was OK + +Time: 138487.007ms + +---- ---- ---- ---- ---- ---- ---- +### 26/620 [`./test/index/commute/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((((col4 < 26.48))) AND col4 IN (SELECT col1 FROM tab0 WHERE (col3 < 55 OR ((col0 >= 53 AND (((((col0 > 8) AND (((col3 IN (SELECT col0 FROM tab0 WHERE col0 < 65 AND col1 > 42.32)) OR col1 IS NULL OR col3 > 84 OR (col4 IS NULL)) OR ((col0 <= 9))))) AND col0 IN (1))) OR col3… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 29538.263ms + +---- ---- ---- ---- ---- ---- ---- +### 27/620 [`./test/index/commute/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_1.test) + +#### ★ Assuming all 10,030 tests still passes as _sqlite_ + +Time: 1.016ms + +---- ---- ---- ---- ---- ---- ---- +### 28/620 [`./test/index/commute/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_10.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 >= 18 AND ((col4 > 53.9)) OR col3 IN (SELECT col0 FROM tab0 WHERE (col0 < 49 AND col1 > 94.70 AND col0 IN (SELECT col3 FROM tab0 WHERE col0 >= 91) AND (col3 BETWEEN 85 AND 24 OR col0 >= 69))) + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 4,261 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 14345.798ms + +---- ---- ---- ---- ---- ---- ---- +### 29/620 [`./test/index/commute/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_11.test) + +#### ★ Assuming all 10,032 tests still passes as _sqlite_ + +Time: 0.661ms + +---- ---- ---- ---- ---- ---- ---- +### 30/620 [`./test/index/commute/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_12.test) + +#### ★ Assuming all 10,031 tests still passes as _sqlite_ + +Time: 0.973ms + +---- ---- ---- ---- ---- ---- ---- +### 31/620 [`./test/index/commute/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_13.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE col0 IN (42,31,88,70,42,7) AND col1 <= 23.6 OR (col3 > 8 OR col3 IS NULL))) AND (col0 > 99) + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 30 failed +* 99% was OK + +Time: 61560.756ms + +---- ---- ---- ---- ---- ---- ---- +### 32/620 [`./test/index/commute/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_14.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col4 IN (SELECT col1 FROM tab0 WHERE ((col3 >= 17 AND col3 > 34 AND ((((col1 < 73.21))) AND (col3 >= 34) AND col0 IN (SELECT col3 FROM tab0 WHERE col1 > 9.76) OR col1 >= 9.67) OR col0 < 84 AND ((col4 > 67.64)) OR ((col3 IS NULL AND col1 < 8.67)) AND (col3 = 91 AND col0 > 7… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 46095.230ms + +---- ---- ---- ---- ---- ---- ---- +### 33/620 [`./test/index/commute/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_15.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col0 > 15 OR (col3 IN (SELECT col0 FROM tab0 WHERE col0 > 84 AND (col0 = 88) AND col3 = 71 AND col3 > 13 AND col1 < 21.44 AND col0 <= 5 AND col3 IN (15,13) OR (col4 IN (SELECT col1 FROM tab0 WHERE col0 <= 59) AND (((((col0 >= 13))) AND col4 >= 25.56 AND ((col4 <= 29.73 AND… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,030 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 42455.635ms + +---- ---- ---- ---- ---- ---- ---- +### 34/620 [`./test/index/commute/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_16.test) + +#### ★ Assuming all 10,032 tests still passes as _sqlite_ + +Time: 0.949ms + +---- ---- ---- ---- ---- ---- ---- +### 35/620 [`./test/index/commute/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_17.test) + +#### ★ Assuming all 10,031 tests still passes as _sqlite_ + +Time: 5.559ms + +---- ---- ---- ---- ---- ---- ---- +### 36/620 [`./test/index/commute/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_18.test) + +#### ★ Assuming all 10,034 tests still passes as _sqlite_ + +Time: 0.618ms + +---- ---- ---- ---- ---- ---- ---- +### 37/620 [`./test/index/commute/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_19.test) + +#### ★ Assuming all 10,031 tests still passes as _sqlite_ + +Time: 2.676ms + +---- ---- ---- ---- ---- ---- ---- +### 38/620 [`./test/index/commute/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_2.test) + +#### ★ Assuming all 10,037 tests still passes as _sqlite_ + +Time: 6.319ms + +---- ---- ---- ---- ---- ---- ---- +### 39/620 [`./test/index/commute/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_20.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col4 <= 98.22) OR col4 < 79.66 OR col4 <= 22.62) AND (col3 >= 32) + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 61376.843ms + +---- ---- ---- ---- ---- ---- ---- +### 40/620 [`./test/index/commute/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_21.test) + +#### ★ Assuming all 10,030 tests still passes as _sqlite_ + +Time: 0.722ms + +---- ---- ---- ---- ---- ---- ---- +### 41/620 [`./test/index/commute/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_22.test) + +#### ★ Assuming all 10,033 tests still passes as _sqlite_ + +Time: 0.569ms + +---- ---- ---- ---- ---- ---- ---- +### 42/620 [`./test/index/commute/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_23.test) + +#### ★ Assuming all 10,033 tests still passes as _sqlite_ + +Time: 0.569ms + +---- ---- ---- ---- ---- ---- ---- +### 43/620 [`./test/index/commute/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_24.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col1 IN (SELECT col4 FROM tab0 WHERE col0 IS NULL OR col3 IN (SELECT col0 FROM tab0 WHERE col3 > 99 AND (col3 > 89 AND col0 > 36))) + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,033 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 45464.359ms + +---- ---- ---- ---- ---- ---- ---- +### 44/620 [`./test/index/commute/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_25.test) + +#### ★ Assuming all 10,030 tests still passes as _sqlite_ + +Time: 0.474ms + +---- ---- ---- ---- ---- ---- ---- +### 45/620 [`./test/index/commute/10/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_26.test) + +#### ★ Assuming all 10,031 tests still passes as _sqlite_ + +Time: 0.398ms + +---- ---- ---- ---- ---- ---- ---- +### 46/620 [`./test/index/commute/10/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_27.test) + +#### ★ Assuming all 10,033 tests still passes as _sqlite_ + +Time: 0.397ms + +---- ---- ---- ---- ---- ---- ---- +### 47/620 [`./test/index/commute/10/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_28.test) + +#### ★ Assuming all 10,033 tests still passes as _sqlite_ + +Time: 0.406ms + +---- ---- ---- ---- ---- ---- ---- +### 48/620 [`./test/index/commute/10/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_29.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((col3 < 0)) OR col3 < 68 AND (col3 = 11) OR col4 IN (SELECT col1 FROM tab0 WHERE col1 IN (SELECT col4 FROM tab0 WHERE (col1 = 28.45))) AND col0 > 89 OR col4 > 99.5 AND col0 < 4 AND col3 <= 46 + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 56278.121ms + +---- ---- ---- ---- ---- ---- ---- +### 49/620 [`./test/index/commute/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_3.test) + +#### ★ Assuming all 10,032 tests still passes as _sqlite_ + +Time: 0.405ms + +---- ---- ---- ---- ---- ---- ---- +### 50/620 [`./test/index/commute/10/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_30.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col0 = 27 OR (col4 <= 97.74 OR col3 <= 1 AND col0 > 6 OR col0 IN (40,62,6,92,71) OR col1 >= 60.26) AND col3 IN (SELECT col0 FROM tab0 WHERE col1 > 79.94 AND (col3 IS NULL)) OR (((col0 > 29 OR ((col0 > 17)) AND col0 >= 66))) OR col0 > 10… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 41857.384ms + +---- ---- ---- ---- ---- ---- ---- +### 51/620 [`./test/index/commute/10/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_31.test) + +#### ★ Assuming all 10,033 tests still passes as _sqlite_ + +Time: 0.483ms + +---- ---- ---- ---- ---- ---- ---- +### 52/620 [`./test/index/commute/10/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_32.test) + +#### ★ Assuming all 10,032 tests still passes as _sqlite_ + +Time: 0.487ms + +---- ---- ---- ---- ---- ---- ---- +### 53/620 [`./test/index/commute/10/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_33.test) + +#### ★ Assuming all 10,034 tests still passes as _sqlite_ + +Time: 0.418ms + +---- ---- ---- ---- ---- ---- ---- +### 54/620 [`./test/index/commute/10/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_34.test) + +#### ★ Assuming all 10,032 tests still passes as _sqlite_ + +Time: 0.441ms + +---- ---- ---- ---- ---- ---- ---- +### 55/620 [`./test/index/commute/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_4.test) + +#### ★ Assuming all 10,030 tests still passes as _sqlite_ + +Time: 0.428ms + +---- ---- ---- ---- ---- ---- ---- +### 56/620 [`./test/index/commute/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 <= 88 OR col0 IN (SELECT col3 FROM tab0 WHERE col3 IS NULL AND col3 >= 88 AND col0 = 0 AND (col0 IS NULL) AND col3 <= 25 AND (col4 > 37.85) OR (col1 IN (SELECT col4 FROM tab0 WHERE (col4 IN (92.81,73.37,41.28,48.15,77.90)) OR (col0 > 11) AND col3 >= 77 AND col1 IN (89… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 48223.595ms + +---- ---- ---- ---- ---- ---- ---- +### 57/620 [`./test/index/commute/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 >= 22 AND col3 IS NULL OR (col0 <= 92 AND (col3 IN (82,73,69,28,90,98) OR ((col0 > 53))) AND col3 > 41) AND col1 < 7.43 AND ((col0 > 45)) AND col1 >= 86.98 OR col4 IN (98.61) AND col0 < 82 OR col3 IN (SELECT col0 FROM tab0 WHERE ((((col3 <= 2) OR col4 > 64.95 OR (col3… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,036 tests as _sqlite_ + +* 20 failed +* 99% was OK + +Time: 51176.863ms + +---- ---- ---- ---- ---- ---- ---- +### 58/620 [`./test/index/commute/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col1 > 33.14 OR (((col3 > 73 OR (col3 IN (63,42)))) AND ((((col0 IN (SELECT col3 FROM tab0 WHERE (col3 < 37) AND col0 > 24 OR (col1 IN (SELECT col4 FROM tab0 WHERE col1 > 49.28) OR col3 > 9))) OR col3 > 51 OR (col1 > 52.62)))) OR col0 IS NULL) OR ((((col4 = 81.75) OR (col0… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 40695.784ms + +---- ---- ---- ---- ---- ---- ---- +### 59/620 [`./test/index/commute/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_8.test) + +#### ★ Assuming all 10,032 tests still passes as _sqlite_ + +Time: 0.478ms + +---- ---- ---- ---- ---- ---- ---- +### 60/620 [`./test/index/commute/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col4 IN (SELECT col1 FROM tab0 WHERE ((col0 IN (SELECT col3 FROM tab0 WHERE col3 >= 39) AND col0 <= 84)))) AND col4 <= 14.38 + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 20 failed +* 99% was OK + +Time: 54969.513ms + +---- ---- ---- ---- ---- ---- ---- +### 61/620 [`./test/index/commute/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col4 < 749.14 AND (col3 >= 449 AND ((col3 = 703)) AND col0 > 373) AND (col3 < 160) AND col0 > 859 AND col1 BETWEEN 47.53 AND 235.98 AND col0 < 447 OR col3 <= 639 OR col1 IN (SELECT col4 FROM tab0 WHERE col4 > 401.5 AND ((col4 < 922.12 AND ((col0 > 154) AND (col1 IN (SELECT… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,122 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 72474.690ms + +---- ---- ---- ---- ---- ---- ---- +### 62/620 [`./test/index/commute/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_1.test) + +#### ★ Assuming all 10,120 tests still passes as _sqlite_ + +Time: 2.264ms + +---- ---- ---- ---- ---- ---- ---- +### 63/620 [`./test/index/commute/100/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_10.test) + +#### ★ Assuming all 10,124 tests still passes as _sqlite_ + +Time: 0.613ms + +---- ---- ---- ---- ---- ---- ---- +### 64/620 [`./test/index/commute/100/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_11.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col1 > 934.79 OR (col0 <= 122) AND col3 IN (572,775,935,506) OR (col1 <= 126.68) OR col3 IN (SELECT col0 FROM tab0 WHERE ((col3 IN (SELECT col0 FROM tab0 WHERE (col0 <= 963) AND col4 < 611.64 AND ((col4 > 507.11))) OR ((col1 > 59.38 AND (col4 >= 918.90)))))) AND col3 <= 93 + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,123 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 56481.464ms + +---- ---- ---- ---- ---- ---- ---- +### 65/620 [`./test/index/commute/100/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_12.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col0 BETWEEN 408 AND 366 OR (col3 IN (SELECT col0 FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col0 <= 560)) OR col3 > 127) + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,123 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 48855.551ms + +---- ---- ---- ---- ---- ---- ---- +### 66/620 [`./test/index/commute/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_2.test) + +#### ★ Assuming all 10,123 tests still passes as _sqlite_ + +Time: 2.534ms + +---- ---- ---- ---- ---- ---- ---- +### 67/620 [`./test/index/commute/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE ((((((((col3 < 927) OR col0 BETWEEN 727 AND 937 OR col0 = 89))))) AND col0 BETWEEN 817 AND 967) OR col3 IN (SELECT col0 FROM tab0 WHERE col0 < 797))) + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,121 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 75190.133ms + +---- ---- ---- ---- ---- ---- ---- +### 68/620 [`./test/index/commute/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col0 >= 640 OR ((col3 IN (SELECT col0 FROM tab0 WHERE (col3 IN (SELECT col0 FROM tab0 WHERE (col1 < 98.26)) OR (col3 < 181) AND col4 < 574.65) OR (col1 <= 733.28)) AND col0 > 357) AND (((col0 >= 686))) AND col3 = 476 AND col3 > 153 AND ((col0 < 909)) AND ((col0 > 631 AND (… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,124 tests as _sqlite_ + +* 30 failed +* 99% was OK + +Time: 71705.852ms + +---- ---- ---- ---- ---- ---- ---- +### 69/620 [`./test/index/commute/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_5.test) + +#### ★ Assuming all 10,121 tests still passes as _sqlite_ + +Time: 2.727ms + +---- ---- ---- ---- ---- ---- ---- +### 70/620 [`./test/index/commute/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col1 >= 775.92 OR (col3 < 898 AND (col4 IN (SELECT col1 FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col4 < 552.87)) AND ((col0 <= 166)) AND col3 IS NULL AND col3 <= 883 OR col4 >= 1.64 AND (((col0 <= 832) OR (col3 <= 130))))) OR col1 > 641.85 AND (((col4 < 803.30)… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,122 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 39673.210ms + +---- ---- ---- ---- ---- ---- ---- +### 71/620 [`./test/index/commute/100/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_7.test) + +#### ★ Assuming all 10,123 tests still passes as _sqlite_ + +Time: 0.728ms + +---- ---- ---- ---- ---- ---- ---- +### 72/620 [`./test/index/commute/100/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col0 = 783) AND col0 >= 334 OR ((col0 > 336 OR col1 < 601.60 AND ((((((col4 > 896.38)) AND col3 > 417)) OR (col4 > 98.79 AND (((col0 >= 184) AND (col4 > 480.55 OR col0 > 561 AND col0 >= 133 AND (col0 < 937))) OR col3 > 684 OR col3 > 499 AND col0 < 895)) AND ((col0 < 706))… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,122 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 42451.350ms + +---- ---- ---- ---- ---- ---- ---- +### 73/620 [`./test/index/commute/100/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_9.test) + +#### ★ Assuming all 10,123 tests still passes as _sqlite_ + +Time: 0.404ms + +---- ---- ---- ---- ---- ---- ---- +### 74/620 [`./test/index/commute/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_0.test) + +#### ★ Assuming all 4,741 tests still passes as _sqlite_ + +Time: 0.341ms + +---- ---- ---- ---- ---- ---- ---- +### 75/620 [`./test/index/commute/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((((col0 IN (SELECT col3 FROM tab0 WHERE col3 = 7862 OR (col0 > 7104) AND col3 IN (SELECT col0 FROM tab0 WHERE ((col4 < 3774.80))) OR col0 >= 4545 OR (col3 > 1867) AND col1 >= 3341.69 AND col1 <= 8546.42 AND col0 <= 6797 AND col0 = 9644 AND (col3 IN (8505,121,8833,5588,941… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,583 tests as _sqlite_ + +* 20 failed +* 99% was OK + +Time: 212045.138ms + +---- ---- ---- ---- ---- ---- ---- +### 76/620 [`./test/index/commute/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE col1 < 444.10)) AND col4 >= 7680.91) + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 11,021 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 307662.244ms + +---- ---- ---- ---- ---- ---- ---- +### 77/620 [`./test/index/commute/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_3.test) + +#### ★ Assuming all 11,025 tests still passes as _sqlite_ + +Time: 0.624ms + +---- ---- ---- ---- ---- ---- ---- +### 78/620 [`./test/index/delete/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1/slt_good_0.test) + +#### ★ Assuming all 10,907 tests still passes as _sqlite_ + +Time: 0.481ms + +---- ---- ---- ---- ---- ---- ---- +### 79/620 [`./test/index/delete/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_0.test) + +#### ★ Assuming all 10,730 tests still passes as _sqlite_ + +Time: 0.534ms + +---- ---- ---- ---- ---- ---- ---- +### 80/620 [`./test/index/delete/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_1.test) + +#### ★ Assuming all 10,774 tests still passes as _sqlite_ + +Time: 0.800ms + +---- ---- ---- ---- ---- ---- ---- +### 81/620 [`./test/index/delete/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_2.test) + +#### ★ Assuming all 9,390 tests still passes as _sqlite_ + +Time: 0.577ms + +---- ---- ---- ---- ---- ---- ---- +### 82/620 [`./test/index/delete/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_3.test) + +#### ★ Assuming all 10,065 tests still passes as _sqlite_ + +Time: 1.326ms + +---- ---- ---- ---- ---- ---- ---- +### 83/620 [`./test/index/delete/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_4.test) + +#### ★ Assuming all 10,599 tests still passes as _sqlite_ + +Time: 0.616ms + +---- ---- ---- ---- ---- ---- ---- +### 84/620 [`./test/index/delete/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_5.test) + +#### ★ Assuming all 10,353 tests still passes as _sqlite_ + +Time: 0.553ms + +---- ---- ---- ---- ---- ---- ---- +### 85/620 [`./test/index/delete/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_0.test) + +#### ★ Assuming all 11,145 tests still passes as _sqlite_ + +Time: 0.566ms + +---- ---- ---- ---- ---- ---- ---- +### 86/620 [`./test/index/delete/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_1.test) + +#### ★ Assuming all 10,895 tests still passes as _sqlite_ + +Time: 0.527ms + +---- ---- ---- ---- ---- ---- ---- +### 87/620 [`./test/index/delete/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_2.test) + +#### ★ Assuming all 11,033 tests still passes as _sqlite_ + +Time: 0.573ms + +---- ---- ---- ---- ---- ---- ---- +### 88/620 [`./test/index/delete/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_3.test) + +#### ★ Assuming all 10,942 tests still passes as _sqlite_ + +Time: 4.355ms + +---- ---- ---- ---- ---- ---- ---- +### 89/620 [`./test/index/delete/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_0.test) + +#### ★ Assuming all 11,924 tests still passes as _sqlite_ + +Time: 0.547ms + +---- ---- ---- ---- ---- ---- ---- +### 90/620 [`./test/index/delete/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_1.test) + +#### ★ Assuming all 11,838 tests still passes as _sqlite_ + +Time: 0.606ms + +---- ---- ---- ---- ---- ---- ---- +### 91/620 [`./test/index/delete/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10000/slt_good_0.test) + +#### ★ Assuming all 20,347 tests still passes as _sqlite_ + +Time: 0.543ms + +---- ---- ---- ---- ---- ---- ---- +### 92/620 [`./test/index/in/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab0 WHERE col3 IN (74,13,49,39,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 … + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,035 tests as _sqlite_ + +* 30 failed +* 99% was OK + +Time: 164124.546ms + +---- ---- ---- ---- ---- ---- ---- +### 93/620 [`./test/index/in/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((col0 IN (SELECT col3 FROM tab0 WHERE (col3 IN (SELECT col0 FROM tab0 WHERE col1 > 74.44))) AND ((col3 IN (73,90)) OR col4 > 54.25 OR (col0 IN (58,68,2) AND col0 = 51 OR col1 > 30.12)))) OR col3 < 34 + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,036 tests as _sqlite_ + +* 30 failed +* 99% was OK + +Time: 191676.558ms + +---- ---- ---- ---- ---- ---- ---- +### 94/620 [`./test/index/in/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_2.test) + +#### ★ Assuming all 10,035 tests still passes as _sqlite_ + +Time: 0.948ms + +---- ---- ---- ---- ---- ---- ---- +### 95/620 [`./test/index/in/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_3.test) + +#### ★ Assuming all 10,037 tests still passes as _sqlite_ + +Time: 0.942ms + +---- ---- ---- ---- ---- ---- ---- +### 96/620 [`./test/index/in/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col0 = 32 AND col0 > 66 AND ((col0 IS NULL)) OR (col4 <= 40.93) AND ((col3 <= 55)) OR ((col3 > 88)) OR ((col3 < 42) AND col0 < 32 OR (col3 > 72) AND col3 IN (99,86,86,87,87,11) AND (((col0 > 51)))) OR ((col4 < 3.44)) OR (col1 IN (92.43) OR ((col3 = 32))) AND (((col3 = 23))… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,038 tests as _sqlite_ + +* 30 failed +* 99% was OK + +Time: 158706.301ms + +---- ---- ---- ---- ---- ---- ---- +### 97/620 [`./test/index/in/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col4 IN (SELECT col1 FROM tab0 WHERE ((col0 > 26)) AND ((((col0 IN (24,73,85,15,54,8))) AND col0 = 39 AND col3 <= 66 AND col4 < 93.31 OR (col0 IS NULL) AND ((((col1 IS NULL) OR col0 = 49) OR (col0 IS NULL AND ((col4 >= 38.72 OR col0 >= 43)) OR col0 IS NULL AND col4 >= 21.… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,038 tests as _sqlite_ + +* 15 failed +* 99% was OK + +Time: 189836.512ms + +---- ---- ---- ---- ---- ---- ---- +### 98/620 [`./test/index/in/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE (((col4 IN (SELECT col1 FROM tab0 WHERE ((col0 >= 975))) OR col1 BETWEEN 323.0 AND 982.34 OR (((col0 IN (251,821,693,586,116) AND col0 IN (810,408) AND (col1 > 722.50 AND col4 < 359.60)))) AND col4 <= 244.64 AND col1 > 83.19) OR col0 IS… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,128 tests as _sqlite_ + +* 30 failed +* 99% was OK + +Time: 274321.205ms + +---- ---- ---- ---- ---- ---- ---- +### 99/620 [`./test/index/in/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col4 > 945.15 AND col0 <= 745 AND (col3 < 668 OR col3 IN (SELECT col0 FROM tab0 WHERE (col3 = 227) AND (col3 = 758) AND col4 >= 234.80 OR (col0 IS NULL) OR (col0 IN (455,424,243,331,768)) AND col4 < 813.43 OR col0 > 392 OR col1 BETWEEN 990.61 AND 364.96 OR col0 <= 886 AND… + +Cannot read property '1' of undefined +``` + +#### ☓ Ran 10,127 tests as _sqlite_ + +* 15 failed +* 99% was OK + +Time: 155171.409ms + +---- ---- ---- ---- ---- ---- ---- +### 100/620 [`./test/index/in/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col1 >= 196.55 AND ((((col0 <= 274)) AND col0 > 676 OR (((col0 < 747 AND (col1 < 448.35)))) OR (col3 IN (SELECT col0 FROM tab0 WHERE col3 > 612) AND (col0 IN (84,102,155,846)) AND (col3 < 664)) OR col0 >= 909 OR (col0 = 936) AND (col4 >= 226.22))) AND col0 <= 835 OR col1 … + +Cannot read property '1' of undefined +``` + +#### ☓ Ran 10,128 tests as _sqlite_ + +* 15 failed +* 99% was OK + +Time: 132079.789ms + +---- ---- ---- ---- ---- ---- ---- +### 101/620 [`./test/index/in/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (((((((col0 <= 382))) AND col4 IN (SELECT col1 FROM tab0 WHERE (col0 <= 332 OR (((col1 < 576.83)) OR col1 <= 724.21 OR col0 BETWEEN 587 AND 730 OR (col3 > 794 AND col1 IN (SELECT col4 FROM tab0 WHERE col1 IN (0.79,673.92,13.18,990.13) AND col4 >= 532.39))))))))) AND (((col… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,126 tests as _sqlite_ + +* 15 failed +* 99% was OK + +Time: 131436.468ms + +---- ---- ---- ---- ---- ---- ---- +### 102/620 [`./test/index/in/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col0 > 793) AND col3 < 242 AND (((((col0 IS NULL AND col3 < 254)) AND ((col0 >= 221) OR col3 < 269 AND (col3 IS NULL) AND (((col3 = 922) AND col0 <= 264 AND (col0 <= 157) AND col0 > 495) AND (col3 < 188)) AND ((col4 = 842.46) OR col3 >= 851 OR col4 IN (SELECT col1 FROM ta… + +Cannot read property '1' of undefined +``` + +#### ☓ Ran 10,127 tests as _sqlite_ + +* 15 failed +* 99% was OK + +Time: 158774.712ms + +---- ---- ---- ---- ---- ---- ---- +### 103/620 [`./test/index/in/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (((col4 >= 6897.58 AND col0 IN (7530,4312)) AND col1 <= 494.83 AND (col3 > 7877 OR col0 > 8556) OR (col3 IN (SELECT col0 FROM tab0 WHERE ((((col1 >= 3878.9)) AND col0 <= 9103 OR col3 = 6252 OR col3 > 30 AND (col0 < 8923 AND col4 = 8696.1 AND col3 IS NULL) AND (col0 <= 9125… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 11,028 tests as _sqlite_ + +* 60 failed +* 99% was OK + +Time: 628724.056ms + +---- ---- ---- ---- ---- ---- ---- +### 104/620 [`./test/index/in/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_1.test) + +#### ★ Assuming all 11,024 tests still passes as _sqlite_ + +Time: 1.388ms + +---- ---- ---- ---- ---- ---- ---- +### 105/620 [`./test/index/orderby/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_0.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 0.435ms + +---- ---- ---- ---- ---- ---- ---- +### 106/620 [`./test/index/orderby/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_1.test) + +#### ★ Assuming all 10,054 tests still passes as _sqlite_ + +Time: 0.367ms + +---- ---- ---- ---- ---- ---- ---- +### 107/620 [`./test/index/orderby/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_10.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 0.414ms + +---- ---- ---- ---- ---- ---- ---- +### 108/620 [`./test/index/orderby/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_11.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 1.415ms + +---- ---- ---- ---- ---- ---- ---- +### 109/620 [`./test/index/orderby/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_12.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 0.453ms + +---- ---- ---- ---- ---- ---- ---- +### 110/620 [`./test/index/orderby/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_13.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 1.654ms + +---- ---- ---- ---- ---- ---- ---- +### 111/620 [`./test/index/orderby/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_14.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 0.491ms + +---- ---- ---- ---- ---- ---- ---- +### 112/620 [`./test/index/orderby/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_15.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 2.526ms + +---- ---- ---- ---- ---- ---- ---- +### 113/620 [`./test/index/orderby/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_16.test) + +#### ★ Assuming all 10,050 tests still passes as _sqlite_ + +Time: 0.493ms + +---- ---- ---- ---- ---- ---- ---- +### 114/620 [`./test/index/orderby/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_17.test) + +#### ★ Assuming all 10,054 tests still passes as _sqlite_ + +Time: 1.271ms + +---- ---- ---- ---- ---- ---- ---- +### 115/620 [`./test/index/orderby/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_18.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 0.528ms + +---- ---- ---- ---- ---- ---- ---- +### 116/620 [`./test/index/orderby/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_19.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 1.019ms + +---- ---- ---- ---- ---- ---- ---- +### 117/620 [`./test/index/orderby/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_2.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 0.491ms + +---- ---- ---- ---- ---- ---- ---- +### 118/620 [`./test/index/orderby/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_20.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col4 < 384.93 OR col1 < 239.78 OR col4 = 233.10 OR (col3 IN (SELECT col0 FROM tab0 WHERE (col0 > 428) OR col3 > 471 AND col3 IN (SELECT col0 FROM tab0 WHERE col0 < 986 AND (col3 < 892)) OR col0 = 201 AND col1 >= 908.84))) OR col4 = 925.62 OR col3 >= 628 AND col1 > 669.11 … + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,052 tests as _sqlite_ + +* 60 failed +* 99% was OK + +Time: 45654.161ms + +---- ---- ---- ---- ---- ---- ---- +### 119/620 [`./test/index/orderby/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_21.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 0.500ms + +---- ---- ---- ---- ---- ---- ---- +### 120/620 [`./test/index/orderby/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_22.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.466ms + +---- ---- ---- ---- ---- ---- ---- +### 121/620 [`./test/index/orderby/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_23.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 1.518ms + +---- ---- ---- ---- ---- ---- ---- +### 122/620 [`./test/index/orderby/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_24.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 0.440ms + +---- ---- ---- ---- ---- ---- ---- +### 123/620 [`./test/index/orderby/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_25.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 0.443ms + +---- ---- ---- ---- ---- ---- ---- +### 124/620 [`./test/index/orderby/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_3.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 0.544ms + +---- ---- ---- ---- ---- ---- ---- +### 125/620 [`./test/index/orderby/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_4.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.465ms + +---- ---- ---- ---- ---- ---- ---- +### 126/620 [`./test/index/orderby/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_5.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 0.538ms + +---- ---- ---- ---- ---- ---- ---- +### 127/620 [`./test/index/orderby/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_6.test) + +#### ★ Assuming all 10,048 tests still passes as _sqlite_ + +Time: 0.488ms + +---- ---- ---- ---- ---- ---- ---- +### 128/620 [`./test/index/orderby/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_7.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.455ms + +---- ---- ---- ---- ---- ---- ---- +### 129/620 [`./test/index/orderby/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_8.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 0.484ms + +---- ---- ---- ---- ---- ---- ---- +### 130/620 [`./test/index/orderby/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_9.test) + +#### ★ Assuming all 10,050 tests still passes as _sqlite_ + +Time: 0.513ms + +---- ---- ---- ---- ---- ---- ---- +### 131/620 [`./test/index/orderby/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_0.test) + +#### ★ Assuming all 10,141 tests still passes as _sqlite_ + +Time: 0.576ms + +---- ---- ---- ---- ---- ---- ---- +### 132/620 [`./test/index/orderby/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_1.test) + +#### ★ Assuming all 10,140 tests still passes as _sqlite_ + +Time: 0.455ms + +---- ---- ---- ---- ---- ---- ---- +### 133/620 [`./test/index/orderby/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_2.test) + +#### ★ Assuming all 10,142 tests still passes as _sqlite_ + +Time: 0.460ms + +---- ---- ---- ---- ---- ---- ---- +### 134/620 [`./test/index/orderby/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((col1 IN (SELECT col4 FROM tab0 WHERE (col3 IN (SELECT col0 FROM tab0 WHERE col1 > 474.87)) AND col3 > 159))) ORDER BY 1 DESC + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 10,140 tests as _sqlite_ + +* 60 failed +* 99% was OK + +Time: 68456.074ms + +---- ---- ---- ---- ---- ---- ---- +### 135/620 [`./test/index/orderby/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/1000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((((col1 <= 7103.46 AND col0 > 2211 AND col0 > 4703 AND col3 <= 2105 AND col4 > 1731.51 OR (col0 > 3287) AND col3 <= 5111 AND col4 >= 8249.41 AND ((col3 <= 6788) AND ((col4 IS NULL) OR col0 >= 4782 OR col0 IN (SELECT col3 FROM tab0 WHERE col1 IN (SELECT col4 FROM tab0 WHER… + +Cannot read property '0' of undefined +``` + +#### ☓ Ran 11,043 tests as _sqlite_ + +* 60 failed +* 99% was OK + +Time: 681540.741ms + +---- ---- ---- ---- ---- ---- ---- +### 136/620 [`./test/index/orderby_nosort/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_0.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 2.599ms + +---- ---- ---- ---- ---- ---- ---- +### 137/620 [`./test/index/orderby_nosort/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_1.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 0.419ms + +---- ---- ---- ---- ---- ---- ---- +### 138/620 [`./test/index/orderby_nosort/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_10.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 0.526ms + +---- ---- ---- ---- ---- ---- ---- +### 139/620 [`./test/index/orderby_nosort/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_11.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.477ms + +---- ---- ---- ---- ---- ---- ---- +### 140/620 [`./test/index/orderby_nosort/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_12.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 0.485ms + +---- ---- ---- ---- ---- ---- ---- +### 141/620 [`./test/index/orderby_nosort/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_13.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 0.417ms + +---- ---- ---- ---- ---- ---- ---- +### 142/620 [`./test/index/orderby_nosort/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_14.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.727ms + +---- ---- ---- ---- ---- ---- ---- +### 143/620 [`./test/index/orderby_nosort/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_15.test) + +#### ★ Assuming all 10,054 tests still passes as _sqlite_ + +Time: 1.546ms + +---- ---- ---- ---- ---- ---- ---- +### 144/620 [`./test/index/orderby_nosort/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_16.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 0.463ms + +---- ---- ---- ---- ---- ---- ---- +### 145/620 [`./test/index/orderby_nosort/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_17.test) + +#### ★ Assuming all 10,050 tests still passes as _sqlite_ + +Time: 1.407ms + +---- ---- ---- ---- ---- ---- ---- +### 146/620 [`./test/index/orderby_nosort/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_18.test) + +#### ★ Assuming all 10,050 tests still passes as _sqlite_ + +Time: 0.507ms + +---- ---- ---- ---- ---- ---- ---- +### 147/620 [`./test/index/orderby_nosort/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_19.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 1.704ms + +---- ---- ---- ---- ---- ---- ---- +### 148/620 [`./test/index/orderby_nosort/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_2.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.491ms + +---- ---- ---- ---- ---- ---- ---- +### 149/620 [`./test/index/orderby_nosort/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_20.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 1.824ms + +---- ---- ---- ---- ---- ---- ---- +### 150/620 [`./test/index/orderby_nosort/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_21.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.467ms + +---- ---- ---- ---- ---- ---- ---- +### 151/620 [`./test/index/orderby_nosort/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_22.test) + +#### ★ Assuming all 10,054 tests still passes as _sqlite_ + +Time: 1.504ms + +---- ---- ---- ---- ---- ---- ---- +### 152/620 [`./test/index/orderby_nosort/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_23.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 0.486ms + +---- ---- ---- ---- ---- ---- ---- +### 153/620 [`./test/index/orderby_nosort/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_24.test) + +#### ★ Assuming all 10,054 tests still passes as _sqlite_ + +Time: 2.513ms + +---- ---- ---- ---- ---- ---- ---- +### 154/620 [`./test/index/orderby_nosort/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_25.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.514ms + +---- ---- ---- ---- ---- ---- ---- +### 155/620 [`./test/index/orderby_nosort/10/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_26.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 0.579ms + +---- ---- ---- ---- ---- ---- ---- +### 156/620 [`./test/index/orderby_nosort/10/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_27.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 0.482ms + +---- ---- ---- ---- ---- ---- ---- +### 157/620 [`./test/index/orderby_nosort/10/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_28.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 1.506ms + +---- ---- ---- ---- ---- ---- ---- +### 158/620 [`./test/index/orderby_nosort/10/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_29.test) + +#### ★ Assuming all 10,050 tests still passes as _sqlite_ + +Time: 0.492ms + +---- ---- ---- ---- ---- ---- ---- +### 159/620 [`./test/index/orderby_nosort/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_3.test) + +#### ★ Assuming all 10,051 tests still passes as _sqlite_ + +Time: 1.501ms + +---- ---- ---- ---- ---- ---- ---- +### 160/620 [`./test/index/orderby_nosort/10/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_30.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.495ms + +---- ---- ---- ---- ---- ---- ---- +### 161/620 [`./test/index/orderby_nosort/10/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_31.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 1.516ms + +---- ---- ---- ---- ---- ---- ---- +### 162/620 [`./test/index/orderby_nosort/10/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_32.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.469ms + +---- ---- ---- ---- ---- ---- ---- +### 163/620 [`./test/index/orderby_nosort/10/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_33.test) + +#### ★ Assuming all 10,050 tests still passes as _sqlite_ + +Time: 2.224ms + +---- ---- ---- ---- ---- ---- ---- +### 164/620 [`./test/index/orderby_nosort/10/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_34.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.540ms + +---- ---- ---- ---- ---- ---- ---- +### 165/620 [`./test/index/orderby_nosort/10/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_35.test) + +#### ★ Assuming all 10,049 tests still passes as _sqlite_ + +Time: 1.680ms + +---- ---- ---- ---- ---- ---- ---- +### 166/620 [`./test/index/orderby_nosort/10/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_36.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.472ms + +---- ---- ---- ---- ---- ---- ---- +### 167/620 [`./test/index/orderby_nosort/10/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_37.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 2.877ms + +---- ---- ---- ---- ---- ---- ---- +### 168/620 [`./test/index/orderby_nosort/10/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_38.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 0.475ms + +---- ---- ---- ---- ---- ---- ---- +### 169/620 [`./test/index/orderby_nosort/10/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_39.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 1.706ms + +---- ---- ---- ---- ---- ---- ---- +### 170/620 [`./test/index/orderby_nosort/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_4.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 1.986ms + +---- ---- ---- ---- ---- ---- ---- +### 171/620 [`./test/index/orderby_nosort/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_5.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 2.141ms + +---- ---- ---- ---- ---- ---- ---- +### 172/620 [`./test/index/orderby_nosort/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_6.test) + +#### ★ Assuming all 10,053 tests still passes as _sqlite_ + +Time: 1.579ms + +---- ---- ---- ---- ---- ---- ---- +### 173/620 [`./test/index/orderby_nosort/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_7.test) + +#### ★ Assuming all 10,052 tests still passes as _sqlite_ + +Time: 2.550ms + +---- ---- ---- ---- ---- ---- ---- +### 174/620 [`./test/index/orderby_nosort/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_8.test) + +#### ★ Assuming all 10,054 tests still passes as _sqlite_ + +Time: 2.364ms + +---- ---- ---- ---- ---- ---- ---- +### 175/620 [`./test/index/orderby_nosort/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_9.test) + +#### ★ Assuming all 10,055 tests still passes as _sqlite_ + +Time: 1.382ms + +---- ---- ---- ---- ---- ---- ---- +### 176/620 [`./test/index/orderby_nosort/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_0.test) + +#### ★ Assuming all 10,149 tests still passes as _sqlite_ + +Time: 2.045ms + +---- ---- ---- ---- ---- ---- ---- +### 177/620 [`./test/index/orderby_nosort/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_1.test) + +#### ★ Assuming all 10,141 tests still passes as _sqlite_ + +Time: 1.565ms + +---- ---- ---- ---- ---- ---- ---- +### 178/620 [`./test/index/orderby_nosort/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_2.test) + +#### ★ Assuming all 10,142 tests still passes as _sqlite_ + +Time: 1.827ms + +---- ---- ---- ---- ---- ---- ---- +### 179/620 [`./test/index/orderby_nosort/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_3.test) + +#### ★ Assuming all 10,143 tests still passes as _sqlite_ + +Time: 1.823ms + +---- ---- ---- ---- ---- ---- ---- +### 180/620 [`./test/index/orderby_nosort/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_4.test) + +#### ★ Assuming all 10,141 tests still passes as _sqlite_ + +Time: 1.498ms + +---- ---- ---- ---- ---- ---- ---- +### 181/620 [`./test/index/orderby_nosort/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_5.test) + +#### ★ Assuming all 10,142 tests still passes as _sqlite_ + +Time: 0.590ms + +---- ---- ---- ---- ---- ---- ---- +### 182/620 [`./test/index/orderby_nosort/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_6.test) + +#### ★ Assuming all 10,144 tests still passes as _sqlite_ + +Time: 1.387ms + +---- ---- ---- ---- ---- ---- ---- +### 183/620 [`./test/index/orderby_nosort/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_0.test) + +#### ★ Assuming all 11,040 tests still passes as _sqlite_ + +Time: 5.427ms + +---- ---- ---- ---- ---- ---- ---- +### 184/620 [`./test/index/orderby_nosort/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_1.test) + +#### ★ Assuming all 11,043 tests still passes as _sqlite_ + +Time: 2.255ms + +---- ---- ---- ---- ---- ---- ---- +### 185/620 [`./test/index/random/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT + col2 FROM tab0 AS cor0 WHERE col3 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + + ( - - COUNT ( * ) ) FROM tab0 cor0 WHERE NULL <> col1 + +Expected: ["0"] but got ["10"] +``` + + +```sql +SELECT + col0 AS col0 FROM tab0 WHERE NOT + col0 IN ( - 67 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL AVG ( ALL col3 ) FROM tab0 WHERE ( NULL ) NOT IN ( - 87 * + 98 ) + +Expected: ["NULL"] but got ["411.800"] +``` + + +```sql +SELECT * FROM tab0 WHERE - - CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT 62 - - + CAST ( COUNT ( ALL col1 ) AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL + +g is not defined +``` + + +```sql +SELECT col2 AS col4 FROM tab0 WHERE - col1 > - 75 + +Expected: ["0"] but got ["ijika"] +``` + + +```sql +SELECT + MIN ( ALL 65 ), + CAST ( NULL AS INTEGER ) AS col4 FROM tab0 WHERE NULL IS NOT NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT - 49 + + MIN ( - col0 ) FROM tab0 WHERE NOT ( NOT + 99 NOT BETWEEN ( - + ( + col1 ) ) AND - col4 * - 99 * - col3 ) + +Expected: ["-953"] but got ["NULL"] +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 790 failed +* 92% was OK + +Time: 38550.737ms + +---- ---- ---- ---- ---- ---- ---- +### 186/620 [`./test/index/random/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT col2 col5 FROM tab0 WHERE NOT + col1 * col0 - - 45 = + 75 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - 42 AS col2 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, + COUNT ( * ) * + 7 col2 FROM tab0 AS cor0 WHERE NULL IS NULL + +Expected: ["NULL","70"] but got ["0","70"] +``` + + +```sql +SELECT 11 AS col0 FROM tab0 AS cor0 WHERE ( + 22 ) = ( CAST ( + col0 AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT ( 92 ) AS col5, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col3 ) > ( NULL ) + +Expected: ["92","0"] but got ["92","10"] +``` + + +```sql +SELECT ALL CAST ( SUM ( ALL + col3 ) AS INTEGER ) FROM tab0 WHERE + - 4 > - col1 + +g is not defined +``` + + +```sql +SELECT ALL + col2 FROM tab0 WHERE NOT - - 10 <= - + col4 - - col3 + +Expected: ["0","0","0","0"] but got ["hzanm","lktfw","mguub","mwyzu"] +``` + + +```sql +SELECT - 43 * MAX ( ALL - 96 * + col3 ) FROM tab0 WHERE NOT ( - col1 ) IN ( + ( 36 ) ) + +Expected: ["445824"] but got ["NULL"] +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 730 failed +* 92% was OK + +Time: 30321.652ms + +---- ---- ---- ---- ---- ---- ---- +### 187/620 [`./test/index/random/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_10.test) + +_Mimic sqlite_ + +```sql +SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL >= - col3 + +Expected: ["0"] but got ["10"] +``` + + +```sql +SELECT + col0 AS col1 FROM tab0 WHERE - CAST ( NULL AS REAL ) + - 89 BETWEEN NULL AND NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL + - ( + 76 ) FROM tab0 WHERE NOT + col4 * + + CAST ( NULL AS INTEGER ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + - 39 + + + 57 AS col5, - col3 AS col5 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT col5 FROM tab0 WHERE ( 99 ) NOT BETWEEN ( NULL ) AND col1 + +Expected: ["0"] but got ["eapur","fgqwx","igtci","oggnp","plcxd","qbrdd","qqeza","rywts","shkjt","zsgry"] +``` + + +```sql +SELECT ALL + SUM ( DISTINCT - col0 ) FROM tab0 WHERE NOT col5 IS NOT NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT ( + + col0 - + + col1 ) >= ( col1 ) + +Expected: ["0","0","0","0","0","0"] but got ["gaven","qlgja","qnpgu","xobsl","youok","yqgcu"] +``` + + +```sql +SELECT - 88 + + ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0 WHERE NULL IS NULL + +g is not defined +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 850 failed +* 91% was OK + +Time: 30884.063ms + +---- ---- ---- ---- ---- ---- ---- +### 188/620 [`./test/index/random/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_11.test) + +_Mimic sqlite_ + +```sql +SELECT + col2 AS col2 FROM tab0 WHERE NOT + + col3 + col3 BETWEEN col3 AND - col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col5 FROM tab0 WHERE 75 NOT BETWEEN - col1 * - - 7 AND ( - col0 ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT 26 + CAST ( - 80 AS INTEGER ) AS col5 FROM tab0 WHERE - ( + - 42 ) + col3 NOT BETWEEN NULL AND col1 + +Expected: ["-54","-54","-54","-54","-54","-54","-54"] but got ["-54","-54","-54","-54","-54","-54","-54","-54","-54","-54"] +``` + + +```sql +SELECT - 6 FROM tab0 AS cor0 WHERE col0 <= - CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT SUM ( ALL col4 ) FROM tab0 AS cor0 WHERE + col4 IS NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT MAX ( DISTINCT col3 ) AS col0 FROM tab0 AS cor0 WHERE NOT 31 * + - col1 BETWEEN ( col4 + + col3 + - col4 ) AND + 34 * col1 + +Expected: ["938"] but got ["NULL"] +``` + + +```sql +SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - 21 AS col1 FROM tab0 AS cor0 WHERE 43 * + - CAST ( NULL AS INTEGER ) IS NOT NULL + +g is not defined +``` + +#### ☓ Ran 10,031 tests as _sqlite_ + +* 790 failed +* 92% was OK + +Time: 33027.434ms + +---- ---- ---- ---- ---- ---- ---- +### 189/620 [`./test/index/random/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_12.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) - + - col3 BETWEEN - col1 AND NULL + +Wrong conversion type +``` + + +```sql +SELECT - + ( - col3 ) * - + col3 FROM tab0 AS cor0 WHERE NOT + 20 BETWEEN col4 * 57 AND - + col4 + col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE col4 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - COUNT ( ALL - col4 ) * - 71 + - 0 FROM tab0 AS cor0 WHERE NOT + 97 < NULL + +Expected: ["0"] but got ["710"] +``` + + +```sql +SELECT - MAX ( + 26 ) FROM tab0 AS cor0 WHERE NOT - col3 NOT BETWEEN + + col4 AND NULL + +Expected: ["NULL"] but got ["-26"] +``` + + +```sql +SELECT col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col3 < + 71 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0","0","0"] +``` + + +```sql +SELECT col5 AS col4 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN ( NULL ) AND ( + col1 ) + +Expected: ["0","0","0","0","0","0"] but got ["akvhd","duptn","efltn","gwglv","nermp","qvevz","qxdmc","qywiw","ucstb","ukpjw"] +``` + +#### ☓ Ran 10,033 tests as _sqlite_ + +* 860 failed +* 91% was OK + +Time: 32928.724ms + +---- ---- ---- ---- ---- ---- ---- +### 190/620 [`./test/index/random/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_13.test) + +_Mimic sqlite_ + +```sql +SELECT COUNT ( * ) AS col1, 28 FROM tab0 AS cor0 WHERE NULL IS NOT NULL + +Expected: ["0","28"] but got ["28","0"] +``` + + +```sql +SELECT - - CAST ( NULL AS INTEGER ) + col0 * 46 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) AS col4 FROM tab0 WHERE NOT NULL NOT BETWEEN 96 * + 33 / - 1 + 95 AND NULL + +g is not defined +``` + + +```sql +SELECT - 23 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) NOT BETWEEN NULL AND 69 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + 4 * + 69 AS col3 FROM tab0 WHERE NOT col0 BETWEEN NULL AND - + ( col4 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + ( SUM ( DISTINCT + col3 ) ) AS col2 FROM tab0 AS cor0 WHERE 6 / + col3 * + - ( - + 47 ) IS NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + MAX ( ( col3 ) ) / - - 2 - - - 2 AS col5 FROM tab0 WHERE NOT + col0 IN ( - col1, col3 + 57 ) + +Expected: ["458"] but got ["NULL"] +``` + + +```sql +SELECT + col5 col3 FROM tab0 WHERE + col1 NOT BETWEEN - 96 AND col0 + +Expected: ["0","0","0","0","0","0"] but got ["hbwys","kxrzu","qbdwp","vruch","xarlb","ybarm"] +``` + + +```sql +SELECT col5 AS col3 FROM tab0 WHERE NOT ( ( + 45 ) BETWEEN NULL AND col1 ) + +Expected: ["0"] but got ["hbwys","kxrzu","lkyfk","pavon","pfxqp","qbdwp","vruch","xarlb","ybarm","ziuqv"] +``` + + +```sql +SELECT DISTINCT - ( - ( - + CAST ( NULL AS INTEGER ) ) ), CAST ( NULL AS INTEGER ) + + 80 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL + +Expected: ["NULL","NULL"] but got ["0","80"] +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 885 failed +* 91% was OK + +Time: 29682.781ms + +---- ---- ---- ---- ---- ---- ---- +### 191/620 [`./test/index/random/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_14.test) + +_Mimic sqlite_ + +```sql +SELECT + col3 * + CAST ( + 1 AS REAL ) FROM tab0 AS cor0 WHERE NOT ( + - 75 ) * col3 / - - col1 * + + col4 * col4 < NULL + +Wrong conversion type +``` + + +```sql +SELECT - col3, + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + - 98 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( - - col1 - + - col3 IS NOT NULL ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT - + ( + ( - ( ( - COUNT ( * ) ) ) ) ) FROM tab0 AS cor0 WHERE NOT + col0 = NULL + +Expected: ["0"] but got ["-10"] +``` + + +```sql +SELECT + 10, + 54 FROM tab0 AS cor0 WHERE NOT 66 IN ( - ( + - col3 ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - + col3 AS col5, 78 AS col5 FROM tab0 cor0 WHERE 35 + col0 IS NOT NULL + +2 results returned but expected 20 +``` + + +```sql +SELECT ALL + col5 AS col3 FROM tab0 WHERE - + col1 NOT BETWEEN NULL AND - col3 + +Expected: ["0","0","0"] but got ["cnoua","dunwk","gxohz","jnwpl","kgygk","pfoxu","pgyvg","swdpn","tzczq","zdmee"] +``` + + +```sql +SELECT + ( - - MAX ( DISTINCT - col0 ) ) - - 76 AS col4, 30 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col3 ) + +Expected: ["NULL","30"] but got ["30","NULL"] +``` + +#### ☓ Ran 10,031 tests as _sqlite_ + +* 815 failed +* 91% was OK + +Time: 31564.108ms + +---- ---- ---- ---- ---- ---- ---- +### 192/620 [`./test/index/random/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT - col3 col3 FROM tab0 WHERE NOT - CAST ( - + col3 AS INTEGER ) BETWEEN NULL AND col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + COUNT ( * ) * 11 AS col3 FROM tab0 AS cor0 WHERE NOT NULL > NULL + +Expected: ["0"] but got ["110"] +``` + + +```sql +SELECT ALL col5 FROM tab0 AS cor0 WHERE NOT col1 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + 31 + - MIN ( - 42 ) FROM tab0 cor0 WHERE NOT - col3 * + col3 * + + col0 + + col4 BETWEEN col1 AND NULL + +Expected: ["73"] but got ["NULL"] +``` + + +```sql +SELECT col5 FROM tab0 WHERE - ( - col1 ) <= + col0 + +Expected: ["0","0","0","0","0","0"] but got ["bqisj","gtdhg","mylwf","tlesg","vrkrw","ylzxx"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col4 > + + col1 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT + CAST ( - SUM ( - col3 ) AS INTEGER ) col3 FROM tab0 WHERE + ( col3 ) NOT IN ( - 44 + col1 * + + col4, 39 ) + +g is not defined +``` + + +```sql +SELECT - 45 FROM tab0 AS cor0 WHERE NOT + col1 * 41 / + + 82 BETWEEN - col3 AND ( - + ( - 64 ) ) + +10 results returned but expected 9 +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 910 failed +* 90% was OK + +Time: 29075.632ms + +---- ---- ---- ---- ---- ---- ---- +### 193/620 [`./test/index/random/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col5 FROM tab0 AS cor0 WHERE + col4 * + col4 * + 24 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - COUNT ( * ) * 9 FROM tab0 WHERE NOT NULL <= ( + col1 ) + +Expected: ["0"] but got ["-90"] +``` + + +```sql +SELECT + col3 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 25 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + col2 AS col1 FROM tab0 WHERE NOT col1 <= col4 + +Expected: ["0","0","0","0","0"] but got ["ayfdf","iiegz","kaetk","reayu","unszc"] +``` + + +```sql +SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) + - 63 AS col0 FROM tab0 WHERE NULL NOT IN ( 71 ) + +g is not defined +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT - 89 IS NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT col5 col1 FROM tab0 AS cor0 WHERE NOT col0 < + col1 + +Expected: ["0","0"] but got ["hkqiq","wjfwi"] +``` + + +```sql +SELECT DISTINCT 83 * - 92 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col3, - CAST ( NULL AS INTEGER ) / col4 * + 52 AS col5 FROM tab0 AS cor0 WHERE col3 <= 81 + +Expected: ["NULL","NULL"] but got ["-7636","0"] +``` + + +```sql +SELECT - MIN ( DISTINCT col0 ) + 54 FROM tab0 WHERE NOT ( col1 + + col3 * + col0 ) IN ( col0 ) + +Expected: ["-130"] but got ["NULL"] +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 680 failed +* 93% was OK + +Time: 28388.470ms + +---- ---- ---- ---- ---- ---- ---- +### 194/620 [`./test/index/random/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + col5 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), ( + COUNT ( * ) ) FROM tab0 WHERE NOT + 26 IS NULL + +Expected: ["NULL","10"] but got ["0","10"] +``` + + +```sql +SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( - 12 ) <= NULL + +Expected: ["0"] but got ["10"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT - col3 - ( - ( - col1 ) ) NOT IN ( - 78 + - 95 * CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col4 FROM tab0 cor0 WHERE col0 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 WHERE ( NOT col0 NOT BETWEEN + col4 AND + + col1 ) + +g is not defined +``` + + +```sql +SELECT DISTINCT + MAX ( + col3 ) FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - + col3 + col3 AND + col0 + +Expected: ["922"] but got ["NULL"] +``` + +#### ☓ Ran 10,033 tests as _sqlite_ + +* 735 failed +* 92% was OK + +Time: 25696.592ms + +---- ---- ---- ---- ---- ---- ---- +### 195/620 [`./test/index/random/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT + col2 AS col5 FROM tab0 WHERE NOT ( col0 ) * - - col4 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - 81 FROM tab0 WHERE NOT col0 IN ( - 9 + + 10 * - + 68, col4 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ( - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 72 + - + col4 + col3 ) AND - ( CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT + - COUNT ( * ) AS col4 FROM tab0 AS cor0 WHERE 64 / col0 NOT BETWEEN - col1 AND + + CAST ( NULL AS INTEGER ) + +Expected: ["0"] but got ["-10"] +``` + + +```sql +SELECT + col2 col5 FROM tab0 AS cor0 WHERE ( col4 ) BETWEEN col0 AND - 96 * - col3 + +Expected: ["0","0","0"] but got ["amwpr","ehefd","uxbns"] +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 735 failed +* 92% was OK + +Time: 27470.526ms + +---- ---- ---- ---- ---- ---- ---- +### 196/620 [`./test/index/random/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT SUM ( DISTINCT + + 90 ) AS col3 FROM tab0 AS cor0 WHERE NULL IS NOT NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT + col3 - col3 col5 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL col2 AS col2 FROM tab0 WHERE 80 * 48 - - 91 > - col4 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT 36 / COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL + +Expected: ["3"] but got ["3.600"] +``` + + +```sql +SELECT ALL ( - col0 ) - 31 - - 80 FROM tab0 AS cor0 WHERE NOT col4 / 6 IN ( + col1 / - + col0 * - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT ( col4 ) <= NULL + +g is not defined +``` + + +```sql +SELECT + col2 FROM tab0 WHERE ( 60 + + col3 ) < ( + col0 ) + +Expected: ["0","0","0","0","0"] but got ["gvttq","qvahk","tgsmz","zfxgo","zkoew"] +``` + + +```sql +SELECT col2 FROM tab0 WHERE + col0 * + col0 + - col4 * col3 <= ( + col1 + col4 * - 0 ) OR ( + 57 * + col0 ) = NULL + +Expected: ["0","0"] but got ["naijw","wodwv"] +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 780 failed +* 92% was OK + +Time: 23854.751ms + +---- ---- ---- ---- ---- ---- ---- +### 197/620 [`./test/index/random/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE ( ( CAST ( NULL AS INTEGER ) ) ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - MIN ( ALL + + 73 ) AS col4 FROM tab0 cor0 WHERE NOT 35 >= NULL + +Expected: ["NULL"] but got ["-73"] +``` + + +```sql +SELECT + COUNT ( * ) col3 FROM tab0 AS cor0 WHERE col4 * + col1 <> NULL + +Expected: ["0"] but got ["10"] +``` + + +```sql +SELECT DISTINCT - COUNT ( * ) / + CAST ( NULL AS REAL ) AS col5 FROM tab0 WHERE NOT col0 + CAST ( col3 AS INTEGER ) <> 62 * - ( col1 * - col4 ) + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + - MAX ( DISTINCT + col3 ) AS col2, + ( + COUNT ( * ) ) + + 71 FROM tab0 WHERE NOT + 13 * CAST ( NULL AS INTEGER ) IS NOT NULL + +Expected: ["-972","81"] but got ["NULL","71"] +``` + + +```sql +SELECT ALL col2 AS col5 FROM tab0 WHERE - + col3 BETWEEN - 72 AND 50 + + 78 + +Expected: ["0"] but got ["hmsci"] +``` + +#### ☓ Ran 10,031 tests as _sqlite_ + +* 675 failed +* 93% was OK + +Time: 27071.134ms + +---- ---- ---- ---- ---- ---- ---- +### 198/620 [`./test/index/random/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL AND 57 + col3 + + col0 * + 36 * col4 > NULL + +Wrong conversion type +``` + + +```sql +SELECT SUM ( col3 ) AS col4 FROM tab0 WHERE NOT - 85 + ( + CAST ( NULL AS INTEGER ) ) NOT IN ( col3 * 49 ) + +Expected: ["NULL"] but got ["5614"] +``` + + +```sql +SELECT ALL COUNT ( * ) AS col4 FROM tab0 WHERE NOT ( + - col1 ) BETWEEN col3 * + col0 + - - col3 AND ( - + col4 + + + col0 ) + +Expected: ["10"] but got ["0"] +``` + + +```sql +SELECT col5 FROM tab0 AS cor0 WHERE NOT ( col0 - col4 ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + col5 AS col5 FROM tab0 AS cor0 WHERE + col4 NOT BETWEEN NULL AND + col3 + +Expected: ["0","0","0"] but got ["apjmo","dubev","ithfo","ktnfz","swsmt","texha","ttvlt","vzeio","ylxxs","zwzyz"] +``` + + +```sql +SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 75 * - 78 * + - ( ( - + 46 ) ) IS NULL + +g is not defined +``` + + +```sql +SELECT - col0 col3 FROM tab0 WHERE NOT - col3 IN ( + col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - MAX ( ALL + + 78 ) FROM tab0 AS cor0 WHERE NOT + 18 BETWEEN col1 + - ( col1 ) + + ( col1 ) * - - col1 AND 17 * + col0 + +Expected: ["-78"] but got ["NULL"] +``` + + +```sql +SELECT col5 AS col1 FROM tab0 AS cor0 WHERE col4 NOT BETWEEN - ( - 32 ) AND - CAST ( - col1 AS INTEGER ) + +Expected: ["0","0","0","0","0"] but got ["apjmo","dubev","ithfo","ktnfz","vzeio"] +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 745 failed +* 92% was OK + +Time: 23615.220ms + +---- ---- ---- ---- ---- ---- ---- +### 199/620 [`./test/index/random/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + + 86 + - col3 AS col0 FROM tab0 cor0 WHERE NOT + 70 * - - 75 - - 75 BETWEEN - col3 + - col4 AND + + col3 * - + col3 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col2 col3 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT 66 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS REAL ) * - 13, 98 ) + +Wrong conversion type +``` + + +```sql +SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 76 AS col3 FROM tab0 AS cor0 WHERE NOT - ( col0 ) + - col0 IS NOT NULL + +Expected: ["NULL"] but got ["-76"] +``` + + +```sql +SELECT ALL 55 / ( COUNT ( * ) ) FROM tab0 cor0 WHERE col5 IS NOT NULL + +Expected: ["5"] but got ["5.500"] +``` + + +```sql +SELECT - + CAST ( - SUM ( DISTINCT - - CAST ( + 91 AS INTEGER ) ) AS INTEGER ), - 51 AS col0 FROM tab0 WHERE NOT NULL <= 60 + +g is not defined +``` + + +```sql +SELECT col5 AS col1 FROM tab0 AS cor0 WHERE + 80 + col4 > - - col1 + col3 + +Expected: ["0","0"] but got ["axwip","klkhp"] +``` + +#### ☓ Ran 10,031 tests as _sqlite_ + +* 740 failed +* 92% was OK + +Time: 22709.827ms + +---- ---- ---- ---- ---- ---- ---- +### 200/620 [`./test/index/random/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + 52 / + 95 FROM tab0 WHERE + col4 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - + COUNT ( * ) AS col3 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + col4, col0 + col3 * - 24 ) + +Expected: ["0"] but got ["-100"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE col4 * + col1 + - col3 + - 64 + - col4 BETWEEN col1 + + - CAST ( + - col4 AS REAL ) AND - - CAST ( NULL AS INTEGER ) + +Wrong conversion type +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col3 FROM tab0 AS cor0 WHERE NOT - col3 IN ( + - 29 * 82 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - + COUNT ( * ) * + + 51 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> - col0 + +Expected: ["0","NULL"] but got ["-5100","0"] +``` + + +```sql +SELECT ALL + CAST ( COUNT ( ALL col0 ) AS INTEGER ) col3 FROM tab0 WHERE NULL IS NULL + +g is not defined +``` + + +```sql +SELECT col2 AS col0 FROM tab0 WHERE NOT - - col0 >= 54 + 23 + +Expected: ["0"] but got ["qckcw"] +``` + + +```sql +SELECT col0 * + - 7 FROM tab0 WHERE CAST ( col0 AS INTEGER ) NOT BETWEEN NULL AND + col3 + +100 results returned but expected 55 +``` + +#### ☓ Ran 10,123 tests as _sqlite_ + +* 715 failed +* 92% was OK + +Time: 30728.445ms + +---- ---- ---- ---- ---- ---- ---- +### 201/620 [`./test/index/random/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT + col5 AS col1 FROM tab0 AS cor0 WHERE ( - 0 ) BETWEEN 6 * - col4 AND ( + col0 * - - col1 - 48 ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + + 77 AS col2, - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col4 AND NULL + +Expected: ["77","0"] but got ["77","-100"] +``` + + +```sql +SELECT + 92 * + - 75 FROM tab0 AS cor0 WHERE NOT + ( + - col0 ) IN ( - + ( + + 81 ) + + col3 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + - MAX ( DISTINCT + col3 ) AS col2, + ( + COUNT ( * ) ) + + 71 FROM tab0 WHERE NOT + 13 * CAST ( NULL AS INTEGER ) IS NOT NULL + +Expected: ["-9951","171"] but got ["NULL","71"] +``` + + +```sql +SELECT - COUNT ( * ) * AVG ( DISTINCT + col3 ) AS col3 FROM tab0 WHERE NOT NULL <= + + col3 + +Expected: ["NULL"] but got ["-531399"] +``` + + +```sql +SELECT col5 col5 FROM tab0 WHERE NOT ( ( col1 ) ) >= + ( - 80 ) * - 31 - col0 + +Expected: ["0","0","0","0"] but got ["kjkvp","rrlwc","uhpvq","ydhme"] +``` + + +```sql +SELECT + col5 AS col5 FROM tab0 AS cor0 WHERE + col4 NOT BETWEEN NULL AND + col3 + +100 results returned but expected 42 +``` + + +```sql +SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 75 * - 78 * + - ( ( - + 46 ) ) IS NULL + +g is not defined +``` + +#### ☓ Ran 10,123 tests as _sqlite_ + +* 655 failed +* 93% was OK + +Time: 36392.076ms + +---- ---- ---- ---- ---- ---- ---- +### 202/620 [`./test/index/random/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab0 AS cor0 WHERE col4 * + col1 + - col3 + - 64 + - col4 BETWEEN col1 + + - CAST ( + - col4 AS REAL ) AND - - CAST ( NULL AS INTEGER ) + +Wrong conversion type +``` + + +```sql +SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col5 FROM tab0 WHERE - 72 NOT BETWEEN 37 AND NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL > col4 + +Expected: ["0"] but got ["-1000"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col3 FROM tab0 AS cor0 WHERE NOT - col3 IN ( + - 29 * 82 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - + COUNT ( * ) * + + 51 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> - col0 + +Expected: ["0","NULL"] but got ["-51000","0"] +``` + +#### ☓ Ran 2,067 tests as _sqlite_ + +* 70 failed +* 96% was OK + +Time: 19747.184ms + +---- ---- ---- ---- ---- ---- ---- +### 203/620 [`./test/index/random/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL <> + col4 / CAST ( - col0 AS REAL ) ) + +Wrong conversion type +``` + +#### ☓ Ran 1,056 tests as _sqlite_ + +* 5 failed +* 99% was OK + +Time: 2553.016ms + +---- ---- ---- ---- ---- ---- ---- +### 204/620 [`./test/index/random/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_2.test) + +#### ★ Assuming all 1,027 tests still passes as _sqlite_ + +Time: 0.658ms + +---- ---- ---- ---- ---- ---- ---- +### 205/620 [`./test/index/random/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_3.test) + +#### ★ Assuming all 1,033 tests still passes as _sqlite_ + +Time: 0.527ms + +---- ---- ---- ---- ---- ---- ---- +### 206/620 [`./test/index/random/1000/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( - CAST ( NULL AS REAL ) + + col0 NOT IN ( - - col0 * - col3 ) ) ) + +Wrong conversion type +``` + +#### ☓ Ran 1,032 tests as _sqlite_ + +* 5 failed +* 99% was OK + +Time: 2441.731ms + +---- ---- ---- ---- ---- ---- ---- +### 207/620 [`./test/index/random/1000/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT + COUNT ( * ) AS col5 FROM tab0 WHERE NOT - ( 3 ) + col4 NOT BETWEEN NULL AND col0 + +Expected: ["0"] but got ["1000"] +``` + + +```sql +SELECT ALL 72 FROM tab0 WHERE + - col1 * - - ( - col0 ) / + col4 - + col3 + + col0 + + 62 * CAST ( NULL AS INTEGER ) * col0 * - col4 + + 91 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 42 * - col4 AS col3 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT 15 FROM tab0 cor0 WHERE ( 92 ) <= col0 / + + CAST ( NULL AS REAL ) + 77 + +Wrong conversion type +``` + + +```sql +SELECT ALL + CAST ( COUNT ( ALL col0 ) AS INTEGER ) col3 FROM tab0 WHERE NULL IS NULL + +g is not defined +``` + +#### ☓ Ran 4,333 tests as _sqlite_ + +* 265 failed +* 93% was OK + +Time: 50939.702ms + +---- ---- ---- ---- ---- ---- ---- +### 208/620 [`./test/index/random/1000/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col1 - 9 * + ( + + CAST ( NULL AS INTEGER ) ) * - 41 * + + 35 FROM tab0 WHERE NOT - 70 IS NULL + +Expected: ["NULL"] but got ["1001.490","101.350","1023.170","1029.400","1040.530","1041.320","105.910","1052.610","1055.210","1061.720","1077.130","1088.150","1134.630","1136.530","1141.510","1142.310","1145.470","1184.360","1189.950","119.510","1195.480","1196.280","1202.190","121.600","1210.330",… +``` + + +```sql +SELECT ALL - 42 + + col0 AS col1, 66 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( 78 AS INTEGER ) * 42 * + 24 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + + col2 FROM tab0 WHERE col0 <= + + col4 * - + CAST ( NULL AS REAL ) + + 67 + +Wrong conversion type +``` + + +```sql +SELECT + 89 FROM tab0 WHERE + - col0 NOT BETWEEN + + 45 + - + col4 AND NULL + +1000 results returned but expected 491 +``` + + +```sql +SELECT - MIN ( + col4 ) AS col3 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL + +Expected: ["-61"] but got ["-61.500"] +``` + + +```sql +SELECT - 74 * 61 FROM tab0 AS cor0 WHERE NOT 1 IN ( 78 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL * FROM tab0 AS cor0 WHERE ( col3 ) IN ( + col0 ) + +Expected: ["750","79","2150","0","79","1716","0"] but got ["750","79","2150.540","kuzlf","79","1716.500","wqnrb"] +``` + +#### ☓ Ran 11,021 tests as _sqlite_ + +* 725 failed +* 93% was OK + +Time: 89561.007ms + +---- ---- ---- ---- ---- ---- ---- +### 209/620 [`./test/index/random/1000/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT MAX ( col4 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL + +Expected: ["NULL"] but got ["9994.100"] +``` + + +```sql +SELECT ALL + ( - - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col5 FROM tab0 WHERE NOT NULL IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT + col5 FROM tab0 WHERE NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - COUNT ( 41 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 41 AND - 82 + +Expected: ["0"] but got ["-1000"] +``` + + +```sql +SELECT 36 FROM tab0 WHERE - col3 + col0 NOT BETWEEN NULL AND ( + - col0 ) + +1000 results returned but expected 762 +``` + + +```sql +SELECT DISTINCT + 42 / + COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT ALL col2 FROM tab0 WHERE - + col3 BETWEEN - 72 AND 50 + + 78 + +Expected: ["0","0","0","0","0"] but got ["ernxs","orpfh","pirjf","tbpkm","zphbq"] +``` + +#### ☓ Ran 11,022 tests as _sqlite_ + +* 780 failed +* 92% was OK + +Time: 84723.283ms + +---- ---- ---- ---- ---- ---- ---- +### 210/620 [`./test/index/random/1000/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col0 / - - col3 + + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL + +1000 results returned but expected 967 +``` + + +```sql +SELECT ALL ( + + col0 ) FROM tab0 AS cor0 WHERE NOT col4 IN ( + - col1 * - + 58, + col4 * - col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + ( - MAX ( - 10 ) ) * + + 59 AS col3 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL ) + +Expected: ["NULL"] but got ["590"] +``` + + +```sql +SELECT col3 AS col1 FROM tab0 WHERE NOT 2 * + col0 + + CAST ( NULL AS REAL ) + - 93 >= + 40 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col4 * + + col3 + + - col0 + - + col4 + +Expected: ["0"] but got ["1000"] +``` + + +```sql +SELECT ALL + CAST ( col3 AS INTEGER ) * col3 + - ( + col0 ) / - col3 AS col2 FROM tab0 WHERE ( NULL ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + +#### ☓ Ran 4,841 tests as _sqlite_ + +* 310 failed +* 93% was OK + +Time: 32089.808ms + +---- ---- ---- ---- ---- ---- ---- +### 211/620 [`./test/index/view/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_0.test) + +_Mimic sqlite_ +Time: 5.254ms + +---- ---- ---- ---- ---- ---- ---- +### 212/620 [`./test/index/view/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_2_tab0_153 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_154 UNION SELECT pk, col0 FROM view_2_tab0_154 + +10 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_154 + +Expected: ["1","4","5","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_155 + +Expected: ["6","0"] but got ["NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_157 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE ((col0 IS NULL) OR col3 > 5 OR col3 <= 50 OR col1 < 83.11))) OR col0 > 75 + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 8,137 tests as _sqlite_ + +* 7,698 skipped +* 91 failed +* 4% was OK + +Time: 2705.934ms + +---- ---- ---- ---- ---- ---- ---- +### 213/620 [`./test/index/view/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_302 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_302 + +Expected: ["4","11","7","70"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_302 UNION SELECT pk, col0 FROM view_2_tab0_302 + +4 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_302 + +Expected: ["0","1","2","3","5","6","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_305 + +Expected: ["6","56","7","70","8","75"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_305 + +Expected: ["0","1","2","3","4","5","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_306 + +Expected: ["4","11"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_308 + +Expected: ["2","3","5","8","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_316 + +Expected: ["6","7","8"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_322 + +Expected: ["6"] but got ["NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_367 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL OR (((col0 < 64 AND (col0 BETWEEN 25 AND 41) AND (col4 >= 33.34) OR (col4 < 22.72 AND (col0 >= 61)) AND (col0 > 4) OR col0 >= 0 OR col0 >= 45 AND col3 IN (SELECT col0 FROM tab0 WHERE col3 > 42) AND col3 IS NULL AND col3 <= … + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,465 tests as _sqlite_ + +* 1,028 skipped +* 1,361 failed +* 67% was OK + +Time: 16880.573ms + +---- ---- ---- ---- ---- ---- ---- +### 214/620 [`./test/index/view/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_376 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_376 UNION SELECT pk, col0 FROM view_2_tab0_376 + +2 results returned but expected 20 +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_377 + +Expected: ["1","72","5","85","8","94","9","95"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_377 + +Expected: ["1","5","8","9"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_378 + +Expected: ["2","52"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_378 + +Expected: ["2"] but got ["NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_385 + +Expected: ["0","2","3","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_387 + +Expected: ["0","60","1","72","9","95"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_387 + +Expected: ["2","3","4","5","6","7","8"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_405 + +Expected: ["2","6","7"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab2_406 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +CREATE VIEW view_1_tab0_408 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL AND (((((col1 < 63.79))) OR col0 >= 35 AND col4 > 76.20 AND col0 = 84 OR col0 <= 76 AND col3 IN (SELECT col0 FROM tab0 WHERE col4 = 39.20 AND col3 <= 5))) + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,271 tests as _sqlite_ + +* 4,133 skipped +* 716 failed +* 33% was OK + +Time: 9007.515ms + +---- ---- ---- ---- ---- ---- ---- +### 215/620 [`./test/index/view/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_444 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_444 + +Expected: ["1","65","5","67"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_444 UNION SELECT pk, col0 FROM view_2_tab0_444 + +4 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_444 + +Expected: ["0","2","3","4","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_446 + +Expected: ["1","65"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_447 + +Expected: ["3"] but got ["NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_448 + +Expected: ["2","3","4","8","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_462 + +Expected: ["3","6","7","52","8","29"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_462 + +Expected: ["3","7","8"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_463 + +Expected: ["0","1","2","5","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_519 AS SELECT pk, col0 FROM tab0 WHERE (((col0 >= 39) OR (col1 < 88.77) AND (((col1 <= 79.45) AND col0 IN (83,70,92,44,74) AND col4 < 94.64 OR col0 > 49 AND (col3 >= 51 OR col0 > 38)) OR col0 < 10 OR col1 > 79.73 AND col3 > 53 AND col1 BETWEEN 24.95 AND 9.14 AND col3 < 51 OR… + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,563 tests as _sqlite_ + +* 223 skipped +* 1,526 failed +* 76% was OK + +Time: 18936.083ms + +---- ---- ---- ---- ---- ---- ---- +### 216/620 [`./test/index/view/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_660 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_660 + +Expected: ["2","85","3","93"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_660 UNION SELECT pk, col0 FROM view_2_tab0_660 + +4 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_660 + +Expected: ["0","1","4","5","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_661 + +Expected: ["0","48","2","85","3","93"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_661 + +Expected: ["0","2","3"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_662 + +Expected: ["2","3"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_677 + +Expected: ["0","2","3","4","5","7","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_687 + +Expected: ["8"] but got ["NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_726 AS SELECT pk, col0 FROM tab0 WHERE col0 > 84 AND col4 <= 74.98 AND col1 IN (SELECT col4 FROM tab0 WHERE (col4 > 35.62) AND ((col3 > 33) AND (((((col3 > 1))) AND (col0 = 21 OR (((col3 > 79))) AND (col1 < 18.85) AND ((col3 > 26)) OR ((col3 > 73) AND col3 <= 84)))) OR ((((c… + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,384 tests as _sqlite_ + +* 1,143 skipped +* 1,371 failed +* 65% was OK + +Time: 17323.168ms + +---- ---- ---- ---- ---- ---- ---- +### 217/620 [`./test/index/view/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_946 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_946 UNION SELECT pk, col0 FROM view_2_tab0_946 + +10 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_946 + +Expected: ["1","2","5","6","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_948 + +Expected: ["7","71"] but got ["NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_952 + +Expected: ["1","35","3","18","7","71","9","0"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_952 + +Expected: ["0","2","4","5","6","8"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_961 + +Expected: ["0","1","2","4","5","6","7"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_963 + +Expected: ["8"] but got ["NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_970 + +Expected: ["0","87","3","18"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_975 + +Expected: ["3","7","9"] but got ["NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_984 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 42) AND ((col1 IS NULL)) OR ((((col3 > 72)))) OR (((col3 <= 90) AND ((col0 > 68)) AND (col0 IN (45,3,50,1) OR col4 < 9.99 OR col3 IN (76,97,24) AND col1 > 8.58 AND (col0 = 3) AND (col0 >= 50 AND col0 IN (SELECT col3 FROM tab0 WH… + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 6,492 tests as _sqlite_ + +* 2,753 skipped +* 806 failed +* 45% was OK + +Time: 12387.081ms + +---- ---- ---- ---- ---- ---- ---- +### 218/620 [`./test/index/view/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_1009 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_1009 + +Expected: ["0","71","5","97"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_1009 UNION SELECT pk, col0 FROM view_2_tab0_1009 + +4 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_1009 + +Expected: ["1","2","3","4","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_1013 + +Expected: ["2","89","4","92","5","97"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_1013 + +Expected: ["0","1","3","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_1023 + +Expected: ["3","5"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_1027 + +Expected: ["6"] but got ["NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_1031 + +Expected: ["1","3","6","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_1035 + +Expected: ["3","7","8"] but got ["NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_1042 AS SELECT pk, col0 FROM tab0 WHERE ((col0 > 16 OR ((col0 < 9 OR col3 IN (SELECT col0 FROM tab0 WHERE (col0 < 94) AND col0 <= 61))) AND col3 = 18 OR col3 < 55 AND col3 IN (76,76) OR col3 >= 86 AND ((((((col0 < 9)))) AND col0 = 70 OR col1 IS NULL) AND (col3 IN (31,92,0)))… + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,533 tests as _sqlite_ + +* 4,593 skipped +* 646 failed +* 30% was OK + +Time: 9631.912ms + +---- ---- ---- ---- ---- ---- ---- +### 219/620 [`./test/index/view/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_77 UNION SELECT pk, col0 FROM view_2_tab0_77 + +150 results returned but expected 200 +``` + + +```sql +SELECT * FROM view_3_tab0_84 + +Expected: ["1","26","29","4","81","94"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_93 AS SELECT pk, col0 FROM tab0 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 8,623 tests as _sqlite_ + +* 6,893 skipped +* 677 failed +* 12% was OK + +Time: 6704.087ms + +---- ---- ---- ---- ---- ---- ---- +### 220/620 [`./test/index/view/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_226 UNION SELECT pk, col0 FROM view_2_tab0_226 + +112 results returned but expected 200 +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_229 + +Expected: ["30","84","86","184"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_232 + +Expected: ["19","869","81","978","83","803"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_232 + +Expected: ["19","81","83"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_250 + +Expected: ["18","24"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_271 + +Expected: ["93"] but got ["NULL"] +``` + +#### ☓ Ran 7,122 tests as _sqlite_ + +* 2,876 failed +* 59% was OK + +Time: 26509.010ms + +---- ---- ---- ---- ---- ---- ---- +### 221/620 [`./test/index/view/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_523 UNION SELECT pk, col0 FROM view_2_tab0_523 + +64 results returned but expected 200 +``` + + +```sql +CREATE VIEW view_1_tab0_534 AS SELECT pk, col0 FROM tab0 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR… + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 8,235 tests as _sqlite_ + +* 7,008 skipped +* 457 failed +* 9% was OK + +Time: 5136.453ms + +---- ---- ---- ---- ---- ---- ---- +### 222/620 [`./test/index/view/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_597 + +Expected: ["69","996"] but got ["NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_597 UNION SELECT pk, col0 FROM view_2_tab0_597 + +198 results returned but expected 200 +``` + + +```sql +SELECT * FROM view_3_tab0_597 + +Expected: ["69"] but got ["NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_602 AS SELECT pk, col0 FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE col0 >= 795) OR col3 >= 543 OR col3 > 991 AND (((col3 < 927 OR (col3 < 430)) AND (col0 > 590) OR (col0 >= 449 AND col4 > 729.35 OR (((col3 >= 745 AND col0 IN (376,260))) AND col0 = 742 OR ((col3 < 40… + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,174 tests as _sqlite_ + +* 6,548 skipped +* 207 failed +* 5% was OK + +Time: 3428.017ms + +---- ---- ---- ---- ---- ---- ---- +### 223/620 [`./test/index/view/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_799 UNION SELECT pk, col0 FROM view_2_tab0_799 + +36 results returned but expected 200 +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_804 + +Expected: ["11","576","47","71"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_804 + +Expected: ["11","47"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_813 + +Expected: ["49"] but got ["NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_817 + +Expected: ["23","34","36","67","68","8","91"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_837 + +Expected: ["54","65","74","76","96"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_869 AS SELECT pk, col0 FROM tab0 WHERE (((col0 > 796 OR ((((col0 < 642)) AND (((((col1 < 435.47 AND col0 = 220)) AND (col0 > 695) AND col3 > 66 AND (col4 > 262.50))) OR col0 > 828 AND ((col0 >= 606 AND col1 <= 821.18)) OR (col0 > 561) AND col4 < 21.23 OR col0 <= 506 AND col3… + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 6,935 tests as _sqlite_ + +* 108 skipped +* 2,712 failed +* 59% was OK + +Time: 38492.646ms + +---- ---- ---- ---- ---- ---- ---- +### 224/620 [`./test/index/view/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_870 UNION SELECT pk, col0 FROM view_2_tab0_870 + +16 results returned but expected 200 +``` + + +```sql +SELECT * FROM view_3_tab0_876 + +Expected: ["2","27","51","57","6","64","75"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_879 + +Expected: ["29","638","43","152","46","772","51","862"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_879 + +Expected: ["29","43","46","51"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM tab1 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +CREATE VIEW view_1_tab0_901 AS SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= … + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,949 tests as _sqlite_ + +* 4,823 skipped +* 1,217 failed +* 24% was OK + +Time: 18256.543ms + +---- ---- ---- ---- ---- ---- ---- +### 225/620 [`./test/index/view/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/1000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_739 UNION SELECT pk, col0 FROM view_2_tab0_739 + +1824 results returned but expected 2000 +``` + + +```sql +CREATE VIEW view_1_tab0_742 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) + +Cannot read property 'columns' of undefined +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,630 tests as _sqlite_ + +* 6,203 skipped +* 167 failed +* 16% was OK + +Time: 15495.267ms + +---- ---- ---- ---- ---- ---- ---- +### 226/620 [`./test/index/view/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_1 UNION SELECT pk, col0 FROM view_2_tab0_1 + +6920 results returned but expected 20000 +``` + +#### ☓ Ran 10,622 tests as _sqlite_ + +* 271 failed +* 97% was OK + +Time: 1179434.160ms + +---- ---- ---- ---- ---- ---- ---- +### 227/620 [`./test/random/aggregates/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 20 / - 97 FROM tab0 + +Expected: ["0"] but got ["-0.206"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 0 col0 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT MIN ( DISTINCT col1 ) * - + AVG ( DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) ) AS col2, COUNT ( ALL - col0 ) AS col2 FROM tab2 AS cor0 + +Expected: ["NULL","3"] but got ["3"] +``` + + +```sql +SELECT DISTINCT - col1 AS col2, col2 AS col2 FROM tab1 WHERE - - CAST ( + - col1 AS REAL ) NOT BETWEEN - col0 AND NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + CAST ( ( + SUM ( - 14 ) ) AS INTEGER ) AS col0 FROM tab1 + +g is not defined +``` + + +```sql +SELECT ALL + col0 AS col1, + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0 + +Expected: ["15","NULL","87","NULL","97","NULL"] but got ["15","47","87","10","97","99"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + col1 * CAST ( NULL AS INTEGER ) + + 67 AS col2 FROM tab2 WHERE ( + + col2 ) <= ( 42 ) + +Expected: ["NULL","NULL"] but got ["67","67"] +``` + + +```sql +SELECT + MIN ( - 82 ) AS col0 FROM tab2 WHERE - + 5 * + col1 / - CAST ( NULL AS INTEGER ) IS NULL + +Expected: ["-82"] but got ["NULL"] +``` + + +```sql +SELECT ALL MIN ( ALL + 80 ) AS col2, 27 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + 95 + + 63 AND + 0 + +Expected: ["NULL","27"] but got ["27","NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 JOIN tab2 cor1 ON + ( 90 ) IS NOT NULL, tab0 AS cor2 + +Parse error on line 1: +...+ ( 90 ) IS NOT NULL, tab0 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT col2 + + 76 / - ( - + col1 ) AS col1, 71 + col0 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 + +Expected: ["24","NULL","40","NULL","59","NULL"] but got ["24.490","NULL","40.987","NULL","59.134","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,588 failed +* 84% was OK + +Time: 27695.248ms + +---- ---- ---- ---- ---- ---- ---- +### 228/620 [`./test/random/aggregates/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col1, + col2 col1 FROM tab2 + +Expected: ["51","23","67","58","77","40"] but got ["23","23","40","40","58","58"] +``` + + +```sql +SELECT + ( CAST ( NULL AS REAL ) ) - col0 AS col1 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 19 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * 44 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT - - CAST ( MAX ( ALL + col1 ) AS INTEGER ) FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT 16 AS col0 FROM tab0 WHERE NOT + 71 * + + CAST ( NULL AS INTEGER ) * - 24 + - ( - col2 ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL MAX ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT - 85 * col0 + col0 BETWEEN - 82 AND NULL + +Expected: ["99"] but got ["NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + 36 / + - 21 AS col1, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 + +Expected: ["NULL","NULL"] but got ["0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,374 failed +* 86% was OK + +Time: 20058.655ms + +---- ---- ---- ---- ---- ---- ---- +### 229/620 [`./test/random/aggregates/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_10.test) + +_Mimic sqlite_ + +```sql +SELECT - COUNT ( * ) / + 47 FROM tab2 WHERE NOT col2 NOT IN ( - 30 + + CAST ( col1 AS INTEGER ) * - CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + col2 / - + 26 FROM tab0 + +Expected: ["-1","-3","0"] but got ["-0.385","-1.808","-3.808"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) * - CAST ( - 49 AS INTEGER ) / col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT col2 IN ( 35, + 27 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 30 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab1 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NOT NULL + +6 results returned but expected 18 +``` + + +```sql +SELECT DISTINCT + SUM ( DISTINCT + col2 ), - MAX ( DISTINCT + - 11 ) FROM tab2 WHERE NULL = - 61 + + col1 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT - MAX ( - col1 ) FROM tab0 AS cor0 WHERE NOT - 24 - + 79 IN ( + 97, + CAST ( ( - + col2 ) AS INTEGER ) * - - col0 ) + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT - 55 * - col1 AS col0, col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 + +Expected: ["2805","NULL","3685","NULL","4235","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT - col2 / + + col1 col1, col2 / + + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["-99","NULL","0","NULL","0","NULL"] but got ["-0.476","NULL","-0.580","NULL","-99","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,656 failed +* 83% was OK + +Time: 25307.033ms + +---- ---- ---- ---- ---- ---- ---- +### 230/620 [`./test/random/aggregates/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_100.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - - 36 * - + col2 AS col2 FROM tab0 WHERE NOT + + col2 IN ( - - 41, - col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ( - 34 ) + + 16 + + ( col2 ) / col0 / + 49 FROM tab0 + +Expected: ["-18","-18","-18"] but got ["-17.936","-17.979","-17.998"] +``` + + +```sql +SELECT ALL - + CAST ( - AVG ( col1 ) AS INTEGER ) * - 2 col0 FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT ( - 31 ) + + CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL"] but got ["-31"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + ( + MIN ( - CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT + col0 * + 42 AS col2, - col0 * col0 / 19 AS col2, - 68 AS col1 FROM tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + COUNT ( * ) / + - CAST ( - MIN ( ALL - 13 ) AS INTEGER ) FROM tab2 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ), - MAX ( + + 50 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT DISTINCT col2 AS col0, col0 / + - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1 + +Expected: ["59","NULL","68","NULL","96","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL, tab1 AS cor2 + +Parse error on line 1: +...cor1 ON NULL IS NULL, tab1 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col0 >= - 17 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,635 failed +* 83% was OK + +Time: 19925.080ms + +---- ---- ---- ---- ---- ---- ---- +### 231/620 [`./test/random/aggregates/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_101.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 + - col0 / - col2 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0.531","1.338","1.441"] +``` + + +```sql +SELECT 8 AS col0, + col2 + - col0 * - 62 AS col0 FROM tab1 + +Expected: ["8","3258","8","5329","8","5710"] but got ["3258","3258","5329","5329","5710","5710"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT - ( + col1 ) * - CAST ( NULL AS REAL ) - - col1 + col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 20 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + col1 * + 98 - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IN ( - col1, + col2 * col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab0, tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT ( NULL IS NOT NULL ) ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - MIN ( - + col2 ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 87 BETWEEN NULL AND - col2 + - col1 + +Expected: ["297"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( NULL IS NOT NULL ) ) + +18 results returned but expected 54 +``` + + +```sql +SELECT - SUM ( + col0 ), SUM ( col1 ) FROM tab0 WHERE NOT ( + - col0 ) IS NOT NULL + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 * col0 col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-2601","-7225","-8281"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,677 failed +* 83% was OK + +Time: 19555.319ms + +---- ---- ---- ---- ---- ---- ---- +### 232/620 [`./test/random/aggregates/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_102.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) >= col0 + +Expected: ["0"] but got ["3"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * + 65 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) col0 FROM tab1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + 8 - - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) * - - 54 / - MIN ( col1 ) col2 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab2 WHERE col1 * - col1 / - col1 * + col2 * - CAST ( NULL AS INTEGER ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT COUNT ( * ) / CAST ( + MAX ( + col1 ) AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT + ( - - CAST ( + - COUNT ( * ) AS INTEGER ) ) FROM tab1 cor0 + +g is not defined +``` + + +```sql +SELECT ALL col1 * + col1 col1, - 53 * - + ( + + col2 ) AS col1, col1 + - col0 col2 FROM tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL ) + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ), - ( + col0 ) / - col2 AS col1 FROM tab0 + +Expected: ["NULL","0","NULL","8"] but got ["0","0.319","0","0.980","0","8.700"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,550 failed +* 84% was OK + +Time: 27024.050ms + +---- ---- ---- ---- ---- ---- ---- +### 233/620 [`./test/random/aggregates/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_103.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT ( + 87 ) * col0 AS col0 FROM tab1 WHERE NULL <= ( - CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col0 ) + 49 BETWEEN col0 AND col0 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT 55 * - SUM ( ALL 64 ) col0 FROM tab0 AS cor0 WHERE NOT + col1 - col0 IN ( col0 ) + +Expected: ["-10560"] but got ["0"] +``` + + +```sql +SELECT ALL + 45 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL + CAST ( - + COUNT ( ALL - 16 ) AS INTEGER ) col2 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( - 43 ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL 64 + MIN ( col0 ) * 42 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + CAST ( NULL AS INTEGER ) - + ( CAST ( NULL AS INTEGER ) + 66 ) IS NOT NULL + +Expected: ["1996"] but got ["NULL"] +``` + + +```sql +SELECT - + CAST ( NULL AS INTEGER ), + ( + 66 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT - ( SUM ( - - col2 ) ) col0, SUM ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,568 failed +* 84% was OK + +Time: 31469.319ms + +---- ---- ---- ---- ---- ---- ---- +### 234/620 [`./test/random/aggregates/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_104.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 64 / + + col0 FROM tab1 + +Expected: ["0","1"] but got ["0.703","0.753","1.255"] +``` + + +```sql +SELECT + + SUM ( + - CAST ( NULL AS INTEGER ) ) / - 75 AS col1 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) ) + col1 FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL ) + +Expected: ["NULL","NULL","NULL"] but got ["14","47","5"] +``` + + +```sql +SELECT DISTINCT + - col1 + - + CAST ( NULL AS REAL ) FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - CAST ( MIN ( ALL col0 ) AS INTEGER ) FROM tab0 + +g is not defined +``` + + +```sql +SELECT * FROM tab2, tab2 AS cor0 WHERE NOT ( - 47 ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE 89 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT 4 - + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["4","0","4","0","4","0"] +``` + + +```sql +SELECT + + MAX ( - + col0 ) / 57 col2 FROM tab2 AS cor0 WHERE NOT + col1 * - ( - col1 ) + - col0 * - 56 + - + col0 BETWEEN + - ( + col2 ) + - col0 AND + - 51 * + col1 * + 53 * + 47 + + 27 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT - 14 * - ( - MAX ( ALL - ( - col1 ) ) ) AS col2, + 21 + - ( - SUM ( ALL - col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL + +Expected: ["NULL","NULL"] but got ["NULL","21"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,607 failed +* 83% was OK + +Time: 27058.225ms + +---- ---- ---- ---- ---- ---- ---- +### 235/620 [`./test/random/aggregates/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_105.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - - col0 / - 47 AS col0 FROM tab0 AS cor0 + +Expected: ["-1","-2","0"] but got ["-0.319","-1.851","-2.064"] +``` + + +```sql +SELECT ALL + col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 + +Expected: ["59","NULL","68","NULL","96","NULL"] but got ["59","0","68","0","96","0"] +``` + + +```sql +SELECT COUNT ( * ) * 60 * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 + +Expected: ["NULL"] but got ["3"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL col1 + - 18 FROM tab2 AS cor0 WHERE NOT col0 - + col2 NOT BETWEEN - CAST ( NULL AS REAL ) AND NULL + +Wrong conversion type +``` + + +```sql +SELECT CAST ( - - SUM ( + ( - col0 ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL + 71 AS col0, ( - - CAST ( - CAST ( + MIN ( ALL - col2 ) AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN - col2 + 71 AND + col2 / + + col0 / - ( col0 ) + + + 46 + + col1 - col0 + - col2 * col0 / - 8 + +3 results returned but expected 9 +``` + + +```sql +SELECT DISTINCT COUNT ( * ) * MIN ( ALL CAST ( + col0 AS INTEGER ) * + col0 ) FROM tab1 WHERE NOT + col2 * + ( - col1 ) IN ( col1 ) + +Expected: ["7803"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,667 failed +* 83% was OK + +Time: 41459.569ms + +---- ---- ---- ---- ---- ---- ---- +### 236/620 [`./test/random/aggregates/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_106.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 57 / 7 FROM tab0 + +Expected: ["8"] but got ["8.143"] +``` + + +```sql +SELECT DISTINCT 23 AS col1 FROM tab1 WHERE NOT + col1 IN ( col0 + - col2 * + - 43 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - 56 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["-56","NULL","-56","NULL","-56","NULL"] but got ["-56","0","-56","0","-56","0"] +``` + + +```sql +SELECT ALL + 34 * COUNT ( * ) - - 54 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["102"] +``` + + +```sql +SELECT DISTINCT col1 * - - col1 + - 78 / CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0 + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( - + SUM ( DISTINCT 71 ) AS INTEGER ) - - - 82 AS col2, - 84 AS col2 FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT 77 / - - 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab1 ON NULL BETWEEN NULL AND ( NULL ) + +6 results returned but expected 18 +``` + + +```sql +SELECT ALL + COUNT ( * ) / ( + CAST ( + MAX ( col0 ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL IS NULL + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) col0, - col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-59","0","-68","0","-96"] +``` + + +```sql +SELECT DISTINCT + col0 / + col2 col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["0","NULL","8","NULL"] but got ["0.319","0","0.980","0","8.700","0"] +``` + + +```sql +SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT + - col1 ) * - - 14 * + + CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT + - col0 ) FROM tab1 + +Expected: ["NULL"] but got ["91"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,571 failed +* 84% was OK + +Time: 39570.886ms + +---- ---- ---- ---- ---- ---- ---- +### 237/620 [`./test/random/aggregates/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_107.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + + MIN ( ALL col2 ) / - - COUNT ( * ) AS col0 FROM tab0 AS cor0 + +Expected: ["3"] but got ["3.333"] +``` + + +```sql +SELECT ALL - CAST ( + - SUM ( - col1 ) AS INTEGER ) AS col2 FROM tab0 + +g is not defined +``` + + +```sql +SELECT - SUM ( 1 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 ) + +Expected: ["NULL"] but got ["-3"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS REAL ) * + - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL 62 col0, col1, ( - col1 ) * - col2 * ( + ( + col2 ) ) AS col0 FROM tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT ( NOT - col1 * - + col2 * - col2 / col2 + + 61 NOT IN ( - - col1 ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + 67 AS col2, ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 + +Expected: ["67","NULL","67","NULL","67","NULL"] but got ["67","0","67","0","67","0"] +``` + + +```sql +SELECT ALL - MAX ( ALL - 87 ) AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - - col2 * - - col0 / + - 2 IS NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT ALL + + CAST ( NULL AS INTEGER ) * + col0 + col0 * + 90 + - col2 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["1303","0","7820","0","8631","0"] +``` + + +```sql +SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN col0 + - col2 AND col1 + col1 + +3 results returned but expected 9 +``` + + +```sql +SELECT - COUNT ( * ) / - CAST ( + SUM ( ALL - col1 ) AS INTEGER ) + - 4 * + COUNT ( * ) FROM tab2 AS cor0 + +Expected: ["-12"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, + col1 + col0 + - - col0 AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","111","NULL","195"] but got ["111","111","195","195"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,519 failed +* 84% was OK + +Time: 25715.806ms + +---- ---- ---- ---- ---- ---- ---- +### 238/620 [`./test/random/aggregates/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_108.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - COUNT ( * ) / - 35 AS col2 FROM tab1, tab1 cor0 + +Expected: ["0"] but got ["0.257"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT ( + - col1 ) IN ( + col2, col2 * col1 * ( + - 68 ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - 88 + CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL"] but got ["-88"] +``` + + +```sql +SELECT - CAST ( NULL AS REAL ), MAX ( + - col1 ) AS col2 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( - MAX ( DISTINCT + col2 ) AS INTEGER ) FROM tab0 + +g is not defined +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) / col1 + + + col0 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["51","85","91"] +``` + + +```sql +SELECT ALL * FROM tab2, tab2 cor0 WHERE NOT - ( 34 ) = 73 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab1 cor0 WHERE NOT + col1 + + col1 * col1 BETWEEN col1 * + col1 - + col2 AND ( col1 ) + +3 results returned but expected 9 +``` + + +```sql +SELECT ALL + SUM ( ALL - - ( col0 ) ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( + col0 NOT BETWEEN + col1 AND NULL ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT + + MAX ( DISTINCT - col2 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - 44 IS NULL + +Expected: ["-26"] but got ["NULL"] +``` + + +```sql +SELECT col1 * + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) - col0 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-46","0","-64","0","-75"] +``` + + +```sql +SELECT ALL - COUNT ( * ) AS col1, 6 + + + 15 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 + +Expected: ["-3","NULL"] but got ["NULL"] +``` + + +```sql +SELECT 12 / + - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,643 failed +* 83% was OK + +Time: 24207.982ms + +---- ---- ---- ---- ---- ---- ---- +### 239/620 [`./test/random/aggregates/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_109.test) + +_Mimic sqlite_ + +```sql +SELECT - 37 / + 90 + + ( col1 ) FROM tab1 + +Expected: ["14","47","5"] but got ["13.589","4.589","46.589"] +``` + + +```sql +SELECT + SUM ( DISTINCT col1 ) FROM tab2 WHERE NOT - 80 IS NOT NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - COUNT ( * ) + - COUNT ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","59","NULL","68","NULL","96"] but got ["0","59","0","68","0","96"] +``` + + +```sql +SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) * 24 * - ( ( - - 63 ) ) AS col2 FROM tab2 + +g is not defined +``` + + +```sql +SELECT * FROM tab1 AS cor0 WHERE NOT + ( - 23 ) BETWEEN ( + col0 ) AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + MIN ( ALL - col0 ) AS col1 FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) + - CAST ( + 37 AS INTEGER ) + + + col0 IS NULL + +Expected: ["-91"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + col0 * - + col1 * CAST ( NULL AS INTEGER ) * - + ( + CAST ( NULL AS INTEGER ) ) / + - CAST ( col1 AS INTEGER ) + col2 AS col0, 60 * - - col0 * ( - CAST ( NULL AS INTEGER ) ) * + - col0 + 74 * col2 FROM tab1 cor0 + +Expected: ["NULL","NULL"] but got ["59","4366","68","5032","96","7104"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON + 13 IS NOT NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,629 failed +* 83% was OK + +Time: 24843.137ms + +---- ---- ---- ---- ---- ---- ---- +### 240/620 [`./test/random/aggregates/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_11.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab2 WHERE NOT - + col0 BETWEEN + col0 + + + col0 AND + 84 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT + 30 * - CAST ( NULL AS INTEGER ) + - 69 + col1 AS col2, col2 AS col0 FROM tab1 + +Expected: ["NULL","59","NULL","68","NULL","96"] but got ["-22","68","-55","96","-64","59"] +``` + + +```sql +SELECT * FROM tab1 cor0 WHERE + CAST ( + col1 AS REAL ) * + 53 * - + col0 * - 27 * + + 24 BETWEEN 86 AND - - 1 / + + col1 + +Wrong conversion type +``` + + +```sql +SELECT - 18 / + 16 AS col0 FROM tab0 AS cor0 + +Expected: ["-1","-1","-1"] but got ["-1.125","-1.125","-1.125"] +``` + + +```sql +SELECT DISTINCT + 92 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 + +Expected: ["NULL"] but got ["92"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) col1 FROM tab0, tab0 cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ( - 56 ), + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 + +g is not defined +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + col2 + - + col1 + + CAST ( NULL AS INTEGER ) + + col0 * 79 col2 FROM tab1 + +Expected: ["NULL","NULL"] but got ["0","4111","0","6769","0","7210"] +``` + + +```sql +SELECT DISTINCT + + ( MIN ( ALL + col0 ) ) + COUNT ( * ) FROM tab0 WHERE NOT + 63 * col1 + - + ( col0 ) BETWEEN + col2 AND + col1 + +Expected: ["18"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 AS cor1 ON + 93 IS NOT NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,661 failed +* 83% was OK + +Time: 33249.907ms + +---- ---- ---- ---- ---- ---- ---- +### 241/620 [`./test/random/aggregates/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_110.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 8 + CAST ( NULL AS REAL ) + + + 30 AS col2 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT 92 + - 90 AS col1, + ( + COUNT ( * ) ) AS col1 FROM tab1 + +Expected: ["2","3"] but got ["3"] +``` + + +```sql +SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) - - 41 AS col0 FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT - 53 AS col2, CAST ( NULL AS INTEGER ) * - ( col0 ) AS col1 FROM tab1 AS cor0 + +Expected: ["-53","NULL","-53","NULL","-53","NULL"] but got ["-53","0","-53","0","-53","0"] +``` + + +```sql +SELECT - 1 * - + MIN ( DISTINCT col0 ) col2 FROM tab0 cor0 WHERE NOT - 39 + 68 NOT IN ( - col1, col2 * + col2 * col2, - + col1 ) + +Expected: ["NULL"] but got ["15"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - - col1 AND ( 52 * 8 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT 37 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT ( - ( MAX ( DISTINCT + col1 ) ) ) AS col1 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL + +Expected: ["-47"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( + col0 ) / - CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT ALL - COUNT ( - + 74 ) * - SUM ( DISTINCT - col1 ) + - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( ALL - - col1 ) * + 78 + + 33 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL"] but got ["-198","234"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,613 failed +* 83% was OK + +Time: 25697.965ms + +---- ---- ---- ---- ---- ---- ---- +### 242/620 [`./test/random/aggregates/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_111.test) + +_Mimic sqlite_ + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) + + - ( - + col0 ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["51","85","91"] +``` + + +```sql +SELECT col0 col2 FROM tab1 WHERE - + ( - col2 ) NOT BETWEEN NULL AND ( ( col0 ) ) + +Expected: ["51"] but got ["51","85","91"] +``` + + +```sql +SELECT - MIN ( DISTINCT + col2 ) + 15 col0, COUNT ( * ) AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL + +Expected: ["NULL","0"] but got ["-8","3"] +``` + + +```sql +SELECT ALL * FROM tab2 WHERE NOT NULL >= col0 + - col0 * - + CAST ( col2 AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT ALL + - col2 + 25 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col2 + col0 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT CAST ( COUNT ( * ) AS INTEGER ) * - 4 FROM tab1 cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT + + 59 / - CAST ( MAX ( + + 62 ) AS INTEGER ) * SUM ( DISTINCT - col0 ) + + + 45 + - 79 FROM tab2 AS cor0 + +Expected: ["-34"] but got ["NULL"] +``` + + +```sql +SELECT - 73 AS col0, 54 / + + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 + +Expected: ["-73","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL + col1 AS col0, 7 AS col0, 68 - - 45 FROM tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + 92 ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - MIN ( ALL col2 ) + + ( - MAX ( 47 ) ) / - - COUNT ( ALL col0 ), MAX ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0 + +Expected: ["NULL","NULL"] but got ["43.333","0"] +``` + + +```sql +SELECT + 90 + - col1 + ( 76 ) col2, + col2 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 + +Expected: ["145","NULL","165","NULL","85","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * - - col0 AS col2, CAST ( NULL AS INTEGER ) * + + col2 + - 73 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-73","0","-73","0","-73"] +``` + + +```sql +SELECT 37 + ( + col0 ) * + 95 / - + col1 * - col2 * - CAST ( NULL AS INTEGER ) * - - col1 / - col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,651 failed +* 83% was OK + +Time: 24308.937ms + +---- ---- ---- ---- ---- ---- ---- +### 243/620 [`./test/random/aggregates/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_112.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT col1 + CAST ( - + col0 AS INTEGER ) BETWEEN ( + col2 ) AND 47 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) + 49 col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["49","49","49"] +``` + + +```sql +SELECT + + MIN ( + CAST ( NULL AS INTEGER ) ) / - CAST ( NULL AS REAL ) / - COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + col1 - + + CAST ( NULL AS INTEGER ) / + - col0 FROM tab0 cor0 + +Expected: ["NULL"] but got ["1","21","81"] +``` + + +```sql +SELECT DISTINCT + - 67 + 90 / + + col1 FROM tab0 AS cor0 + +Expected: ["-63","-66","23"] but got ["-62.714","-65.889","23"] +``` + + +```sql +SELECT + CAST ( + ( - + MAX ( ALL + col2 ) ) AS INTEGER ) col0 FROM tab1 + +g is not defined +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), - col1 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-1","0","-21","0","-81"] +``` + + +```sql +SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - 94 ) IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT MAX ( ALL + col0 ) AS col2 FROM tab2 cor0 WHERE NOT 1 + - col0 IN ( + + col0 ) + +Expected: ["75"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 46 + ( 60 ) ) = ( - 64 * + 55 ) + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,566 failed +* 84% was OK + +Time: 23867.862ms + +---- ---- ---- ---- ---- ---- ---- +### 244/620 [`./test/random/aggregates/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_113.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) / 37 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL - 26 / + - 41 * col1 AS col2 FROM tab0 + +Expected: ["0","0","0"] but got ["0.008","0.030","0.634"] +``` + + +```sql +SELECT SUM ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * - col2 * + - 96 * - 74 / 1 + - col1 + +Expected: ["NULL"] but got ["121"] +``` + + +```sql +SELECT * FROM tab2 WHERE NOT ( 89 * - 71 - - col2 ) IN ( col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + ( - + CAST ( NULL AS REAL ) ) * + + ( + - col0 ) * + + col2 AS col0 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 56 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT MIN ( ALL - 53 ) AS col2 FROM tab2 WHERE NOT - ( - - col0 ) IN ( 1 * - col2 / + ( - col0 ) ) + +Expected: ["-53"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT ( - + col2 ) * - CAST ( NULL AS INTEGER ) + + CAST ( - - col2 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 + +Expected: ["NULL","NULL"] but got ["10","0","47","0","99","0"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ), 74 - + - col2 + CAST ( NULL AS INTEGER ) * - col0 / - 46 AS col2 FROM tab2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","114","0","132","0","97"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,598 failed +* 84% was OK + +Time: 32473.129ms + +---- ---- ---- ---- ---- ---- ---- +### 245/620 [`./test/random/aggregates/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_114.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col1 / col2 - CAST ( 95 AS INTEGER ) FROM tab0 + +Expected: ["-93","-94","-95"] but got ["-92.900","-93.277","-94.990"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE + ( col0 ) * CAST ( NULL AS INTEGER ) + + col0 * - col1 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + ( CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) + + 34 AS col0 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["34","34","34"] +``` + + +```sql +SELECT DISTINCT + - SUM ( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT NULL < col0 + +Expected: ["NULL"] but got ["66"] +``` + + +```sql +SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT - col0 / - + CAST ( NULL AS REAL ) * + + 58 + - 69 AS col0, col0 AS col2 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col0 AS col0, - ( col1 ) + - col1 + + - 53 + + col0 - + col1 * + 70 - + 97, - col1 AS col0 FROM tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - MIN ( ALL - - ( col1 ) ) AS col1, 8 FROM tab2 AS cor0 WHERE - col0 BETWEEN ( + col0 ) AND col1 + +Expected: ["NULL","8"] but got ["8","NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 86 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + MIN ( + - col2 ) * + 16 + + 45 AS col0 FROM tab0 WHERE + col0 + - col1 + - col0 + - col0 * - CAST ( - + 46 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) IS NULL + +Expected: ["-1539"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,582 failed +* 84% was OK + +Time: 27373.555ms + +---- ---- ---- ---- ---- ---- ---- +### 246/620 [`./test/random/aggregates/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_115.test) + +_Mimic sqlite_ + +```sql +SELECT - MAX ( ALL col2 ) + + 33 * MAX ( - + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 + +Expected: ["NULL"] but got ["-99"] +``` + + +```sql +SELECT + ( ( + + 81 ) ) * - col2 * + CAST ( NULL AS INTEGER ) - col0 * col0 * 8 AS col1 FROM tab2 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-16928","-32768","-45000"] +``` + + +```sql +SELECT DISTINCT CAST ( MIN ( DISTINCT + col0 ) AS INTEGER ) FROM tab1 + +g is not defined +``` + + +```sql +SELECT col2 AS col0, col0 AS col0 FROM tab0 + +Expected: ["10","87","47","15","99","97"] but got ["15","15","87","87","97","97"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN col2 AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) + + 25 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - col2 / col0 + 58 FROM tab0 + +Expected: ["55","57","58"] but got ["54.867","56.979","57.885"] +``` + + +```sql +SELECT DISTINCT + - col0 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT - 98 BETWEEN + 3 - 22 AND col1 + - col0 + +6 results returned but expected 9 +``` + + +```sql +SELECT - 24 / - 32 AS col1 FROM tab2 AS cor0 + +Expected: ["0","0","0"] but got ["0.750","0.750","0.750"] +``` + + +```sql +SELECT + + MIN ( - col1 ) FROM tab0 WHERE NOT 52 BETWEEN col2 AND + + 60 + +Expected: ["-1"] but got ["NULL"] +``` + + +```sql +SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL NOT BETWEEN 35 AND NULL, tab2 AS cor2 + +Parse error on line 1: +... BETWEEN 35 AND NULL, tab2 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,565 failed +* 84% was OK + +Time: 21724.444ms + +---- ---- ---- ---- ---- ---- ---- +### 247/620 [`./test/random/aggregates/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_116.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + 34 IN ( + 64 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col2 + col2 * col0 <> NULL + +Expected: ["0"] but got ["3"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) + + + 59 AS col0 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["59","59","59"] +``` + + +```sql +SELECT + SUM ( DISTINCT - col1 ) AS col0 FROM tab2 cor0 WHERE + 57 IN ( - - col0 * 24 ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL - + CAST ( MAX ( DISTINCT + + ( col0 ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT - col1 + 82 + CAST ( NULL AS REAL ) * col1 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT 37 * 50 AS col2, + col0 * + - 87 AS col0, + col1 AS col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE - 7 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT MAX ( ALL - - col1 ), SUM ( col2 ) * 5 AS col0 FROM tab2 WHERE NULL IS NOT NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT + 65 * - col1 AS col2, + col1 / 11 + - col2 / - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 + +Expected: ["-3055","NULL","-325","NULL","-910","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT MIN ( - - ( + + 10 ) ), MAX ( + - 39 ) AS col2 FROM tab0 WHERE NOT NULL <= + 43 / col2 + +Expected: ["NULL","NULL"] but got ["10","-39"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,618 failed +* 83% was OK + +Time: 25696.517ms + +---- ---- ---- ---- ---- ---- ---- +### 248/620 [`./test/random/aggregates/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_117.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 * 0 + col0 BETWEEN - 25 AND + 91 + +Expected: ["97","1","99"] but got ["15","81","47","87","21","10","97","1","99"] +``` + + +```sql +SELECT ALL + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 cor0 + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col0, - col2 AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","-10","NULL","-47","NULL","-99"] but got ["-10","-10","-47","-47","-99","-99"] +``` + + +```sql +SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + col0 + 75 AS col0 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["75"] +``` + + +```sql +SELECT DISTINCT - col2 + + col0 FROM tab1 WHERE NOT - col0 BETWEEN ( 94 + + 87 ) AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + 64 / + + col2 col1 FROM tab0 + +Expected: ["0","1","6"] but got ["0.646","1.362","6.400"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 26 ) IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * - col1 / col0, - col0 + + - 30 AS col2, col2 FROM tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT MAX ( - col0 ) + + COUNT ( ALL + col1 ) FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL + +Expected: ["-12"] but got ["NULL"] +``` + + +```sql +SELECT ALL col0 AS col1, col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 + +Expected: ["15","NULL","87","NULL","97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL - COUNT ( * ) * + + 3 * + CAST ( NULL AS INTEGER ) AS col2, + MIN ( 73 ) FROM tab0 AS cor0 WHERE NULL < col1 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,611 failed +* 83% was OK + +Time: 25998.322ms + +---- ---- ---- ---- ---- ---- ---- +### 249/620 [`./test/random/aggregates/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_118.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col2 / + + 65 AS col0 FROM tab0 + +Expected: ["0","1"] but got ["0.154","0.723","1.523"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) + ( + 90 ) col0 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["90","90","90"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 - - col1 BETWEEN - - col0 * + 49 AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + - CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT col1 + - + col2 + - 18 + col2 + - col2 * CAST ( NULL AS REAL ) + 77 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT ALL 37 + - CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab1 cor0 + +g is not defined +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 ) > col1 * + col1 + +Expected: ["NULL","NULL"] but got ["14","47"] +``` + + +```sql +SELECT DISTINCT COUNT ( * ) / + CAST ( MIN ( 34 ) AS INTEGER ) AS col1 FROM tab0 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) + +18 results returned but expected 54 +``` + + +```sql +SELECT col2 + - CAST ( NULL AS INTEGER ) AS col2, - col2 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["10","0","47","0","99","0"] +``` + + +```sql +SELECT - col0 / + CAST ( NULL AS INTEGER ) * - 2 AS col1, CAST ( - col2 AS INTEGER ) / 20 FROM tab2 + +Expected: ["NULL","-1","NULL","-2","NULL","-2"] but got ["NULL","-1.150","NULL","-2","NULL","-2.900"] +``` + + +```sql +SELECT ALL - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * 18 AS col0, 20 FROM tab1 AS cor0 + +Expected: ["NULL","20"] but got ["20","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,508 failed +* 84% was OK + +Time: 35443.151ms + +---- ---- ---- ---- ---- ---- ---- +### 250/620 [`./test/random/aggregates/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_119.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + ( + - col2 ) + col0 * + - col0 + ( + CAST ( col1 AS INTEGER ) ) + + col2 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - col0 AS col1, col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 + +Expected: ["-51","NULL","-85","NULL","-91","NULL"] but got ["-51","0","-85","0","-91","0"] +``` + + +```sql +SELECT ALL 6 / + 28 * - col0 * + - 42 FROM tab2 + +Expected: ["0","0","0"] but got ["0.000","0.000","0.000"] +``` + + +```sql +SELECT * FROM tab2, tab2 cor0 WHERE + 10 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT - COUNT ( * ) / + - CAST ( AVG ( + col1 ) AS INTEGER ) * - 93 + - MIN ( - col1 ) AS col1 FROM tab1 + +Expected: ["47"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ), + col0 - - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","144","0","147","0","159"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab2 cor1 ON NOT NULL IS NULL, tab2 AS cor2 + +Parse error on line 1: +... ON NOT NULL IS NULL, tab2 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,602 failed +* 83% was OK + +Time: 26870.835ms + +---- ---- ---- ---- ---- ---- ---- +### 251/620 [`./test/random/aggregates/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_12.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + - col0 + + 64 AS col1, + 73 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL + +Expected: ["-11","73","0","73","18","73"] but got ["73","73"] +``` + + +```sql +SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) - + col2 FROM tab0 + +Expected: ["NULL"] but got ["-98","11","34"] +``` + + +```sql +SELECT col0, col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 + +Expected: ["51","NULL","85","NULL","91","NULL"] but got ["51","14","85","5","91","47"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 70 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + 15 - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 + +g is not defined +``` + + +```sql +SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT - col0 * - 45 NOT BETWEEN NULL AND - 92 ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL MIN ( - 98 ) AS col2 FROM tab1 WHERE NOT - 12 IN ( - col0 * 89 - - ( 78 ) * col1 ) + +Expected: ["-98"] but got ["NULL"] +``` + + +```sql +SELECT + MAX ( DISTINCT - col1 ), ( + - MAX ( - - 97 ) ) col0 FROM tab0 WHERE NOT - 44 + - 76 > NULL + +Expected: ["NULL","NULL"] but got ["-1","-97"] +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ), col2 * - + 89 * + col1 * + - col0 * + CAST ( NULL AS INTEGER ) * - 89 AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT + - COUNT ( * ) AS col0, + MAX ( - ( + 47 ) ) col0 FROM tab2 AS cor0 WHERE 93 * 75 * + + col0 IS NULL + +Expected: ["0","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,646 failed +* 83% was OK + +Time: 40546.174ms + +---- ---- ---- ---- ---- ---- ---- +### 252/620 [`./test/random/aggregates/slt_good_120.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_120.test) + +_Mimic sqlite_ + +```sql +SELECT - 78 + + col0 * + CAST ( NULL AS INTEGER ), col2 FROM tab0 + +Expected: ["NULL","10","NULL","47","NULL","99"] but got ["-78","10","-78","47","-78","99"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS REAL ) + COUNT ( DISTINCT + 72 ) * COUNT ( * ) FROM tab0 WHERE NOT 11 IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT - 15 + COUNT ( * ) / 76 FROM tab0 + +Expected: ["-15"] but got ["-14.961"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE ( + 27 ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 5 BETWEEN + 62 * col1 AND + col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 72 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT - COUNT ( * ) - - SUM ( - ( - 24 ) ) / - + CAST ( - + MIN ( + - col1 ) AS INTEGER ) FROM tab0 + +Expected: ["-3"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MAX ( + + col2 ), - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["-58","0"] +``` + + +```sql +SELECT - + SUM ( col2 ) AS col0, MIN ( DISTINCT - ( - 37 ) ) FROM tab2 AS cor0 WHERE NOT col0 * + col2 IS NOT NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL, tab0 AS cor2 + +Parse error on line 1: +... ON NOT NULL IS NULL, tab0 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT 23 * + 15 * + - 99 AS col1, + MIN ( ALL col2 ) AS col1 FROM tab2 WHERE NOT ( - col0 ) <> + CAST ( - - col1 AS INTEGER ) * col1 * 50 + +Expected: ["-34155","NULL"] but got ["NULL"] +``` + + +```sql +SELECT col1 + CAST ( NULL AS INTEGER ) + - col1 * + - col0 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,601 failed +* 84% was OK + +Time: 35986.322ms + +---- ---- ---- ---- ---- ---- ---- +### 253/620 [`./test/random/aggregates/slt_good_121.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_121.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + ( + 25 ) / + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL + +Expected: ["-8"] but got ["-8.333"] +``` + + +```sql +SELECT ( CAST ( NULL AS INTEGER ) ) / - col2 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL COUNT ( * ) * - ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - COUNT ( * ) * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - + CAST ( NULL AS INTEGER ) + - 27 + - col1 * - 50 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + ( - - col2 ) / + + 51 AS col0, 80 * - + 98, col2 FROM tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - + 34 * + - col2 AS col2, - col2 * + + 23 + - col0 + + + CAST ( NULL AS REAL ) / col1 AS col1 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + CAST ( + - AVG ( DISTINCT - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT + MAX ( + 15 ) AS col1 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 - + CAST ( - col1 AS INTEGER ) IS NOT NULL + +Expected: ["15"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - AVG ( ALL + - 74 ) AS col2, 86 FROM tab0 WHERE 58 IS NULL + +Expected: ["NULL","86"] but got ["86","NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 37 ) IS NOT NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,582 failed +* 84% was OK + +Time: 40817.018ms + +---- ---- ---- ---- ---- ---- ---- +### 254/620 [`./test/random/aggregates/slt_good_122.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_122.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - SUM ( - col0 ) col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> CAST ( NULL AS INTEGER ) * CAST ( - 66 AS INTEGER ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE col1 / + col0 + col2 NOT IN ( + 3 ) + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT * FROM tab1 AS cor0 WHERE - 35 + col2 / CAST ( NULL AS INTEGER ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT + - CAST ( NULL AS INTEGER ) - - + 51 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT 1 / + COUNT ( + + 84 ) FROM tab1 + +Expected: ["0"] but got ["0.333"] +``` + + +```sql +SELECT ALL CAST ( - COUNT ( DISTINCT 80 ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT + col0 / + col2 IS NULL + +g is not defined +``` + + +```sql +SELECT + + SUM ( - + col2 ), SUM ( - col0 ) FROM tab2 WHERE + 74 + - col0 + 96 * - ( + col2 ) > - + col1 + - CAST ( NULL AS INTEGER ) + + - 80 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 94 ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - + 38 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 + +Wrong conversion type +``` + + +```sql +SELECT + 72 / - CAST ( NULL AS INTEGER ) + + + 25 AS col2, + col0 * + col1 + - ( + + ( ( + 81 ) ) ) / - col0 FROM tab1 cor0 + +Expected: ["NULL","425","NULL","4277","NULL","715"] but got ["NULL","425.953","NULL","4277.890","NULL","715.588"] +``` + + +```sql +SELECT ( + 30 ) / CAST ( - SUM ( DISTINCT + col1 ) AS INTEGER ) * - 34 + ( - MAX ( col1 ) ) * + 31 AS col2 FROM tab1 + +Expected: ["-1457"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,628 failed +* 83% was OK + +Time: 22608.324ms + +---- ---- ---- ---- ---- ---- ---- +### 255/620 [`./test/random/aggregates/slt_good_123.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_123.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT * FROM tab2 WHERE NOT - 71 IN ( + - 45 - - + col0, - 74, + col1, 80 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - COUNT ( * ) / 69 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = 25 + +Expected: ["0"] but got ["-0.043"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * - col1 + + col1 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["1","21","81"] +``` + + +```sql +SELECT DISTINCT - CAST ( col1 AS REAL ) - - + CAST ( NULL AS REAL ) FROM tab0 cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - + ( + AVG ( - 17 ) ) AS col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL + +Expected: ["NULL"] but got ["17"] +``` + + +```sql +SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 1 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL COUNT ( * ) / CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT - col0 + + 70 + 39 / + - 10 AS col2 FROM tab1 + +Expected: ["-18","-24","16"] but got ["-18.900","-24.900","15.100"] +``` + + +```sql +SELECT MAX ( + col1 ) AS col2, - SUM ( ALL - - col0 ) * + + 62 + - 56 * COUNT ( DISTINCT - + col1 ) - 55 FROM tab1 AS cor0 WHERE + col2 IS NULL + +Expected: ["NULL","NULL"] but got ["NULL","-55"] +``` + + +```sql +SELECT 48 + + - 47 + - MIN ( ALL 84 ) AS col1, 83 FROM tab1 WHERE + + col1 - + ( + - ( - + 30 ) ) IS NULL + +Expected: ["NULL","83"] but got ["83","NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 90 IS NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,644 failed +* 83% was OK + +Time: 23805.014ms + +---- ---- ---- ---- ---- ---- ---- +### 256/620 [`./test/random/aggregates/slt_good_124.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_124.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - AVG ( DISTINCT + + 78 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * + + 20 / col1 + - 83 IS NULL + +Wrong conversion type +``` + + +```sql +SELECT + 70 / - col2 AS col1 FROM tab2 + +Expected: ["-1","-1","-3"] but got ["-1.207","-1.750","-3.043"] +``` + + +```sql +SELECT ALL + col2 * - - CAST ( NULL AS INTEGER ) * + col1 * + 18 + col0 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["46","64","75"] +``` + + +```sql +SELECT CAST ( MAX ( - 35 ) AS INTEGER ) FROM tab2 + +g is not defined +``` + + +```sql +SELECT DISTINCT + col1 - CAST ( NULL AS INTEGER ) / + - ( + col1 ) - col2 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-98","11","34"] +``` + + +```sql +SELECT + 71 / - col0 col0 FROM tab1 cor0 WHERE NOT - col0 + - 97 BETWEEN ( col2 ) AND - col2 * 62 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - 70 col1, - col2 * + col0 AS col1, 78 AS col2 FROM tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT col0, 19 * - col1 + + 85 col0, + 51 AS col0 FROM tab0 + +3 results returned but expected 9 +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) + + 81 * + ( - col2 ) * + col1 AS col0, - CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-249480","-77","-314766","-67","-95013","-51"] +``` + + +```sql +SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) AS col2, - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL - MIN ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 5 + + - 41 BETWEEN col1 AND NULL + +Expected: ["47"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,605 failed +* 83% was OK + +Time: 44945.492ms + +---- ---- ---- ---- ---- ---- ---- +### 257/620 [`./test/random/aggregates/slt_good_125.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_125.test) + +_Mimic sqlite_ + +```sql +SELECT - ( col1 ) - + ( 76 + + col2 ) / 40 FROM tab1 + +Expected: ["-18","-50","-8"] but got ["-18.300","-50.600","-8.375"] +``` + + +```sql +SELECT DISTINCT col0 FROM tab1 WHERE NOT + CAST ( col0 AS REAL ) - + col2 IS NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 22 + 48 / col1 ) IN ( 3 * col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) * 44 + col2 * + 18 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["1782","180","846"] +``` + + +```sql +SELECT COUNT ( * ) * - ( MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( + 72 * 65 IS NOT NULL ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT CAST ( + ( + SUM ( ALL col1 ) ) AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE ( + ( 86 ) ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT col0 AS col2, col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 + +Expected: ["51","NULL","85","NULL","91","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,669 failed +* 83% was OK + +Time: 34958.692ms + +---- ---- ---- ---- ---- ---- ---- +### 258/620 [`./test/random/aggregates/slt_good_126.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_126.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - COUNT ( * ) / SUM ( + col2 ) FROM tab0 + +Expected: ["0"] but got ["-0.019"] +``` + + +```sql +SELECT - 36 - + CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-36","-36","-36"] +``` + + +```sql +SELECT DISTINCT COUNT ( - col0 ) - + 16 FROM tab0 cor0 WHERE col1 NOT BETWEEN + CAST ( - ( - - 61 ) AS REAL ) AND 39 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - ( - CAST ( + - COUNT ( DISTINCT - 66 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT - - col0 FROM tab0 WHERE NOT col1 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + + + COUNT ( * ) col1, - MAX ( 64 ) * + 56 FROM tab0 + +Expected: ["NULL","-3584"] but got ["3","-3584"] +``` + + +```sql +SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - - 23 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + MIN ( - 84 ) FROM tab2 AS cor0 WHERE NOT + 79 + + ( - col1 ) IN ( + col0, + col0 * + - col2 ) + +Expected: ["-84"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 10 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL ( - CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) / col1 FROM tab2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT 1 IS NOT NULL, tab1 AS cor2 + +Parse error on line 1: +...ON NOT 1 IS NOT NULL, tab1 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT + SUM ( + 26 ) * - + ( + 36 ) AS col1, - MIN ( - 68 ) FROM tab1 WHERE + - col2 IS NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,599 failed +* 84% was OK + +Time: 25766.036ms + +---- ---- ---- ---- ---- ---- ---- +### 259/620 [`./test/random/aggregates/slt_good_127.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_127.test) + +_Mimic sqlite_ + +```sql +SELECT col2, 14 AS col2 FROM tab1 + +Expected: ["59","14","68","14","96","14"] but got ["14","14","14","14","14","14"] +``` + + +```sql +SELECT ALL AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT col2 * + col2, - CAST ( NULL AS REAL ) * + + col0 AS col1 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) / - 46 AS col2 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT col1 AS col2, - col0 / - col1 + - col0 AS col2, - - 39 * 84 + col1 + + col1 * + 30 AS col0 FROM tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + + ( - 93 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1, + 18 * - col1 * 87 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * + 99 AS col1 FROM tab1 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 cor0 WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - + ( COUNT ( * ) ) + + - COUNT ( * ) / CAST ( + + AVG ( DISTINCT - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 + +Expected: ["-3"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,629 failed +* 83% was OK + +Time: 31452.722ms + +---- ---- ---- ---- ---- ---- ---- +### 260/620 [`./test/random/aggregates/slt_good_128.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_128.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - SUM ( DISTINCT - - ( + 95 ) ) * 73 / + - SUM ( DISTINCT + 58 ) AS col0 FROM tab0 + +Expected: ["119"] but got ["119.569"] +``` + + +```sql +SELECT + CAST ( - 1 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL ) + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) / 96 col1 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) / - - 48 * 9 * col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - col1 FROM tab0 AS cor0 WHERE NOT col2 IN ( - - ( + col0 ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 + +g is not defined +``` + + +```sql +SELECT DISTINCT - - col1 / 8 + + 45, col0 AS col0, - col1 * - col2 AS col0 FROM tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 33 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) col1, CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - 63 AS col1 FROM tab1 cor0 + +Expected: ["NULL","NULL"] but got ["-63"] +``` + + +```sql +SELECT - MAX ( + 68 ) AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL + +Expected: ["-68"] but got ["NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + col2 * + col1 + + CAST ( NULL AS INTEGER ) * - + col0 FROM tab0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","210","0","3807","0","99"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,645 failed +* 83% was OK + +Time: 41809.297ms + +---- ---- ---- ---- ---- ---- ---- +### 261/620 [`./test/random/aggregates/slt_good_129.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_129.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + - SUM ( 47 ) AS col1, + 39 * - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL + +Expected: ["NULL","0"] but got ["0"] +``` + + +```sql +SELECT - + 26 * - col1 * - 52 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT 50 / - col1 FROM tab1 + +Expected: ["-1","-10","-3"] but got ["-1.064","-10","-3.571"] +``` + + +```sql +SELECT - AVG ( ALL - col0 ) + - + CAST ( NULL AS REAL ) AS col2, - 48 col1 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT - - 96, + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 + +Expected: ["96","NULL","96","NULL","96","NULL"] but got ["96","0","96","0","96","0"] +``` + + +```sql +SELECT ALL + - CAST ( + + MAX ( ALL - + 61 ) AS INTEGER ) FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT - col2, + 38 AS col1, col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - MIN ( col2 ) FROM tab1 WHERE NOT col2 IN ( + col1 ) + +Expected: ["-59"] but got ["NULL"] +``` + + +```sql +SELECT ALL - 47 + - col2 * + CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM ( tab1 cor0 CROSS JOIN tab1 ) + +18 results returned but expected 54 +``` + +#### ☓ Ran 802 tests as _sqlite_ + +* 132 failed +* 83% was OK + +Time: 10693.856ms + +---- ---- ---- ---- ---- ---- ---- +### 262/620 [`./test/random/aggregates/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_13.test) + +_Mimic sqlite_ + +```sql +SELECT - ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ( + CAST ( + SUM ( + col2 ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT col1 - - - col0 + + col1 * - 69 col1, + col1 AS col1, + - 34 AS col1 FROM tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - 31 * - CAST ( - - ( - col1 ) AS INTEGER ) - - - col0 + col1 + + + CAST ( NULL AS INTEGER ) - + + col1 + - col2 AS col2 FROM tab2 cor0 + +Expected: ["NULL"] but got ["-1650","-2210","-2491"] +``` + + +```sql +SELECT DISTINCT - - ( + MIN ( DISTINCT - col0 ) ) / - ( + 4 ) AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0 + +Expected: ["24","3"] but got ["24.250","3"] +``` + + +```sql +SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( + 87 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT col0 * 27, ( + - CAST ( NULL AS INTEGER ) ) + col2 + + 64 AS col0 FROM tab2 AS cor0 + +Expected: ["1242","NULL","1728","NULL","2025","NULL"] but got ["1242","87","1728","104","2025","122"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( 30 AS INTEGER ) <= - 79 + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON + + 44 IS NOT NULL, tab0 AS cor2 + +Parse error on line 1: +...N + + 44 IS NOT NULL, tab0 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT - 95 / + CAST ( NULL AS INTEGER ) + + 82, - col0 + - + col1 * CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","-144","NULL","-147","NULL","-159"] +``` + + +```sql +SELECT - + CAST ( NULL AS INTEGER ) * + col2 * - - col2 AS col1, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + + col0 + + col1 * col2 col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","1344","0","295","0","3196"] +``` + + +```sql +SELECT - COUNT ( + 59 ) / + CAST ( - COUNT ( DISTINCT col2 ) AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT ALL + col0 AS col1, 27 - 63 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 + +Expected: ["46","NULL","64","NULL","75","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,532 failed +* 84% was OK + +Time: 41207.932ms + +---- ---- ---- ---- ---- ---- ---- +### 263/620 [`./test/random/aggregates/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_14.test) + +_Mimic sqlite_ + +```sql +SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * + ( + 5 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 + +g is not defined +``` + + +```sql +SELECT ALL + 56 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["56","56","56"] +``` + + +```sql +SELECT DISTINCT - MIN ( + - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT 11 / - 57 FROM tab0 + +Expected: ["0","0","0"] but got ["-0.193","-0.193","-0.193"] +``` + + +```sql +SELECT + 56 AS col2, + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 + +Expected: ["56","NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab2 WHERE NOT ( col0 ) IN ( - col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab0 cor0 JOIN tab0 AS cor1 ON NOT + 44 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + col2 / col1 * - 65 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL + +Expected: ["-6435","0","0"] but got ["-30.952","-37.716","-6435"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NULL BETWEEN - ( + + 34 ) AND - 8, tab2 AS cor2 + +Parse error on line 1: +...- ( + + 34 ) AND - 8, tab2 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT COUNT ( * ) AS col1, COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 + +Expected: ["3","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT MIN ( col2 ) FROM tab2 WHERE NOT col0 IN ( 71 ) + +Expected: ["23"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + AVG ( + col1 ) * + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,667 failed +* 83% was OK + +Time: 24709.612ms + +---- ---- ---- ---- ---- ---- ---- +### 264/620 [`./test/random/aggregates/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_15.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - COUNT ( * ) + - 77 / 37 FROM tab0 + +Expected: ["-5"] but got ["-5.081"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) + + ( + - 29 ) FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-29","-29","-29"] +``` + + +```sql +SELECT DISTINCT col1 - + - col0 + - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 cor0 + +Expected: ["NULL"] but got ["138","65","90"] +``` + + +```sql +SELECT + col0 / col1 * col0 + + 52 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND + - 62 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - CAST ( - + COUNT ( - - 0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT * FROM tab1 WHERE NOT - CAST ( - 47 AS REAL ) + - - col2 IS NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL + 84 / 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ), ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT + 46 + + 38 / + CAST ( + COUNT ( * ) AS INTEGER ) - - COUNT ( - col0 ) AS col1 FROM tab0 + +Expected: ["61"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 13 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT + + col2 AS col2, 95 / - CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab2 AS cor0 + +Expected: ["23","NULL","40","NULL","58","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - COUNT ( * ) AS col1, ( - MIN ( - + 95 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL <= ( 40 ) + +Expected: ["0","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,625 failed +* 83% was OK + +Time: 26978.999ms + +---- ---- ---- ---- ---- ---- ---- +### 265/620 [`./test/random/aggregates/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_16.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab0 WHERE NOT - - col0 BETWEEN + col1 / col2 AND + + 84 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - col2 + + col0 / + col2 FROM tab0 + +Expected: ["-2","-47","-99"] but got ["-1.300","-46.681","-98.020"] +``` + + +```sql +SELECT ALL + 20 / - col2 - + 54 AS col0, + 31, ( - - col2 ) AS col2 FROM tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + col1 AS col2 FROM tab0 cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT col2 + + ( + CAST ( - 36 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) * + 27 * + ( - col2 ) FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["23","32","60"] +``` + + +```sql +SELECT DISTINCT 33 * - + 4, CAST ( NULL AS REAL ) * 83 / - + col1 AS col2 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 13 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT + - ( + - ( CAST ( + COUNT ( * ) AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ), + col1 + CAST ( NULL AS INTEGER ) - 37 + + - 62 + + col0 AS col0 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-34","0","-9","0","39"] +``` + + +```sql +SELECT DISTINCT 95 + - 46 * - + 36 AS col1, - 69 / - CAST ( NULL AS INTEGER ) * + col1 * + col2 AS col1 FROM tab1 + +Expected: ["1751","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) AS col1, + col1 / col2 * ( - - col1 ) AS col2 FROM tab2 AS cor0 + +Expected: ["NULL","102","NULL","67","NULL","77"] but got ["NULL","113.087","NULL","148.225","NULL","77.397"] +``` + + +```sql +SELECT DISTINCT - 52 + + col2 * + CAST ( NULL AS INTEGER ) AS col0, ( CAST ( NULL AS INTEGER ) ) + - col0 * - col2 FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["-52","1058","-52","2560","-52","4350"] +``` + + +```sql +SELECT DISTINCT - MAX ( + 71 ) * - + MIN ( DISTINCT col0 ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 WHERE 1 * - 83 > + col1 + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT - COUNT ( * ) / + - COUNT ( * ) FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) / ( - col2 ) + + col2 * + + col0 IS NOT NULL + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT AVG ( + 22 ) AS col0, + 28 / + 78 FROM tab2 WHERE NOT - col1 IS NOT NULL + +Expected: ["NULL","0"] but got ["NULL","0.359"] +``` + + +```sql +SELECT DISTINCT col0 col0, 17 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 + +Expected: ["15","NULL","87","NULL","97","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,574 failed +* 84% was OK + +Time: 36529.991ms + +---- ---- ---- ---- ---- ---- ---- +### 266/620 [`./test/random/aggregates/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_17.test) + +_Mimic sqlite_ + +```sql +SELECT + 16 / col2 AS col2 FROM tab2 AS cor0 + +Expected: ["0","0","0"] but got ["0.276","0.400","0.696"] +``` + + +```sql +SELECT + MIN ( ALL col2 ) FROM tab1 WHERE NOT + 85 = NULL + +Expected: ["NULL"] but got ["59"] +``` + + +```sql +SELECT ALL - ( - col0 ) * + + CAST ( NULL AS INTEGER ) + - 31 AS col2 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-31","-31","-31"] +``` + + +```sql +SELECT 72 + + CAST ( NULL AS REAL ) FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab1 cor0 WHERE NOT - 7 BETWEEN + 97 AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NOT NULL ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - CAST ( SUM ( DISTINCT - + col0 ) AS INTEGER ) AS col2, 20 FROM tab1 + +g is not defined +``` + + +```sql +SELECT + 31 / - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2, MIN ( 21 ) FROM tab1 + +Expected: ["-10","21"] but got ["NULL","21"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col2, MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT - 54 IS NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,565 failed +* 84% was OK + +Time: 35601.288ms + +---- ---- ---- ---- ---- ---- ---- +### 267/620 [`./test/random/aggregates/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_18.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab1 + +Expected: ["NULL"] but got ["3"] +``` + + +```sql +SELECT ALL + + col1 + col2 + + col2 + col2 / 47 col0 FROM tab0 cor0 + +Expected: ["176","201","41"] but got ["176","201.106","41.213"] +``` + + +```sql +SELECT ALL col2 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * - ( - CAST ( - ( - col2 ) AS INTEGER ) ) IN ( col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT 80 * - CAST ( NULL AS REAL ) FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL col0, 82 - - 37 AS col1, col0 * col2 AS col0 FROM tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + ( + ( - - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL, tab1 AS cor2 + +Parse error on line 1: +...cor1 ON NULL IS NULL, tab1 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT DISTINCT col2 + - col0 + - + 74 * CAST ( NULL AS INTEGER ) * - 41 AS col1, - CAST ( NULL AS INTEGER ) * col2 FROM tab0 + +Expected: ["NULL","NULL"] but got ["-77","0","2","0","32","0"] +``` + + +```sql +SELECT ALL * FROM tab0 WHERE NOT ( NOT - 68 * col0 NOT BETWEEN - 84 AND ( col2 - col0 ) ) + +6 results returned but expected 9 +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col0, - 15 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT - MIN ( - + 28 ) col1, 1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL + +Expected: ["NULL","1"] but got ["1","NULL"] +``` + + +```sql +SELECT + 50 AS col1, 83 / - 6 FROM tab2 AS cor0 + +Expected: ["50","-13","50","-13","50","-13"] but got ["50","-13.833","50","-13.833","50","-13.833"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,583 failed +* 84% was OK + +Time: 26036.439ms + +---- ---- ---- ---- ---- ---- ---- +### 268/620 [`./test/random/aggregates/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_19.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - + 63 * 33 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["-2079"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 + + col1 + + 47 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["114","124","98"] +``` + + +```sql +SELECT ALL col1 * + CAST ( NULL AS REAL ) + 35 / 6 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT col2 AS col1 FROM tab1 WHERE ( - - col0 ) * - col1 + + col1 + + - CAST ( NULL AS INTEGER ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT col1 AS col2, col0 AS col2 FROM tab0 AS cor0 + +Expected: ["1","97","21","87","81","15"] but got ["15","15","87","87","97","97"] +``` + + +```sql +SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + MIN ( - + 19 ) + + 52 AS col2 FROM tab1 AS cor0 WHERE NOT col2 + + + 64 * - col1 BETWEEN col0 AND - col2 + +Expected: ["33"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NOT NULL + +6 results returned but expected 18 +``` + + +```sql +SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT + COUNT ( * ) AS col1, MIN ( - 68 ) AS col1 FROM tab2 WHERE NULL < + + ( - 12 ) + +Expected: ["0","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,643 failed +* 83% was OK + +Time: 29410.877ms + +---- ---- ---- ---- ---- ---- ---- +### 269/620 [`./test/random/aggregates/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT CAST ( + SUM ( ALL - 37 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT + - SUM ( + CAST ( NULL AS INTEGER ) ) + - 23 AS col1 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-23"] +``` + + +```sql +SELECT + - 40 / + + col2 AS col2 FROM tab2 AS cor0 + +Expected: ["-1","-1","0"] but got ["-0.690","-1","-1.739"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + + + col1 IN ( 37 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - + CAST ( NULL AS INTEGER ) + 77 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["77","77","77"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS REAL ) * - 52 * - col1 * + 92 AS col1 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL IS NULL ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + + 45 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * ( - SUM ( col2 ) ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,508 failed +* 84% was OK + +Time: 25371.863ms + +---- ---- ---- ---- ---- ---- ---- +### 270/620 [`./test/random/aggregates/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_20.test) + +_Mimic sqlite_ + +```sql +SELECT ALL * FROM tab1 WHERE NOT ( - col2 * - col2 ) < ( - col2 * CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT ALL + col1 * - ( - col1 ) * col0 - - + CAST ( + + col2 AS INTEGER ) + - 37 / + col0 + + - col1 * + 12 AS col0, + ( - + 53 ) + - col0 FROM tab0 AS cor0 + +Expected: ["184","-150","38125","-140","97488","-68"] but got ["183.619","-150","38124.575","-140","97487.533","-68"] +``` + + +```sql +SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 + +Expected: ["NULL"] but got ["-10","-47","-99"] +``` + + +```sql +SELECT CAST ( - AVG ( ALL + CAST ( + ( col2 ) AS INTEGER ) ) AS INTEGER ) FROM tab2 + +g is not defined +``` + + +```sql +SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - col1 / + + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) * 80 + 9 / + - 32 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab0 cor0 WHERE ( NOT + 77 * 73 IN ( col0 * + col1 ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 89 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - 5 - - CAST ( NULL AS INTEGER ), + MIN ( ALL col1 ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - + col1 ) + +Expected: ["NULL","NULL"] but got ["-5","3"] +``` + + +```sql +SELECT - AVG ( - ( 62 ) ) * + 46 AS col1, 60 * SUM ( - - col0 ) AS col0 FROM tab2 cor0 WHERE + 55 IS NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT MAX ( DISTINCT - col1 ) / - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 + +Expected: ["1"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,606 failed +* 83% was OK + +Time: 33583.098ms + +---- ---- ---- ---- ---- ---- ---- +### 271/620 [`./test/random/aggregates/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_21.test) + +_Mimic sqlite_ + +```sql +SELECT - 31 / - 67 * - + col1 + - - 67 FROM tab2 AS cor0 + +Expected: ["67","67","67"] but got ["66.991","66.993","66.994"] +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN + ( col0 ) AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 46 - - 29 IS NULL + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) NOT IN ( - 50 - col2 ) + +Wrong conversion type +``` + + +```sql +SELECT - col1 AS col0, col0 AS col0, - 44 col1 FROM tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + CAST ( AVG ( DISTINCT + col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 0 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT 2 * 20 + + - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["40","0","40","0","40","0"] +``` + + +```sql +SELECT DISTINCT + COUNT ( * ) / CAST ( CAST ( + - SUM ( DISTINCT - ( - ( - col1 ) ) ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 WHERE col1 >= ( + col2 ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,591 failed +* 84% was OK + +Time: 128667.925ms + +---- ---- ---- ---- ---- ---- ---- +### 272/620 [`./test/random/aggregates/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_22.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - - 18 / CAST ( + - 87 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT 50 AS col2 FROM tab0 WHERE NOT ( + col0 / col1 ) NOT BETWEEN col2 * + col0 * - col0 AND + + col1 + 90 + 61 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-14","-47","-5"] +``` + + +```sql +SELECT DISTINCT - - 35 + - - col2 + - col1 AS col2, + 45 + 25 / col0 AS col1 FROM tab0 AS cor0 + +Expected: ["1","46","133","45","24","45"] but got ["133","45.258","1","46.667","24","45.287"] +``` + + +```sql +SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) - CAST ( + + MIN ( + col0 ) AS INTEGER ) FROM tab2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT MAX ( + CAST ( NULL AS REAL ) ) FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 32 + - ( CAST ( SUM ( - col1 ) AS INTEGER ) ) FROM tab1 + +g is not defined +``` + + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + col1 BETWEEN + - 47 + + + col2 AND - - col2 + +6 results returned but expected 9 +``` + + +```sql +SELECT COUNT ( * ) / + - CAST ( + SUM ( ALL + - 19 ) AS INTEGER ) + - 51 FROM tab2 AS cor0 + +Expected: ["-51"] but got ["NULL"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * - + 74 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,661 failed +* 83% was OK + +Time: 193635.254ms + +---- ---- ---- ---- ---- ---- ---- +### 273/620 [`./test/random/aggregates/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_23.test) + +_Mimic sqlite_ + +```sql +SELECT ALL * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT - 15 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + CAST ( AVG ( - - col1 ) AS INTEGER ) + + 8 * 52 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT + ( - col0 ) * - - col1 * + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["-107916","-315392","-376875"] +``` + + +```sql +SELECT DISTINCT col0 / + 90 AS col1 FROM tab1 + +Expected: ["0","1"] but got ["0.567","0.944","1.011"] +``` + + +```sql +SELECT ALL + 51 * - + CAST ( NULL AS REAL ) col1 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL ( - - MIN ( - CAST ( NULL AS INTEGER ) ) ), + 95 col2 FROM tab1 + +Expected: ["NULL","95"] but got ["0","95"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) BETWEEN NULL AND - col2 / - col0 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + 46 * + ( CAST ( NULL AS INTEGER ) ) - COUNT ( + col2 ) + + - COUNT ( - 64 ) AS col0, + 42 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["-6","42"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( - + 84 ) * - 55 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT 79 + - MAX ( + col0 ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN - col2 + 77 - - col1 + + col2 * + + 82 AND NULL + +Expected: ["4"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 cor0 INNER JOIN tab1 AS cor1 ON NOT + 23 IS NULL, tab0 AS cor2 + +Parse error on line 1: +... ON NOT + 23 IS NULL, tab0 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,601 failed +* 84% was OK + +Time: 23008.325ms + +---- ---- ---- ---- ---- ---- ---- +### 274/620 [`./test/random/aggregates/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_24.test) + +_Mimic sqlite_ + +```sql +SELECT - - COUNT ( DISTINCT + col2 ) + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 + +Expected: ["NULL"] but got ["3"] +``` + + +```sql +SELECT ALL ( - 67 ) + + CAST ( NULL AS REAL ) FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT - col0 AS col0, col1 col0 FROM tab1 AS cor0 + +Expected: ["-51","14","-85","5","-91","47"] but got ["14","14","47","47","5","5"] +``` + + +```sql +SELECT - col1 + col0 + + col1 - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - 99 * - - 94 + + - col2 IS NULL + +Expected: ["0","NULL","0","NULL","0","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT + CAST ( + + COUNT ( DISTINCT + col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL + 1 + - col0 FROM tab2 WHERE NOT - col1 IN ( col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2, + MAX ( + - col0 ) FROM tab0 AS cor0 WHERE + col1 = NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL IS NULL ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT COUNT ( - 71 ) / COUNT ( * ) col1, + 5 / + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 26, 95 * + col2 ) + +Expected: ["1","1"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) + + ( - + COUNT ( * ) ), MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 + +Expected: ["NULL","NULL"] but got ["-3","0"] +``` + + +```sql +SELECT - col0 / - ( + 8 ), - 88 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 + +Expected: ["10","NULL","11","NULL","6","NULL"] but got ["10.625","NULL","11.375","NULL","6.375","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,587 failed +* 84% was OK + +Time: 33849.167ms + +---- ---- ---- ---- ---- ---- ---- +### 275/620 [`./test/random/aggregates/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_25.test) + +_Mimic sqlite_ + +```sql +SELECT - COUNT ( * ) + COUNT ( * ) / + 46 FROM tab1 + +Expected: ["-3"] but got ["-2.935"] +``` + + +```sql +SELECT ALL - COUNT ( * ), CAST ( NULL AS INTEGER ) * - - 37 AS col1 FROM tab2 + +Expected: ["-3","NULL"] but got ["-3","0"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - 96 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-96","-96","-96"] +``` + + +```sql +SELECT + col0 AS col0, 25 FROM tab2 AS cor0 WHERE NOT - col1 * + - col2 / - CAST ( - - 24 AS REAL ) = 3 + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( - COUNT ( * ) AS INTEGER ) - - ( + 23 ) * + 62 AS col0 FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT * FROM tab0 WHERE NOT col2 + + col0 IN ( col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - MAX ( + + col1 ), + MAX ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT 78 = NULL + +Expected: ["NULL","NULL"] but got ["-81","-15"] +``` + + +```sql +SELECT MAX ( + col0 ) FROM tab1 WHERE NOT ( + col1 ) IN ( col0 ) + +Expected: ["91"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT ( - - 78 ) / ( - 20 ) * - col2 / - CAST ( NULL AS INTEGER ) / + col2 AS col0, + ( col0 ) / + + col1 FROM tab2 AS cor0 + +Expected: ["NULL","0","NULL","1"] but got ["NULL","0.831","NULL","0.902","NULL","1.119"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,691 failed +* 83% was OK + +Time: 39066.739ms + +---- ---- ---- ---- ---- ---- ---- +### 276/620 [`./test/random/aggregates/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_26.test) + +_Mimic sqlite_ + +```sql +SELECT + - col2 / + col0 * - 41 + + + 81 FROM tab2 AS cor0 + +Expected: ["81","81","81"] but got ["81.012","81.015","81.019"] +``` + + +```sql +SELECT MIN ( - - 92 ) * CAST ( NULL AS INTEGER ) + 27 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL + +Expected: ["NULL"] but got ["27"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 * - ( + col1 ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + CAST ( - col0 AS INTEGER ) * + - 75 + - col2 AS col1, + col0 / - CAST ( NULL AS REAL ) FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT - ( - 17 ) FROM tab1 AS cor0 WHERE NOT 13 * - col2 + 87 * 34 IN ( col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT CAST ( COUNT ( col1 ) AS INTEGER ) FROM tab0 + +g is not defined +``` + + +```sql +SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 16 / + 48 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + - COUNT ( * ) - + - MIN ( ALL 97 ) AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL + +Expected: ["94"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ), - 26 + + - CAST ( NULL AS INTEGER ) * + col1 * + - col2 AS col2 FROM tab1 + +Expected: ["NULL","NULL"] but got ["0","-26"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT - 6 IS NOT NULL WHERE ( NULL ) IS NULL + +6 results returned but expected 18 +``` + + +```sql +SELECT DISTINCT col0 + + 53 + + + CAST ( NULL AS INTEGER ) * + - 61 + col0 + - col2 * - 53, col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL"] but got ["3350","NULL","3839","NULL","5243","NULL"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) + + 67 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","67","0","67","0","67"] +``` + + +```sql +SELECT 58 / + + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + - 10 AS col2 FROM tab0 cor0 WHERE col1 > - col2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","-10","NULL","-10","NULL","-10"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,613 failed +* 83% was OK + +Time: 30092.517ms + +---- ---- ---- ---- ---- ---- ---- +### 277/620 [`./test/random/aggregates/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_27.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col0 / + + 70 FROM tab0 + +Expected: ["0","1"] but got ["0.214","1.243","1.386"] +``` + + +```sql +SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 24 * + 22 IN ( + 97 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - col2 * col0 * - CAST ( NULL AS INTEGER ) AS col2, + ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + 19 AS col2 FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["19","19"] +``` + + +```sql +SELECT DISTINCT + col2 + + 34 + - 62 * 80 * col1 * col0 * - + 96 - + col2 + CAST ( NULL AS INTEGER ) / - - 11 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["202368034","2036536354","339978274"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + CAST ( COUNT ( DISTINCT - col1 ) AS INTEGER ) * - 24 FROM tab1 + +g is not defined +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * + - col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) - - col1, CAST ( NULL AS INTEGER ) col0 FROM tab2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["51","0","67","0","77","0"] +``` + + +```sql +SELECT ALL 85, CAST ( col1 AS INTEGER ) * + col0 AS col2, - - 22 AS col2 FROM tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL CAST ( NULL AS REAL ) * - - 61 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT + MIN ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN - col2 AND ( + 42 + 98 ) + +Expected: ["10"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,634 failed +* 83% was OK + +Time: 27654.343ms + +---- ---- ---- ---- ---- ---- ---- +### 278/620 [`./test/random/aggregates/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_28.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + + 86 * - 61 * + ( + - MAX ( + + ( - + col1 ) ) ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL + +Expected: ["NULL"] but got ["-267546"] +``` + + +```sql +SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + col1 + + CAST ( col1 AS INTEGER ) IN ( - col2 * + col0 * - col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - - col1 AS col1, - col2 / + 98 FROM tab2 AS cor0 + +Expected: ["51","0","67","0","77","0"] but got ["51","-0.235","67","-0.592","77","-0.408"] +``` + + +```sql +SELECT ALL - col0 AS col1, + col0 AS col1, col1 + - col2 * - + col2 * - col0 FROM tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) * - - col0 AS col0 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - 27 * + col1, + CAST ( NULL AS REAL ) AS col1 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT CAST ( + + COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE 30 - - 54 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * + col2 - + col2, - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-10","0","-47","0","-99","0"] +``` + + +```sql +SELECT MIN ( - col2 ) FROM tab1 AS cor0 WHERE NOT - 54 BETWEEN - ( - col2 ) + - col1 AND NULL + +Expected: ["-96"] but got ["NULL"] +``` + + +```sql +SELECT - ( + - col0 ) AS col1, - col2 AS col1 FROM tab1 AS cor0 + +Expected: ["51","-96","85","-59","91","-68"] but got ["-59","-59","-68","-68","-96","-96"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ), 42 * + 65 * MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,659 failed +* 83% was OK + +Time: 55057.375ms + +---- ---- ---- ---- ---- ---- ---- +### 279/620 [`./test/random/aggregates/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_29.test) + +_Mimic sqlite_ + +```sql +SELECT CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab1 cor0 + +g is not defined +``` + + +```sql +SELECT ( + 23 ) / + col1 - 56 AS col0 FROM tab1 + +Expected: ["-52","-55","-56"] but got ["-51.400","-54.357","-55.511"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) * - col0 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL - 4 * - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT col0 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab0 WHERE NOT + + 26 BETWEEN + col0 AND ( 91 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col1, col0 + - - 95, + col2 * - col0 AS col0 FROM tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT col1 / + 52, 41 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 + +Expected: ["0","NULL","1","NULL"] but got ["0.019","0","0.404","0","1.558","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,653 failed +* 83% was OK + +Time: 34488.560ms + +---- ---- ---- ---- ---- ---- ---- +### 280/620 [`./test/random/aggregates/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 57 - + CAST ( NULL AS INTEGER ) + - + col2 AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-42","10","47"] +``` + + +```sql +SELECT ALL + 54 / 64 AS col0 FROM tab1 AS cor0 + +Expected: ["0","0","0"] but got ["0.844","0.844","0.844"] +``` + + +```sql +SELECT ALL - CAST ( + MAX ( DISTINCT - col2 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 / + col1 / - - 59 * 70 / col0 ) + +g is not defined +``` + + +```sql +SELECT DISTINCT COUNT ( * ) * + - CAST ( NULL AS REAL ) AS col0 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT + col2 + + col1, col2 * + - 52 * - col1 AS col0, - - ( + 43 ) / - ( + col2 ) + col0 - + col1 + + col0 * 87 AS col1 FROM tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL 73 * + SUM ( - 22 ) * + 80 AS col0, + 1 + + + 83 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["-385440","NULL"] but got ["-385440","1"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NOT - 57 + + 29 NOT BETWEEN + 93 AND + ( + col2 ) ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT 55 / + CAST ( NULL AS INTEGER ), col2 * 46 + col1 + + CAST ( NULL AS INTEGER ) + - col2 * - col0 AS col0 FROM tab2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","2167","NULL","4477","NULL","7085"] +``` + + +```sql +SELECT ALL - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col2, col1 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","51","0","67","0","77"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,666 failed +* 83% was OK + +Time: 29338.330ms + +---- ---- ---- ---- ---- ---- ---- +### 281/620 [`./test/random/aggregates/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_30.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 32 / + col2 - + - ( col1 ) + - 73 * col1 FROM tab2 cor0 + +Expected: ["-3671","-4824","-5544"] but got ["-3670.609","-4823.448","-5543.200"] +``` + + +```sql +SELECT + 45 / 23 FROM tab0 WHERE col0 + - + col1 + - 72 * ( CAST ( NULL AS INTEGER ) * 26 ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL 42 + + CAST ( NULL AS INTEGER ) * col0 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["42","42","42"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS REAL ) + + col2 AS col1 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col1 IS NOT NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 16 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL ( - MAX ( col2 ) ) * + 37 AS col0 FROM tab0 WHERE NOT ( + - col0 / col0 ) IN ( - ( - col0 ) - + ( - 36 ) ) + +Expected: ["-3663"] but got ["NULL"] +``` + + +```sql +SELECT + col1 col2, + col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 + +Expected: ["14","NULL","47","NULL","5","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 74 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - 58 + + MAX ( col0 ) AS col1, 39 FROM tab2 cor0 WHERE NOT col2 <> 26 + +Expected: ["NULL","39"] but got ["39","NULL"] +``` + + +```sql +SELECT ( - + CAST ( NULL AS INTEGER ) ) / + COUNT ( + + 72 ) col0, + ( - + 71 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 + +Expected: ["NULL","NULL"] but got ["0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,615 failed +* 83% was OK + +Time: 32415.721ms + +---- ---- ---- ---- ---- ---- ---- +### 282/620 [`./test/random/aggregates/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_31.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL col2 * - col1 + CAST ( NULL AS INTEGER ) / - 59 AS col1 FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-1344","-295","-3196"] +``` + + +```sql +SELECT ALL - - 55 / - COUNT ( * ) FROM tab0 AS cor0 + +Expected: ["-18"] but got ["-18.333"] +``` + + +```sql +SELECT DISTINCT - + col2 * col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT 91 + - COUNT ( CAST ( + + col1 AS REAL ) ) FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( COUNT ( - col0 ) AS INTEGER ) FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT + + col2 AS col1, - col0 AS col1, - + col0 FROM tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 92 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ), - AVG ( ALL - col2 ) FROM tab1 WHERE + col1 IS NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT ALL 83 + 86 / + MAX ( + 8 / - col2 + - col2 ) AS col0 FROM tab0 WHERE NOT ( 9 ) IN ( col1 ) + +Expected: ["75"] but got ["NULL"] +``` + + +```sql +SELECT - - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + MIN ( + 39 ), - SUM ( - col2 ) / + CAST ( + COUNT ( * ) AS INTEGER ) + - 10 AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","64"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,691 failed +* 83% was OK + +Time: 37791.065ms + +---- ---- ---- ---- ---- ---- ---- +### 283/620 [`./test/random/aggregates/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_32.test) + +_Mimic sqlite_ + +```sql +SELECT ALL COUNT ( * ) / + 66 FROM tab0 AS cor0 + +Expected: ["0"] but got ["0.045"] +``` + + +```sql +SELECT ALL + col0 + + - col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 + +Expected: ["0","NULL","0","NULL","0","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT ALL - 4 + + col2 FROM tab2 AS cor0 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT 12, col2 / - ( - - col2 ) * + CAST ( NULL AS REAL ) + col2 - col0 - + - 45 AS col1 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT ALL + col1, col2 * - col1 * + + col2 AS col2, + col0 AS col2 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - 41 AS col1, CAST ( + MAX ( 9 ) AS INTEGER ) * + + 29 AS col2 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN col2 AND + 80 + + 9 / col1 + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT 61 AS col0 FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL, tab0 AS cor2 + +Parse error on line 1: +...NOT NULL IS NOT NULL, tab0 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT - - AVG ( ALL + col2 ) AS col2, 76 FROM tab2 WHERE NOT - 11 IS NOT NULL + +Expected: ["NULL","76"] but got ["76","NULL"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 99 IS NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,635 failed +* 83% was OK + +Time: 75161.621ms + +---- ---- ---- ---- ---- ---- ---- +### 284/620 [`./test/random/aggregates/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_33.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 13 * + + CAST ( NULL AS INTEGER ) * - 10 AS col1 FROM tab2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + 92 * CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + col2 / + + col0 + + 17 FROM tab0 AS cor0 + +Expected: ["17","18","20"] but got ["17.115","18.021","20.133"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS REAL ) * - - col1 * - - col1 AS col2 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT + 97 + + col2 AS col0, col0, + - col1 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab1 cor0 WHERE NOT ( + 57 ) IN ( + col0 + col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( + 61 AS INTEGER ) IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - + SUM ( 74 ) / + CAST ( - MAX ( ALL + col1 ) AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["2"] but got ["NULL"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 JOIN tab2 cor1 ON NOT NULL BETWEEN NULL AND NULL, tab1 AS cor2 + +Parse error on line 1: +...ETWEEN NULL AND NULL, tab1 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT - + col0 AS col2, ( + 72 ) / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 + +Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * 63 + 75 AS col2, CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0 + +Expected: ["NULL","NULL"] but got ["75","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,681 failed +* 83% was OK + +Time: 85545.943ms + +---- ---- ---- ---- ---- ---- ---- +### 285/620 [`./test/random/aggregates/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_34.test) + +_Mimic sqlite_ + +```sql +SELECT + 54 / col2 FROM tab1 AS cor0 + +Expected: ["0","0","0"] but got ["0.563","0.794","0.915"] +``` + + +```sql +SELECT col1 * + col0 + ( CAST ( NULL AS INTEGER ) ) FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["425","4277","714"] +``` + + +```sql +SELECT ALL + 80 - + CAST ( NULL AS REAL ) FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + + SUM ( + 29 ) FROM tab0 AS cor0 WHERE col1 * - col0 / col2 = NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) + 66 FROM tab2 + +g is not defined +``` + + +```sql +SELECT * FROM tab1 WHERE NOT - col2 IN ( + - 56 * 52, - 45, + 52, - - 75 * - + col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col1, - col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 + +Expected: ["14","NULL","47","NULL","5","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT - col0, col0 * - col2 + 10 col2, + col2 - 96 col2 FROM tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 61 + + 13 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 92 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL"] but got ["-92","0"] +``` + + +```sql +SELECT - ( COUNT ( * ) ) + + MIN ( DISTINCT - col0 ) AS col2 FROM tab2 cor0 WHERE NOT - col1 * - - col1 IN ( + - col1 ) + +Expected: ["-78"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,501 failed +* 85% was OK + +Time: 75826.504ms + +---- ---- ---- ---- ---- ---- ---- +### 286/620 [`./test/random/aggregates/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_35.test) + +_Mimic sqlite_ + +```sql +SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - col1 * 94 - - CAST ( NULL AS INTEGER ) NOT BETWEEN ( col0 ) AND + 86 + +Expected: ["0"] but got ["3"] +``` + + +```sql +SELECT ALL 93 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["93","NULL","93","NULL","93","NULL"] but got ["93","0","93","0","93","0"] +``` + + +```sql +SELECT - - CAST ( + COUNT ( ALL + col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT + COUNT ( * ) AS col2, AVG ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 + +Expected: ["3","NULL"] but got ["3","0"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT + col1 / + col0 IN ( - 91 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL 99 * col0 + + + CAST ( NULL AS REAL ) AS col0 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) * - 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 ) + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - MAX ( - col1 ) / CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 + +Expected: ["-17"] but got ["NULL"] +``` + + +```sql +SELECT - 82 col2, AVG ( 76 ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL + +Expected: ["-82","NULL"] but got ["NULL"] +``` + + +```sql +SELECT - col0 / + + col2, ( + - 79 ) / - + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 + +Expected: ["-1","NULL","-1","NULL","0","NULL"] but got ["-0.531","NULL","-1.338","NULL","-1.441","NULL"] +``` + + +```sql +SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,539 failed +* 84% was OK + +Time: 70711.446ms + +---- ---- ---- ---- ---- ---- ---- +### 287/620 [`./test/random/aggregates/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_36.test) + +_Mimic sqlite_ + +```sql +SELECT 89 / + col1 + - col2 FROM tab0 AS cor0 + +Expected: ["-10","-46","-6"] but got ["-10","-45.901","-5.762"] +``` + + +```sql +SELECT DISTINCT + 36 - + col1 + - CAST ( NULL AS REAL ) AS col0, col2 * - ( + 63 ) AS col1 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL + +g is not defined +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab0 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN + + ( - CAST ( + 19 AS INTEGER ) ) * + 26 AND ( + col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 ) + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) / + + 5 / - 48 * + - 22 + + + SUM ( col2 ) FROM tab0 + +Expected: ["NULL","NULL"] but got ["0","156"] +``` + + +```sql +SELECT 39 + ( 30 + MAX ( ALL col2 ) ) FROM tab0 AS cor0 WHERE - col0 * CAST ( NULL AS INTEGER ) IS NULL AND ( 51 * 71 ) IS NOT NULL + +Expected: ["168"] but got ["NULL"] +``` + + +```sql +SELECT + 20 * 17 + + + 26 * + MIN ( DISTINCT - col0 ) col1, - 97 / - 70 FROM tab2 WHERE NULL <= + - col0 + +Expected: ["NULL","1"] but got ["NULL","1.386"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,546 failed +* 84% was OK + +Time: 69755.548ms + +---- ---- ---- ---- ---- ---- ---- +### 288/620 [`./test/random/aggregates/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_37.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + - SUM ( ALL CAST ( NULL AS INTEGER ) ) * - SUM ( 89 ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT + - col1 - - col2 AS col0, col0 AS col0 FROM tab2 AS cor0 + +Expected: ["-28","46","-37","64","-9","75"] but got ["46","46","64","64","75","75"] +``` + + +```sql +SELECT ALL 87 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 + +Expected: ["87","NULL","87","NULL","87","NULL"] but got ["87","0","87","0","87","0"] +``` + + +```sql +SELECT CAST ( - ( AVG ( col0 ) ) AS INTEGER ) AS col2 FROM tab0 + +g is not defined +``` + + +```sql +SELECT * FROM tab1 WHERE NOT col2 BETWEEN ( NULL ) AND ( - 5 ) * + col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - MAX ( col1 ) col0 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 84 + - col0 * + 20 ) + +Expected: ["-77"] but got ["NULL"] +``` + + +```sql +SELECT - ( - CAST ( NULL AS REAL ) ) + ( + + 39 ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - + col1 AS col0, col0 * + col0 + - + col0 AS col1, + - 18 AS col0 FROM tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON + 69 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT 56 + CAST ( NULL AS INTEGER ) col0, - ( + SUM ( col1 ) ) * - 43 - - 83 FROM tab1 WHERE NULL = - col0 + - + ( - 39 ) / - 22 + +Expected: ["NULL","NULL"] but got ["56","83"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,573 failed +* 84% was OK + +Time: 50625.688ms + +---- ---- ---- ---- ---- ---- ---- +### 289/620 [`./test/random/aggregates/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_38.test) + +_Mimic sqlite_ + +```sql +SELECT - col0 / + 92 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 AND - col2 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) = - col0 + + 49 + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( COUNT ( + col0 ) AS INTEGER ) FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 * - 23 + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL + +Expected: ["NULL"] but got ["1416","1632","2304"] +``` + + +```sql +SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL > NULL + +Expected: ["0"] but got ["3"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * - ( - + ( - + col0 ) ) * - 74 - col1 * - col1 + - + 7 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-6","434","6554"] +``` + + +```sql +SELECT - col1 - - 97 * - + col0 * col1 * CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT 20 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - MIN ( 32 ) AS col1 FROM tab1 WHERE NOT + - col2 + 72 + + ( + - col2 ) IN ( + 61 ) + +Expected: ["-32"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab2 cor1 ) + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND col2 + +Expected: ["NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL - COUNT ( * ) AS col0, 85 + - - 20 / - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 45 AS col0 FROM tab1 + +Expected: ["-3","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL + + SUM ( col0 ) AS col1, COUNT ( * ) * + - MIN ( ALL - - col1 ) + - 72 AS col2 FROM tab0 WHERE + col2 IS NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,565 failed +* 84% was OK + +Time: 48500.656ms + +---- ---- ---- ---- ---- ---- ---- +### 290/620 [`./test/random/aggregates/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_39.test) + +_Mimic sqlite_ + +```sql +SELECT COUNT ( * ) / + 71 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL + +Expected: ["0"] but got ["0.042"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 7 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT + 9 * ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 WHERE NOT + col2 BETWEEN ( + col1 ) AND ( 99 / col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col0 + - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["46","64","75"] +``` + + +```sql +SELECT ALL + - col2 * col1 * - col1 - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + CAST ( - AVG ( DISTINCT + 98 ) AS INTEGER ) AS col2 FROM tab2 + +g is not defined +``` + + +```sql +SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT MIN ( + - ( col2 ) ) AS col0, SUM ( + col2 ) FROM tab1 cor0 WHERE col2 IS NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) AS col2, CAST ( NULL AS INTEGER ) - - - SUM ( + 86 ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","-258"] +``` + + +```sql +SELECT MIN ( ALL + 85 ) FROM tab2 WHERE NOT - col2 BETWEEN NULL AND ( col0 * - 64 ) + +Expected: ["85"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,597 failed +* 84% was OK + +Time: 24395.897ms + +---- ---- ---- ---- ---- ---- ---- +### 291/620 [`./test/random/aggregates/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 63 / col1 AS col2 FROM tab2 + +Expected: ["0","1"] but got ["0.818","0.940","1.235"] +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, col0 - + 58 FROM tab2 AS cor0 + +Expected: ["NULL","-12","NULL","17","NULL","6"] but got ["0","-12","0","17","0","6"] +``` + + +```sql +SELECT - - col2 * col0 + + - 40, CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - CAST ( + COUNT ( DISTINCT + - col2 ) AS INTEGER ) FROM tab1 + +g is not defined +``` + + +```sql +SELECT ALL + col2 FROM tab2 WHERE NOT - col0 + col0 BETWEEN - col0 AND ( - col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT MIN ( 38 ) AS col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL ) + +Expected: ["NULL"] but got ["38"] +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE 46 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + + COUNT ( * ) AS col1, MIN ( - - 79 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL + +Expected: ["0","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL + + CAST ( NULL AS INTEGER ), ( - col2 ) * + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT DISTINCT col1 AS col1, + 34 / + CAST ( NULL AS INTEGER ) + col2 * - - col1 * + 65 col1 FROM tab2 + +Expected: ["51","NULL","67","NULL","77","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL - MAX ( ALL - - col1 ) AS col0 FROM tab2 WHERE NOT ( col0 ) + 87 IN ( - + 12, - 20, - - col0 ) + +Expected: ["-77"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,688 failed +* 83% was OK + +Time: 31042.253ms + +---- ---- ---- ---- ---- ---- ---- +### 292/620 [`./test/random/aggregates/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_40.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - ( - - col0 ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 cor0 + +Expected: ["-51","NULL","-85","NULL","-91","NULL"] but got ["-51","0","-85","0","-91","0"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - 59 AS col1, ( + + CAST ( NULL AS REAL ) ) + + col0 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col0 / - - col2 + - 22 AS col0 FROM tab0 + +Expected: ["-14","-22"] but got ["-13.300","-21.020","-21.681"] +``` + + +```sql +SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL * FROM tab0 WHERE NOT + + 83 IN ( - col1, - ( - 17 ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT + col1 * - + col0 * - col0 AS col1, col2 - - ( - - col1 ) AS col0, + - 63 AS col1 FROM tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL MIN ( DISTINCT - ( + col1 ) ) FROM tab1 WHERE NOT + col1 IN ( col2 ) + +Expected: ["-47"] but got ["NULL"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ), SUM ( ALL - col0 ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL < NULL + +54 results returned but expected 18 +``` + + +```sql +SELECT + - CAST ( NULL AS INTEGER ) col1, - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,597 failed +* 84% was OK + +Time: 39714.892ms + +---- ---- ---- ---- ---- ---- ---- +### 293/620 [`./test/random/aggregates/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_41.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT COUNT ( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL + +Expected: ["0"] but got ["3"] +``` + + +```sql +SELECT ALL - - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 7 / col0 * - col2 AS col2 FROM tab2 WHERE NOT - 31 * + col0 / 20 IN ( + - col1, + col2, 96 * - - col2, - - col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + 18 * ( ( 11 ) ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["198","198","198"] +``` + + +```sql +SELECT + CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 + +g is not defined +``` + + +```sql +SELECT DISTINCT + 73 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( - 21 ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + + 38 / - col2, col2 + - col2 / - CAST ( NULL AS INTEGER ) + - col1 - + + ( - 37 ) + + col2 / - col1 + - 42 / + + col0 AS col2 FROM tab2 AS cor0 + +Expected: ["-1","NULL","0","NULL","0","NULL"] but got ["-0.655","NULL","-0.950","NULL","-1.652","NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 61 <= 45 + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL + MIN ( - 81 ) * COUNT ( * ) AS col0, 70 FROM tab1 WHERE NOT + col0 IS NOT NULL + +Expected: ["NULL","70"] but got ["70","NULL"] +``` + + +```sql +SELECT COUNT ( * ) / + ( + CAST ( + COUNT ( - - col0 ) AS INTEGER ) ) col2 FROM tab0 + +Expected: ["1"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,464 failed +* 85% was OK + +Time: 63638.909ms + +---- ---- ---- ---- ---- ---- ---- +### 294/620 [`./test/random/aggregates/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_42.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + col2 + CAST ( NULL AS INTEGER ) / + + col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["10","47","99"] +``` + + +```sql +SELECT DISTINCT COUNT ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL"] but got ["3"] +``` + + +```sql +SELECT DISTINCT + col1 / - 82 FROM tab1 + +Expected: ["0"] but got ["-0.061","-0.171","-0.573"] +``` + + +```sql +SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 / col2 * + + col0 ) NOT BETWEEN ( 94 ) AND - - 69 * + 66 + +g is not defined +``` + + +```sql +SELECT ALL - CAST ( NULL AS REAL ) / + - 50 * - - 32 AS col1, - CAST ( NULL AS INTEGER ) col2 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT - + 16 col0 FROM tab0 AS cor0 WHERE NOT - col0 IN ( + col1 + col1, col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col2 * - col0 * col1 * - - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) - - col0 FROM tab2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","46","0","64","0","75"] +``` + + +```sql +SELECT DISTINCT 82 / + - col1 * + CAST ( NULL AS INTEGER ) col0, col1 / + col0 AS col1 FROM tab2 AS cor0 + +Expected: ["NULL","0","NULL","1"] but got ["NULL","0.893","NULL","1.109","NULL","1.203"] +``` + + +```sql +SELECT - SUM ( DISTINCT - 22 ) * - ( COUNT ( * ) ) AS col2, - 91 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 + +Expected: ["-66","NULL"] but got ["-66","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 14 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL MAX ( col2 ), COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) + + ( + CAST ( AVG ( col2 ) AS INTEGER ) ) * - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 0 AS col0, COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 + +Expected: ["NULL","NULL"] but got ["0","3"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,530 failed +* 84% was OK + +Time: 55585.265ms + +---- ---- ---- ---- ---- ---- ---- +### 295/620 [`./test/random/aggregates/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_43.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + col1 / - - col2 + + + col1 + - - col2 + - + col2 * - col1 AS col0 FROM tab0 AS cor0 + +Expected: ["199","243","3936"] but got ["199.010","243.100","3936.723"] +``` + + +```sql +SELECT ALL - COUNT ( * ) + - - SUM ( DISTINCT + col1 ) AS col1 FROM tab1 WHERE ( ( NULL ) IS NOT NULL ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) * + col0 + - 62 + - col0 > NULL + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) * - col0 - + 80 IN ( + col1, col2 + - col2, + - 30 - + 24 * col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - ( CAST ( NULL AS INTEGER ) ) FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 92 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL CAST ( MIN ( + 74 ) AS INTEGER ) FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE ( + 77 ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + col2 / + - col0 AS col2, col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 + +Expected: ["-1","NULL","0","NULL","0","NULL"] but got ["-0.694","NULL","-0.747","NULL","-1.882","NULL"] +``` + + +```sql +SELECT DISTINCT + ( - col1 ) * - col1 + + ( - col0 ) + col2 AS col1, - 87 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 + +Expected: ["3","NULL","364","NULL","6593","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab2 WHERE NOT col2 * 43 IN ( + 38, ( + + col2 ), 92 + - + 76 ) + +Expected: ["46"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,572 failed +* 84% was OK + +Time: 29416.812ms + +---- ---- ---- ---- ---- ---- ---- +### 296/620 [`./test/random/aggregates/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_44.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col0 - col2 / + col1 AS col1 FROM tab0 + +Expected: ["-2","15","87"] but got ["-2","14.420","86.524"] +``` + + +```sql +SELECT - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-15","-87","-97"] +``` + + +```sql +SELECT ALL + COUNT ( + 5 ) + - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 + +Expected: ["NULL"] but got ["3"] +``` + + +```sql +SELECT ALL + col0 / - CAST ( NULL AS REAL ) FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab1 WHERE NOT - 76 + + CAST ( NULL AS INTEGER ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT CAST ( + SUM ( ALL - 2 ) AS INTEGER ) AS col2, - ( - + CAST ( + - 99 AS INTEGER ) ), + 64 AS col1 FROM tab1 + +g is not defined +``` + + +```sql +SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - COUNT ( * ) / CAST ( + MIN ( - 49 ) AS INTEGER ) AS col0 FROM tab0 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - + col2, CAST ( NULL AS INTEGER ) + - 19 FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["-23","-19","-40","-19","-58","-19"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,597 failed +* 84% was OK + +Time: 37036.915ms + +---- ---- ---- ---- ---- ---- ---- +### 297/620 [`./test/random/aggregates/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_45.test) + +_Mimic sqlite_ + +```sql +SELECT + + 95 / 43 + - 1 FROM tab0 AS cor0 + +Expected: ["1","1","1"] but got ["1.209","1.209","1.209"] +``` + + +```sql +SELECT ALL * FROM tab0 WHERE NOT col1 * - col1 BETWEEN - col2 AND ( col0 * - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 39 FROM tab1 + +g is not defined +``` + + +```sql +SELECT - ( CAST ( NULL AS INTEGER ) ) * + 78 col1 FROM tab1 cor0 CROSS JOIN tab2 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS REAL ) * col1 * + col0 AS col0 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) + 43 + - 55 AS col1, + 61 FROM tab1 + +Expected: ["NULL","61","NULL","61","NULL","61"] but got ["-12","61","-12","61","-12","61"] +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - col0 AS col0 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL + - CAST ( NULL AS INTEGER ) / + - COUNT ( * ), 38 * CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1 cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT - 46 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - COUNT ( * ) / COUNT ( col0 ) col0 FROM tab1 WHERE NOT - 25 BETWEEN ( 37 ) AND ( + col0 ) + +Expected: ["-1"] but got ["NULL"] +``` + + +```sql +SELECT MAX ( ALL col0 ), SUM ( + - 91 ) FROM tab0 WHERE NULL > col0 + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,531 failed +* 84% was OK + +Time: 33947.287ms + +---- ---- ---- ---- ---- ---- ---- +### 298/620 [`./test/random/aggregates/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_46.test) + +_Mimic sqlite_ + +```sql +SELECT + COUNT ( * ) - - 85 + + 45 / SUM ( DISTINCT + 43 ) FROM tab1 AS cor0 + +Expected: ["89"] but got ["89.047"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) - - - col2 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-10","-47","-99"] +``` + + +```sql +SELECT DISTINCT col0 + + CAST ( NULL AS REAL ) FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( + MAX ( - col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT 85 FROM tab1 AS cor0 WHERE NOT - 34 BETWEEN + + col0 AND CAST ( - + col2 AS INTEGER ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + ( + SUM ( CAST ( NULL AS INTEGER ) ) + + SUM ( ALL col0 ) ) AS col1 FROM tab1 WHERE NOT ( + 68 ) > 14 * col0 + +Expected: ["NULL"] but got ["227"] +``` + + +```sql +SELECT + - col2 + - col0 AS col2, + CAST ( - col0 AS INTEGER ), - col1 AS col2 FROM tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + MAX ( col1 ) * - 25 col2, 20 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT DISTINCT ( 69 ) / COUNT ( * ) - - 41 / - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 + +Expected: ["36"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT + COUNT ( * ) + - 82 / - 77 FROM tab2 + +Expected: ["4"] but got ["4.065"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,606 failed +* 83% was OK + +Time: 43164.776ms + +---- ---- ---- ---- ---- ---- ---- +### 299/620 [`./test/random/aggregates/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_47.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - col2 + - 75 AS col0, + 42 * - col1 AS col0 FROM tab1 cor0 + +Expected: ["-134","-210","-143","-1974","-171","-588"] but got ["-1974","-1974","-210","-210","-588","-588"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * + + col2 + + + col2 * 61 * + + col0 - - + col0 / + col1 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) + - 90 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-90"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS REAL ) IS NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col1 * + - col2 AS col2, 75 AS col2, + ( - + CAST ( - - col1 AS INTEGER ) ) AS col2 FROM tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + CAST ( + + SUM ( DISTINCT col0 ) AS INTEGER ) + + 75 AS col1 FROM tab2 + +g is not defined +``` + + +```sql +SELECT ALL ( - 54 ) AS col0, 63 * + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab0 cor0 + +Expected: ["-54","-189"] but got ["-54","NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL > NULL, tab2 AS cor2 + +Parse error on line 1: +... cor1 ON NULL > NULL, tab2 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 77 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT col0 AS col1, + ( - col2 ) / + + ( + ( CAST ( NULL AS INTEGER ) ) ) + - 3 AS col1 FROM tab1 + +Expected: ["51","NULL","85","NULL","91","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT col1 / - CAST ( NULL AS INTEGER ) AS col2, 42 / col1 AS col1 FROM tab0 + +Expected: ["NULL","0","NULL","2","NULL","42"] but got ["NULL","0.519","NULL","2","NULL","42"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,605 failed +* 83% was OK + +Time: 47541.571ms + +---- ---- ---- ---- ---- ---- ---- +### 300/620 [`./test/random/aggregates/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_48.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + AVG ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT col2 / - col1 + col0 AS col1 FROM tab1 cor0 + +Expected: ["45","74","90"] but got ["44.143","73.200","89.553"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * - - col2 AS col2 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT - CAST ( 14 AS INTEGER ) IN ( - - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + SUM ( - + col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ), - CAST ( NULL AS INTEGER ) col2 FROM tab2 + +g is not defined +``` + + +```sql +SELECT ALL 10 AS col0, - col2 * - - col1 * + - 85 AS col0, - col0 + - 51 FROM tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, - AVG ( DISTINCT ( + col1 ) ) AS col0 FROM tab0 WHERE NOT - - col0 NOT BETWEEN 4 * 53 / + col1 - - col2 AND - col2 + +Expected: ["NULL","NULL"] but got ["-34.333"] +``` + + +```sql +SELECT SUM ( ALL + - col0 ) AS col0, 79 + + - MAX ( ( 58 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,514 failed +* 84% was OK + +Time: 42903.790ms + +---- ---- ---- ---- ---- ---- ---- +### 301/620 [`./test/random/aggregates/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_49.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + COUNT ( col2 ) + + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col0 - - col2 BETWEEN + 54 AND NULL + +Expected: ["6"] but got ["0"] +``` + + +```sql +SELECT DISTINCT 91 FROM tab1 WHERE NOT col2 BETWEEN col2 + + 49 * + col0 AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 cor0 + +Expected: ["NULL"] but got ["3"] +``` + + +```sql +SELECT ALL + 28 * ( - + 91 ) * + 68 * + - CAST ( NULL AS INTEGER ) + 23 * + + ( + col1 ) + + 26 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["1199","1567","1797"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) / + 49 FROM tab0 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON ( NULL IS NULL ) + +18 results returned but expected 54 +``` + + +```sql +SELECT + ( - + 36 ) / 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT - + 69 / col2 AS col0 FROM tab2 AS cor0 + +Expected: ["-1","-3"] but got ["-1.190","-1.725","-3"] +``` + + +```sql +SELECT ALL + + col1 * + + col2 + + 60 + CAST ( NULL AS INTEGER ), col1 / 83 * + - 27 * - 57 + - - 3 - - col1 + + 80 - - col1 * CAST ( NULL AS INTEGER ) * + - col1 FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["1404","356.590","3256","1001.482","355","180.711"] +``` + + +```sql +SELECT - COUNT ( - + 79 ) / - SUM ( ALL + ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( 76 AS INTEGER ) IN ( - col1 ) + +Expected: ["0"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,539 failed +* 84% was OK + +Time: 46048.803ms + +---- ---- ---- ---- ---- ---- ---- +### 302/620 [`./test/random/aggregates/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT + COUNT ( * ) + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT col2, 95 AS col2 FROM tab0 + +Expected: ["10","95","47","95","99","95"] but got ["95","95","95","95","95","95"] +``` + + +```sql +SELECT ALL - col0 * + 64 * - CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT - CAST ( + col1 AS REAL ) * col2 + CAST ( NULL AS INTEGER ), 92 AS col2 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( AVG ( + col0 ) AS INTEGER ) FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT col0 * - + 59 * - - col1 col1, col0 * - col2 * 90 AS col2, ( - col1 ) AS col2 FROM tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - - col2 AS col2 FROM tab0 WHERE NOT - + ( col1 ) IN ( col1 * - + 99 + + col1, + 70 / 67, col1 * - col2, + - col2 + + col1 - + + col1, - col0, col2 + + + 94, - + 28 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL, tab1 AS cor2 + +Parse error on line 1: +...NOT NULL IS NOT NULL, tab1 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT - MIN ( + col1 ) AS col0, 84 FROM tab1 AS cor0 WHERE NOT ( - 48 ) IS NOT NULL + +Expected: ["NULL","84"] but got ["84","NULL"] +``` + + +```sql +SELECT DISTINCT + + MAX ( col2 ) FROM tab0 AS cor0 WHERE NOT 38 BETWEEN NULL AND + col1 + +Expected: ["99"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,632 failed +* 83% was OK + +Time: 46033.496ms + +---- ---- ---- ---- ---- ---- ---- +### 303/620 [`./test/random/aggregates/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_50.test) + +_Mimic sqlite_ + +```sql +SELECT - + CAST ( + MAX ( ALL 60 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT - col1 / col0 / + col0 + - 60 AS col2 FROM tab1 AS cor0 + +Expected: ["-60"] but got ["-60.001","-60.005","-60.006"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 - - - 97 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["-148","-164","-174"] +``` + + +```sql +SELECT * FROM tab0 WHERE NOT + ( - 13 ) * 8 BETWEEN ( + + ( - - col1 ) ) AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + AVG ( col1 ) col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + 28 ) + +Expected: ["NULL"] but got ["65"] +``` + + +```sql +SELECT COUNT ( * ) * - 83 FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS REAL ) + col2 ) NOT IN ( col0 * - col2 ) + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( + 6 ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL COUNT ( * ) / + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 + +Expected: ["-1"] but got ["NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + - CAST ( 13 AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-13","0","-13","0","-13","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - MAX ( CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( NULL AS INTEGER ) * - 46 FROM tab1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,543 failed +* 84% was OK + +Time: 42894.992ms + +---- ---- ---- ---- ---- ---- ---- +### 304/620 [`./test/random/aggregates/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_51.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + 16 + - + col2 * - CAST ( NULL AS INTEGER ) + - col0 / + col1 col0 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["14.881","15.098","15.169"] +``` + + +```sql +SELECT - - CAST ( NULL AS INTEGER ) * + - 42 col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + - COUNT ( + col2 ) col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col0 < - col2 + +Expected: ["0"] but got ["-3"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS REAL ) FROM tab1 cor0 + +Wrong conversion type +``` + + +```sql +SELECT - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 + +g is not defined +``` + + +```sql +SELECT * FROM tab0, tab0 AS cor0 WHERE NOT + 87 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + 55 ) IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT * FROM tab1 WHERE NOT ( col2 ) IN ( col2 * col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - 66 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-66","-66","-66"] +``` + + +```sql +SELECT DISTINCT - + col1 / - + 40 - - CAST ( NULL AS INTEGER ) / + 96 AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL"] but got ["0.025","0","0.525","0","2.025","0"] +``` + + +```sql +SELECT MAX ( DISTINCT - col2 ) + + - COUNT ( * ) FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col0 IS NULL + +Expected: ["-26"] but got ["NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT 46 - + 33 + - col1 AS col1, - col1 / - + CAST ( NULL AS INTEGER ) + col2 / + col2 AS col1 FROM tab0 + +Expected: ["-68","NULL","-8","NULL","12","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,585 failed +* 84% was OK + +Time: 29510.961ms + +---- ---- ---- ---- ---- ---- ---- +### 305/620 [`./test/random/aggregates/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_52.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 77 * - + 18 * + COUNT ( * ) - + COUNT ( * ) * - 9 AS col0, COUNT ( * ) * 67 - 21 / - MAX ( - 35 ) col1 FROM tab1 + +Expected: ["-4131","201"] but got ["-4131","200.400"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - 71 + col1 AS col0 FROM tab0 WHERE NOT - col1 BETWEEN - - 6 AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT 54 + + + MAX ( CAST ( NULL AS INTEGER ) ) col2 FROM tab0 + +Expected: ["NULL"] but got ["54"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-59","-68","-96"] +``` + + +```sql +SELECT ALL CAST ( - MIN ( + 36 ) AS INTEGER ) FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + COUNT ( * ) + MIN ( ALL + col2 ) FROM tab1 WHERE NOT + 61 IN ( 4 - 58 ) + +Expected: ["62"] but got ["NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1, col1 + - ( + CAST ( NULL AS INTEGER ) ) + col0 * + + ( + col1 ) col1 FROM tab2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["2397","2397","5005","5005","5092","5092"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) col0 FROM tab2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT MAX ( - col0 ) AS col0, 94 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 11 AND + ( + ( + col0 ) ) * - col1 + - + col0 + - 30 + +Expected: ["NULL","94"] but got ["94","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,491 failed +* 85% was OK + +Time: 27170.077ms + +---- ---- ---- ---- ---- ---- ---- +### 306/620 [`./test/random/aggregates/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_53.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + col2 AS col0, - col2 AS col0 FROM tab0 AS cor0 + +Expected: ["10","-10","47","-47","99","-99"] but got ["-10","-10","-47","-47","-99","-99"] +``` + + +```sql +SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 + +g is not defined +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ), col2 FROM tab2 + +Expected: ["NULL","23","NULL","40","NULL","58"] but got ["0","23","0","40","0","58"] +``` + + +```sql +SELECT + col1 * + CAST ( + - ( - CAST ( NULL AS INTEGER ) ) AS REAL ) - + 50 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab2 WHERE NOT col2 * + col2 NOT BETWEEN + ( + - col2 ) - + + col1 AND 19 + col1 + + 50 * + 12 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab1 cor0 + +Expected: ["NULL"] but got ["-59","-68","-96"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + ( - COUNT ( * ) ) AS col1, 44 / - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 + +Expected: ["-3","14"] but got ["-3","NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 60 * 8 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col1, - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,596 failed +* 84% was OK + +Time: 35717.293ms + +---- ---- ---- ---- ---- ---- ---- +### 307/620 [`./test/random/aggregates/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_54.test) + +_Mimic sqlite_ + +```sql +SELECT MAX ( ALL - + col2 ) * CAST ( AVG ( DISTINCT - col2 ) AS INTEGER ) FROM tab0 cor0 + +Expected: ["520"] but got ["0"] +``` + + +```sql +SELECT - + CAST ( NULL AS REAL ) * + col1 + - col1 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - - 30 * + - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-90"] +``` + + +```sql +SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) / + + 21 * + + col1 AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-10","-47","-99"] +``` + + +```sql +SELECT col0, + col0 * + col1 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 + +Expected: ["15","NULL","87","NULL","97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT + col2 * CAST ( col2 AS INTEGER ) IN ( - 43 + 9 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - CAST ( + - SUM ( + - col0 ) AS INTEGER ) AS col1 FROM tab1 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + 45 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - MAX ( ALL - col1 ), 52 * + - MAX ( DISTINCT + 28 ) / 11 * COUNT ( * ) - - SUM ( col0 ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL + +Expected: ["NULL","NULL"] but got ["5","-170.091"] +``` + + +```sql +SELECT - COUNT ( 43 ) / - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) * 67 AS col1 FROM tab2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,558 failed +* 84% was OK + +Time: 33642.505ms + +---- ---- ---- ---- ---- ---- ---- +### 308/620 [`./test/random/aggregates/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_55.test) + +_Mimic sqlite_ + +```sql +SELECT - CAST ( + + col2 AS INTEGER ) + 68 / + + 67 FROM tab1 AS cor0 + +Expected: ["-58","-67","-95"] but got ["-57.985","-66.985","-94.985"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 67 AS col2 FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL ) + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 AS col2, - 49 AS col2 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - 77 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL 62 * - col0 + - CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["-2852","-3968","-4650"] +``` + + +```sql +SELECT ALL ( CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 + +g is not defined +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 96, - CAST ( NULL AS INTEGER ) FROM tab1 cor0 + +Expected: ["NULL","NULL"] but got ["-96","0"] +``` + + +```sql +SELECT + 70 - + MIN ( - col0 ) FROM tab0 AS cor0 WHERE NOT col0 IN ( ( col1 ) * 1 ) + +Expected: ["167"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,521 failed +* 84% was OK + +Time: 45977.324ms + +---- ---- ---- ---- ---- ---- ---- +### 309/620 [`./test/random/aggregates/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_56.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + col2 AS col1, 40 * - + col1 col1 FROM tab0 AS cor0 + +Expected: ["10","-840","47","-3240","99","-40"] but got ["-3240","-3240","-40","-40","-840","-840"] +``` + + +```sql +SELECT ALL - 67 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-67","-67","-67"] +``` + + +```sql +SELECT - + 87 / + CAST ( NULL AS REAL ) - - + col2 + + ( + col2 ) * + 10 * col0 / - col0 * - col2 FROM tab2 WHERE NOT NULL IS NOT NULL AND NULL IS NULL + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - - col1 * col0 + + ( + - 44 ) AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT + + COUNT ( * ) / CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 + +Expected: ["-1"] but got ["NULL"] +``` + + +```sql +SELECT ALL CAST ( COUNT ( DISTINCT 43 ) AS INTEGER ) FROM tab2 WHERE NOT 61 NOT IN ( CAST ( NULL AS INTEGER ) ) + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - COUNT ( * ) + + - ( + 12 ) / + CAST ( NULL AS INTEGER ) col0, COUNT ( DISTINCT - - col2 ) / 35 FROM tab1 + +Expected: ["NULL","0"] but got ["NULL","0.086"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,544 failed +* 84% was OK + +Time: 40321.754ms + +---- ---- ---- ---- ---- ---- ---- +### 310/620 [`./test/random/aggregates/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_57.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col1 / + 82 + + 32 AS col1 FROM tab2 AS cor0 + +Expected: ["32","32","32"] but got ["32.622","32.817","32.939"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["-3"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - col2 + + - CAST ( NULL AS REAL ) IS NULL + +Wrong conversion type +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-10","-47","-99"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + 42 - - - 23 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - 13 - + CAST ( MAX ( + + 31 ) AS INTEGER ) FROM tab1 + +g is not defined +``` + + +```sql +SELECT ALL SUM ( + + col1 ) AS col2, ( 2 ) + MIN ( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT ALL MIN ( + col2 ) AS col1 FROM tab1 cor0 WHERE NOT ( - col1 ) IN ( + col2 * ( ( col1 ) ) ) + +Expected: ["59"] but got ["NULL"] +``` + + +```sql +SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 61 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) / - 72 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT ( NULL ) IS NOT NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,569 failed +* 84% was OK + +Time: 43019.640ms + +---- ---- ---- ---- ---- ---- ---- +### 311/620 [`./test/random/aggregates/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_58.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 12 FROM tab1 AS cor0 + +Expected: ["NULL","12"] but got ["0","12"] +``` + + +```sql +SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) + + - ( + + CAST ( + - 62 AS INTEGER ) ) FROM tab0 WHERE NULL NOT BETWEEN 79 + - col1 AND NULL + +Expected: ["62"] but got ["71"] +``` + + +```sql +SELECT 90 / col1 + col0 + - CAST ( NULL AS INTEGER ) + col1 * 11 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["198","322.286","907.111"] +``` + + +```sql +SELECT DISTINCT 86 AS col0, col1 + + + 34 AS col2, col2 AS col0 FROM tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + CAST ( AVG ( + 82 ) AS INTEGER ) FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL 8 AS col2, CAST ( NULL AS REAL ) FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL OR NOT + col1 IN ( - col1 / - col0, + col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 26 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - MAX ( ALL col1 ) FROM tab1 WHERE NOT ( 7 ) + col2 IN ( col2 ) + +Expected: ["-47"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL + COUNT ( * ) AS col1, + MIN ( ALL col0 ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL + +Expected: ["0","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,477 failed +* 85% was OK + +Time: 45276.304ms + +---- ---- ---- ---- ---- ---- ---- +### 312/620 [`./test/random/aggregates/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_59.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 15 * CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 + +g is not defined +``` + + +```sql +SELECT ALL col2 / 22 / + col1 * + col0 col2 FROM tab1 + +Expected: ["0","0","0"] but got ["0.001","0.006","0.006"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS REAL ) + + col1 * - 66, - 63 FROM tab1 WHERE NOT - 56 + - 7 / col0 * - col2 NOT IN ( + - col2 ) + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col2 + - - 93 + CAST ( NULL AS INTEGER ) + + - 14 FROM tab0 WHERE + col2 IS NOT NULL + +Expected: ["NULL"] but got ["126","178","89"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + - - col0 + + col1 col2 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["138","65","90"] +``` + + +```sql +SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 39 * + 80 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col1 NOT IN ( 59, + col0 ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - SUM ( - + col1 ) + + COUNT ( - col0 ) / - + CAST ( - AVG ( DISTINCT - ( + + col1 ) ) AS INTEGER ) AS col1 FROM tab2 + +Expected: ["195"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - + 71 / - - col0 AS col2, 78 + - - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0 + +Expected: ["-4","NULL","0","NULL"] but got ["-0.732","78","-0.816","78","-4.733","78"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 27 > 76 + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL * FROM tab1 cor0 JOIN tab0 cor1 ON NOT + + 44 IS NULL, tab2 AS cor2 + +Parse error on line 1: +...N NOT + + 44 IS NULL, tab2 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,519 failed +* 84% was OK + +Time: 52198.890ms + +---- ---- ---- ---- ---- ---- ---- +### 313/620 [`./test/random/aggregates/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT COUNT ( * ) / + 45 AS col1, 95 FROM tab0 + +Expected: ["0","95"] but got ["95","0.067"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 - + - col1 + ( col0 ) + CAST ( NULL AS INTEGER ) * 18 ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 + +Expected: ["NULL"] but got ["3"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) * 8 AS col1 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ( + CAST ( COUNT ( * ) AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) / - - 78 FROM tab0 + +g is not defined +``` + + +```sql +SELECT ALL - CAST ( NULL AS REAL ) - + + 63 - + 61 + + 36 + - col0 - 18 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 33 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT ( - 38 ) / + col2 AS col0, col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 + +Expected: ["-3","NULL","0","NULL"] but got ["-0.384","0","-0.809","0","-3.800","0"] +``` + + +```sql +SELECT DISTINCT MAX ( ALL - 6 ) FROM tab2 WHERE NOT - col1 BETWEEN 33 + - 90 AND NULL + +Expected: ["-6"] but got ["NULL"] +``` + + +```sql +SELECT * FROM tab1 cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL < ( NULL ) + +54 results returned but expected 18 +``` + + +```sql +SELECT DISTINCT - col2 / + col0 FROM tab2 AS cor0 WHERE - 73 IS NOT NULL + +Expected: ["0"] but got ["-0.500","-0.625","-0.773"] +``` + + +```sql +SELECT DISTINCT 9 + COUNT ( * ) AS col2, AVG ( DISTINCT + + col2 ) col2, - MAX ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL + +Expected: ["9","NULL","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,649 failed +* 83% was OK + +Time: 33952.649ms + +---- ---- ---- ---- ---- ---- ---- +### 314/620 [`./test/random/aggregates/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_60.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - COUNT ( * ) / - 90 AS col1 FROM tab2 AS cor0 + +Expected: ["0"] but got ["0.033"] +``` + + +```sql +SELECT - - CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab2 AS cor0 + +Expected: ["NULL","51","NULL","67","NULL","77"] but got ["0","51","0","67","0","77"] +``` + + +```sql +SELECT + col0 * - col1 + + 99, col2 AS col1, + 40 / - col1 + 44 AS col1 FROM tab0 cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + col0 * 41 + - CAST ( NULL AS REAL ) / - col1 * col0 col1 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL - + 30 * + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT * FROM tab1 cor0 WHERE NOT 99 + - 46 BETWEEN NULL AND + 30 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + 90 AS col0, - 56 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 + +Expected: ["90","NULL","90","NULL","90","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) * ( + + 55 ) * + - COUNT ( * ) - - MIN ( - 19 ) / - 66 - - + 26 AS col0 FROM tab1 AS cor0 WHERE + col1 BETWEEN + + 53 * - 30 AND NULL + +Expected: ["0","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, + col1 * - ( + + ( + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,610 failed +* 83% was OK + +Time: 29564.517ms + +---- ---- ---- ---- ---- ---- ---- +### 315/620 [`./test/random/aggregates/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_61.test) + +_Mimic sqlite_ + +```sql +SELECT + + col2 / col0 - + - 24 + - - col2 FROM tab1 AS cor0 + +Expected: ["121","83","92"] but got ["121.882","83.694","92.747"] +``` + + +```sql +SELECT ALL col2 - + col0 + CAST ( NULL AS INTEGER ) * + + ( col2 ) + 79 * - 80 * - - col0 AS col1 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-549917","-613038","-94768"] +``` + + +```sql +SELECT CAST ( COUNT ( * ) AS INTEGER ) * + 58 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT + 34 * CAST ( NULL AS INTEGER ) + - col2 * col2 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT MIN ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * 86 FROM tab2 + +Expected: ["NULL"] but got ["-258"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * - CAST ( col2 AS REAL ) BETWEEN + 59 + - col2 AND NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL COUNT ( * ) / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ), col2 * - 24 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-1128","0","-2376","0","-240"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT + 73 IS NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,533 failed +* 84% was OK + +Time: 42072.470ms + +---- ---- ---- ---- ---- ---- ---- +### 316/620 [`./test/random/aggregates/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_62.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - COUNT ( * ) col0, 81 FROM tab0 + +Expected: ["-3","81"] but got ["81","-3"] +``` + + +```sql +SELECT + CAST ( MIN ( - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT + 87 + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + COUNT ( 1 ) * ( - COUNT ( ALL + - col2 ) ) AS col2, - MIN ( + CAST ( NULL AS INTEGER ) ) - MIN ( DISTINCT + ( + ( - col2 ) ) ) FROM tab1 cor0 + +Expected: ["-9","NULL"] but got ["-9","96"] +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT 73 + 91 IN ( + ( 52 ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + col0 - - + 21 + - - CAST ( NULL AS INTEGER ), 95 / - col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL"] but got ["106","0","112","0","72","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + MAX ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IN ( + + col1 ) + +Expected: ["58"] but got ["NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - - col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT - 94 + - MIN ( 22 ) AS col1, 24 FROM tab1 cor0 WHERE NULL IS NOT NULL + +Expected: ["NULL","24"] but got ["24","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,496 failed +* 85% was OK + +Time: 34402.646ms + +---- ---- ---- ---- ---- ---- ---- +### 317/620 [`./test/random/aggregates/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_63.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + col1 AS col1, - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 + +Expected: ["51","NULL","67","NULL","77","NULL"] but got ["51","0","67","0","77","0"] +``` + + +```sql +SELECT - + col1 col0, col2 col0 FROM tab0 AS cor0 + +Expected: ["-1","99","-21","10","-81","47"] but got ["10","10","47","47","99","99"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col1, + SUM ( ALL 18 ) FROM tab2 + +Expected: ["NULL","54"] but got ["0","54"] +``` + + +```sql +SELECT + 66 / 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( col2 * ( + ( + 85 ) ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 58 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + MIN ( ALL + 66 ) AS col1, 77 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 27 AND + col1 + + col0 + +Expected: ["NULL","77"] but got ["77","NULL"] +``` + + +```sql +SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) - - 51 FROM tab0 + +g is not defined +``` + + +```sql +SELECT DISTINCT CAST ( - ( + - ( - 25 ) ) AS INTEGER ) / CAST ( + - col2 AS INTEGER ) col1, + CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["0","NULL","1","NULL"] but got ["0.431","0","0.625","0","1.087","0"] +``` + + +```sql +SELECT CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1, ( MIN ( ALL + col2 ) ) * - - 43 / CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 cor1 ON NULL IS NULL, tab1 AS cor2 + +Parse error on line 1: +...cor1 ON NULL IS NULL, tab1 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT ALL + CAST ( - 8 AS INTEGER ) / - + CAST ( - COUNT ( * ) AS INTEGER ) + + + ( - - MIN ( ALL col0 ) ) AS col0 FROM tab1 AS cor0 + +Expected: ["49"] but got ["NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-14","0","-47","0","-5"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,467 failed +* 85% was OK + +Time: 40379.256ms + +---- ---- ---- ---- ---- ---- ---- +### 318/620 [`./test/random/aggregates/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_64.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 19 / 18 AS col0 FROM tab1 + +Expected: ["1"] but got ["1.056"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) / - 93 + 37 * 6 AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["222","222","222"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 WHERE NOT 3 IN ( + col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col2 * 62 / - CAST ( NULL AS REAL ) AS col1 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT + CAST ( - COUNT ( 26 ) AS INTEGER ) FROM tab2 + +g is not defined +``` + + +```sql +SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT DISTINCT + 65 * + MAX ( ALL + col2 * col1 ) AS col1 FROM tab0 WHERE ( NOT - col2 BETWEEN ( + 57 / 60 + col0 ) AND NULL ) + +Expected: ["247455"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NOT + 53 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON NULL <> NULL, tab1 AS cor2 + +Parse error on line 1: +...cor1 ON NULL <> NULL, tab1 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT 82 AS col2, + 40 + col1 + + + ( col2 ) / + + 44 * - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 + +Expected: ["82","NULL","82","NULL","82","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT ( - CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) - MAX ( ALL + 37 ) AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","-37"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,567 failed +* 84% was OK + +Time: 46405.744ms + +---- ---- ---- ---- ---- ---- ---- +### 319/620 [`./test/random/aggregates/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_65.test) + +_Mimic sqlite_ + +```sql +SELECT - ( - col2 ) / 73 FROM tab0 AS cor0 + +Expected: ["0","0","1"] but got ["0.137","0.644","1.356"] +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + 60 / COUNT ( * ) AS col2 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - col0 * + col1 + col2 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) * - col0 + - 61 + + - CAST ( NULL AS INTEGER ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + 71 * - col2 * CAST ( NULL AS REAL ), col2 col2 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT ALL + - 96 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - CAST ( + SUM ( - col1 ) AS INTEGER ) FROM tab1 + +g is not defined +``` + + +```sql +SELECT ALL CAST ( SUM ( - + 82 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 50 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0, SUM ( - 14 ) col1 FROM tab0 WHERE col1 IS NULL + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT - MAX ( + 18 ) / - CAST ( MAX ( - + col0 ) AS INTEGER ) FROM tab0 + +Expected: ["-1"] but got ["NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) + col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["51","0","67","0","77","0"] +``` + + +```sql +SELECT COUNT ( * ) col1 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL, tab0 AS cor2 + +Parse error on line 1: +... ON NOT NULL IS NULL, tab0 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,558 failed +* 84% was OK + +Time: 34152.893ms + +---- ---- ---- ---- ---- ---- ---- +### 320/620 [`./test/random/aggregates/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_66.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - COUNT ( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 / - col1 NOT IN ( CAST ( - + col1 AS INTEGER ) ) + +Expected: ["0"] but got ["-3"] +``` + + +```sql +SELECT + CAST ( - COUNT ( + col2 ) AS INTEGER ) FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL - col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-51","-67","-77"] +``` + + +```sql +SELECT * FROM tab1 AS cor0 WHERE NOT 66 + ( col2 ) + - ( - 62 ) * col0 BETWEEN - col2 AND - + col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + 24 * COUNT ( * ) + + MAX ( DISTINCT - - col1 ) + - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL"] but got ["116"] +``` + + +```sql +SELECT DISTINCT ( - 83 ) FROM tab1 AS cor0 WHERE NOT + CAST ( col2 AS REAL ) <> + 8 * 59 + - 96 + - 61 + col1 * col2 + +Wrong conversion type +``` + + +```sql +SELECT ALL + col2 * - ( + col1 ) AS col2, + col1 AS col2, - col2 + - - 78 - + col1 * - - 64 col2 FROM tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT col0 / - 40, + col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 + +Expected: ["-1","NULL","-2","NULL"] but got ["-1.275","0","-2.125","0","-2.275","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL MAX ( + + 21 ) * - 5 FROM tab1 WHERE NOT + col1 / - 50 IN ( col2 ) + +Expected: ["-105"] but got ["NULL"] +``` + + +```sql +SELECT + MAX ( 5 ) col1, - SUM ( DISTINCT - 43 ) + ( COUNT ( * ) ) AS col2 FROM tab0 cor0 WHERE NOT ( col1 ) IS NOT NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,534 failed +* 84% was OK + +Time: 25955.969ms + +---- ---- ---- ---- ---- ---- ---- +### 321/620 [`./test/random/aggregates/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_67.test) + +_Mimic sqlite_ + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col2, + col0 * - ( 81 ) FROM tab0 + +Expected: ["NULL","-1215","NULL","-7047","NULL","-7857"] but got ["0","-1215","0","-7047","0","-7857"] +``` + + +```sql +SELECT 8 * + + COUNT ( * ) / + MIN ( + - ( - - col2 ) ) AS col0 FROM tab1 + +Expected: ["0"] but got ["-0.250"] +``` + + +```sql +SELECT + 96 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL"] but got ["96"] +``` + + +```sql +SELECT ALL * FROM tab2 WHERE NOT ( 77 ) IN ( col1 + + col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - MIN ( + 6 ) FROM tab1 WHERE NOT col0 * + - col1 + + 15 + - - 60 BETWEEN - + 74 * - col1 AND + col1 + +Expected: ["-6"] but got ["NULL"] +``` + + +```sql +SELECT - COUNT ( * ) + - + SUM ( DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT - col1, + CAST ( 46 AS INTEGER ) AS col1, - col1 AS col1 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL ) + +18 results returned but expected 54 +``` + + +```sql +SELECT + - col0 col1, + col2 / + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 + +Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,602 failed +* 83% was OK + +Time: 38653.365ms + +---- ---- ---- ---- ---- ---- ---- +### 322/620 [`./test/random/aggregates/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_68.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - COUNT ( * ) * + COUNT ( * ), - 62 / 56 AS col0 FROM tab1 + +Expected: ["-9","-1"] but got ["-9","-1.107"] +``` + + +```sql +SELECT DISTINCT + 52 * + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + AVG ( - col1 ) FROM tab0 + +Expected: ["NULL"] but got ["-34.333"] +``` + + +```sql +SELECT col2 FROM tab1 AS cor0 WHERE ( - CAST ( - 17 AS INTEGER ) - - + CAST ( NULL AS REAL ) ) NOT BETWEEN NULL AND NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( MIN ( - col0 ) AS INTEGER ) + - 43 FROM tab2 WHERE NOT - col0 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + col0 * col0 + CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["225","7569","9409"] +``` + + +```sql +SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * - - 37 FROM tab1 + +g is not defined +``` + + +```sql +SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - col0 * 14 * - col2 / + col2 + col0 + col1 * + col2 * - col1 + + 26 * - - CAST ( NULL AS INTEGER ) AS col2, col2 AS col2, + - 73 * - - 41 AS col2 FROM tab1 AS cor0 + +3 results returned but expected 9 +``` + + +```sql +SELECT + MAX ( ALL - ( - col0 ) ) FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN 68 AND NULL + +Expected: ["75"] but got ["NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) ) col1 FROM tab0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT + col1 + + + col1 AS col0, + col1 / + ( col0 ) * + 1 * + CAST ( NULL AS INTEGER ) - + col0 col0 FROM tab1 + +Expected: ["10","NULL","28","NULL","94","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,543 failed +* 84% was OK + +Time: 35230.790ms + +---- ---- ---- ---- ---- ---- ---- +### 323/620 [`./test/random/aggregates/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_69.test) + +_Mimic sqlite_ + +```sql +SELECT + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( col0 + col1 * col1 ) BETWEEN NULL AND - col1 * ( + 84 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - COUNT ( * ) * 53 AS col0 FROM tab0 WHERE NOT - 33 NOT BETWEEN col2 + col0 AND col2 + +Expected: ["0"] but got ["-159"] +``` + + +```sql +SELECT COUNT ( * ) * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL 71 + 71 AS col1, - CAST ( - + AVG ( col2 ) AS INTEGER ) FROM tab1 + +g is not defined +``` + + +```sql +SELECT col0 - - 44 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["51","85","91"] +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS REAL ) * 24 FROM tab2 cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 26 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - MAX ( DISTINCT - ( col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + - 90 IN ( + col2 ) + +Expected: ["51"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + 78 * + CAST ( NULL AS INTEGER ), + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,505 failed +* 84% was OK + +Time: 29559.427ms + +---- ---- ---- ---- ---- ---- ---- +### 324/620 [`./test/random/aggregates/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - + col2 + col1 / - + 86 AS col1 FROM tab1 AS cor0 + +Expected: ["-59","-68","-96"] but got ["-59.058","-68.547","-96.163"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + col1 + - 68 + col0 * + col2 AS col2 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["1041","2569","4349"] +``` + + +```sql +SELECT col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 88 * - col1 AND - col2 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab2 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT - + 94 = NULL + +54 results returned but expected 18 +``` + + +```sql +SELECT ALL - 11 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( + 58 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE - 70 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + CAST ( + MAX ( - 43 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - col1 ) + col2 + +g is not defined +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 87 < - - 14 + + 1 * col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col0 + - - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","15","0","87","0","97"] +``` + + +```sql +SELECT - 34 + + COUNT ( * ) * 2 - - COUNT ( * ) AS col1, MAX ( + 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL + +Expected: ["-34","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + + SUM ( DISTINCT col0 ) / + - CAST ( - COUNT ( * ) AS INTEGER ) + - 82 + - + COUNT ( * ) FROM tab1 AS cor0 + +Expected: ["-10"] but got ["NULL"] +``` + + +```sql +SELECT - + COUNT ( * ) * - + 68 - + SUM ( DISTINCT col0 ) col2, + MAX ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 cor1 ON NOT 86 IS NOT NULL, tab0 AS cor2 + +Parse error on line 1: +...N NOT 86 IS NOT NULL, tab0 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,634 failed +* 83% was OK + +Time: 33920.505ms + +---- ---- ---- ---- ---- ---- ---- +### 325/620 [`./test/random/aggregates/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_70.test) + +_Mimic sqlite_ + +```sql +SELECT ALL CAST ( - AVG ( 48 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT col1 IN ( - 15, CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + SUM ( - + col2 ) AS col2 FROM tab1 WHERE NOT + col0 * - 96 + + - CAST ( NULL AS INTEGER ) + - 49 IS NULL + +Expected: ["NULL"] but got ["-223"] +``` + + +```sql +SELECT + + COUNT ( CAST ( + col2 AS INTEGER ) ) AS col0, + 53 + - 77 AS col0 FROM tab0 AS cor0 + +Expected: ["3","-24"] but got ["-24"] +``` + + +```sql +SELECT DISTINCT col2 AS col1, + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0 + +Expected: ["23","NULL","40","NULL","58","NULL"] but got ["23","0","40","0","58","0"] +``` + + +```sql +SELECT DISTINCT + col2 + col2 / - - col1 AS col1, + col1 * - 94 AS col2, + + col2 col0 FROM tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON + - ( + CAST ( NULL AS INTEGER ) ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + SUM ( - col0 ) / - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 + +Expected: ["75"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE - 83 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), AVG ( ALL - + col2 ) - AVG ( col2 ) + + AVG ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL = - 30 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,578 failed +* 84% was OK + +Time: 37933.921ms + +---- ---- ---- ---- ---- ---- ---- +### 326/620 [`./test/random/aggregates/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_71.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 3 AS col1, - 71 + CAST ( NULL AS INTEGER ) col0 FROM tab2 + +Expected: ["-3","NULL","-3","NULL","-3","NULL"] but got ["-3","-71","-3","-71","-3","-71"] +``` + + +```sql +SELECT 65 / - col0 FROM tab1 AS cor0 + +Expected: ["-1","0","0"] but got ["-0.714","-0.765","-1.275"] +``` + + +```sql +SELECT ALL * FROM tab0 AS cor0 WHERE NOT 93 * - + col1 / + 63 = CAST ( - + col0 AS REAL ) + + col1 - - + col2 + +Wrong conversion type +``` + + +```sql +SELECT + col2 + - col1 AS col0 FROM tab0 WHERE NOT + 96 + - col2 * + col2 BETWEEN NULL AND - 69 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL SUM ( DISTINCT + 48 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( col0 ) >= NULL ) ) + +Expected: ["NULL"] but got ["48"] +``` + + +```sql +SELECT + + 15 + 7 / - 41 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - CAST ( ( - COUNT ( * ) ) AS INTEGER ) - - - 68 AS col0 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN ( 86 + + 27 ) AND + col2 * - 52 + +Expected: ["46"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) - + CAST ( - col2 AS INTEGER ) * col1 + + 36 * - + 70, + ( + 25 ) + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-2310","35","-2421","124","1287","72"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,566 failed +* 84% was OK + +Time: 35037.220ms + +---- ---- ---- ---- ---- ---- ---- +### 327/620 [`./test/random/aggregates/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_72.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 3 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL MAX ( ALL + - 64 ) * CAST ( + + SUM ( ALL - 96 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL + +Expected: ["18432"] but got ["0"] +``` + + +```sql +SELECT - 84 * - - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-1764","-6804","-84"] +``` + + +```sql +SELECT DISTINCT + - 7 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["-7","NULL"] but got ["-7","0"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IN ( - col0 - - 14 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + 19 / + col0 * col1 / + col1 * + - CAST ( NULL AS REAL ) / - CAST ( NULL AS INTEGER ) + - + col2 + - 15 AS col2 FROM tab1 cor0 + +Wrong conversion type +``` + + +```sql +SELECT CAST ( - COUNT ( 89 ) AS INTEGER ) FROM tab0 + +g is not defined +``` + + +```sql +SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 < 64 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT + MIN ( - 66 ) AS col2 FROM tab2 WHERE NOT 19 + + col2 IN ( col2, - 29 ) + +Expected: ["-66"] but got ["NULL"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON - 83 = NULL, tab1 AS cor2 + +Parse error on line 1: +... cor1 ON - 83 = NULL, tab1 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( 8 ) IS NOT NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,538 failed +* 84% was OK + +Time: 33858.746ms + +---- ---- ---- ---- ---- ---- ---- +### 328/620 [`./test/random/aggregates/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_73.test) + +_Mimic sqlite_ + +```sql +SELECT ALL MAX ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - - col2 - - ( - col0 ) AS col0, + col0 * + col0 AS col0 FROM tab1 AS cor0 + +Expected: ["-23","8281","-26","7225","45","2601"] but got ["2601","2601","7225","7225","8281","8281"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 62 * + CAST ( NULL AS INTEGER ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) / + - ( 69 ) FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + CAST ( MAX ( + col0 ) AS INTEGER ) FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT * FROM tab0 WHERE NOT + CAST ( 43 AS REAL ) NOT BETWEEN NULL AND - col0 + +Wrong conversion type +``` + + +```sql +SELECT col0 col0, - col0 AS col2, col2 AS col0 FROM tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT 45 + COUNT ( - col2 ) * MAX ( + ( - ( - col1 ) ) ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( 59 ) + +Expected: ["288"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) col0, CAST ( NULL AS INTEGER ) + col1 FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","14","0","47","0","5"] +``` + + +```sql +SELECT ALL + MAX ( ALL 34 ) - + CAST ( NULL AS INTEGER ), 65 - - COUNT ( * ) * - - COUNT ( 0 ) - - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + AVG ( - - col2 ) + 0 FROM tab2 cor0 WHERE + 91 IS NOT NULL + +Expected: ["NULL","NULL"] but got ["34","74"] +``` + + +```sql +SELECT - + col0 AS col2, - ( + - col2 ) * - 9 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 + +Expected: ["-51","NULL","-85","NULL","-91","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT 25 * + - MIN ( ALL 70 ) AS col2, 93 + + SUM ( ALL col0 ) AS col1 FROM tab2 cor0 WHERE - 33 IS NULL + +Expected: ["NULL","NULL"] but got ["NULL","93"] +``` + + +```sql +SELECT - + ( 1 ) - + + col2 / + 11, col2 + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 + +Expected: ["-1","NULL","-10","NULL","-5","NULL"] but got ["-1.909","NULL","-10","NULL","-5.273","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,552 failed +* 84% was OK + +Time: 82349.284ms + +---- ---- ---- ---- ---- ---- ---- +### 329/620 [`./test/random/aggregates/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_74.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + col2 / + + 55 FROM tab0 + +Expected: ["0","1"] but got ["0.182","0.855","1.800"] +``` + + +```sql +SELECT col0 AS col2, 31 AS col2, 50 / - col2 * - col1 - + ( + 27 ) FROM tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["10","NULL","47","NULL","99","NULL"] but got ["10","0","47","0","99","0"] +``` + + +```sql +SELECT DISTINCT + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1 FROM tab0 + +Expected: ["3","NULL"] but got ["3","0"] +``` + + +```sql +SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 + +g is not defined +``` + + +```sql +SELECT - - ( col0 ) AS col2 FROM tab2 WHERE NULL = + - ( col0 ) * + 34 * + col1 + - + CAST ( NULL AS INTEGER ) - - + col2 - + CAST ( NULL AS REAL ) * 8 + +Wrong conversion type +``` + + +```sql +SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT MIN ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( - col0 - + ( + 32 ) * - col0 ) + +Expected: ["51"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 WHERE NOT ( + 5 ) IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) col0, 84 * AVG ( 61 ) FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND col1 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,476 failed +* 85% was OK + +Time: 36913.221ms + +---- ---- ---- ---- ---- ---- ---- +### 330/620 [`./test/random/aggregates/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_75.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 * - col1 + col0 / + + col2 + + 47 + - col2 FROM tab0 + +Expected: ["NULL"] but got ["-395.300","-52.020","-6560.681"] +``` + + +```sql +SELECT DISTINCT col2 - + + col2 + col2 / + col0 FROM tab0 + +Expected: ["0","1","3"] but got ["0.115","1.021","3.133"] +``` + + +```sql +SELECT + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT 75 + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 + +g is not defined +``` + + +```sql +SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) = ( + 90 ) + +Wrong conversion type +``` + + +```sql +SELECT - 90 FROM tab1 AS cor0 WHERE NOT ( 75 ) * + col1 IN ( - 13 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM ( tab2 cor0 CROSS JOIN tab2 cor1 ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - MIN ( ALL - col2 ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 33 BETWEEN 92 AND + col0 + +Expected: ["-297"] but got ["NULL"] +``` + + +```sql +SELECT + - 88 col0, + 87 * + 68 col1, + MIN ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL ) + +Expected: ["-88","5916","NULL"] but got ["-88","NULL"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ), AVG ( + CAST ( NULL AS INTEGER ) ) / - ( + - 89 ) / 99 * + ( - 60 ) / - 22 AS col0 FROM tab2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,603 failed +* 83% was OK + +Time: 40315.365ms + +---- ---- ---- ---- ---- ---- ---- +### 331/620 [`./test/random/aggregates/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_76.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + ( col2 ) / - col0 AS col2 FROM tab0 + +Expected: ["-1","-3","0"] but got ["-0.115","-1.021","-3.133"] +``` + + +```sql +SELECT ALL - col0 * 55 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * col0 - col2 * 97 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0 + +g is not defined +``` + + +```sql +SELECT ALL 89 + CAST ( NULL AS REAL ) FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT ( - 33 ) + + 83 + ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["50"] +``` + + +```sql +SELECT - - ( + - CAST ( NULL AS INTEGER ) ) + + 73 AS col1 FROM tab0 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["73","73","73"] +``` + + +```sql +SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NOT + - 24 / + 7 IS NULL ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT * FROM tab0 WHERE - col1 <= col0 / - 72 + +6 results returned but expected 9 +``` + + +```sql +SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) col2, + CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL COUNT ( * ) / + CAST ( - MIN ( - col1 ) AS INTEGER ) FROM tab0 + +Expected: ["0"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,567 failed +* 84% was OK + +Time: 37673.724ms + +---- ---- ---- ---- ---- ---- ---- +### 332/620 [`./test/random/aggregates/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_77.test) + +_Mimic sqlite_ + +```sql +SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT * FROM tab0 WHERE NOT - 87 + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) * col1 IS NULL + +Wrong conversion type +``` + + +```sql +SELECT - 67 + + - col0 / col2 AS col1 FROM tab2 + +Expected: ["-68","-68","-69"] but got ["-68.293","-68.600","-69"] +``` + + +```sql +SELECT DISTINCT + + SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > col2 + +Expected: ["NULL"] but got ["-195"] +``` + + +```sql +SELECT * FROM tab0 cor0 WHERE ( NOT - CAST ( NULL AS INTEGER ) IS NOT NULL ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + + 60 + - + SUM ( + - col2 ), COUNT ( * ) * - + MIN ( 12 ) col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1 / + col1 + +Expected: ["NULL","NULL"] but got ["60","NULL"] +``` + + +```sql +SELECT ALL CAST ( + COUNT ( + col2 ) AS INTEGER ) FROM tab2 + +g is not defined +``` + + +```sql +SELECT + col1, 12 AS col0, - + col0 / + 99 + + 93 + - col1 * col1 - 73 FROM tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT 95 / - 68 + - 21 AS col0, MAX ( - - col2 ) FROM tab1 WHERE NOT ( NOT - col0 > + col0 ) + +Expected: ["-22","NULL"] but got ["-22.397","NULL"] +``` + + +```sql +SELECT - SUM ( + + col0 ), AVG ( ALL 69 ) AS col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN - - 97 * + ( col2 ) AND - - col1 + +Expected: ["NULL","NULL"] but got ["-227","69"] +``` + + +```sql +SELECT ALL + MIN ( ALL - 85 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN col0 AND ( 55 - + col1 * + col0 ) + +Expected: ["-85"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL IS NOT NULL ) + +18 results returned but expected 54 +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) / - col1 col1 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,557 failed +* 84% was OK + +Time: 26762.464ms + +---- ---- ---- ---- ---- ---- ---- +### 333/620 [`./test/random/aggregates/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_78.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + - col1 / col2 AS col2 FROM tab0 AS cor0 + +Expected: ["-1","-2","0"] but got ["-0.010","-1.723","-2.100"] +``` + + +```sql +SELECT - + col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-23","-40","-58"] +``` + + +```sql +SELECT DISTINCT + col0 * - col0 - + CAST ( NULL AS INTEGER ) + 16 * 65 * - 91 col2 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["-101865","-102921","-97241"] +``` + + +```sql +SELECT ALL ( + CAST ( NULL AS REAL ) ) * - col1 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST ( NULL AS INTEGER ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CAST ( - MIN ( + col1 ) AS INTEGER ) FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT * FROM tab1, tab1 cor0 WHERE NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT col0, - 5, - + 33 AS col0 FROM tab0 + +3 results returned but expected 9 +``` + + +```sql +SELECT + + col2 col0, + col0 + - 79 / + 27 * + CAST ( + col0 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * + ( - 41 ) AS col0 FROM tab2 cor0 + +Expected: ["23","NULL","40","NULL","58","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT ( + COUNT ( * ) ) / + CAST ( + ( - + SUM ( + + 89 ) ) AS INTEGER ) * + + ( 17 ) FROM tab2 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT ALL - SUM ( col0 ), + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE - 47 IS NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT DISTINCT + 95 / + 20 AS col2, - col1 * - 63 - col0 * + - col2 / - CAST ( NULL AS INTEGER ) + + + ( - col0 ) * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL + +Expected: ["4","NULL"] but got ["4.750","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,678 failed +* 83% was OK + +Time: 32625.075ms + +---- ---- ---- ---- ---- ---- ---- +### 334/620 [`./test/random/aggregates/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_79.test) + +_Mimic sqlite_ + +```sql +SELECT + + COUNT ( * ) / 14 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 + +Expected: ["0"] but got ["0.643"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT 82 col0, col0 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 + +Expected: ["82","NULL","82","NULL","82","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT - + CAST ( NULL AS INTEGER ) / - MAX ( - + col2 ) + 83 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["83"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + - 98 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["-98","-98","-98"] +``` + + +```sql +SELECT 29 AS col1, CAST ( + COUNT ( ALL ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) FROM tab1 + +g is not defined +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * col2 IN ( - col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + - CAST ( NULL AS INTEGER ) + col2 AS col1, col2 * CAST ( NULL AS INTEGER ) / - 65 * - - col1 * + + ( - col1 ) AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT + 9 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) + - + col0 AS col0 FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","-46","0","-64","0","-75"] +``` + + +```sql +SELECT + + 86 / + MAX ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0 + +Expected: ["-1"] but got ["-1.458"] +``` + + +```sql +SELECT ALL COUNT ( * ) / + CAST ( + + SUM ( col1 ) AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["0"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,536 failed +* 84% was OK + +Time: 55143.074ms + +---- ---- ---- ---- ---- ---- ---- +### 335/620 [`./test/random/aggregates/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - CAST ( - col0 AS INTEGER ) IN ( col2, + col2 ) + +Expected: ["-3"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 BETWEEN NULL AND - + col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - 25 * + CAST ( + + COUNT ( ALL - 61 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL + ( - AVG ( - CAST ( NULL AS INTEGER ) ) ) + - ( - 23 ) FROM tab0 + +Expected: ["NULL"] but got ["23"] +``` + + +```sql +SELECT ALL CAST ( - - col1 AS INTEGER ) / col1 + + col0 + - + CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["16","88","98"] +``` + + +```sql +SELECT COUNT ( * ) / - 3, - 4 / CAST ( + + AVG ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 + +Expected: ["-1","0"] but got ["-1","NULL"] +``` + + +```sql +SELECT DISTINCT col2 + col2 AS col1 FROM tab2 WHERE NOT - 89 * CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 36 ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + + col2 - - CAST ( NULL AS INTEGER ) + + 20, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL"] but got ["119","0","30","0","67","0"] +``` + + +```sql +SELECT DISTINCT + 6 * - 31 + col1 AS col1, + 34 / - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 + +Expected: ["-139","NULL","-172","NULL","-181","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,634 failed +* 83% was OK + +Time: 42273.954ms + +---- ---- ---- ---- ---- ---- ---- +### 336/620 [`./test/random/aggregates/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_80.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + - col0 + CAST ( NULL AS INTEGER ), + col2 FROM tab0 AS cor0 + +Expected: ["NULL","10","NULL","47","NULL","99"] but got ["-15","47","-87","10","-97","99"] +``` + + +```sql +SELECT - col0 / + + 79 + + col0 FROM tab0 AS cor0 + +Expected: ["15","86","96"] but got ["14.810","85.899","95.772"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS REAL ) * - 59 * 55 / CAST ( + 3 AS INTEGER ) - + AVG ( DISTINCT + 5 ) AS col0 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - CAST ( + MAX ( - col1 ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND + + 40 + +g is not defined +``` + + +```sql +SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON - 73 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT MIN ( ALL - col2 ) AS col0 FROM tab1 WHERE NOT - 64 NOT IN ( 90 + 53 ) + +Expected: ["NULL"] but got ["-96"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) BETWEEN 90 AND ( + + CAST ( 85 AS REAL ) / - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + MIN ( ALL - col1 ) col1, + MIN ( col2 ) * ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE - 44 + col2 * - CAST ( - 90 AS INTEGER ) IS NULL + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - MIN ( - CAST ( NULL AS INTEGER ) ) + + - 72 AS col0, COUNT ( * ) col2, CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","3","NULL"] but got ["-72","3","0"] +``` + + +```sql +SELECT MIN ( ( col1 ) ) + - COUNT ( CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT - 68 * - col2 * + col0 IN ( - - col2 * + col2 + + + 73 ) + +Expected: ["2"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,568 failed +* 84% was OK + +Time: 55329.225ms + +---- ---- ---- ---- ---- ---- ---- +### 337/620 [`./test/random/aggregates/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_81.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( NULL ) + +Expected: ["0"] but got ["-3"] +``` + + +```sql +SELECT ALL 5 / - col0 + + - CAST ( NULL AS INTEGER ) + 22 * - col0 * col2 + 88 AS col1 FROM tab1 WHERE NOT + col2 <= + - col0 * 55 + +Expected: ["NULL","NULL","NULL"] but got ["-107624.098","-110242.059","-136048.055"] +``` + + +```sql +SELECT DISTINCT + ( + col0 ) + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) / + MAX ( - ( + 24 ) ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL - 44 * CAST ( + COUNT ( 89 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab1 + +g is not defined +``` + + +```sql +SELECT + ( - 79 ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + col1 * - 60 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + - CAST ( NULL AS INTEGER ) + + + 40 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + MIN ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 57 / 57 IN ( + col1 ) + +Expected: ["10"] but got ["NULL"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL NOT BETWEEN NULL AND NULL, tab2 AS cor2 + +Parse error on line 1: +...ETWEEN NULL AND NULL, tab2 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT ALL + 27 + + col2 + - CAST ( NULL AS INTEGER ) + + col2 + - 47 * - - 95 / - col0 + - 73 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["103.766","0","129.533","0","97.065","0"] +``` + + +```sql +SELECT ALL + MIN ( - col1 ) AS col1, - CAST ( NULL AS INTEGER ) * + 98 AS col2 FROM tab1 WHERE NOT NULL <= + - col1 + +Expected: ["NULL","NULL"] but got ["-47","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,563 failed +* 84% was OK + +Time: 40651.343ms + +---- ---- ---- ---- ---- ---- ---- +### 338/620 [`./test/random/aggregates/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_82.test) + +_Mimic sqlite_ + +```sql +SELECT + AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL 55 / - MIN ( ALL - col0 ) col0 FROM tab1 AS cor0 + +Expected: ["0"] but got ["0.604"] +``` + + +```sql +SELECT col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["46","NULL","64","NULL","75","NULL"] but got ["46","0","64","0","75","0"] +``` + + +```sql +SELECT ALL CAST ( ( - + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT CAST ( + col1 AS REAL ) * 74 FROM tab2 WHERE NOT NULL >= NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab2 WHERE NOT - col0 + + 26 IN ( col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col2, + CAST ( NULL AS INTEGER ), - + col0 AS col0 FROM tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE + col1 + - col2 NOT IN ( col1 ) + +g is not defined +``` + + +```sql +SELECT ALL - SUM ( DISTINCT - col2 ), MIN ( - + 65 ) / + + COUNT ( * ) * + ( - COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT - 75 IS NOT NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT SUM ( DISTINCT col1 ) * MIN ( DISTINCT col2 - col1 ) AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) * col2 / - 59 + + col2 IS NULL + +Expected: ["1386"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,621 failed +* 83% was OK + +Time: 32320.935ms + +---- ---- ---- ---- ---- ---- ---- +### 339/620 [`./test/random/aggregates/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_83.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + col2 * 31 / + - 6 AS col2 FROM tab2 cor0 + +Expected: ["-118","-206","-299"] but got ["-118.833","-206.667","-299.667"] +``` + + +```sql +SELECT - - CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab2 AS cor0 + +Expected: ["NULL","51","NULL","67","NULL","77"] but got ["0","51","0","67","0","77"] +``` + + +```sql +SELECT DISTINCT 31 + - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) FROM tab0 + +g is not defined +``` + + +```sql +SELECT DISTINCT CAST ( CAST ( + 21 AS REAL ) AS INTEGER ) FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL col0 col0 FROM tab2 cor0 WHERE NOT - 65 * - - 39 BETWEEN - 81 * - + col0 + + 77 AND + col2 * col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 46 NOT IN ( 9 ) + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT + 47 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + AVG ( + - col1 ) AS col0, - SUM ( DISTINCT 76 ) FROM tab0 WHERE 38 + - - col1 IS NULL AND NOT NULL IS NOT NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT DISTINCT - MIN ( + 88 ) - - 85 AS col2, MAX ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = col2 + +Expected: ["NULL","NULL"] but got ["-3","-23"] +``` + + +```sql +SELECT DISTINCT MAX ( ALL col1 ) col1 FROM tab1 WHERE NOT ( + col1 ) BETWEEN + col0 AND NULL + +Expected: ["47"] but got ["NULL"] +``` + + +```sql +SELECT ALL col1 / - - ( + CAST ( NULL AS INTEGER ) ) col0, 39 + + + CAST ( NULL AS INTEGER ) + + - 10 + col1 / - col0 AS col1 FROM tab2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","27.797","NULL","27.891","NULL","28.107"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,614 failed +* 83% was OK + +Time: 38760.941ms + +---- ---- ---- ---- ---- ---- ---- +### 340/620 [`./test/random/aggregates/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_84.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) / - - ( - col2 ) + - + 74 AS col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-74","-74","-74"] +``` + + +```sql +SELECT DISTINCT col0 AS col1, - col2 / + 74 AS col2 FROM tab1 + +Expected: ["51","-1","85","0","91","0"] but got ["51","-1.297","85","-0.797","91","-0.919"] +``` + + +```sql +SELECT * FROM tab2 WHERE + col0 + CAST ( NULL AS INTEGER ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - 70 * - 14 + ( - + SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 WHERE col1 / + 6 IS NOT NULL + +Expected: ["NULL"] but got ["980"] +``` + + +```sql +SELECT - 79 * - + CAST ( NULL AS REAL ), 6 + + ( - col0 ) / + - col1 AS col0 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( MAX ( - ( + col2 ) ) AS INTEGER ) FROM tab0 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 18 ) IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - - 44 AS col2, - col0 / + ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0 + +Expected: ["44","NULL","44","NULL","44","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT COUNT ( * ) * + COUNT ( * ) / - - CAST ( + CAST ( + COUNT ( - col1 ) AS INTEGER ) AS INTEGER ) - - 54 FROM tab1 + +Expected: ["57"] but got ["NULL"] +``` + + +```sql +SELECT - + SUM ( DISTINCT col0 ) AS col1, - AVG ( ALL 44 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 1 / - ( - 11 ) IS NOT NULL + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - - col2 / - - 62 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["0","NULL","1","NULL"] but got ["0.161","0","0.758","0","1.597","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,621 failed +* 83% was OK + +Time: 30091.612ms + +---- ---- ---- ---- ---- ---- ---- +### 341/620 [`./test/random/aggregates/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_85.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + 57 AS col2 FROM tab2 cor0 + +Expected: ["NULL"] but got ["54"] +``` + + +```sql +SELECT - 60 AS col0, COUNT ( - - 95 ) AS col0 FROM tab0 + +Expected: ["-60","3"] but got ["3"] +``` + + +```sql +SELECT - 38 + + CAST ( NULL AS INTEGER ) * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-38","-38","-38"] +``` + + +```sql +SELECT + 90 * + CAST ( NULL AS INTEGER ) + - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab2 WHERE NOT 39 IN ( col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 11 + 15 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT - col1 / col0 * - + 61 AS col2, 18 - + + ( - 68 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 + +Expected: ["0","NULL","61","NULL"] but got ["54.493","18","67.630","18","73.391","18"] +``` + + +```sql +SELECT - COUNT ( * ) / CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 + +Expected: ["1"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,517 failed +* 84% was OK + +Time: 29545.303ms + +---- ---- ---- ---- ---- ---- ---- +### 342/620 [`./test/random/aggregates/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_86.test) + +_Mimic sqlite_ + +```sql +SELECT 42 / col0 - col2 FROM tab0 + +Expected: ["-10","-45","-99"] but got ["-44.200","-9.517","-98.567"] +``` + + +```sql +SELECT ALL col0 AS col2 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - ( COUNT ( + 46 ) ) FROM tab2 cor0 WHERE NOT col0 * col0 + - CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + SUM ( + 49 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0 + +g is not defined +``` + + +```sql +SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE 70 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT MIN ( DISTINCT col0 ) * - COUNT ( * ) FROM tab2 WHERE NOT ( + 64 + - col2 * + 67 ) IN ( col2 * ( 27 ) ) + +Expected: ["-138"] but got ["NULL"] +``` + + +```sql +SELECT - MIN ( DISTINCT + - col1 ) AS col1, 8 FROM tab0 AS cor0 WHERE NULL <> NULL + +Expected: ["NULL","8"] but got ["8","NULL"] +``` + + +```sql +SELECT - SUM ( DISTINCT - col0 ) AS col2, MAX ( ALL - - col2 ) FROM tab0 WHERE NOT NULL IS NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT ALL col1, 5 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 + +Expected: ["14","NULL","47","NULL","5","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL CAST ( + MAX ( col2 ) AS INTEGER ), 80 - COUNT ( * ) + - 75 + CAST ( NULL AS INTEGER ) + 15 AS col1 FROM tab1 AS cor0 WHERE NULL <= NULL + +Expected: ["NULL","NULL"] but got ["0","20"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,532 failed +* 84% was OK + +Time: 59042.119ms + +---- ---- ---- ---- ---- ---- ---- +### 343/620 [`./test/random/aggregates/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_87.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + - COUNT ( * ) * SUM ( ALL 48 ) / 60 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 + +Expected: ["-64"] but got ["-64.800"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST ( + 60 AS REAL ) * - col2 ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL 6 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["6","6","6"] +``` + + +```sql +SELECT * FROM tab0 WHERE NOT - + col1 IN ( + col1 + col2 + - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + - MIN ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT - 49 + + col1 NOT BETWEEN - 59 AND NULL + +Expected: ["NULL"] but got ["-59"] +``` + + +```sql +SELECT DISTINCT + 46 / + + col0 AS col2, 46 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 + +Expected: ["0","NULL","1","NULL"] but got ["46","46"] +``` + + +```sql +SELECT ALL CAST ( + MAX ( - 36 ) AS INTEGER ) FROM tab0 + +g is not defined +``` + + +```sql +SELECT ALL 81 AS col2, + col0 AS col1, col1 + - 51 + - 87 * - + col2 AS col1 FROM tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL + ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col2, - SUM ( DISTINCT + + 85 ) * MIN ( + 88 ) AS col1 FROM tab1 WHERE col0 IN ( + + col1 * - col1 + + col2, - col2 ) + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) - + + col2 * + - 74 FROM tab0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","3478","0","7326","0","740"] +``` + + +```sql +SELECT + COUNT ( * ) / + - CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 + +Expected: ["-1"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,620 failed +* 83% was OK + +Time: 69254.017ms + +---- ---- ---- ---- ---- ---- ---- +### 344/620 [`./test/random/aggregates/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_88.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT ( + col1 ) / + 70 AS col0 FROM tab2 + +Expected: ["0","1"] but got ["0.729","0.957","1.100"] +``` + + +```sql +SELECT 95, COUNT ( * ) * + ( + - CAST ( NULL AS INTEGER ) ) * + MAX ( 21 ) + 4 * 97 AS col2 FROM tab0 + +Expected: ["95","NULL"] but got ["95","388"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT col1 IN ( - col1 * col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col1 * - CAST ( NULL AS REAL ) - col0 AS col0 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT + - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) / + col1, col2 FROM tab2 AS cor0 + +Expected: ["NULL","23","NULL","40","NULL","58"] but got ["0","23","0","40","0","58"] +``` + + +```sql +SELECT - ( + 38 ) + + COUNT ( * ) / - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 + +Expected: ["-39"] but got ["NULL"] +``` + + +```sql +SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 8 <> - + 26 + 50 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE - 51 NOT IN ( + 92 ) + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ), - ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT ALL SUM ( DISTINCT - col2 ) AS col0, CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL AND NULL > ( NULL ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,625 failed +* 83% was OK + +Time: 100006.447ms + +---- ---- ---- ---- ---- ---- ---- +### 345/620 [`./test/random/aggregates/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_89.test) + +_Mimic sqlite_ + +```sql +SELECT + + col2 + 58 * - - col1 + + col0 - - col0 / - + 76 FROM tab2 AS cor0 + +Expected: ["3027","4019","4570"] but got ["3026.395","4018.013","4569.158"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 80 + - + COUNT ( * ) + COUNT ( * ) + - - 0 * + 24 * ( + 20 ) AS col0 FROM tab0 + +Expected: ["NULL"] but got ["80"] +``` + + +```sql +SELECT ALL - col0 - + col0 + - col0 + + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-261","-291","-45"] +``` + + +```sql +SELECT col0 - CAST ( NULL AS REAL ) + + ( - - col0 ) FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT + 40 FROM tab1 WHERE NOT - ( + - col0 ) BETWEEN NULL AND - col0 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT CAST ( + COUNT ( col2 ) AS INTEGER ) FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT 64 / - CAST ( - - MAX ( + col2 ) AS INTEGER ) - 81 * + - COUNT ( * ) FROM tab0 + +Expected: ["243"] but got ["NULL"] +``` + + +```sql +SELECT ALL col1 * - CAST ( NULL AS INTEGER ) + - + 25 - 31 * + - col1 AS col2, col0 * - CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["2486","0","6","0","626","0"] +``` + + +```sql +SELECT - - 58 / - 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - MIN ( ALL + col0 ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT 98 AS col1, + AVG ( DISTINCT 53 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL + +Expected: ["98","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + + 56 * 8 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["448"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,601 failed +* 84% was OK + +Time: 76192.381ms + +---- ---- ---- ---- ---- ---- ---- +### 346/620 [`./test/random/aggregates/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS REAL ) IS NOT NULL ) + +Wrong conversion type +``` + + +```sql +SELECT ALL - + 1 * - col0 + - - 96 * ( + + 92 ) - 81 / - - ( + col0 ) AS col0 FROM tab0 AS cor0 + +Expected: ["8842","8919","8929"] but got ["8841.600","8918.069","8928.165"] +``` + + +```sql +SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + MIN ( ALL - 45 ) AS col1 FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL + - col0 AS col0, CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0 + +Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["-15","0","-87","0","-97","0"] +``` + + +```sql +SELECT DISTINCT - + 86 + - - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 + +g is not defined +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT col2 IN ( - ( col1 ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - 14 AS col2, 94 AS col2, col2 FROM tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - + CAST ( NULL AS INTEGER ) + 3 AS col0 FROM tab2 WHERE + + col2 - - - ( + col1 ) - - col2 <> col0 + + - col1 + +Expected: ["NULL","NULL"] but got ["3","3"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,565 failed +* 84% was OK + +Time: 34904.978ms + +---- ---- ---- ---- ---- ---- ---- +### 347/620 [`./test/random/aggregates/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_90.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1, - COUNT ( * ) col2 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT - + 25 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - COUNT ( DISTINCT col1 ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-3"] +``` + + +```sql +SELECT ALL - + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["15","87","97"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT 19 IN ( - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - col0 + + 34 + + col2 / col1 AS col2 FROM tab1 + +Expected: ["-11","-40","-56"] but got ["-10.143","-39.200","-55.553"] +``` + + +```sql +SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) * - 32 FROM tab1 + +g is not defined +``` + + +```sql +SELECT + 48 + + + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","NULL","0","NULL","0","NULL"] +``` + + +```sql +SELECT + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) IN ( ( - col2 ) + col1 ) + +Expected: ["46"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,643 failed +* 83% was OK + +Time: 51764.114ms + +---- ---- ---- ---- ---- ---- ---- +### 348/620 [`./test/random/aggregates/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_91.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab2 AS cor0 WHERE CAST ( - col0 AS REAL ) >= ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + CAST ( NULL AS INTEGER ) ) + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - - col1 * - CAST ( NULL AS INTEGER ) * + - 93 - col0 * col1 AS col2 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-1215","-1827","-97"] +``` + + +```sql +SELECT + + col0 / 71 col2 FROM tab0 cor0 + +Expected: ["0","1","1"] but got ["0.211","1.225","1.366"] +``` + + +```sql +SELECT - 84 * - - col0 + - col0 + - - 33 - - - CAST ( NULL AS INTEGER ) - + col2 / + 72 AS col2 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-3877.319","-5407.556","-6342.806"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 WHERE NOT col1 + - col2 / col0 IN ( col0, col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - 71, CAST ( NULL AS INTEGER ) * - + CAST ( + + COUNT ( * ) AS REAL ) AS col2 FROM tab2 + +g is not defined +``` + + +```sql +SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 1 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - MIN ( - col2 ) AS col0, ( + AVG ( col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL <> + col0 + +Expected: ["NULL","NULL"] but got ["40.333"] +``` + + +```sql +SELECT MIN ( ALL + + CAST ( - col0 AS INTEGER ) ) FROM tab2 cor0 WHERE NOT + col1 BETWEEN NULL AND + 62 + +Expected: ["-75"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE + 57 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) * 63 / COUNT ( * ) FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - 92 AS col1, 26 * - + ( + MIN ( - 77 ) ) AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL + +Expected: ["-92","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,630 failed +* 83% was OK + +Time: 84781.545ms + +---- ---- ---- ---- ---- ---- ---- +### 349/620 [`./test/random/aggregates/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_92.test) + +_Mimic sqlite_ + +```sql +SELECT ( - col2 ) / 98 AS col0 FROM tab0 AS cor0 + +Expected: ["-1","0","0"] but got ["-0.102","-0.480","-1.010"] +``` + + +```sql +SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - + col2 * - - ( - col2 ) col1 FROM tab0 AS cor0 WHERE NOT ( NOT + + ( + col1 ) NOT BETWEEN + + col0 + + CAST ( NULL AS REAL ) + + col1 * ( + col0 ) AND NULL ) + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT - ( - col1 ) * col0 IN ( - col1 * 73 + + col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT CAST ( - COUNT ( * ) AS INTEGER ) / + 74 AS col1 FROM tab2 cor0 + +g is not defined +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * - col1 AS col0, - col1 * col1 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-1","0","-441","0","-6561"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON ( NULL ) IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - MIN ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + col1 AND - 21 + +Expected: ["-46"] but got ["NULL"] +``` + + +```sql +SELECT ALL - - CAST ( NULL AS INTEGER ), - SUM ( - 4 ) FROM tab2 AS cor0 WHERE + 88 NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL + +Expected: ["NULL","NULL"] but got ["0","12"] +``` + + +```sql +SELECT SUM ( - col0 ) + + AVG ( ALL - - 30 ) AS col0, 17 FROM tab1 AS cor0 WHERE ( NOT ( - col1 * + 45 * + col0 < + + 1 ) ) + +Expected: ["NULL","17"] but got ["17","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,607 failed +* 83% was OK + +Time: 34826.807ms + +---- ---- ---- ---- ---- ---- ---- +### 350/620 [`./test/random/aggregates/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_93.test) + +_Mimic sqlite_ + +```sql +SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col2, col0 * + + col0 + - + 22 / - col1 AS col2 FROM tab1 cor0 + +Expected: ["NULL","2602","NULL","7229","NULL","8281"] but got ["2602.571","2602.571","7229.400","7229.400","8281.468","8281.468"] +``` + + +```sql +SELECT - - col0 / + + col1 + col0 * + 1 + ( - 50 ) AS col0 FROM tab0 cor0 + +Expected: ["-35","144","41"] but got ["-34.815","144","41.143"] +``` + + +```sql +SELECT ALL MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 37 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL col2 - 54 * - - col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IN ( - col2 + + 23, col0 * - col1, + 17 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - 4 * - SUM ( DISTINCT CAST ( NULL AS REAL ) ) - COUNT ( * ) FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( + - MAX ( - 99 ) AS INTEGER ) AS col2, - 92 FROM tab2 cor0 + +g is not defined +``` + + +```sql +SELECT - + CAST ( NULL AS INTEGER ), + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + + MIN ( DISTINCT - - 14 ) AS col1, - SUM ( DISTINCT 74 ) col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - COUNT ( ALL ( - - col2 ) ) AS col2 FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["-3"] +``` + + +```sql +SELECT DISTINCT + + MAX ( - + col0 ) AS col1 FROM tab2 WHERE NOT - ( + col1 ) BETWEEN + 48 - + ( + col1 ) + - 28 * + - col2 AND + col2 + +Expected: ["-46"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,581 failed +* 84% was OK + +Time: 65193.079ms + +---- ---- ---- ---- ---- ---- ---- +### 351/620 [`./test/random/aggregates/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_94.test) + +_Mimic sqlite_ + +```sql +SELECT 75 / - 30 FROM tab2 + +Expected: ["-2","-2","-2"] but got ["-2.500","-2.500","-2.500"] +``` + + +```sql +SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + col2 AND - CAST ( + - 22 AS INTEGER ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col1 AS col1, - col0 - - - 57 AS col2, + + CAST ( NULL AS INTEGER ) * - - col2 + - + col0 AS col1 FROM tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - col1 + - - CAST ( NULL AS REAL ) FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - col0 * - CAST ( NULL AS INTEGER ) - + 47 + + 37 AS col1 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-10","-10","-10"] +``` + + +```sql +SELECT ALL 33 * - CAST ( - + COUNT ( * ) AS INTEGER ) - + - 33 FROM tab1 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 13 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL - + MIN ( + col2 ) FROM tab1 WHERE NOT + col1 BETWEEN + col1 * 81 + - - 97 AND - 92 + +Expected: ["-59"] but got ["NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + - + ( col2 ) col1 FROM tab2 cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-23","0","-40","0","-58"] +``` + + +```sql +SELECT DISTINCT + MIN ( + 24 ) / - ( - CAST ( NULL AS INTEGER ) ) AS col1, 47 FROM tab0 + +Expected: ["NULL","47"] but got ["47","NULL"] +``` + + +```sql +SELECT ALL - 8 / - 73 FROM tab2 + +Expected: ["0","0","0"] but got ["0.110","0.110","0.110"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL, tab2 AS cor2 + +Parse error on line 1: +... ON NULL IS NOT NULL, tab2 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT - COUNT ( * ) + MIN ( + col1 ) - - AVG ( col0 ) * + COUNT ( - col1 ) col0, - SUM ( + col1 ) col2 FROM tab1 AS cor0 WHERE - col1 <= NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT DISTINCT - 42 / + + ( - col2 ) - 44, ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 + +Expected: ["-40","NULL","-44","NULL"] but got ["-39.800","0","-43.106","0","-43.576","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,578 failed +* 84% was OK + +Time: 29132.312ms + +---- ---- ---- ---- ---- ---- ---- +### 352/620 [`./test/random/aggregates/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_95.test) + +_Mimic sqlite_ + +```sql +SELECT - ( + - CAST ( NULL AS INTEGER ) ) * - col2 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT + col0 / - + col1 + col2 * + + col1 * - + ( - ( - + ( col2 ) ) ) * 80 AS col0 FROM tab2 AS cor0 + +Expected: ["-18031041","-2158320","-9856000"] but got ["-18031041.119","-2158320.902","-9856000.831"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 56 * + + CAST ( NULL AS INTEGER ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT CAST ( + ( COUNT ( * ) ) AS INTEGER ) FROM tab2 + +g is not defined +``` + + +```sql +SELECT ( + 25 ) * + AVG ( ALL - col1 ) * - CAST ( NULL AS INTEGER ) / - 82 FROM tab2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( - col0 AS REAL ) > col2 + col1 + col0 + ( col1 ) + +Wrong conversion type +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + - 6 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - SUM ( ALL - 29 ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + + 0 * CAST ( NULL AS INTEGER ) * - col2 * + col2 + - 27 <> NULL + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT 37 AS col2, - col2 * - + col0 + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 + +Expected: ["37","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT 3 + + MAX ( DISTINCT - 62 ) AS col0 FROM tab2 WHERE NOT ( - col2 ) BETWEEN col1 * - 9 + + 93 AND - col1 + +Expected: ["-59"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) / - + ( - col1 ) AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,586 failed +* 84% was OK + +Time: 30723.574ms + +---- ---- ---- ---- ---- ---- ---- +### 353/620 [`./test/random/aggregates/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_96.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - CAST ( - MIN ( 74 ) AS INTEGER ) FROM tab0 + +g is not defined +``` + + +```sql +SELECT col2 * - + CAST ( NULL AS INTEGER ) - + col1 AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-14","-47","-5"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 WHERE - + col2 * - CAST ( NULL AS INTEGER ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + COUNT ( * ) + 53 AS col0 FROM tab2 WHERE NOT ( + 25 ) BETWEEN col0 + + col1 * 80 AND + col2 AND NOT ( NULL ) IS NOT NULL + +Expected: ["56"] but got ["53"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - 88 IS NOT NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT CAST ( NULL AS REAL ) AS col1, COUNT ( * ) AS col2 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT ( 93 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + ( + col2 ) / - CAST ( NULL AS INTEGER ), 5 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] +``` + + +```sql +SELECT MIN ( col1 ) / CAST ( - + COUNT ( * ) AS INTEGER ) AS col2, - COUNT ( * ) FROM tab1 + +Expected: ["-1","-3"] but got ["NULL","-3"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL + 79 + + CAST ( NULL AS INTEGER ) * + AVG ( ALL + ( - 69 ) ), + 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 + +Expected: ["NULL","44"] but got ["79","44"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * + 25 AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT 85 AS col2, - MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL + +Expected: ["85","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,549 failed +* 84% was OK + +Time: 34334.210ms + +---- ---- ---- ---- ---- ---- ---- +### 354/620 [`./test/random/aggregates/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_97.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col0, + COUNT ( * ) col0 FROM tab2 + +Expected: ["-46","3"] but got ["3"] +``` + + +```sql +SELECT * FROM tab2 cor0 WHERE NOT 35 IN ( - - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * + col2 + - col2 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-23","-40","-58"] +``` + + +```sql +SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 + +g is not defined +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 17 * + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + - col0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) + +18 results returned but expected 54 +``` + + +```sql +SELECT - - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + SUM ( + 51 ) / - COUNT ( * ) + 37 + MIN ( + + 78 ) + - 31 - + - 82 / - - CAST ( MAX ( ALL + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 + +Expected: ["34"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + 82 / + + col0 + col1 AS col1, col1 AS col1 FROM tab1 + +Expected: ["15","14","47","47","5","5"] but got ["14","14","47","47","5","5"] +``` + + +```sql +SELECT - SUM ( ALL col0 ) - + - COUNT ( * ) AS col0, - 52 + + AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT + 47 + + 58 * + - col0 * + + col2 * + 94 + + col1 + - col0 IS NOT NULL ) + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col1, 91 + - col0 + + + 24 * CAST ( NULL AS INTEGER ) * 61 + + col0 AS col0 FROM tab1 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","91","0","91","0","91"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,633 failed +* 83% was OK + +Time: 30020.496ms + +---- ---- ---- ---- ---- ---- ---- +### 355/620 [`./test/random/aggregates/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_98.test) + +_Mimic sqlite_ + +```sql +SELECT - CAST ( NULL AS INTEGER ) + - 75 * + COUNT ( * ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-225"] +``` + + +```sql +SELECT ALL 48 / + + col1 + - - col1 FROM tab2 AS cor0 + +Expected: ["51","67","77"] but got ["51.941","67.716","77.623"] +``` + + +```sql +SELECT - 88 * - CAST ( NULL AS INTEGER ) - col2 + - - 97 * + + ( + col2 ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["5664","6528","9216"] +``` + + +```sql +SELECT DISTINCT - - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 + +g is not defined +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) + + + col0 AS col0 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab2 WHERE NOT - - col2 BETWEEN - ( + + col0 ) AND - + col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT + ( - + col2 ) / 27 AS col2, CAST ( NULL AS INTEGER ) * + col2 FROM tab1 + +Expected: ["-2","NULL","-3","NULL"] but got ["-2.185","0","-2.519","0","-3.556","0"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) + - - 31 + - - 88 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 58 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL, tab2 AS cor2 + +Parse error on line 1: +...NOT NULL IS NOT NULL, tab2 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT - 58 AS col0, AVG ( ALL + 42 ) col0 FROM tab2 AS cor0 WHERE - col2 = 66 + +Expected: ["-58","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + + COUNT ( * ) / + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 + +Expected: ["-1"] but got ["NULL"] +``` + + +```sql +SELECT - - COUNT ( * ) * - - 52 + - SUM ( - + col0 ) * - + 77, MIN ( DISTINCT 44 ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,644 failed +* 83% was OK + +Time: 58268.615ms + +---- ---- ---- ---- ---- ---- ---- +### 356/620 [`./test/random/aggregates/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_99.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - ( + 47 ) * + - COUNT ( * ) * - MAX ( + col1 ) + - CAST ( + MIN ( - col1 ) AS INTEGER ) + 75 AS col1 FROM tab1 AS cor0 + +Expected: ["-6505"] but got ["-6552"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * col2 * + + col1 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL + + 98 / COUNT ( DISTINCT - - col0 ) AS col1, + CAST ( NULL AS INTEGER ) * 60 FROM tab1 AS cor0 + +Expected: ["32","NULL"] but got ["32.667","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 4 ) < 66 + +18 results returned but expected 54 +``` + + +```sql +SELECT COUNT ( DISTINCT col0 ) * - COUNT ( * ) / - CAST ( COUNT ( * ) AS INTEGER ) - + - CAST ( NULL AS REAL ) * + ( - - ( ( + COUNT ( * ) ) ) ) FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT + 60 BETWEEN NULL AND + 3 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col0, col2 + - 81 + col1 AS col0, - + col2 AS col0 FROM tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 + +g is not defined +``` + + +```sql +SELECT - AVG ( DISTINCT - - col1 ) AS col2, 4 FROM tab2 WHERE NULL BETWEEN NULL AND - col2 * 43 + +Expected: ["NULL","4"] but got ["4","NULL"] +``` + + +```sql +SELECT DISTINCT + 9 * - CAST ( NULL AS INTEGER ) + - ( - col1 ) * + col1 AS col2, + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 + +Expected: ["NULL","NULL"] but got ["196","0","2209","0","25","0"] +``` + + +```sql +SELECT DISTINCT - MAX ( DISTINCT 49 ) * COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col1 IN ( + ( col0 ) + + col0 * col0 ) + +Expected: ["-147"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,573 failed +* 84% was OK + +Time: 32856.344ms + +---- ---- ---- ---- ---- ---- ---- +### 357/620 [`./test/random/expr/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT 20 / - - 96 + CAST ( 90 AS INTEGER ) AS col2 + +Expected: ["90"] but got ["90.208"] +``` + + +```sql +SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT 67 * + 85 * - CAST ( - SUM ( - 52 ) AS INTEGER ) col2 + +g is not defined +``` + + +```sql +SELECT ALL 25 * + COUNT ( * ) + - 0 - + - 6 + + - ( + + CASE + CAST ( + + 38 AS REAL ) WHEN 3 THEN NULL WHEN + 42 THEN NULL WHEN - 80 THEN NULL ELSE 14 END ) AS col1, - 31 AS col0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2, + 77 / 37 + + + 90, + CASE - - MAX ( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM ( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST ( 16 AS INTEGER ) WH… + +Expected: ["2","92","NULL"] but got ["NULL","92.081"] +``` + + +```sql +SELECT - 37 AS col0, + MAX ( + - 74 ) * + - 55 / CAST ( - COUNT ( * ) AS INTEGER ) + 48 - - 10 + + 31 * - 27 * - 89 * - + 35 + +Expected: ["-37","-2611267"] but got ["-37","NULL"] +``` + + +```sql +SELECT SUM ( + 73 ) * - CASE WHEN NOT ( NOT 27 BETWEEN 15 AND - NULLIF ( - 63, - 28 + + 76 ) ) THEN NULL ELSE + 77 * + 69 END / - CAST ( - 69 AS INTEGER ) AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL CAST ( - - CASE + 81 WHEN - 91 THEN + 37 END AS INTEGER ), + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT - 80 + - CASE - CASE + COUNT ( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2 + +Expected: ["-46","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,839 failed +* 81% was OK + +Time: 32281.398ms + +---- ---- ---- ---- ---- ---- ---- +### 358/620 [`./test/random/expr/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT ALL COUNT ( * ) AS col0, - 83 AS col0 + +Expected: ["1","-83"] but got ["-83"] +``` + + +```sql +SELECT CAST ( - COUNT ( ALL 73 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT - CASE WHEN NOT NULL BETWEEN NULL AND NULL THEN 17 ELSE NULL END + + 12 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","-15"] +``` + + +```sql +SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 + +Expected: ["67","63"] but got ["67","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,175 failed +* 88% was OK + +Time: 21211.982ms + +---- ---- ---- ---- ---- ---- ---- +### 359/620 [`./test/random/expr/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_10.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - 4 / - 44 * - 32 AS col1 + +Expected: ["0"] but got ["-0.003"] +``` + + +```sql +SELECT + CAST ( COALESCE ( - 1, + - 37, - 27 + - COUNT ( * ) ) AS INTEGER ) * - 41 * - 88 AS col1, 0 * + - CAST ( NULL AS REAL ) * 43 + +g is not defined +``` + + +```sql +SELECT 73 + - CAST ( NULL AS REAL ) * - COUNT ( * ) * + CASE + 61 WHEN COUNT ( * ) THEN - 50 * + - 4 * + + ( 3 ) + - COALESCE ( 19, 29 ) * - + ( 94 ) END * - + 4 AS col2 + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) / + + 67 AS col0, 24 + + CAST ( 35 AS INTEGER ) + +Expected: ["NULL","59"] but got ["0","59"] +``` + + +```sql +SELECT ALL 83 / - 45 + - CASE WHEN NOT - 30 NOT BETWEEN + ( + - 21 ) / + 34 + 87 + + + 87 AND + + 75 / ( 37 ) + + - 59 + + + ( - COALESCE ( - CASE + + COUNT ( * ) WHEN CASE WHEN - ( 56 ) IS NULL THEN + COUNT ( * ) * + + NULLIF ( - 83, + CAST ( NULL AS INTEGER ) / + 60 * + 45 + - + 82 ) * + - 4 * - … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT 20 AS col0, 62 * - COALESCE ( 79, + - 65 - 55, CAST ( NULL AS INTEGER ) * 51 ) + + CASE ( 43 ) WHEN 13 THEN + - 72 END * 73 AS col0 + +Expected: ["20","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT 61 + - + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + 54 * - 0 + - 9 + + 37 AS col0, CAST ( NULL AS INTEGER ) * - 92 AS col2 + +Expected: ["NULL","NULL"] but got ["89","0"] +``` + + +```sql +SELECT CASE 71 WHEN + - 13 THEN + 1 END AS col1, COUNT ( * ) / CAST ( - - 55 AS INTEGER ) + - + 9 + +Expected: ["NULL","-9"] but got ["NULL","-8.982"] +``` + + +```sql +SELECT ALL - 73 AS col2, + CAST ( NULL AS INTEGER ) * + 26, + NULLIF ( - CASE + + 80 WHEN 1 THEN - 79 WHEN + 52 THEN + 33 * 45 ELSE NULL END, + COALESCE ( 28, COALESCE ( 24, CAST ( 85 AS INTEGER ), + 66 + 21 ) + 52, - ( - 88 ) + 46 ) * 3 - COUNT ( * ) ) * + 34 col2 + +Expected: ["-73","NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT ALL - CASE WHEN + 36 NOT IN ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + NULLIF ( - ( - NULLIF ( ( - 57 ), COUNT ( * ) ) ), CASE 34 WHEN + 3 * + 9 THEN + 98 / 49 + 76 ELSE NULL END - 83 ) + - COALESCE ( - 80, - 31 ) END AS col2 + +Expected: ["-23"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,060 failed +* 79% was OK + +Time: 36165.298ms + +---- ---- ---- ---- ---- ---- ---- +### 360/620 [`./test/random/expr/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_100.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) * - 85 + - CAST ( + SUM ( + 31 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( + ( + 14 ), 51, + 33 ) + + COUNT ( * ) + 13 + + 15 * SUM ( - - 59 ) * - 56 * + 24 + +Expected: ["NULL"] but got ["-1189426"] +``` + + +```sql +SELECT + 17 / + + 99 col0 + +Expected: ["0"] but got ["0.172"] +``` + + +```sql +SELECT 74 - 83 * + CAST ( + + COUNT ( * ) AS INTEGER ) * - - ( + CAST ( NULL AS REAL ) ) + + 14 + + COUNT ( * ) + 3 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - - 51 * + 96 / + 44 + CASE - CASE 92 WHEN + 20 THEN + + 30 / ( + 26 ) + + 93 END WHEN NULLIF ( 16, + ( - + COUNT ( * ) ) ) THEN + 45 WHEN - COALESCE ( + - 30, - 29 * - 78, - 1 ) THEN NULL END AS col1, 25 + +Expected: ["NULL","25"] but got ["25","NULL"] +``` + + +```sql +SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + + + 27 AS col0, + 41 + CAST ( NULL AS INTEGER ) + ( NULLIF ( - 42, 62 ) ) - + + 93 + - - ( 68 ) AS col1 + +Expected: ["NULL","NULL"] but got ["27","-26"] +``` + + +```sql +SELECT DISTINCT CASE WHEN ( CAST ( NULL AS INTEGER ) ) IS NOT NULL THEN NULL ELSE MIN ( 57 ) / + 20 END AS col2 + +Expected: ["2"] but got ["NULL"] +``` + + +```sql +SELECT ALL + 60 AS col2, - ( + CASE WHEN - 25 > + 91 THEN - COALESCE ( 74, - CAST ( 61 AS INTEGER ) + 31, - - 40 ) WHEN + 4 * + + 56 / 13 * - 15 + + CAST ( NULLIF ( - 81, 5 ) AS REAL ) NOT BETWEEN 58 + - 72 AND + COUNT ( * ) THEN NULL END ) + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * - - 84 - + - CAST ( NULL AS INTEGER ), 29 / CASE + + 55 WHEN - COUNT ( * ) THEN NULL WHEN + SUM ( ALL - 87 ) THEN + 68 / + + ( 79 ) ELSE NULL END / - COUNT ( * ) + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT - 22 AS col0, CASE + - 63 WHEN + 6 * + 80 * - 2 * - - 81 + - 62 THEN + CASE + 82 WHEN + 45 + - 14 + - CAST ( NULL AS INTEGER ) * + 77 THEN 98 WHEN + + 85 - 90 / - 91 THEN NULL END END AS col0 + +Expected: ["-22","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,110 failed +* 78% was OK + +Time: 40671.064ms + +---- ---- ---- ---- ---- ---- ---- +### 361/620 [`./test/random/expr/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_101.test) + +_Mimic sqlite_ + +```sql +SELECT - COALESCE ( 14, 79 ) / + 3 AS col0 + +Expected: ["-4"] but got ["-4.667"] +``` + + +```sql +SELECT + + CASE ( - COALESCE ( 66, COALESCE ( 69, 12, 18 ) + 66, + 24 * 84 ) ) WHEN 26 THEN - 69 WHEN 64 THEN 17 ELSE NULL END * + CAST ( NULL AS REAL ) + - 25 + +Wrong conversion type +``` + + +```sql +SELECT 26 * + 61 * CAST ( NULL AS INTEGER ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT - 74 AS col1, CASE + CAST ( NULL AS INTEGER ) WHEN - + COALESCE ( 56, + CAST ( NULL AS INTEGER ) ) THEN + COUNT ( + ( 2 ) ) END * ( + 93 ) AS col1 + +Expected: ["-74","NULL"] but got ["NULL"] +``` + + +```sql +SELECT 61 * + CAST ( ( - COUNT ( * ) ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT - COALESCE ( - 10, + 97 ) / - CAST ( NULL AS INTEGER ) * - 13 AS col0, ( - + 36 ) * + - 36 + + - 6 - + 23 * - + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 + +Expected: ["NULL","NULL"] but got ["1290"] +``` + + +```sql +SELECT + CASE WHEN - COUNT ( * ) BETWEEN 4 * - 25 + - + COUNT ( * ) AND + 83 THEN - 50 END AS col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - CASE 38 WHEN - - 96 THEN + + 83 + - ( + + 77 ) + - - 43 END + + + 30 AS col1, 78 * + + 95 * - COUNT ( * ) * + 25 + CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","-185250"] +``` + + +```sql +SELECT ALL + 52 * NULLIF ( - 20, ( CAST ( 26 AS INTEGER ) ) ) + - 43 - - 56 / - + 76 * + - CAST ( - + COUNT ( * ) AS INTEGER ) / COUNT ( DISTINCT 30 ) AS col0 + +Expected: ["-1083"] but got ["NULL"] +``` + + +```sql +SELECT - 9 + + 93 AS col2, CASE + 65 WHEN + 25 THEN + + 72 END * 44 + 17 * + 87 AS col2 + +Expected: ["84","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,061 failed +* 79% was OK + +Time: 41492.488ms + +---- ---- ---- ---- ---- ---- ---- +### 362/620 [`./test/random/expr/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_102.test) + +_Mimic sqlite_ + +```sql +SELECT + 84 / + 27 + + - 92 - - CAST ( + 86 AS INTEGER ) * + - 7 + 5 + - 53 + 63 * CAST ( NULL AS INTEGER ) AS col1 + +Expected: ["NULL"] but got ["-738.889"] +``` + + +```sql +SELECT + - 34 / - + 63 AS col2 + +Expected: ["0"] but got ["0.540"] +``` + + +```sql +SELECT ALL - 85 - CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * + 22 AS col1 + +g is not defined +``` + + +```sql +SELECT + CASE WHEN NOT CASE - 42 WHEN 25 - - + CAST ( NULL AS INTEGER ) THEN + + 61 + 87 END BETWEEN 37 AND - - COUNT ( * ) THEN + 37 END + - 0 AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL 0 + 95 + - ( 84 ) + + 38 / 64 * + - NULLIF ( - 12, - + 24 * - 85 ) AS col0, CASE - + 42 WHEN - ( - 38 ) THEN + 97 * + 23 END + +Expected: ["11","NULL"] but got ["18.125","NULL"] +``` + + +```sql +SELECT NULLIF ( + 33, 35 * - - 84 ) * COALESCE ( + COUNT ( * ), MAX ( ALL 17 ) * + 18, - 9 * - SUM ( DISTINCT - 17 ) ) / - CAST ( COUNT ( * ) AS INTEGER ), - 2 AS col0 + +Expected: ["-33","-2"] but got ["NULL","-2"] +``` + + +```sql +SELECT ALL 28 * + - 0 / + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT 13 * NULLIF ( + - 16, + 36 - - - COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 90 + 35 AS col2, + NULLIF ( - CASE - ( + 82 ) WHEN 48 * + - 16 * - 53 * + SUM ( ALL + 75 ) THEN NULL ELSE + SUM ( DISTINCT ( - + CAST ( NULL AS INTEGER ) ) ) END, + - CAST ( 10 AS INTEGER ) ) + - … + +Expected: ["NULL","NULL"] but got ["-263","52"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,190 failed +* 78% was OK + +Time: 49804.077ms + +---- ---- ---- ---- ---- ---- ---- +### 363/620 [`./test/random/expr/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_103.test) + +_Mimic sqlite_ + +```sql +SELECT - COUNT ( * ) * + - ( + 52 ) / + 77 + - 99 + ( - - NULLIF ( 86, + + COALESCE ( + - 84, - 91, + 76, - 48 ) ) ) - 79 * COALESCE ( MAX ( DISTINCT 26 ) + 36, - COUNT ( * ), 36 * 86 ) + 10 AS col2 + +Expected: ["-4901"] but got ["-4900.325"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col1, 28 * - 22 + +Expected: ["NULL","-616"] but got ["0","-616"] +``` + + +```sql +SELECT 80 * - CAST ( - COUNT ( * ) AS INTEGER ) + - 59 + - ( + 15 ) col0 + +g is not defined +``` + + +```sql +SELECT DISTINCT + - CASE - + 86 WHEN - NULLIF ( - 75, - 4 + - COUNT ( * ) * 26 * + 43 / - COUNT ( * ) + - + 26 - - 82 ) THEN - + ( 49 ) * 6 END AS col0, + SUM ( ALL - + 60 ) * + 25 + 82 * CAST ( 65 * + 26 + - MAX ( ALL 24 ) AS INTEGER ) AS col1 + +Expected: ["NULL","135112"] but got ["NULL","-1500"] +``` + + +```sql +SELECT - 2 AS col2, + SUM ( ( + - CAST ( NULL AS REAL ) ) ) * 38 AS col0 + +Wrong conversion type +``` + + +```sql +SELECT ( - COUNT ( * ) ) / - CAST ( + COUNT ( * ) AS INTEGER ) + 6 + +Expected: ["7"] but got ["NULL"] +``` + + +```sql +SELECT ALL 76 + - 52 AS col0, - CASE WHEN 36 NOT BETWEEN - + SUM ( - 71 ) - 64 * - 79 AND NULL THEN 42 WHEN ( NULL NOT BETWEEN - MIN ( + + 42 ) - 85 - - CAST ( NULL AS INTEGER ) AND NULL ) THEN - 10 END * - - 69 + + 90 AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - 57 * - CAST ( NULL AS INTEGER ) * 40 + - COALESCE ( 25, + - 8 ), - COUNT ( * ) * AVG ( - - CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL","NULL"] but got ["-25","0"] +``` + + +```sql +SELECT ALL 35 / 8 * + + ( + 75 ) + +Expected: ["300"] but got ["328.125"] +``` + + +```sql +SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1, CASE + 90 WHEN + 34 THEN + - 77 ELSE NULL END / + COUNT ( * ) + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,064 failed +* 79% was OK + +Time: 34394.847ms + +---- ---- ---- ---- ---- ---- ---- +### 364/620 [`./test/random/expr/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_104.test) + +_Mimic sqlite_ + +```sql +SELECT 83 + + - CAST ( - COALESCE ( 63, + AVG ( + 86 ) * - 86 / - - 48 ) AS INTEGER ) AS col2 + +g is not defined +``` + + +```sql +SELECT COUNT ( * ) * - + COUNT ( * ) AS col1, CAST ( NULL AS REAL ) col1 + +Wrong conversion type +``` + + +```sql +SELECT ALL COALESCE ( - + ( + + 67 ), - 64 * + MAX ( 70 ) + - - 91 ) + + CAST ( NULL AS INTEGER ) * - CAST ( 52 AS INTEGER ) + 40 + +Expected: ["NULL"] but got ["-27"] +``` + + +```sql +SELECT 7 AS col2, - 33 - + 72 * + - 74 + - - 63 AS col2 + +Expected: ["7","5358"] but got ["5358","5358"] +``` + + +```sql +SELECT ALL - 81 AS col2, CASE + ( + 92 ) WHEN + 59 THEN + 79 * - 18 / + 24 + - 76 - + 10 ELSE NULL END * CAST ( - 81 AS INTEGER ) AS col2 + +Expected: ["-81","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + ( - 56 ) / NULLIF ( - CAST ( NULL AS INTEGER ), - 61 ) AS col0, 20 + - COUNT ( * ) AS col0, - + 94 * - NULLIF ( 39, + 26 ) / - 55 + CAST ( NULL AS INTEGER ) - + 48 + +Expected: ["NULL","19","NULL"] but got ["19","-114.655"] +``` + + +```sql +SELECT DISTINCT - - 4 col1, + COUNT ( * ) + - 18 - + 61 / - CAST ( + 93 AS INTEGER ) + - - 28 + 33 / + + ( + CASE 97 WHEN + ( - - 68 ) + - 9 THEN + 17 ELSE NULL END ) AS col1 + +Expected: ["4","NULL"] but got ["NULL"] +``` + + +```sql +SELECT CASE WHEN NOT NULL > 46 THEN - 60 WHEN - 9 NOT BETWEEN + 67 AND NULL THEN + 43 / - ( 55 ) + + 67 * - NULLIF ( - 10 * + 54, COUNT ( * ) ) END - - COUNT ( * ) * 50 AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - 53 * + - ( - ( + + 3 ) ) / CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( * ) + +Expected: ["-158"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 72 + + - 9 col2, + CASE - + 13 WHEN + 67 + + - 10 THEN + 48 ELSE NULL END + 43 - CAST ( NULL AS INTEGER ) * 37 * + 53 AS col0 + +Expected: ["NULL","NULL"] but got ["-9","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,069 failed +* 79% was OK + +Time: 31386.907ms + +---- ---- ---- ---- ---- ---- ---- +### 365/620 [`./test/random/expr/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_105.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 15 + - + ( - CAST ( NULL AS INTEGER ) ) AS col2, - 16 / 74 + +Expected: ["NULL","0"] but got ["15","-0.216"] +``` + + +```sql +SELECT - 10 / - - 54 + + - ( - 15 ) + +Expected: ["15"] but got ["14.815"] +``` + + +```sql +SELECT DISTINCT + - 72 AS col1, - CAST ( + - COUNT ( * ) AS INTEGER ) + + 53 * - 3 + +g is not defined +``` + + +```sql +SELECT + 17 - + - 0 * - 58 * + - CAST ( NULL AS REAL ) / 17 + + 25 AS col1 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 44 + + 16 * + + CASE 32 WHEN - ( + COUNT ( * ) ) + 8 THEN NULL WHEN + 54 * - 22 - - 36 + - COUNT ( * ) + - 9 * - 58 + + 17 * - - 10 * 22 * - - NULLIF ( - 94, - - 10 ) THEN 33 * - + 79 END + + CASE WHEN NOT - 79 < NULL OR ( NULL ) NOT BETWEEN NULL AND + 19 THEN - ( ( 96 ) ) ELSE 99 END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ( - CASE - - SUM ( ALL + 26 ) WHEN - - 75 - + 32 THEN - + 58 WHEN - 87 THEN + 87 * 64 WHEN COUNT ( * ) THEN NULL ELSE NULL END ) + CAST ( - 58 AS INTEGER ) AS col1, 38 + +Expected: ["NULL","38"] but got ["38","NULL"] +``` + + +```sql +SELECT ALL + 63 * + + AVG ( ALL CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) + - 73 AS col0 + +Expected: ["NULL","NULL"] but got ["0","-73"] +``` + + +```sql +SELECT + COUNT ( * ) / + CAST ( + AVG ( 90 ) AS INTEGER ) * - SUM ( - + 6 ) AS col0 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT ALL 75 col1, + CASE + - 5 WHEN + - 2 THEN + 19 / - 61 ELSE NULL END + - 1 AS col1, + MIN ( DISTINCT - 43 ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 + +Expected: ["75","NULL","NULL"] but got ["NULL","-43"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,007 failed +* 79% was OK + +Time: 34899.796ms + +---- ---- ---- ---- ---- ---- ---- +### 366/620 [`./test/random/expr/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_106.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 37 + + + CAST ( NULL AS INTEGER ) * + MIN ( ALL NULLIF ( - - 23, - 7 ) ) * 18 AS col0 + +Expected: ["NULL"] but got ["37"] +``` + + +```sql +SELECT + 54 * - 79 + 85 * - 47 AS col0, - COUNT ( * ) + + 80 col0 + +Expected: ["-8261","79"] but got ["79"] +``` + + +```sql +SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + - 23 * + 67 AS col0 + +g is not defined +``` + + +```sql +SELECT + 80 + - - CASE - 70 WHEN - 92 THEN + - 29 * 17 + - 59 / - 54 + - CASE WHEN NOT + 8 BETWEEN NULL AND 39 / - MAX ( ALL + 45 ) THEN 37 * + 18 * + 37 ELSE NULL END ELSE NULL END, 76 AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - + NULLIF ( - - 48, NULLIF ( + COUNT ( * ), COUNT ( * ) + + 84 + + 59 + - CAST ( NULL AS INTEGER ) + 76 * + 85 + - - CASE + + NULLIF ( + COUNT ( * ), - ( - COUNT ( * ) ) * + CASE + 99 WHEN - + COUNT ( * ) THEN - 26 * CASE - NULLIF ( - + 23, COALESCE ( - 11, COALESCE ( ( - - 75 ), + 43, + - … + +Wrong conversion type +``` + + +```sql +SELECT + - CASE WHEN NOT NULL > NULL THEN NULL ELSE - 63 END AS col2 + +Expected: ["63"] but got ["NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col0, CASE ( - 10 ) WHEN - COALESCE ( + - COALESCE ( + COUNT ( * ), + - 0 ), ( 33 ) * + 25 + 41 + NULLIF ( + 99, + - 52 + + 68 ) ) THEN + - COALESCE ( - + 59, COUNT ( ALL + + 41 ) * COUNT ( 28 ), - 52 + 71 ) * - 2 END / + 87 AS col1 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT DISTINCT + CASE + 24 WHEN - COUNT ( * ) * + 20 * 5 * + 24 * + 16 THEN NULL WHEN + - 44 + - 33 THEN + 94 * + 64 * 84 ELSE NULL END, + 2 * - 80 / - 64 AS col1 + +Expected: ["NULL","2"] but got ["NULL","2.500"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 39 + ( SUM ( ALL + + 30 ) ) / + 37, + MAX ( - - CAST ( NULL AS INTEGER ) ) * - 73 - 92 + - 78 + +Expected: ["NULL","NULL"] but got ["0.811","-170"] +``` + + +```sql +SELECT ALL + 86 AS col2, - 72 + + CASE - + 43 WHEN - 44 THEN NULL WHEN + 15 * 85 + + ( - ( - 33 ) ) THEN + ( 60 ) END * + + 43 AS col2 + +Expected: ["86","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,066 failed +* 79% was OK + +Time: 57801.897ms + +---- ---- ---- ---- ---- ---- ---- +### 367/620 [`./test/random/expr/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_107.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 72 / 98 * - 98 / + 78 / - 57 AS col0 + +Expected: ["0"] but got ["-52.615"] +``` + + +```sql +SELECT COUNT ( * ) * COALESCE ( - COALESCE ( - 92, - 98 * COUNT ( * ) * + 48 / 65 * + COUNT ( * ) / - 81 * + 92 ), COUNT ( * ) ) * - 2 * - + 17 * COUNT ( * ) + - AVG ( + 92 ) / + + SUM ( ALL 84 ) - + 91 - + CAST ( NULL AS INTEGER ) + + 88 + - ( - - 54 ) * 74 * + 69 * 55 * + 70 / + AVG ( ALL 8 ) + -… + +Expected: ["NULL"] but got ["-132688968.095"] +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) * - + 48 + - 33 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + 57 * - 52 * - 40 / + CAST ( + COUNT ( * ) AS INTEGER ) - + COUNT ( * ) AS col2 + +Expected: ["118559"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - 19 / - 40 * + COUNT ( * ) AS col1, 95 / + CASE + - COUNT ( * ) WHEN + 25 THEN NULL WHEN + 25 + + - 27 THEN + 46 END AS col0 + +Expected: ["0","NULL"] but got ["0.475","NULL"] +``` + + +```sql +SELECT CAST ( COUNT ( * ) AS INTEGER ) + - 6 + +g is not defined +``` + + +```sql +SELECT - CASE WHEN NOT ( 94 ) BETWEEN ( NULL ) AND AVG ( 22 ) THEN COUNT ( * ) ELSE 28 * - 6 END + + COUNT ( 84 ) + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT + + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT 56 col0, CASE - ( 53 ) WHEN - 5 THEN ( 25 ) / - + 51 END col0 + +Expected: ["56","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT - CASE + 51 WHEN + 29 * - + 38 / + 41 THEN - - ( + 8 ) END, CAST ( NULL AS INTEGER ) * + + 19 * - COUNT ( * ) * + 18 * + + ( 60 ) AS col1 + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,081 failed +* 79% was OK + +Time: 45887.679ms + +---- ---- ---- ---- ---- ---- ---- +### 368/620 [`./test/random/expr/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_108.test) + +_Mimic sqlite_ + +```sql +SELECT + COALESCE ( + + COUNT ( * ), + COUNT ( * ) * COUNT ( * ) * - + CASE 51 WHEN - 2 + 53 THEN NULL WHEN 54 / + 88 THEN + 93 * - - 96 * 31 * - 23 ELSE + - 7 + + + CAST ( NULL AS INTEGER ) / + + 2 END ) / - 4 AS col0 + +Expected: ["0"] but got ["-0.250"] +``` + + +```sql +SELECT - 43 / + - 11 * CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col1 + +Wrong conversion type +``` + + +```sql +SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), 98 ) AS col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + CAST ( + NULLIF ( - 35, + AVG ( DISTINCT 75 ) ) AS INTEGER ) AS col2 + +g is not defined +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * - 91 + 37 AS col2, + CASE - 5 WHEN + + 63 THEN NULL WHEN - - MAX ( DISTINCT + + 7 ) THEN - COALESCE ( + - 46, - - 68 ) * + ( + NULLIF ( MIN ( 67 ), + - 51 ) ) END + 57 + +Expected: ["NULL","NULL"] but got ["37","NULL"] +``` + + +```sql +SELECT MIN ( - 39 ) AS col1, + CASE + 69 WHEN 14 + + + 25 THEN + ( COUNT ( * ) ) WHEN - - 33 THEN + SUM ( + - 74 ) END AS col1 + +Expected: ["-39","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT 20 + + NULLIF ( + 37, + 37 + + NULLIF ( - 24, 2 + + ( 23 ) * + 16 ) * CAST ( NULL AS INTEGER ) ) + +Expected: ["57"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + - 62 + + 57 col1, - 11 + ( - CASE 76 WHEN - ( - 99 ) + + 72 THEN 21 * 40 ELSE NULL END ) * 24 AS col1 + +Expected: ["-5","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL + 97 - + 8 + + 67 + - CAST ( NULL AS INTEGER ), ( 57 ) + 1 + - CAST ( NULL AS INTEGER ) + + 45 + +Expected: ["NULL","NULL"] but got ["156","103"] +``` + + +```sql +SELECT + - ( - + MAX ( - - 88 ) ) + + CASE WHEN - 21 NOT BETWEEN ( NULL ) AND + 8 / + 42 / + 21 - - + 46 THEN 31 END + + - 38 + + 63 + 30 + ( ( - 84 ) + - SUM ( 35 ) * 22 ) * ( 97 ) * - NULLIF ( + ( - 83 ) * SUM ( DISTINCT 29 + 33 ) + + 0 * - 74, + 28 ) AS col1 + +Cannot read property 'toString' of undefined +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,030 failed +* 79% was OK + +Time: 49891.188ms + +---- ---- ---- ---- ---- ---- ---- +### 369/620 [`./test/random/expr/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_109.test) + +_Mimic sqlite_ + +```sql +SELECT + - CAST ( + - 69 AS REAL ) - + CAST ( NULL AS INTEGER ) AS col1 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 16 * + 36 + + + CAST ( NULL AS INTEGER ) / + 73 * + - 97 + 57 AS col0 + +Expected: ["NULL"] but got ["-519"] +``` + + +```sql +SELECT - 82 * - 57 - 88 / + COALESCE ( - + 96, + 22 ) AS col0 + +Expected: ["4674"] but got ["4674.917"] +``` + + +```sql +SELECT 9 * 82 - - + CAST ( + + COALESCE ( 48, + MAX ( ALL - - 35 ) + + 29 ) AS INTEGER ) + - 85 + - 43 AS col2, CAST ( NULL AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL - AVG ( DISTINCT - 44 ) + CAST ( NULL AS INTEGER ) + + 24 + - 21 * COALESCE ( + 65, + 81, - CAST ( - - 95 AS INTEGER ) + MAX ( DISTINCT + 95 ) * + 74 * + 67 ) + - 2 AS col1, - CAST ( NULL AS INTEGER ) * - - 27 + +Expected: ["NULL","NULL"] but got ["-1299","0"] +``` + + +```sql +SELECT 84 + + NULLIF ( - CASE + - 45 WHEN + + COUNT ( * ) / - COUNT ( * ) THEN - 31 ELSE NULL END, 86 * 32 ) * - 7 * - 13 AS col1, + 71 + CASE + 48 WHEN + 79 THEN + + COALESCE ( - 5, - + COUNT ( * ) + + 58 ) / - COALESCE ( COUNT ( * ), + ( + - 33 ) - - - 32 - + + COUNT ( * ) - + + COUNT ( * ) + - 8… + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT NULLIF ( + 6, - COUNT ( * ) ) * - + 82 * + ( + + CASE + COUNT ( * ) WHEN - 18 / 37 THEN - 24 WHEN + 72 * - 70 * - - 4 * 26 + + 8 + ( - ( + + 54 ) ) THEN + 90 ELSE NULL END ) + + ( 77 ) AS col1, 73 + +Expected: ["NULL","73"] but got ["73","NULL"] +``` + + +```sql +SELECT - - CASE WHEN NULL NOT BETWEEN ( CASE - - 32 WHEN + COUNT ( 9 ) THEN + 48 WHEN - COUNT ( * ) * - 61 THEN NULL END ) AND ( - MIN ( 85 ) ) THEN 25 + ( - 45 + 61 / 16 ) ELSE - 37 * - 21 END + 28 AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - 40 / 5 / + - CASE WHEN NOT 45 <= NULL THEN NULL ELSE + 5 END + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT 27 AS col0, + 18 / - CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["27","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,863 failed +* 81% was OK + +Time: 30920.069ms + +---- ---- ---- ---- ---- ---- ---- +### 370/620 [`./test/random/expr/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_11.test) + +_Mimic sqlite_ + +```sql +SELECT - 70 + - + COUNT ( * ) / - - 88 * 27 + +Expected: ["-70"] but got ["-70.000"] +``` + + +```sql +SELECT ALL - ( + + 47 ) + + CAST ( - COUNT ( * ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT - + 63 + + CASE + CAST ( - 31 AS REAL ) WHEN - 92 / COALESCE ( + - COUNT ( * ), + + COALESCE ( - - 51, ( - + 59 ) ) + 19, + CAST ( NULL AS INTEGER ) ) * - - 54 THEN + COUNT ( * ) * + 30 * 92 * - + 95 + - - 4 END + 90 AS col1 + +Wrong conversion type +``` + + +```sql +SELECT - 58 col0, CAST ( NULL AS INTEGER ) / - 52 AS col0 + +Expected: ["-58","NULL"] but got ["0","0"] +``` + + +```sql +SELECT + NULLIF ( + 76, - + 92 + - CASE + 82 WHEN 8 THEN 6 + 2 END * + ( - 74 ) + CASE WHEN NOT ( NULL ) NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND - COUNT ( * ) / + 24 THEN NULL WHEN 48 * 88 / - + 64 BETWEEN ( 64 ) AND ( - CASE + 30 WHEN 66 THEN NULL ELSE 19 + 67 / - 70 END ) THEN ( - 96 ) ELSE … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - - CASE + - 99 WHEN - 12 * 40 THEN NULL WHEN + 40 * COUNT ( * ) + - 19 - - CAST ( NULL AS INTEGER ) * 78 + + 11 THEN + 70 * - + 64 WHEN 66 THEN NULL ELSE NULL END + + 31 AS col0, 41 + +Expected: ["NULL","41"] but got ["41","NULL"] +``` + + +```sql +SELECT ALL + 61 * + ( - + CAST ( NULL AS INTEGER ) ) * + MAX ( 92 ) AS col0, 26 + + - CASE - 28 WHEN 32 THEN NULL WHEN + 84 + COALESCE ( 73, NULLIF ( - 3, COUNT ( * ) ), + NULLIF ( + + CAST ( NULL AS INTEGER ), + + 40 ) ) - + 65 / + 48 * 30 THEN + 91 * + + 12 / - 63 + - 74 ELSE NULL END + + + 74 AS… + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT 1 + 60 - + CAST ( + - 29 AS INTEGER ) / - SUM ( ALL - 36 ) - + 21 * + + CAST ( - 82 AS INTEGER ) + + 8 * - CASE WHEN NULL NOT IN ( - 46, + 75 * NULLIF ( - 16, CAST ( NULL AS INTEGER ) ) + + 4 ) THEN NULL ELSE + + 51 END, - 73 col0 + +Expected: ["1375","-73"] but got ["NULL","-73"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT + 63 + 78 col2, NULLIF ( CASE + CAST ( NULL AS INTEGER ) WHEN - - 55 + - 45 THEN NULL WHEN CAST ( COALESCE ( - 21, 52, + 95 ) AS INTEGER ) THEN NULL WHEN ( - - 57 ) - + 95 THEN CAST ( NULL AS INTEGER ) * 9 END, - + 66 ) col2 + +Expected: ["141","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,096 failed +* 79% was OK + +Time: 31594.582ms + +---- ---- ---- ---- ---- ---- ---- +### 371/620 [`./test/random/expr/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_110.test) + +_Mimic sqlite_ + +```sql +SELECT - COUNT ( * ) * + COALESCE ( - - 1, 75 ) * ( + CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL 88 / + 17 + +Expected: ["5"] but got ["5.176"] +``` + + +```sql +SELECT - CAST ( + - COALESCE ( - 15, + COUNT ( + + 58 ), - 58 + + ( 60 ) * 56, + SUM ( - 24 ) + - 42 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT DISTINCT + NULLIF ( ( - - 31 ), + + 84 ) / + - COUNT ( ALL CAST ( + 80 AS REAL ) ) + COALESCE ( - 5, - 56 ) + +Wrong conversion type +``` + + +```sql +SELECT ALL 50 AS col1, CASE + COUNT ( - 54 ) WHEN + - 47 THEN NULL WHEN - - 65 / - - 24 - 93 THEN 87 * - 61 WHEN + 77 THEN + 99 WHEN - 21 THEN NULL END AS col1 + +Expected: ["50","NULL"] but got ["NULL"] +``` + + +```sql +SELECT - 49 * + CASE WHEN NOT NULL BETWEEN + 62 AND + + 89 * ( - - 65 ) * 31 THEN - + 34 * - 46 / - - MIN ( ALL - 57 ) ELSE - + 81 * + - MIN ( - 90 ) + - 38 * + 98 + - 78 END AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + + COUNT ( DISTINCT - 76 ) * + CASE WHEN ( NULL ) NOT IN ( 95 ) THEN NULL WHEN NOT + 40 >= + 4 * 29 THEN + COUNT ( * ) - + ( 90 ) * - 46 ELSE NULL END AS col2 + +Expected: ["4141"] but got ["NULL"] +``` + + +```sql +SELECT 96 * CAST ( NULL AS INTEGER ), - COUNT ( * ) / CASE NULLIF ( + 95, - + 77 * + - 38 ) WHEN - 82 / - 26 / + + 17 THEN + 27 - + CAST ( NULL AS INTEGER ) WHEN 79 / + 70 THEN NULL ELSE NULL END * 2 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT 14 AS col0, + 0 + ( + + 14 ) + - 18 - - CASE - 2 WHEN - - 6 THEN NULL ELSE 47 END + 54 * + 26 * - 34 + + - 91 / + + CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["14","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL - AVG ( ALL CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) * + - 56 + 39 + +Expected: ["NULL","NULL"] but got ["0","39"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,056 failed +* 79% was OK + +Time: 40909.677ms + +---- ---- ---- ---- ---- ---- ---- +### 372/620 [`./test/random/expr/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_111.test) + +_Mimic sqlite_ + +```sql +SELECT - - 34 * + 25 * + MIN ( + 24 ) + - 42 / + 33 + + 39 * 52 / 44 + + + MIN ( + 2 ) + 29 * 4 + +Expected: ["20563"] but got ["20562.818"] +``` + + +```sql +SELECT 97 * + CASE WHEN NOT + 48 NOT IN ( 82 * CAST ( NULL AS INTEGER ) ) THEN - ( + 84 ) + + 46 * + + 28 WHEN 30 * - 10 IS NOT NULL THEN NULL END * 71 + ( - 92 ) + +Expected: ["NULL"] but got ["8291856"] +``` + + +```sql +SELECT CAST ( - CASE + - COUNT ( * ) WHEN 53 THEN - - MAX ( DISTINCT - + 59 ) * - COUNT ( - + 9 ) * - + 8 - CAST ( + - 6 AS INTEGER ) + - 32 ELSE 98 END AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) / - COALESCE ( 93, - + 30 * - 79 * - + ( - - 96 ) + + MAX ( 60 ), - MIN ( ALL - 28 ) + - NULLIF ( CAST ( NULL AS REAL ), - CASE + 56 WHEN ( + 22 ) * + 50 THEN NULL WHEN COUNT ( * ) THEN + 50 * + CASE - 54 WHEN + COUNT ( * ) + + 33 THEN + 48 WHEN + 40 THEN - 51 WH… + +Wrong conversion type +``` + + +```sql +SELECT - 72 * + 79 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) - 63, CASE + COUNT ( * ) WHEN + 4 THEN - 79 ELSE NULL END AS col1 + +Expected: ["NULL","NULL"] but got ["-63","NULL"] +``` + + +```sql +SELECT CASE WHEN NOT ( 84 ) BETWEEN - 57 + - 87 / - 1 AND + - 83 + - 25 THEN - 58 * + 42 - + 76 + - + 97 ELSE - 52 END + + - ( + - 61 ) * + 75 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 49 / 87, CAST ( NULL AS INTEGER ) + 22 + + - 81 + + CASE + ( 56 ) WHEN 0 + 30 THEN 58 * CAST ( NULL AS REAL ) ELSE NULL END * - 38 AS col2 + +Expected: ["0","NULL"] but got ["0.563","NULL"] +``` + + +```sql +SELECT - - ( + CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT - + CAST ( 63 AS INTEGER ) * + - CASE - SUM ( + 1 ) WHEN + - COUNT ( * ) - 0 + - ( ( + COUNT ( + 9 ) ) ) / + SUM ( - 33 ) * + - 71 * - + 62 THEN + + 97 * COUNT ( * ) - + COUNT ( * ) WHEN + + 73 THEN + - 61 * + + 47 + - 72 ELSE NULL END + 57 + + - 55 AS col2 + +Expected: ["6050"] but got ["NULL"] +``` + + +```sql +SELECT + 99 AS col0, CASE - 92 WHEN - 82 THEN 58 END AS col0 + +Expected: ["99","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,043 failed +* 79% was OK + +Time: 36746.786ms + +---- ---- ---- ---- ---- ---- ---- +### 373/620 [`./test/random/expr/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_112.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 21 / + 50 + MAX ( ALL + 72 ) * - 78 + - NULLIF ( + 12, + 38 - + COUNT ( ALL 79 ) ) AS col0 + +Expected: ["-5628"] but got ["-5627.580"] +``` + + +```sql +SELECT ( - ( + - CAST ( NULL AS INTEGER ) ) ) * + 37 AS col1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT 5 + - 63 + + 83 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 + +g is not defined +``` + + +```sql +SELECT CASE - COUNT ( * ) WHEN + + 13 + - - 83 THEN + + 30 END * - - CAST ( NULL AS REAL ) * + + 1 / 62 * 76 + +Wrong conversion type +``` + + +```sql +SELECT 26 col0, ( + 16 ) + - 57 * + CASE + 7 WHEN + 8 * + 74 * - 86 THEN - CASE + - COUNT ( * ) WHEN + - 40 * - 68 THEN + - 7 + 96 ELSE NULL END * - - 57 END AS col0 + +Expected: ["26","NULL"] but got ["NULL"] +``` + + +```sql +SELECT 24 + - 23 / + CAST ( - SUM ( DISTINCT + - CAST ( + + 32 AS REAL ) ) AS INTEGER ) * - - 47 + - COUNT ( * ) AS col0 + +Expected: ["23"] but got ["NULL"] +``` + + +```sql +SELECT ALL CASE - 30 WHEN CAST ( - 12 AS INTEGER ) * + - 91 THEN - 44 / 28 + + ( - + 84 ) END AS col0, - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), - 38 + + + 6 + + 8 * - 22 * + 98 + + - CAST ( - CASE WHEN ( NULL ) BETWEEN + 71 AND NULL THEN + - 6 * - + 28 + 95 WHEN 26 IN ( + + 5, - 61, - 46, 76, + COUNT ( * ) * - - 91 ) THEN + 72 + + 3 END AS INTEGER ) + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) + + 2 * + 67 * + COUNT ( * ), CAST ( NULL AS INTEGER ) + - + 4 + + CAST ( NULL AS INTEGER ) + 46 AS col2 + +Expected: ["NULL","NULL"] but got ["134","42"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,093 failed +* 79% was OK + +Time: 45000.868ms + +---- ---- ---- ---- ---- ---- ---- +### 374/620 [`./test/random/expr/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_113.test) + +_Mimic sqlite_ + +```sql +SELECT ( + CAST ( NULL AS REAL ) ), + ( - - 9 ) AS col2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT 10 * + 14 / - - CASE - - 27 WHEN + 26 + + 13 THEN NULL ELSE - - 0 + 99 * + 26 END + +Expected: ["0"] but got ["0.054"] +``` + + +```sql +SELECT + + ( - CAST ( NULL AS INTEGER ) ) + + 53 + +Expected: ["NULL"] but got ["53"] +``` + + +```sql +SELECT ALL + 3 * CAST ( + AVG ( DISTINCT 84 ) AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT DISTINCT - - CASE + 88 WHEN + 7 / 22 THEN + - 35 * - MAX ( DISTINCT - CASE + 68 WHEN + + 62 / 57 THEN - 35 * + 62 END ) ELSE NULL END * - ( - - ( - 49 ) ) * 24 + - - 92 AS col2, + COUNT ( * ) / + 38 AS col1 + +Expected: ["NULL","0"] but got ["NULL","0.026"] +``` + + +```sql +SELECT ALL - CASE + CAST ( + CASE 22 WHEN + COUNT ( ALL - 14 ) THEN COUNT ( * ) END AS INTEGER ) WHEN 27 THEN SUM ( - CAST ( 4 AS INTEGER ) ) ELSE 88 + 29 END / CASE WHEN ( 31 / 40 ) < + 12 THEN NULL WHEN NULL NOT BETWEEN 0 * - 91 + - 5 AND COUNT ( * ) THEN MIN ( ALL + 20 ) ELSE AVG ( ALL 63 ) END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + 62 * - - 10 - - ( CAST ( + + ( 96 ) AS INTEGER ) ) + - 47 / + 76 AS col0, + NULLIF ( COUNT ( * ), - + 38 * + - 19 ) / - CAST ( + COUNT ( * ) AS INTEGER ) + - COALESCE ( + 45, - - 76, 36 + - 66 ) + +Expected: ["716","-46"] but got ["715.382","NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col1, CASE - 78 WHEN + + 51 + + 64 + - + ( + - 32 ) THEN - 67 END + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) * + 43 * + 9 * 24 + + ( 78 ) AS col2, - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0 + +Expected: ["NULL","NULL"] but got ["78","0"] +``` + + +```sql +SELECT ALL 66 col2, 54 * - CASE - - 57 WHEN - 29 THEN NULL WHEN - + 75 THEN 50 - CASE NULLIF ( - + 5, NULLIF ( - 17, 23 ) ) WHEN - 41 THEN NULL WHEN + 81 * + 53 THEN + + NULLIF ( - 15, - + 17 ) * - - 92 END END AS col2 + +Expected: ["66","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,035 failed +* 79% was OK + +Time: 71494.802ms + +---- ---- ---- ---- ---- ---- ---- +### 375/620 [`./test/random/expr/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_114.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - 48 * + 81 - - 56 * 28 - + CAST ( NULL AS INTEGER ), + 94 AS col1 + +Expected: ["NULL","94"] but got ["-2320","94"] +``` + + +```sql +SELECT ALL + ( ( + 87 ) ) AS col1, CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT + 7 / - 92 * - + 38 + +Expected: ["0"] but got ["0.002"] +``` + + +```sql +SELECT DISTINCT COALESCE ( ( - CAST ( - COUNT ( * ) AS INTEGER ) ), + 19, + 85 ) col0 + +g is not defined +``` + + +```sql +SELECT DISTINCT AVG ( - - 39 ) / - CAST ( NULL AS INTEGER ) + 52 + + + COUNT ( * ) * + 61 AS col1, - COUNT ( * ) - - MAX ( + 97 ) + + - 83 / SUM ( + 45 ) + +Expected: ["NULL","95"] but got ["NULL","94.156"] +``` + + +```sql +SELECT ALL - CASE WHEN NOT COALESCE ( 33, 49, - 81, - 10 ) NOT IN ( + 94, - AVG ( DISTINCT 78 ) + - COUNT ( * ) ) THEN NULL ELSE + 12 / - - 20 END * + 63 + - COUNT ( * ) AS col2 + +Expected: ["-1"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + 97 AS col2, CASE - + 87 WHEN 11 THEN NULL WHEN + 44 + - 24 THEN 12 ELSE NULL END * + 68 col2 + +Expected: ["97","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - 98 * - 51 * - - 34 * + 64 * - CASE WHEN NULL BETWEEN NULL AND NULL THEN NULL ELSE + 23 END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + NULLIF ( + 94, + 5 ) * + CAST ( NULL AS INTEGER ) + - 20 + 56 * - ( + ( - MIN ( DISTINCT 85 ) ) ) * - 40 AS col0 + +Expected: ["NULL","NULL"] but got ["-190420"] +``` + + +```sql +SELECT ALL 48 - + NULLIF ( + COUNT ( DISTINCT - 37 ), COUNT ( * ) ) + 67 - - ( + ( - COUNT ( * ) ) ) col2, MAX ( 21 ) + + CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","21"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,088 failed +* 79% was OK + +Time: 38060.428ms + +---- ---- ---- ---- ---- ---- ---- +### 376/620 [`./test/random/expr/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_115.test) + +_Mimic sqlite_ + +```sql +SELECT + 98 / + 45 + +Expected: ["2"] but got ["2.178"] +``` + + +```sql +SELECT + + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) * + 37 + + - CAST ( NULL AS INTEGER ) * + + 71 - CAST ( 85 AS INTEGER ) AS col0 + +Wrong conversion type +``` + + +```sql +SELECT + 63 * - 53 - + 61 * COALESCE ( - + CAST ( + + 3 AS INTEGER ), + 63 * - 34 - - - AVG ( + 61 ) + - 58 ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 + +Expected: ["NULL"] but got ["-3339"] +``` + + +```sql +SELECT - 92 / - 91 AS col1, - 59 / - SUM ( - 54 ), - 42 - + 17 * CASE + - 63 WHEN + - 45 THEN NULL WHEN + 71 THEN + 3 END AS col0 + +Expected: ["1","-1","NULL"] but got ["1.011","-1.093","NULL"] +``` + + +```sql +SELECT + 7 + NULLIF ( CAST ( + 92 AS INTEGER ), - 24 * CASE 7 WHEN 77 * ( CASE WHEN NULL BETWEEN + 88 AND ( NULL ) THEN + 49 * + CASE 9 / - 39 WHEN + 45 THEN NULL WHEN 17 THEN 22 + 11 END + 5 ELSE + 73 END ) THEN + NULLIF ( 15, 86 ) END ) AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT CAST ( + MIN ( - + 14 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL - 17 * - + CAST ( NULL AS INTEGER ) + + MAX ( - + 52 ) + + 63 * 1 AS col0, CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["11","0"] +``` + + +```sql +SELECT - ( - + 7 ) - COUNT ( * ) + SUM ( + - 96 ) + - 49 + + + 42 / CASE COUNT ( * ) + 23 / - 92 WHEN + COUNT ( ALL 91 ) THEN + 90 END + +Expected: ["-139"] but got ["NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 33 + 37 + + ( CASE - - 43 WHEN + ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN - + 48 + - 4 WHEN - COUNT ( * ) THEN SUM ( DISTINCT + NULLIF ( - - 29, + 44 * 96 ) ) ELSE CASE 89 WHEN - 43 THEN + 86 WHEN - CAST ( NULL AS INTEGER ) + + 72 THEN… + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,096 failed +* 79% was OK + +Time: 47317.894ms + +---- ---- ---- ---- ---- ---- ---- +### 377/620 [`./test/random/expr/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_116.test) + +_Mimic sqlite_ + +```sql +SELECT 93 * - CASE COUNT ( CAST ( NULL AS REAL ) ) WHEN - 86 / 50 THEN - COUNT ( * ) WHEN - 18 - - 73 THEN NULL WHEN 17 * 31 + - 49 * 1 THEN NULL WHEN 57 THEN - COUNT ( * ) + 74 ELSE + 35 END + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT 79 + CAST ( MIN ( ALL + 2 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL + 60 + + 11 * 72 / + ( - 60 ) AS col2 + +Expected: ["47"] but got ["46.800"] +``` + + +```sql +SELECT - - 16 + + - CAST ( NULL AS INTEGER ) + +Expected: ["NULL"] but got ["16"] +``` + + +```sql +SELECT 82 AS col1, - 11 * COUNT ( * ) * CASE 29 WHEN + COUNT ( DISTINCT - - 8 ) THEN - 25 ELSE NULL END col1 + +Expected: ["82","NULL"] but got ["NULL"] +``` + + +```sql +SELECT - 14 + - 8 + MIN ( + 18 ) + 53 / CAST ( - 92 / - SUM ( 63 ) AS INTEGER ) + +Expected: ["49"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - 0 + - COUNT ( * ) * + CASE WHEN NOT ( + 85 ) BETWEEN ( NULL ) AND ( MAX ( DISTINCT - 50 ) * - 30 + 20 ) THEN NULL ELSE - COALESCE ( CAST ( + 6 AS INTEGER ), - 16 ) / 87 END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * + 36, CASE 59 WHEN + 9 THEN + + 65 WHEN - 71 + + 87 THEN NULL END + + CASE + 34 WHEN 78 + - 19 THEN - 17 * + 90 ELSE NULL END + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,038 failed +* 79% was OK + +Time: 31461.182ms + +---- ---- ---- ---- ---- ---- ---- +### 378/620 [`./test/random/expr/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_117.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + COUNT ( * ) / - - 9 * - 85 + - 93 + - 71 AS col0 + +Expected: ["-164"] but got ["-164.001"] +``` + + +```sql +SELECT 69 * + NULLIF ( - 21, - - 89 ) + - 41 / - - COUNT ( * ) - MIN ( ALL CAST ( NULL AS INTEGER ) ) - + 2 + +Expected: ["NULL"] but got ["-1492"] +``` + + +```sql +SELECT CASE - + 55 WHEN - 17 - + - CAST ( NULL AS REAL ) * - - 0 * - 39 THEN NULL WHEN ( - 53 ) - + CAST ( NULL AS INTEGER ) THEN + - 62 * 34 ELSE ( + 1 ) END * COALESCE ( - 46 * COUNT ( * ), + COUNT ( DISTINCT 97 ) * - COUNT ( * ), 72 * 83, + 22 * + 83 + 2 ) + +Wrong conversion type +``` + + +```sql +SELECT CAST ( - - COUNT ( DISTINCT + 25 ) AS INTEGER ) AS col1 + +g is not defined +``` + + +```sql +SELECT ALL 76 / - 12 AS col2, - 72 * + - CASE - COUNT ( * ) WHEN + 22 THEN - 12 + COALESCE ( + 79, - 40, + 17 * ( 70 ) + - - 8 - + + COALESCE ( + 86, 13 ) - - 9 * + 27 * + 39 / - + CAST ( + NULLIF ( 1, - NULLIF ( - COUNT ( * ), - 7 * + + 31 + + - 33 ) ) AS INTEGER ) + 93 ) WHEN NULLIF ( - 51, 98 * … + +Expected: ["-6","NULL"] but got ["-6.333","NULL"] +``` + + +```sql +SELECT + 23 / - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT 28 ) * - 5 + - - COUNT ( * ) AS col0, - 39 AS col1 + +Expected: ["NULL","NULL","-39"] but got ["NULL","1","-39"] +``` + + +```sql +SELECT CASE WHEN NULL IS NOT NULL THEN + COUNT ( * ) WHEN NOT + COALESCE ( - 58, + 0, COUNT ( * ) ) BETWEEN - 84 AND COUNT ( * ) THEN + 70 ELSE NULL END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) + - 9 + - 77, + 53 * 58 + 35 AS col1 + +Expected: ["-85","3109"] but got ["NULL","3109"] +``` + + +```sql +SELECT DISTINCT + 76 + - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["76","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,964 failed +* 80% was OK + +Time: 32849.834ms + +---- ---- ---- ---- ---- ---- ---- +### 379/620 [`./test/random/expr/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_118.test) + +_Mimic sqlite_ + +```sql +SELECT - - 85 * - + CAST ( NULL AS INTEGER ) + 47 + + 32 AS col2, 89 AS col0 + +Expected: ["NULL","89"] but got ["79","89"] +``` + + +```sql +SELECT ( - + CAST ( + SUM ( - + 37 ) AS INTEGER ) ) + +g is not defined +``` + + +```sql +SELECT DISTINCT - + 68 / - MAX ( 45 ) + +Expected: ["1"] but got ["1.511"] +``` + + +```sql +SELECT 71 / + 45 AS col1, 88 - - - CASE + 88 WHEN 65 + 55 THEN + - 30 ELSE NULL END + 80 / + + 10 + +Expected: ["1","NULL"] but got ["1.578","NULL"] +``` + + +```sql +SELECT 77 + - NULLIF ( + 4, - - NULLIF ( ( + 45 ), - 81 ) ) + - CASE + 52 WHEN + 96 * - ( + 11 ) * + 36 * + 62 * - CAST ( NULL AS REAL ) - + ( - COUNT ( * ) ) * - 36 + 72 * 70 THEN - 6 ELSE NULL END + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col2, CASE COUNT ( * ) WHEN - - COUNT ( * ) * - 90 + + NULLIF ( - COALESCE ( + - 36, + 84 + - 29 + - - 78 * - 8 * - + 64 * - + 26 ), COALESCE ( - 45, 48 * 96 * + MAX ( ALL 21 ) ) ) + + 33 + - ( 38 + 34 ) THEN 82 * 5 WHEN 63 + 51 * 43 THEN NULL END * 18 + - 16 … + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT + 6 * CASE WHEN + 19 NOT BETWEEN NULL AND - 6 THEN NULL ELSE - COUNT ( * ) END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 5 / - 54 + +Expected: ["0"] but got ["-0.093"] +``` + + +```sql +SELECT ALL - COUNT ( * ) / + NULLIF ( + CAST ( ( - COUNT ( * ) ) AS INTEGER ), - ( 56 ) * 94 ) AS col1 + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT 27 + CAST ( NULL AS INTEGER ) * + COUNT ( * ), CAST ( - - 75 AS INTEGER ) + 48 * CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["27","75"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,093 failed +* 79% was OK + +Time: 45848.549ms + +---- ---- ---- ---- ---- ---- ---- +### 380/620 [`./test/random/expr/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_119.test) + +_Mimic sqlite_ + +```sql +SELECT + 57 / - - ( - ( + + 5 ) ) AS col2 + +Expected: ["-11"] but got ["-11.400"] +``` + + +```sql +SELECT 62 * 42 + - 66 + + 15 * + + CAST ( NULL AS INTEGER ) * 94 * - + 43 + + 91 * + COUNT ( * ) + +Expected: ["NULL"] but got ["2629"] +``` + + +```sql +SELECT 90 + CASE + + 47 WHEN + 41 THEN + COUNT ( * ) * - - NULLIF ( - 68, + SUM ( + 46 ) * + 29 ) WHEN - - NULLIF ( - COUNT ( DISTINCT - 11 ), - 21 ) THEN NULL END AS col2, + 32 * + 32 * + COUNT ( ALL 48 ) * - 16 + + + ( CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL","NULL"] but got ["NULL","-16384"] +``` + + +```sql +SELECT - 4 + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2 + +Wrong conversion type +``` + + +```sql +SELECT ALL 21 * CAST ( - + COUNT ( * ) AS INTEGER ) + 64 * 29 + +g is not defined +``` + + +```sql +SELECT ALL + 36 + CASE WHEN NOT + 82 = ( NULL ) THEN NULL ELSE + 86 * + COUNT ( - 7 ) + - 29 END * 67 col1 + +Expected: ["3855"] but got ["NULL"] +``` + + +```sql +SELECT + 74 / + - 52 AS col0, COUNT ( * ) * - 81 + - - 37 + 33 * + - 88 + CASE 46 WHEN - 71 THEN + + 18 END + +Expected: ["-1","NULL"] but got ["-1.423","NULL"] +``` + + +```sql +SELECT ALL 42 - - + 98 + + + 64, + 68 - + + CASE WHEN 89 BETWEEN - 80 + 5 AND 21 THEN 74 END AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL + - 74 + 9 AS col0, CASE - 77 WHEN + - 95 THEN NULL WHEN 82 + + + 62 THEN - 13 - - COALESCE ( - 6, + 64 / - CASE + - 66 WHEN 9 + - CAST ( NULL AS INTEGER ) + - 50 * 82 THEN NULL ELSE 62 END, 92 ) END AS col0 + +Expected: ["-65","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 8,938 tests as _sqlite_ + +* 1,838 failed +* 79% was OK + +Time: 32394.964ms + +---- ---- ---- ---- ---- ---- ---- +### 381/620 [`./test/random/expr/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_12.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 80 * - COALESCE ( + - 45, - - COUNT ( * ) + + 62 + - MAX ( - + 32 ) * + 63 + + 55 ), + 37 / - 46 * + - MAX ( ALL - 32 ) * 83 AS col0 + +Expected: ["3600","0"] but got ["3600","-0.000"] +``` + + +```sql +SELECT ALL 72 * - + 52 + - 45 AS col2, CASE + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS REAL ) + 38 THEN - - 42 + - 28 WHEN - 62 * + 41 - - + 24 THEN + CAST ( - - 36 AS INTEGER ) WHEN - 64 * 56 + - MAX ( + 65 ) THEN - SUM ( 80 ) / 24 * COUNT ( * ) + + - 71 + + CASE - - COUNT ( * … + +Wrong conversion type +``` + + +```sql +SELECT + MAX ( DISTINCT - + 82 ) - - 80 - + CAST ( NULL AS INTEGER ), + 78 * - - 86 AS col1 + +Expected: ["NULL","6708"] but got ["-2","6708"] +``` + + +```sql +SELECT + + 74 / - CAST ( + ( + + MIN ( + 96 ) ) AS INTEGER ), 46 AS col0 + +g is not defined +``` + + +```sql +SELECT - - 96 * 11 * + CASE WHEN NOT + 84 NOT BETWEEN 27 / 0 AND COALESCE ( + 61, + AVG ( 81 ) / + 39 + COUNT ( * ) ) THEN - 69 WHEN NULL > ( - 15 ) THEN NULL ELSE NULL END AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - 71 - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["-71","0"] +``` + + +```sql +SELECT NULLIF ( 8, 57 ) AS col0, + ( - 79 ) * 88 / - CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["8","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL + + 33 * - + MAX ( DISTINCT - 89 ) * CASE + 99 WHEN - 93 THEN + 83 ELSE NULL END + - 11 AS col1, 35 + +Expected: ["NULL","35"] but got ["35","NULL"] +``` + + +```sql +SELECT - CASE - + 61 WHEN - + 3 * - 72 THEN NULL WHEN + 89 THEN + 82 ELSE + 88 END / - COALESCE ( + CAST ( NULL AS INTEGER ), + 63, + 81 ) + MAX ( 27 ) + + - 28 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT CASE + 67 WHEN - 70 * + 89 * + - 73 THEN - 87 END, 8 * + CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,133 failed +* 78% was OK + +Time: 31875.794ms + +---- ---- ---- ---- ---- ---- ---- +### 382/620 [`./test/random/expr/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_13.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - ( - + 37 ) AS col1, - CAST ( NULL AS INTEGER ) + +Expected: ["37","NULL"] but got ["37","0"] +``` + + +```sql +SELECT ( + - 6 ) / + - 66 - + - COUNT ( * ) * + 17 + +Expected: ["17"] but got ["17.091"] +``` + + +```sql +SELECT ALL + COUNT ( * ) * + + 25 + 37 + + 81 / 68, CASE + - COUNT ( * ) WHEN - + 26 THEN NULL WHEN + - 56 / 13 + ( 54 ) + 72 + 31 - + - COUNT ( * ) * - 67 * + 0 + - 67 - - 76 * 76 * - 36 THEN - 20 + - + ( + 42 ) - + 67 END col0 + +Expected: ["63","NULL"] but got ["63.191","NULL"] +``` + + +```sql +SELECT + 59 + + + 4 + - + 95 + - + 98 AS col0, 77 + - + CASE WHEN - NULLIF ( + - 74, 92 ) BETWEEN 31 * + 52 * - + 84 + - 50 + - COUNT ( * ) AND - 76 * + 40 - ( + 34 ) THEN - 36 ELSE NULL END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT 57 / + + CAST ( NULL AS INTEGER ) / + COALESCE ( - + COUNT ( * ), + + 46 + - CAST ( 57 AS REAL ) ) + + MIN ( - 70 ) AS col1, 79 + + 39 + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 + +g is not defined +``` + + +```sql +SELECT ALL - + 39 * - + 30 AS col1, CASE - 9 WHEN + 78 THEN + 39 WHEN - + 68 * ( + - 80 ) THEN + 32 + - - 84 ELSE NULL END col1 + +Expected: ["1170","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT CASE 75 WHEN - - 41 THEN 43 END AS col1, COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) / 87 + +Expected: ["NULL","NULL"] but got ["NULL","1"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) + - 22 + + 73 AS col0, + 17 + + + MIN ( + - CAST ( NULL AS INTEGER ) ) + + + 10 + + 88 * + 79 AS col2 + +Expected: ["NULL","NULL"] but got ["51","6979"] +``` + + +```sql +SELECT + COUNT ( * ) * + CASE WHEN NOT - COALESCE ( + 30, + ( + 65 ) + - COUNT ( * ) / + 0 + - + 45, + COUNT ( * ) / 80 ) < NULL THEN - 1 WHEN ( NULL ) NOT IN ( 71 ) THEN NULL ELSE - COUNT ( * ) - 85 END + - COUNT ( * ) / CAST ( 76 * COUNT ( * ) - 10 AS INTEGER ) + +Expected: ["-86"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,659 failed +* 83% was OK + +Time: 28421.809ms + +---- ---- ---- ---- ---- ---- ---- +### 383/620 [`./test/random/expr/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_14.test) + +_Mimic sqlite_ + +```sql +SELECT + 4 / SUM ( ALL - 26 ) + +Expected: ["0"] but got ["-0.154"] +``` + + +```sql +SELECT DISTINCT 67 + + 50 + + 0 - CAST ( NULL AS INTEGER ) * COUNT ( * ) + +Expected: ["NULL"] but got ["117"] +``` + + +```sql +SELECT + 71 * - 48 + CAST ( NULL AS REAL ) * + + ( - + COUNT ( * ) ) + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * + 54, CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL - 74 - + + CAST ( - COUNT ( + 82 ) AS INTEGER ) * - + 80, + ( - + 21 ) AS col2 + +g is not defined +``` + + +```sql +SELECT ALL COALESCE ( + 62, - NULLIF ( + 38, - COALESCE ( - 15, 92 + 11 + - 40, + ( + - CASE + 4 WHEN + 28 / - - COUNT ( * ) * CASE - 94 WHEN - 98 THEN NULL ELSE - 54 END + + 68 * + COUNT ( * ) THEN NULL WHEN CASE - 76 WHEN 91 THEN + 72 END THEN ( 17 ) * + 96 WHEN + 57 THEN NULL END ) * 90 ) + 20 *… + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL 36 / - 75 col0, - 39 + - - 7 / - 70 * - + CAST ( NULL AS INTEGER ) + +Expected: ["0","NULL"] but got ["-0.480","NULL"] +``` + + +```sql +SELECT - MIN ( DISTINCT 99 ) / - - CAST ( NULL AS INTEGER ) - - + 86 * - MIN ( ALL ( - CAST ( + 93 AS INTEGER ) ) ), 0 * + + 98 + CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT ALL - NULLIF ( COALESCE ( + + CAST ( NULL AS INTEGER ), + 20 ), 0 ) AS col1 + +Expected: ["-20"] but got ["NULL"] +``` + + +```sql +SELECT + - 71 AS col2, - 53 / + CAST ( NULL AS INTEGER ) * + + 74 AS col2 + +Expected: ["-71","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,130 failed +* 78% was OK + +Time: 37073.928ms + +---- ---- ---- ---- ---- ---- ---- +### 384/620 [`./test/random/expr/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_15.test) + +_Mimic sqlite_ + +```sql +SELECT - - COUNT ( * ) col0, + 43 AS col0 + +Expected: ["1","43"] but got ["43"] +``` + + +```sql +SELECT COUNT ( * ) + + - AVG ( DISTINCT + - 86 ) * - - 22 + CAST ( NULL AS INTEGER ) - - 86 + +Expected: ["NULL"] but got ["1979"] +``` + + +```sql +SELECT ALL - CASE + CAST ( - - 97 AS INTEGER ) WHEN + 25 * - + CASE - MAX ( DISTINCT + 73 ) WHEN CAST ( 78 AS REAL ) / 10 * - 57 THEN 60 WHEN ( - 27 ) THEN NULL WHEN COUNT ( ( 42 ) ) - - CASE 17 WHEN + 19 * + 31 + 45 THEN - 18 * 44 WHEN COUNT ( * ) * COALESCE ( - 50, 90 ) THEN + 39 ELSE NULL END TH… + +Wrong conversion type +``` + + +```sql +SELECT - CASE WHEN NOT ( NOT + 61 NOT BETWEEN + 95 * + 46 AND - 46 * - - 50 + + - 85 ) THEN - 0 END + - NULLIF ( + - 47, 61 ) + + - 33 * + 48 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 22 * CAST ( + COUNT ( * ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT COALESCE ( 83, - 86 + 21 - + + 82 * - 17 ) - + CASE 15 WHEN 46 THEN + COUNT ( * ) * + + 90 + + 74 END + - 20 + + 91 * - 42, + 77 + - MAX ( - ( - + 5 ) ) + - 24 / ( + 57 ) AS col2 + +Expected: ["NULL","72"] but got ["NULL","71.579"] +``` + + +```sql +SELECT 62 / CAST ( + - COUNT ( * ) AS INTEGER ) * - ( + 77 ) + - 7 * COALESCE ( NULLIF ( 11, - 3 * - 53 + + 66 * + COUNT ( * ) ), ( 62 ), 69 ) + +Expected: ["4697"] but got ["NULL"] +``` + + +```sql +SELECT ALL + COALESCE ( + + 74, 36, + 97 ) + - 58 - + 59 + ( - CAST ( NULL AS INTEGER ) ) / - + 69 AS col1, - CASE - NULLIF ( + COALESCE ( - 45, + 48, + ( ( 54 ) ) ), - 71 ) WHEN COUNT ( * ) THEN - 75 WHEN + 70 THEN NULL ELSE NULL END * - 8 + +Expected: ["NULL","NULL"] but got ["-43","NULL"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) * NULLIF ( - 86, - NULLIF ( - 90, + - COUNT ( + 16 ) + COUNT ( * ) * + + 63 * + 30 ) ) AS col1, CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL + 38 * + 66 + - ( 97 ) col2, ( + - 1 ) * + CASE - ( ( - 44 ) ) WHEN + 35 + 23 THEN NULL WHEN + 59 / 5 + 93 THEN - 23 END - - 59 AS col2 + +Expected: ["2411","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,139 failed +* 78% was OK + +Time: 27550.392ms + +---- ---- ---- ---- ---- ---- ---- +### 385/620 [`./test/random/expr/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_16.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 9 / - 58 AS col1 + +Expected: ["0"] but got ["-0.155"] +``` + + +```sql +SELECT - 65 + - CAST ( NULL AS INTEGER ) * - 37 / - - 81 + +Expected: ["NULL"] but got ["-65"] +``` + + +```sql +SELECT ALL + CAST ( - - SUM ( + 86 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT + CASE 99 WHEN NULLIF ( CAST ( + - 56 AS INTEGER ), + CAST ( 50 AS REAL ) - 91 + + - COALESCE ( - 9, - - 61 / + CAST ( + COUNT ( * ) AS INTEGER ) ) - - 15 ) / + ( + - 70 ) + + - 50 + - COALESCE ( + 68, 87 ) - 39 * - + ( - 71 ) + COUNT ( DISTINCT - 64 ) THEN CAST ( NULL AS INTEGER ) WHEN - + … + +Wrong conversion type +``` + + +```sql +SELECT ALL MIN ( DISTINCT 76 ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, - CAST ( NULL AS INTEGER ) + - 15 AS col2 + +Expected: ["NULL","NULL"] but got ["-15"] +``` + + +```sql +SELECT + - 11 / + 9 AS col1, - CASE + COUNT ( + 73 ) WHEN + + SUM ( + 18 ) * - 21 THEN - 41 END + +Expected: ["-1","NULL"] but got ["-1.222","NULL"] +``` + + +```sql +SELECT - 20 * + 99 - - CASE WHEN + COALESCE ( - 65, - 99, - AVG ( ALL NULLIF ( + + 50, + 42 * + 88 ) ) + - 28 ) BETWEEN - 51 AND ( NULL ) THEN NULL WHEN NOT ( NOT ( NULL < NULL ) ) THEN - 3 END AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT COUNT ( * ) + - - NULLIF ( + ( + 57 ), 57 + - MAX ( ALL + 96 + + 2 ) * CAST ( NULL AS INTEGER ) ) + + ( - 40 + - 96 * + 59 ) + +Expected: ["-5646"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - 81 - - + CASE 21 WHEN 29 THEN + COUNT ( * ) WHEN COUNT ( * ) * - 12 + + 55 THEN NULL ELSE NULL END + + 70 AS col1, - CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT 51 AS col0, CASE 87 WHEN - + 70 THEN 78 WHEN - - 15 THEN NULL END AS col0 + +Expected: ["51","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,077 failed +* 79% was OK + +Time: 40467.732ms + +---- ---- ---- ---- ---- ---- ---- +### 386/620 [`./test/random/expr/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_17.test) + +_Mimic sqlite_ + +```sql +SELECT + 91 / 32 / + 15 + CAST ( - - CAST ( + + ( + - 90 ) AS INTEGER ) AS INTEGER ) + +Expected: ["-90"] but got ["-89.810"] +``` + + +```sql +SELECT + 34 / - CAST ( NULL AS REAL ) col1 + +Wrong conversion type +``` + + +```sql +SELECT + + 64 * CAST ( NULL AS INTEGER ) + 87 AS col1 + +Expected: ["NULL"] but got ["87"] +``` + + +```sql +SELECT ALL + 16 - + 93 + - ( + CAST ( NULL AS INTEGER ) ) * 76 + + 62 + + 28 / - 97 * COUNT ( - 3 ) / - + AVG ( + - 45 ) - 77 * - 99 + 96 AS col2, + 37 * + - COALESCE ( NULLIF ( + 26, + 36 ), + 17, + 92 + 29 ), + 3 - ( - 64 ) + CAST ( NULL AS INTEGER ) - 28 + + COUNT ( * ) * + 77 AS col0 + +Expected: ["NULL","-962","NULL"] but got ["7691.010","-962","116"] +``` + + +```sql +SELECT ALL - 67 * CAST ( - CASE + 52 WHEN ( COUNT ( ALL 17 ) ) * COUNT ( * ) THEN + 23 - - 88 ELSE NULL END AS INTEGER ) AS col2 + +g is not defined +``` + + +```sql +SELECT + COUNT ( * ) AS col0, - COUNT ( * ) * - 88 - + 13 - + COUNT ( * ) + - COUNT ( * ) + 33 / CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["1","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL + 67 * + - 21 * - + COUNT ( * ) / + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 + +Expected: ["-1407"] but got ["NULL"] +``` + + +```sql +SELECT ALL + 14 - + NULLIF ( - CASE WHEN NULL BETWEEN ( NULL ) AND ( + COUNT ( * ) ) THEN NULL ELSE + COALESCE ( + + 41, + - COUNT ( * ) + 99 ) - - - 10 END, + NULLIF ( - - 66, - 73 + + - ( + + CASE - COUNT ( * ) WHEN 26 / 78 - - 45 * 74 THEN 31 * 80 END ) ) * 20 ) + + COUNT ( * ) * + 21 * - 57 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL 23 AS col0, + ( - 45 ) * 74 + 90 - + CAST ( 98 AS INTEGER ) + 55 col1, + 52 * - CASE 52 WHEN 86 THEN - COALESCE ( + 45, 48 ) END AS col0 + +Expected: ["23","-3283","NULL"] but got ["NULL","-3283","NULL"] +``` + + +```sql +SELECT + 55 / - 43 - + ( + + 57 ) * + 40 / - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,095 failed +* 79% was OK + +Time: 50255.115ms + +---- ---- ---- ---- ---- ---- ---- +### 387/620 [`./test/random/expr/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_18.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + 55 * 70 / 95 AS col1 + +Expected: ["40"] but got ["40.526"] +``` + + +```sql +SELECT + 34 * 92 + + COUNT ( * ) * - 80 col0, - 1 * + - CAST ( NULL AS INTEGER ) + +Expected: ["3048","NULL"] but got ["3048","0"] +``` + + +```sql +SELECT 47 + + CAST ( + 69 - - AVG ( + 51 ) * 14 AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT - 96 * + - CASE - COUNT ( * ) WHEN - 71 * 35 THEN NULL WHEN COUNT ( * ) - - CAST ( NULL AS REAL ) / 86 THEN - 79 - - 73 ELSE 95 END + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CASE WHEN NOT 4 NOT BETWEEN - CASE + 23 WHEN - + CASE + 63 WHEN 13 THEN - + COUNT ( * ) * + COUNT ( ALL - 82 ) + - + 91 ELSE CASE + 97 WHEN ( + - SUM ( ALL - 37 ) ) + + NULLIF ( - 20, 42 - ( ( 79 ) ) * 9 ) * 21 THEN NULL ELSE - 74 - 41 END / + 21 END THEN - COUNT ( * ) ELSE 13 END A… + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - 27 AS col2, CASE 33 WHEN + 43 THEN NULL WHEN - ( - 21 ) THEN + 7 END * + - NULLIF ( - ( - ( + + COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), - - ( 66 ) ) ) ), 44 + + COALESCE ( + 95, 17 + - 76 ) * - 90 ) * - COUNT ( * ) - 83 * 68 - + CASE - + COUNT ( - ( 86 ) ) WHEN + + COALESCE ( 75, … + +Expected: ["-27","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + 61 * - CAST ( NULL AS INTEGER ) AS col1, CASE - COUNT ( * ) WHEN - 61 + 28 THEN NULL WHEN + COUNT ( * ) * - + 25 * + 85 THEN - + 4 ELSE NULL END + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) * + 56 + + 64 * 93 AS col2 + +Expected: ["NULL","NULL"] but got ["0","5952"] +``` + + +```sql +SELECT ALL + 77 AS col0, CASE + 52 WHEN 60 THEN + - CAST ( NULL AS INTEGER ) * ( - 86 ) END AS col0 + +Expected: ["77","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT COUNT ( ALL + 84 ) * 66 / + + CAST ( - MAX ( ALL ( + - ( 55 ) ) ) AS INTEGER ) + 30 + +Expected: ["31"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,118 failed +* 78% was OK + +Time: 29543.055ms + +---- ---- ---- ---- ---- ---- ---- +### 388/620 [`./test/random/expr/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_19.test) + +_Mimic sqlite_ + +```sql +SELECT CAST ( + + COUNT ( * ) AS INTEGER ) - + COUNT ( * ) + - 39 * + 90 * - 52 + +Expected: ["182520"] but got ["182519"] +``` + + +```sql +SELECT ALL + 48 - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["NULL"] but got ["48"] +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) * - - COUNT ( * ) * + 94 + +Wrong conversion type +``` + + +```sql +SELECT - 7 + - 15 * + 34 + + NULLIF ( - + CAST ( + ( + ( COUNT ( * ) ) ) AS INTEGER ), - 44 + COALESCE ( + 70, ( - 10 ) ) + 52 ) + +g is not defined +``` + + +```sql +SELECT 41 + - - 73 - 11 + - 47 + CASE WHEN + + 30 IS NOT NULL AND NOT + CAST ( + 33 AS INTEGER ) / 32 * + 57 - COUNT ( * ) >= CASE + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) WHEN - - COALESCE ( - 46, + + MIN ( - 61 ) * - 54, + 96 ) + 67 + SUM ( DISTINCT - 74 ) + - ( 1 ) THEN NULL WHEN - - 96 T… + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT CASE WHEN NOT COUNT ( DISTINCT 31 ) IS NOT NULL THEN + 73 * + COALESCE ( CASE + 21 WHEN 5 THEN 63 ELSE NULL END, - COUNT ( * ) ) WHEN NOT NULL <= NULL THEN NULL ELSE + 36 * - ( ( - 44 ) ) + + 83 END * + COUNT ( * ) AS col1 + +Expected: ["1667"] but got ["NULL"] +``` + + +```sql +SELECT + 34 - - 13 + - MAX ( ALL 3 ) * - - 45 * + CAST ( NULL AS INTEGER ) * + 57 * - SUM ( - 73 ), - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["47","0"] +``` + + +```sql +SELECT DISTINCT MIN ( - 25 ) / - ( - + 86 ) + + 82 AS col2, - CASE - 0 WHEN - - CASE - 24 WHEN + 84 * - 41 THEN NULL ELSE COUNT ( + 23 ) END THEN - COUNT ( * ) * 49 * - 50 + + 93 WHEN - 72 * 10 THEN NULL ELSE NULL END + + 51 + +Expected: ["82","NULL"] but got ["81.709","NULL"] +``` + + +```sql +SELECT ALL + - 65 AS col1, CASE 21 WHEN - + 58 THEN - 42 * 9 WHEN + 24 THEN - - 39 END AS col1 + +Expected: ["-65","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL - - 77 + - CASE + COUNT ( * ) WHEN + 90 THEN NULL WHEN CAST ( + 80 AS INTEGER ) THEN - - 41 END col1, CAST ( NULL AS INTEGER ) + + + 28 + +Expected: ["NULL","NULL"] but got ["NULL","28"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,089 failed +* 79% was OK + +Time: 27684.884ms + +---- ---- ---- ---- ---- ---- ---- +### 389/620 [`./test/random/expr/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT + 62 / + SUM ( - 80 ) * + + 23 + + 38 + CAST ( + 31 AS INTEGER ) * + COUNT ( DISTINCT - 54 ) * + ( + 88 + - CAST ( 95 - COUNT ( * ) * 18 AS INTEGER ) ) + +Expected: ["379"] but got ["2765.966"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ), - 9 AS col0 + +Expected: ["NULL","-9"] but got ["0","-9"] +``` + + +```sql +SELECT - ( - CAST ( + - SUM ( DISTINCT - - 53 ) AS INTEGER ) ) + +g is not defined +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT + CASE + COUNT ( * ) WHEN + COALESCE ( + MAX ( DISTINCT - 17 ), 72 - + - 86 + + ( - CASE WHEN ( + CASE - 8 WHEN - 7 THEN NULL WHEN - 70 * + 18 THEN NULL ELSE 82 * + ( - - MIN ( + 47 ) ) + - SUM ( DISTINCT 97 ) END ) BETWEEN - 13 * + 57 AND - COUNT ( * ) * - 74 THEN 89 WHEN NOT - 12 >= NULL T… + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - 76 / + ( - - 64 ), - ( - COUNT ( * ) ) + + CASE - 49 WHEN - 8 THEN + + ( + COALESCE ( - 57, + 78, + 48 ) ) * + - CAST ( 44 AS INTEGER ) + - + 5 END col1 + +Expected: ["-1","NULL"] but got ["-1.188","NULL"] +``` + + +```sql +SELECT DISTINCT CASE WHEN NOT COUNT ( * ) IN ( + 75 ) THEN ( 79 ) WHEN + 9 IS NOT NULL THEN NULL END + +Expected: ["79"] but got ["NULL"] +``` + + +```sql +SELECT + + 14 * 93 + + CAST ( NULL AS INTEGER ) * + 60 col0, CASE - 49 WHEN + NULLIF ( + - 64, ( + 20 ) ) * + 13 / COUNT ( * ) THEN 85 / - - COUNT ( DISTINCT - 96 ) + - 38 ELSE NULL END + +Expected: ["NULL","NULL"] but got ["1302","NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","-15"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,481 failed +* 85% was OK + +Time: 25019.594ms + +---- ---- ---- ---- ---- ---- ---- +### 390/620 [`./test/random/expr/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_20.test) + +_Mimic sqlite_ + +```sql +SELECT - CAST ( NULL AS INTEGER ) + + + COALESCE ( + 95, + MAX ( ALL + 16 ) ) * - COUNT ( * ) - + NULLIF ( 25, - COALESCE ( + - 75, + 50 ) + - 93 ) * + + ( + 11 ) * + 70, + 39 * 94 col1 + +Expected: ["NULL","3666"] but got ["-19345","3666"] +``` + + +```sql +SELECT DISTINCT NULLIF ( + - COUNT ( * ), - + 40 * + 58 * + + 37 ) / MAX ( DISTINCT 31 ) - - 48 + - 37 - + 15 * 56 + +Expected: ["-829"] but got ["-829.032"] +``` + + +```sql +SELECT DISTINCT - CASE - CASE - CASE 58 WHEN - 68 * - 93 + + COALESCE ( + 44, + + 43 ) * + + ( 74 ) * + 97 + 67 - 73 + + 64 + - 66 * + 97 * - ( + - 70 ) - + ( ( - NULLIF ( + 10, 29 ) ) ) * - 68 THEN NULL WHEN - 52 THEN NULL WHEN + AVG ( DISTINCT + 84 ) THEN COUNT ( 47 ) END WHEN 2 * + 81 THEN 38 + … + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( COALESCE ( - ( + + 86 ), + 25 + - AVG ( + 39 ), - - 16 / COUNT ( * ) ) AS INTEGER ) * 92 col0 + +g is not defined +``` + + +```sql +SELECT 48 * + 8 AS col1, + 95 + + + 99 * + 1 + - CASE + CAST ( NULL AS INTEGER ) WHEN - 58 THEN NULL WHEN + - 53 THEN NULL ELSE 71 * - 11 - 12 * - 81 / + 29 + - 27 + 89 + - + CAST ( - COUNT ( * ) AS INTEGER ) + + + 86 + COUNT ( - + 35 ) END + + CASE - + ( + SUM ( 45 ) ) WHEN - - CASE + 70 WHEN + 22… + +Expected: ["384","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + CASE SUM ( + CASE - 65 WHEN - 8 THEN + 98 WHEN 56 THEN NULL ELSE NULL END ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 20 * + CAST ( - + 19 AS INTEGER ) + - COUNT ( * ) + + COUNT ( * ) END + + 22 / - COALESCE ( - 33, MAX ( DISTINCT + 16 ), - + 14 ) AS col2, COUNT ( ALL - ( + + 76 ) ) A… + +Expected: ["-380","1"] but got ["NULL","1"] +``` + + +```sql +SELECT DISTINCT 31 - + CAST ( NULL AS INTEGER ), - 93 * - CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["31","0"] +``` + + +```sql +SELECT ALL - CASE WHEN NULL NOT BETWEEN + 32 AND - 99 THEN - 47 ELSE + 25 END * 54 + 69 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + - CASE + 5 WHEN - - 47 * - + 92 THEN - 70 / + 66 + COUNT ( * ) END AS col2, 23 / + + 79 - + 24 + + CAST ( + 71 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 72 * MIN ( DISTINCT + 10 + - 79 ) + +Expected: ["NULL","NULL"] but got ["NULL","47.291"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,096 failed +* 79% was OK + +Time: 36470.689ms + +---- ---- ---- ---- ---- ---- ---- +### 391/620 [`./test/random/expr/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_21.test) + +_Mimic sqlite_ + +```sql +SELECT + CASE 68 WHEN - 34 * - - COUNT ( DISTINCT + - 96 ) THEN MIN ( ALL - ( ( - 14 ) ) ) ELSE + - COUNT ( * ) + - 89 * - + CAST ( NULL AS INTEGER ) * + + 20 END * + 87 / 5 / + 43 + - + 57 * 61 * 64 + +Expected: ["NULL"] but got ["-222528.405"] +``` + + +```sql +SELECT - MIN ( - 0 ) + - + ( + - 82 ) - - COUNT ( * ) / + 57 + +Expected: ["82"] but got ["82.018"] +``` + + +```sql +SELECT - MIN ( ALL + NULLIF ( - CAST ( + + 54 AS INTEGER ), + + 10 - - CAST ( NULL AS REAL ) ) ) + + + CASE + COUNT ( * ) WHEN 71 - + 37 * - 87 THEN NULL WHEN NULLIF ( + - 32, - 29 / + 90 * + 62 * + + 50 * ( + + 69 ) + + - 44 / + 87 * + CASE + 9 WHEN 12 * 99 + 15 - 0 THEN + 24 * + SUM ( 4 ) END ) T… + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( COUNT ( * ) AS REAL ) + - + 92 + - 50 - + + COALESCE ( 74, 24 ) * + CAST ( NULL AS REAL ) * + 85 AS col2 + +g is not defined +``` + + +```sql +SELECT + 60 * - CASE + 96 WHEN + SUM ( ALL + + 14 ) THEN - 33 / - 19 END, 67 * 54 * + CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * - - MIN ( ALL 9 ), - SUM ( DISTINCT CASE 93 WHEN 89 THEN - 84 * - 39 ELSE NULL END ) * - 7 AS col2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL + COUNT ( * ) / - - COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), - 17 + + + 22 ) * + + 42 * + + 48 - 20 - + COUNT ( * ) AS col2 + +Expected: ["-21"] but got ["NULL"] +``` + + +```sql +SELECT ALL - CASE WHEN 86 BETWEEN - - AVG ( ALL - 94 ) - - 0 AND ( + + 20 * - - 22 / - 11 + 31 * - AVG ( - 46 ) + + 8 + CAST ( NULL AS INTEGER ) ) THEN - 43 * 92 END AS col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL + CASE + 56 WHEN - + 4 THEN - COUNT ( * ) * + - 22 * + 9 + + CAST ( NULL AS INTEGER ) ELSE NULL END * + 71 AS col0, 97 + +Expected: ["NULL","97"] but got ["97","NULL"] +``` + + +```sql +SELECT DISTINCT + 75 AS col0, 85 / - + CASE + + 91 WHEN 50 / 26 THEN - 11 ELSE NULL END * + 80 col0 + +Expected: ["75","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,097 failed +* 79% was OK + +Time: 27798.936ms + +---- ---- ---- ---- ---- ---- ---- +### 392/620 [`./test/random/expr/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_22.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - - SUM ( 80 ) / - + 13 + CAST ( + COALESCE ( + 90, ( - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) ) AS INTEGER ) + +Expected: ["84"] but got ["83.846"] +``` + + +```sql +SELECT DISTINCT - 63 * - + CAST ( NULL AS INTEGER ) * - 99 AS col1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT 23 + + 33 * + CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT 54 * 98 / CASE WHEN + 72 NOT BETWEEN ( + 77 ) AND - 98 THEN + COUNT ( * ) ELSE NULL END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - - 94 - CAST ( - COUNT ( * ) AS INTEGER ) + - 61 + +g is not defined +``` + + +```sql +SELECT - 19 AS col0, - CASE + COUNT ( * ) WHEN - 92 THEN + 12 END AS col0 + +Expected: ["-19","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + SUM ( ALL + 25 ) + - 94 + + ( - 4 ) / + + CAST ( AVG ( - 89 ) AS INTEGER ) + - - COUNT ( * ) / + 80 + + 50 * + 27 + +Expected: ["1281"] but got ["NULL"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) + + ( 72 ) / 16 AS col1, + CASE + 59 WHEN - - 24 THEN - CAST ( 8 AS INTEGER ) WHEN + + 72 + + + COUNT ( * ) THEN + 13 WHEN 37 * + 37 + - COUNT ( * ) * + 24 + 60 + - - MIN ( ALL + 77 ) THEN NULL ELSE NULL END col2 + +Expected: ["NULL","NULL"] but got ["4.500","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,025 failed +* 79% was OK + +Time: 65518.659ms + +---- ---- ---- ---- ---- ---- ---- +### 393/620 [`./test/random/expr/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_23.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - - CAST ( NULL AS REAL ) + + 96 + +Wrong conversion type +``` + + +```sql +SELECT - + 35 / - + 59 + + 31 + +Expected: ["31"] but got ["31.593"] +``` + + +```sql +SELECT ALL + 9 col2, CASE COUNT ( * ) WHEN + 16 THEN - 53 + + 65 WHEN + 10 THEN NULL ELSE MAX ( DISTINCT - ( + CASE WHEN NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND - COALESCE ( ( 22 ), 8 ) THEN + 10 + - 79 * 91 ELSE NULL END ) ) END * - 24 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT CASE + 55 WHEN - 4 THEN 97 * - 7 + - NULLIF ( - 30, + 32 ) WHEN 38 THEN 28 * 85 + - 98 * + MIN ( 59 ) ELSE + ( + CAST ( NULL AS INTEGER ) ) END col1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL CAST ( + AVG ( ALL + - 2 ) AS INTEGER ) / + 44 + 12 + +g is not defined +``` + + +```sql +SELECT DISTINCT + 16 + 47 + + - 54 + - 40 + + + 78 / + SUM ( ALL - - 31 ) * - CAST ( - COUNT ( * ) AS INTEGER ) + - CAST ( - NULLIF ( 66, 42 ) AS INTEGER ) + +Expected: ["37"] but got ["NULL"] +``` + + +```sql +SELECT - - 45 + - - 94 + + 60 AS col1, CASE + 59 WHEN + + COUNT ( * ) / + 98 + + + 9 * - 52 THEN 35 END / 94 AS col1 + +Expected: ["199","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) * 84 * COUNT ( * ) * + 5 AS col0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT 49 / + 2 AS col0 + +Expected: ["24"] but got ["24.500"] +``` + + +```sql +SELECT ALL - - COUNT ( * ) * - ( + CAST ( - - 11 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) - - 73 + 91 * - COUNT ( * ) * 26 * + COUNT ( * ), 67 / + + CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["-2304","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,067 failed +* 79% was OK + +Time: 44626.997ms + +---- ---- ---- ---- ---- ---- ---- +### 394/620 [`./test/random/expr/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_24.test) + +_Mimic sqlite_ + +```sql +SELECT + + 6 / - + 77 + +Expected: ["0"] but got ["-0.078"] +``` + + +```sql +SELECT + - CAST ( NULL AS REAL ) + - + 6 + - + 69 + - 68 + +Wrong conversion type +``` + + +```sql +SELECT 30 + + + 45 * - 96 + - CAST ( - - 27 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["NULL"] but got ["-4317"] +``` + + +```sql +SELECT CAST ( SUM ( + 87 ) AS INTEGER ) + 13 col2 + +g is not defined +``` + + +```sql +SELECT 44 AS col1, - CASE + 45 WHEN - - 27 * - 25 * - 91 THEN COALESCE ( + 19, + 5, + - 46 + - 63 ) WHEN + COUNT ( DISTINCT + 34 ) * AVG ( ALL 96 ) THEN + COUNT ( * ) WHEN 67 / + SUM ( ALL - 65 ) THEN + 2 + COUNT ( * ) * 56 END AS col1 + +Expected: ["44","NULL"] but got ["NULL"] +``` + + +```sql +SELECT - 29 / - - COALESCE ( + CAST ( NULL AS INTEGER ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20 + +Expected: ["20"] but got ["NULL"] +``` + + +```sql +SELECT + + CASE - - 77 WHEN 27 THEN - + 41 WHEN 74 * 16 THEN NULL ELSE NULL END, - MIN ( + - CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT ALL + 63 AS col1, + CASE 54 WHEN + 8 + - 38 THEN + + 25 * + + 46 + + 30 + + 12 ELSE NULL END AS col1 + +Expected: ["63","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT - COALESCE ( - CASE 36 WHEN - 17 THEN - COUNT ( * ) END, + COUNT ( * ) / - 12 ) * 71 + +Expected: ["0"] but got ["5.917"] +``` + + +```sql +SELECT + + 13 / - - COUNT ( * ), + CASE WHEN NOT + ( 39 ) BETWEEN 86 + SUM ( ALL 1 ) * + 57 + + 57 - - + 26 AND + + 95 THEN - CASE WHEN 3 < 28 THEN + + ( + 78 ) END ELSE NULL END / - - ( + SUM ( DISTINCT 73 ) ) - - 66 - + + MIN ( ALL 61 ) + - + ( - COUNT ( * ) ) * 43 * - 78 AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - 48 / 49 * - CAST ( NULL AS INTEGER ) * - 14 * + 21, ( CAST ( NULL AS INTEGER ) ) AS col2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL 49 / 47 * 46 + +Expected: ["46"] but got ["47.957"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,860 failed +* 81% was OK + +Time: 31952.510ms + +---- ---- ---- ---- ---- ---- ---- +### 395/620 [`./test/random/expr/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_25.test) + +_Mimic sqlite_ + +```sql +SELECT + 13 + + 12 / - 23 + +Expected: ["13"] but got ["12.478"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * - - 9 AS col1, ( 44 ) AS col1 + +Expected: ["NULL","44"] but got ["44","44"] +``` + + +```sql +SELECT - 43 * + 32 + - - CAST ( NULL AS REAL ) AS col1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 + +Expected: ["67","63"] but got ["67","NULL"] +``` + + +```sql +SELECT CASE 7 WHEN 79 / - COUNT ( * ) + - - COUNT ( 91 ) + + + 95 + - 41 + - CASE - MIN ( DISTINCT + 90 ) WHEN - 14 + + 81 * 50 THEN 87 WHEN + + 96 THEN + + 13 WHEN - - 34 THEN NULL ELSE - - SUM ( DISTINCT 91 ) / ( - - 64 ) END * - + 7 THEN - 98 - - - CAST ( NULL AS INTEGER ) ELSE NULL END + 67 AS … + +Expected: ["NULL","21"] but got ["21","NULL"] +``` + + +```sql +SELECT DISTINCT + NULLIF ( - 97, + COUNT ( * ) * - 42 + + ( 36 ) + - COALESCE ( + 36, + - 1 ) + - 65 + - 13 * + - 31 * + + CAST ( NULL AS INTEGER ) ), CASE WHEN + 69 BETWEEN + + 58 * + NULLIF ( - + ( - - 71 ), - 40 ) * + + 81 * - 21 + + 89 - + 53 + + 2 AND NULL THEN - COUNT ( * ) END * COUNT ( * ) … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + + CAST ( - CASE - MAX ( - CAST ( + 66 AS INTEGER ) ) WHEN + 7 THEN NULL WHEN 14 THEN NULL WHEN + + 30 THEN - 35 - 70 * + 20 ELSE NULL END AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL 74 + + 51 - - - CAST ( NULL AS INTEGER ) * - 9, - ( - - CAST ( NULL AS INTEGER ) ) AS col1 + +Expected: ["NULL","NULL"] but got ["125","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,872 failed +* 81% was OK + +Time: 50877.087ms + +---- ---- ---- ---- ---- ---- ---- +### 396/620 [`./test/random/expr/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_26.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + - 82 + + 56 / - + 27 AS col2 + +Expected: ["-84"] but got ["-84.074"] +``` + + +```sql +SELECT ALL CAST ( + CASE - 46 WHEN - + 95 THEN 90 * - - 2 + - - 99 - - - 40 ELSE NULL END AS INTEGER ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) col1 + +g is not defined +``` + + +```sql +SELECT + - CASE WHEN NOT ( + AVG ( ALL + 41 ) BETWEEN + 49 + 6 + + 32 AND + 57 / - 19 ) THEN NULL ELSE - 4 * - - 63 / - + 62 END + - ( + - 3 ) - + 63 * + + 64 * + COUNT ( * ) + - 2 AS col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT 47 - - ( COUNT ( * ) ) + - COUNT ( * ) * + - COUNT ( * ) + + NULLIF ( 74, + - 49 + - COUNT ( * ) + - + CAST ( - 17 AS REAL ) ) AS col0 + +Wrong conversion type +``` + + +```sql +SELECT 17 / - - COALESCE ( CAST ( NULL AS INTEGER ), + 48 * 7 + - 37 ) + - 16 AS col1 + +Expected: ["-16"] but got ["NULL"] +``` + + +```sql +SELECT ALL - CASE - ( - COALESCE ( + - 90, + CAST ( - 79 AS INTEGER ) ) ) WHEN 59 THEN NULL WHEN + 17 THEN - 42 ELSE NULL END * + 30 + - - COUNT ( * ) - - COUNT ( ALL + 7 ) + + 51 AS col2, 83 + +Expected: ["NULL","83"] but got ["83","NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2 + +Expected: ["NULL","NULL"] but got ["-389416","-389416"] +``` + + +```sql +SELECT 64 + + CASE 84 WHEN + MIN ( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 AS col0, CASE 58 WHEN - 67 + + 84 + + 0 * - 78 THEN + 12 * - ( + - 90 ) END / 91 + + 59 AS col0 + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,876 failed +* 81% was OK + +Time: 47303.686ms + +---- ---- ---- ---- ---- ---- ---- +### 397/620 [`./test/random/expr/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_27.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 13 AS col1, 10 / 84 + +Expected: ["13","0"] but got ["13","0.119"] +``` + + +```sql +SELECT ALL - MIN ( DISTINCT - 19 ) + + SUM ( DISTINCT 93 ) + + 48 + + + SUM ( DISTINCT + + 89 ) + + + CAST ( NULL AS INTEGER ) * - - CAST ( - COUNT ( * ) AS INTEGER ) * + - 97 * COUNT ( * ) + +Expected: ["NULL"] but got ["249"] +``` + + +```sql +SELECT - 23 + + + 19 + - - ( - ( - CASE + - 62 WHEN COALESCE ( + 22, + CASE 42 WHEN + + 62 * - - CAST ( NULL AS REAL ) - - 11 * - - ( + 78 ) THEN - COALESCE ( - 94, - 27 ) END ) THEN - + 43 * COUNT ( * ) * 85 - 54 WHEN - 30 THEN NULL ELSE NULL END ) ) AS col2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT DISTINCT - + 57 + - COUNT ( * ) + + 8 * - 46 col1, + 61 * + 79 + + CASE 36 WHEN 1 THEN NULL WHEN 97 THEN - - 26 END AS col1 + +Expected: ["-426","NULL"] but got ["NULL"] +``` + + +```sql +SELECT - 99 / - 49 * + - CAST ( COUNT ( * ) AS INTEGER ) + - 29 + - 90 / - - 45 + - NULLIF ( + 31, - 98 * - 28 ) + - + 13 * - 41 * - 2 * + + COUNT ( * ) AS col2, - 8 * - 44 * - + CAST ( - + 17 AS INTEGER ) * + - COALESCE ( + 0, + 81 ) + +Expected: ["-1130","0"] but got ["NULL","0"] +``` + + +```sql +SELECT CASE WHEN COUNT ( * ) BETWEEN - - ( + + 93 ) AND + - NULLIF ( + 36, + 80 ) * + 5 THEN - 31 ELSE NULL END, 84 AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL CAST ( - - CASE + 81 WHEN - 91 THEN + 37 END AS INTEGER ), + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT - 80 + - CASE - CASE + COUNT ( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT ALL 24 + + CASE COUNT ( * ) WHEN + 11 THEN NULL ELSE - 21 END + - 55 + + 92 - - + ( + CAST ( NULL AS INTEGER ) ) / + + 51 * + + CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2 + +Expected: ["-46","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,857 failed +* 81% was OK + +Time: 36012.160ms + +---- ---- ---- ---- ---- ---- ---- +### 398/620 [`./test/random/expr/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_28.test) + +_Mimic sqlite_ + +```sql +SELECT 27 + + COUNT ( * ) - + + 90 + + - 39 - 33 * CAST ( + + SUM ( - 31 ) AS INTEGER ) + +Expected: ["922"] but got ["-101"] +``` + + +```sql +SELECT ALL 51 + CAST ( NULL AS INTEGER ) + - NULLIF ( 53, - ( COUNT ( * ) ) - - 89 ), 61 AS col0 + +Expected: ["NULL","61"] but got ["-2","61"] +``` + + +```sql +SELECT + MIN ( - 15 ) * + MAX ( ALL - 90 ) * + - 64 - - 10 * + + ( + CASE + 84 WHEN - 7 + 58 - + - CAST ( + 7 AS REAL ) THEN - 27 ELSE NULL END ) + +Wrong conversion type +``` + + +```sql +SELECT + NULLIF ( + 7, CAST ( COUNT ( * ) AS INTEGER ) * 70 ) + +g is not defined +``` + + +```sql +SELECT - NULLIF ( + SUM ( ALL + CAST ( NULL AS INTEGER ) ), - 62 / 16 + CAST ( ( - - NULLIF ( - 73, 50 + + - 55 + + 4 ) ) AS INTEGER ) - - - 91 ), CASE - COALESCE ( + 71, - 47, + 19 ) WHEN + - 22 / + - 11 THEN + CASE - - 54 WHEN + 83 THEN - 11 * + 80 ELSE 64 / - - 95 + 7 * NULLIF ( + 63 + CASE + ( … + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT - CASE WHEN 53 BETWEEN + 50 / 27 AND - 1 THEN + + ( - - COUNT ( * ) ) + + 26 + - + 65 + + ( - 59 ) + 41 * 48 + + + 42 END / - + COUNT ( * ), 0 * 35 AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT + - 38 + - COUNT ( * ) / - 82 AS col0, CASE + MIN ( DISTINCT - 97 ) WHEN + MIN ( ALL - 17 ) THEN 84 WHEN 28 THEN NULL ELSE NULL END + +Expected: ["-38","NULL"] but got ["-37.988","NULL"] +``` + + +```sql +SELECT - CASE COUNT ( * ) WHEN + 46 / + 30 THEN + + 13 END AS col1 + +Expected: ["-13"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 64 col2, 95 - - - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","95"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * - MAX ( ALL 92 ) + 84 AS col2 + +Expected: ["NULL"] but got ["84"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,924 failed +* 80% was OK + +Time: 56563.626ms + +---- ---- ---- ---- ---- ---- ---- +### 399/620 [`./test/random/expr/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_29.test) + +_Mimic sqlite_ + +```sql +SELECT 47 / - 94 + +Expected: ["0"] but got ["-0.500"] +``` + + +```sql +SELECT 80 * - 17 + 24 + AVG ( DISTINCT - + 20 ) * - 65 * - CAST ( NULL AS INTEGER ) + COALESCE ( COUNT ( * ), + 54 ) AS col0 + +Expected: ["NULL"] but got ["-1335"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS REAL ) * + + ( - + 0 ) * + 14 + +Wrong conversion type +``` + + +```sql +SELECT CAST ( COALESCE ( + SUM ( ALL 94 ), 5 ) AS INTEGER ) * 83 col2 + +g is not defined +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) + - 22 + + 73 AS col0, + 17 + + + MIN ( + - CAST ( NULL AS INTEGER ) ) + + + 10 + + 88 * + 79 AS col2 + +Expected: ["NULL","NULL"] but got ["51","6979"] +``` + + +```sql +SELECT - CASE + + 75 WHEN - 80 THEN + + 30 + - + 21 * + 37 END, + CAST ( NULL AS INTEGER ) + - 34 AS col1 + +Expected: ["NULL","NULL"] but got ["NULL","-34"] +``` + + +```sql +SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col2, 29 * + CASE - 1 WHEN 97 THEN NULL WHEN 39 + + MAX ( DISTINCT - 88 ) * 19 * CASE - - 41 WHEN - 23 THEN NULL ELSE + + 40 END + COUNT ( * ) THEN + 29 - - 66 * + COUNT ( * ) END AS col1 + +Expected: ["-1","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT - NULLIF ( + 55, - - ( 84 ) + + - 29 * - 66 ) * - 40 col1, - CASE + 84 WHEN 45 THEN + + 78 + - 11 + + 15 * - 99 / + - 72 WHEN 29 * + 64 THEN 52 END AS col1 + +Expected: ["2200","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ( + - CASE WHEN NULL BETWEEN NULL AND 93 THEN - CAST ( 90 AS INTEGER ) END ) AS col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + COUNT ( * ) * + CASE WHEN NOT - COALESCE ( + 30, + ( + 65 ) + - COUNT ( * ) / + 0 + - + 45, + COUNT ( * ) / 80 ) < NULL THEN - 1 WHEN ( NULL ) NOT IN ( 71 ) THEN NULL ELSE - COUNT ( * ) - 85 END + - COUNT ( * ) / CAST ( 76 * COUNT ( * ) - 10 AS INTEGER ) + +Expected: ["-86"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,476 failed +* 85% was OK + +Time: 46717.575ms + +---- ---- ---- ---- ---- ---- ---- +### 400/620 [`./test/random/expr/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT 0 AS col2, 27 AS col2 + +Expected: ["0","27"] but got ["27","27"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) * 60 AS col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT - - COUNT ( * ), 43 + CAST ( NULL AS REAL ) AS col0 + +Wrong conversion type +``` + + +```sql +SELECT + 29 * - NULLIF ( + 80, + CAST ( + NULLIF ( + - 4, - + COUNT ( * ) ) AS INTEGER ) * - 44 * - ( COALESCE ( 0, + 36 * 1 ) ) ) AS col1 + +g is not defined +``` + + +```sql +SELECT 30 / COALESCE ( - COALESCE ( + + CAST ( NULL AS INTEGER ), 86 + + 46 ), - - 46 ) + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT 6 * - 8 * CASE - MAX ( ALL - + 82 ) WHEN + COUNT ( * ) THEN + CASE WHEN NOT COUNT ( * ) BETWEEN 77 AND ( ( + COUNT ( - 48 ) ) ) THEN NULL WHEN NULL IS NULL THEN NULL ELSE - 98 END * 3 WHEN + 75 * COUNT ( * ) THEN NULL END * 62 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 24 - - - CASE - + 7 WHEN - COUNT ( * ) THEN + SUM ( DISTINCT 34 ) WHEN + + 14 THEN + 3 / + 91 END col2, 1 * - CAST ( NULL AS INTEGER ) / - + 66, 61 col1 + +Expected: ["NULL","NULL","61"] but got ["NULL","0","61"] +``` + + +```sql +SELECT - + 55 / + - 69, + 81 * 68 + + - ( CASE + 72 WHEN - 90 * + 85 + - COALESCE ( 84, - + ( + COUNT ( * ) ) + 60, + 25 / 41 ) THEN + - 72 * 22 - - 36 - - + 93 WHEN 15 THEN - 38 END ) * 22 AS col0 + +Expected: ["0","NULL"] but got ["0.797","NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ), ( + CAST ( NULL AS INTEGER ) ) + + 79, - - 10 AS col1 + +Expected: ["NULL","NULL","10"] but got ["0","79","10"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,064 failed +* 79% was OK + +Time: 39012.282ms + +---- ---- ---- ---- ---- ---- ---- +### 401/620 [`./test/random/expr/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_30.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 14 - + 61 * + + 94 + 93 + 87 / - 26 + +Expected: ["-5630"] but got ["-5630.346"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * - - 97, - 28 - + - 62 + + COUNT ( * ) AS col0 + +Expected: ["NULL","35"] but got ["0","35"] +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) + 82 AS col1 + +Wrong conversion type +``` + + +```sql +SELECT + + CAST ( - 51 AS INTEGER ) * - CAST ( - SUM ( + 27 ) AS INTEGER ) AS col2 + +g is not defined +``` + + +```sql +SELECT + COUNT ( * ) AS col2, - 72 * - 78 * - - 44 + COUNT ( * ) - CASE - 46 WHEN - 50 THEN NULL WHEN CAST ( ( + 20 ) AS INTEGER ) * - + COUNT ( * ) * 75 + + 2 THEN - 26 ELSE NULL END col2 + +Expected: ["1","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + - 38 + AVG ( ALL + 92 ) + - 64 + - COUNT ( * ) - - COALESCE ( + - 40, - - 22 ) * CAST ( NULL AS INTEGER ) + - 78 * 1 * - 89 * 56, - 56 * + ( CAST ( NULL AS INTEGER ) ) * + 13 * + COUNT ( * ) * + - 67 AS col2 + +Expected: ["NULL","NULL"] but got ["388741","0"] +``` + + +```sql +SELECT ALL 16 + 55 * - 78 + - - CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - ( 90 ) + - COUNT ( * ) + COUNT ( DISTINCT + 84 ), 59 * - CASE - COUNT ( * ) WHEN + 80 + COALESCE ( + 15, + COALESCE ( - + COUNT ( * ), 6 ) + 58 * + COUNT ( * ) * - 77 * 0 * + 46, - 29 ) * - - ( + AVG ( DISTINCT 4 ) ) * - C… + +Expected: ["NULL","NULL"] but got ["-4363","NULL"] +``` + + +```sql +SELECT - 29 / - - COALESCE ( + CAST ( NULL AS INTEGER ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20 + +Expected: ["20"] but got ["NULL"] +``` + + +```sql +SELECT ALL + 63 AS col1, + CASE 54 WHEN + 8 + - 38 THEN + + 25 * + + 46 + + 30 + + 12 ELSE NULL END AS col1 + +Expected: ["63","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + + 13 / - - COUNT ( * ), + CASE WHEN NOT + ( 39 ) BETWEEN 86 + SUM ( ALL 1 ) * + 57 + + 57 - - + 26 AND + + 95 THEN - CASE WHEN 3 < 28 THEN + + ( + 78 ) END ELSE NULL END / - - ( + SUM ( DISTINCT 73 ) ) - - 66 - + + MIN ( ALL 61 ) + - + ( - COUNT ( * ) ) * 43 * - 78 AS col0 + +Cannot read property 'toString' of undefined +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,765 failed +* 82% was OK + +Time: 37327.706ms + +---- ---- ---- ---- ---- ---- ---- +### 402/620 [`./test/random/expr/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_31.test) + +_Mimic sqlite_ + +```sql +SELECT 20 / - - 96 + + + COUNT ( * ) AS col1 + +Expected: ["1"] but got ["1.208"] +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) AS col1 + +Wrong conversion type +``` + + +```sql +SELECT - MIN ( - 37 ) / - 21 / CAST ( NULL AS INTEGER ) - - - 77 + 17 + 57 + + + 22 * ( - - 79 ) AS col1 + +Expected: ["NULL"] but got ["1735"] +``` + + +```sql +SELECT ALL - 45 + - CAST ( - + COUNT ( * ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL + CASE WHEN NOT NULL BETWEEN NULL AND 28 THEN 77 ELSE NULL END * + 55 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - 65 AS col1, CASE 33 WHEN - + 16 * + + 88 + + 9 * - 98 THEN CASE 37 WHEN 53 / COUNT ( * ) THEN 75 WHEN - ( COALESCE ( 30, - COUNT ( * ) * + 94 - 38 ) ) THEN + 40 END WHEN 52 THEN - 46 WHEN - 56 THEN NULL WHEN + 50 THEN NULL ELSE NULL END + 88 col1 + +Expected: ["-65","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 + +Expected: ["67","63"] but got ["67","NULL"] +``` + + +```sql +SELECT ALL 74 + + 51 - - - CAST ( NULL AS INTEGER ) * - 9, - ( - - CAST ( NULL AS INTEGER ) ) AS col1 + +Expected: ["NULL","NULL"] but got ["125","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,808 failed +* 81% was OK + +Time: 85991.384ms + +---- ---- ---- ---- ---- ---- ---- +### 403/620 [`./test/random/expr/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_32.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * - 36 + +Expected: ["NULL"] but got ["36"] +``` + + +```sql +SELECT DISTINCT COUNT ( * ) / - 87 + +Expected: ["0"] but got ["-0.011"] +``` + + +```sql +SELECT CAST ( NULL AS REAL ) + - ( + ( + 89 ) ) AS col2 + +Wrong conversion type +``` + + +```sql +SELECT ALL + CAST ( MAX ( + 20 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT + ( + - ( - CAST ( NULL AS INTEGER ) ) ) AS col2, CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT - CASE WHEN NOT ( NULL ) NOT BETWEEN NULL AND + 44 THEN 5 END + +Cannot read property 'toString' of undefined +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,469 failed +* 85% was OK + +Time: 56826.603ms + +---- ---- ---- ---- ---- ---- ---- +### 404/620 [`./test/random/expr/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_33.test) + +_Mimic sqlite_ + +```sql +SELECT 17 + 76 / - COALESCE ( 21, COUNT ( * ) ) + +Expected: ["14"] but got ["13.381"] +``` + + +```sql +SELECT DISTINCT + 53 + + CAST ( NULL AS INTEGER ) * - 23 AS col0 + +Expected: ["NULL"] but got ["53"] +``` + + +```sql +SELECT + ( CASE + 53 WHEN + - 78 THEN + + 17 END ) / + CAST ( SUM ( - - ( - + CAST ( + - 67 AS INTEGER ) ) ) AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT DISTINCT - 29 / + CASE + + CAST ( + 12 AS REAL ) WHEN + 86 THEN + 42 + - + 23 END * COALESCE ( COUNT ( * ), COUNT ( * ) ) + + 78 AS col1, 17 AS col1 + +Wrong conversion type +``` + + +```sql +SELECT ALL 39 * ( - - 70 ) + + CASE WHEN NOT ( 64 ) BETWEEN + + 96 AND ( 75 ) THEN NULL ELSE - 86 END + 9 * - ( + 17 + 10 ) + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL + 99 / + COALESCE ( - CAST ( NULL AS INTEGER ), - 9 + + + MIN ( DISTINCT + 21 ), - + COUNT ( * ) - COALESCE ( + COALESCE ( - - 19, - COUNT ( * ) ), + 68 ) * + 88 * + 89 ) + +Expected: ["8"] but got ["NULL"] +``` + + +```sql +SELECT ALL - CASE - ( - COALESCE ( + - 90, + CAST ( - 79 AS INTEGER ) ) ) WHEN 59 THEN NULL WHEN + 17 THEN - 42 ELSE NULL END * + 30 + - - COUNT ( * ) - - COUNT ( ALL + 7 ) + + 51 AS col2, 83 + +Expected: ["NULL","83"] but got ["83","NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2 + +Expected: ["NULL","NULL"] but got ["-389416","-389416"] +``` + + +```sql +SELECT 64 + + CASE 84 WHEN + MIN ( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 AS col0, CASE 58 WHEN - 67 + + 84 + + 0 * - 78 THEN + 12 * - ( + - 90 ) END / 91 + + 59 AS col0 + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,852 failed +* 81% was OK + +Time: 106064.231ms + +---- ---- ---- ---- ---- ---- ---- +### 405/620 [`./test/random/expr/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_34.test) + +_Mimic sqlite_ + +```sql +SELECT - + 30 + + - 62 / + 32 AS col1 + +Expected: ["-31"] but got ["-31.938"] +``` + + +```sql +SELECT + - 33 * + CAST ( NULL AS REAL ) * + 0 AS col2 + +Wrong conversion type +``` + + +```sql +SELECT 60 * MAX ( ALL 2 ) + - SUM ( - - CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL"] but got ["120"] +``` + + +```sql +SELECT ALL CAST ( - - COUNT ( DISTINCT + ( + + 50 ) ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT 99 * + 50 * 8 * + - 29 * - 75 AS col1, 55 / CASE + 29 WHEN - 41 THEN 70 + COUNT ( * ) WHEN 48 + - 39 THEN NULL END AS col1 + +Expected: ["86130000","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL 71 + COUNT ( * ) * + - 10 / MAX ( ALL 56 ) * + CASE + CAST ( + COUNT ( * ) AS INTEGER ) WHEN COUNT ( * ) THEN + 67 * + 42 ELSE NULL END + +Expected: ["71"] but got ["NULL"] +``` + + +```sql +SELECT - CASE WHEN NOT 93 BETWEEN NULL AND ( NULL ) THEN - 48 + 93 END / 66 + 32 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL 50 * + CAST ( NULL AS INTEGER ) + - 9 AS col1, + CASE WHEN NOT 18 IS NOT NULL THEN NULL ELSE - - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) END AS col1 + +Expected: ["NULL","NULL"] but got ["0"] +``` + + +```sql +SELECT + 33 + - CAST ( NULL AS INTEGER ), CASE + - 97 WHEN 82 / + 30 THEN - 39 - + 17 + - - 95 + + 0 * - ( + 63 ) END + + + 99 + +Expected: ["NULL","NULL"] but got ["33","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,969 failed +* 80% was OK + +Time: 152457.934ms + +---- ---- ---- ---- ---- ---- ---- +### 406/620 [`./test/random/expr/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_35.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - COALESCE ( - - 65, - 54, - 92 ) / - 6 AS col0 + +Expected: ["10"] but got ["10.833"] +``` + + +```sql +SELECT - CASE + ( 59 ) WHEN - 63 THEN NULL ELSE + + 30 * 54 * 99 * - - 28 - NULLIF ( ( + - 22 ), + 38 ) + - CAST ( NULL AS INTEGER ) + + - 12 + + + COALESCE ( - 22, - + 34 ) * 77 + + COUNT ( * ) END + +Expected: ["NULL"] but got ["-4488957"] +``` + + +```sql +SELECT ALL 1 + - CAST ( + NULLIF ( COUNT ( * ), 98 ) AS INTEGER ) col1 + +g is not defined +``` + + +```sql +SELECT 92 / + CASE + 21 WHEN NULLIF ( - + COUNT ( * ), + 24 / - 19 + + CAST ( NULL AS INTEGER ) + - 75 / COUNT ( * ) ) THEN 78 - 77 - + + 91 + + 39 / 44 WHEN + 90 THEN + + MIN ( DISTINCT + 65 ) END AS col0, CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT + 41 * 79 * + + 79 col2, - CASE - NULLIF ( + - 59, + 93 ) WHEN + + 95 + - COALESCE ( + 41, + 74 + 66 ) THEN - 8 + 55 END col2 + +Expected: ["255881","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) - - 6 AS col2, CASE - 38 WHEN - COUNT ( * ) THEN - 14 END * + 67 + - + 93 + +Expected: ["NULL","NULL"] but got ["6","NULL"] +``` + + +```sql +SELECT + - 41 AS col1, + 62 + + CASE - + MAX ( ALL 0 ) WHEN + 34 THEN - + 51 * + COUNT ( * ) / 48 END * + 61 + 94 + 71 + 27 AS col1 + +Expected: ["-41","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + CASE WHEN NOT + 17 BETWEEN - 51 + + 65 * 83 AND + 17 * NULLIF ( CASE 92 WHEN + 45 * 46 + + 71 THEN 2 WHEN 12 * + 26 THEN NULL ELSE NULL END, - 33 * 23 + ( + NULLIF ( + CASE + NULLIF ( 25, ( + 76 ) ) WHEN - 19 THEN - 49 ELSE - MIN ( + 0 ) + + 38 END, + 79 * 81 + + ( 54 + 56 ) ) + + 62 * 49 … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 60 * + + 59 + COUNT ( * ) + 84 / + CAST ( - SUM ( ALL - + 7 ) AS INTEGER ) AS col0 + +Expected: ["3553"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,902 failed +* 81% was OK + +Time: 101202.854ms + +---- ---- ---- ---- ---- ---- ---- +### 407/620 [`./test/random/expr/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_36.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 19 - + + 82 / + NULLIF ( - - 4, - COUNT ( * ) ) + +Expected: ["-1"] but got ["-1.500"] +``` + + +```sql +SELECT - 89 * + - COUNT ( * ) AS col2, COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + +Expected: ["89","NULL"] but got ["89","0"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 + +Wrong conversion type +``` + + +```sql +SELECT ALL - + 97 AS col2, 48 * - CASE + + 60 WHEN + COUNT ( 93 ) * + 51 * AVG ( 79 ) * + + 6 THEN - + 40 - - - 44 END, - 71 * + CAST ( NULL AS INTEGER ) + - 19 + +Expected: ["-97","NULL","NULL"] but got ["-97","NULL","-19"] +``` + + +```sql +SELECT - CASE WHEN NOT NULL BETWEEN NULL AND 84 THEN + ( - ( 30 ) ) END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT CAST ( + AVG ( - ( - 82 ) ) AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT - CASE - 66 WHEN 88 * + CASE + 2 WHEN + + 43 THEN NULL ELSE + 87 - + 67 END * + COALESCE ( + 67, + COALESCE ( - + 51, + - ( + CAST ( NULL AS INTEGER ) ), + MIN ( 94 ) ) ) + 75 / CASE - + 46 WHEN - 35 THEN + 0 - - 30 WHEN - 80 THEN NULL ELSE NULL END + 28 + + 82 * 56 + - 50 THEN - 50 * + 32 W… + +Expected: ["NULL","-76"] but got ["NULL","-76.005"] +``` + + +```sql +SELECT 41 * + 69 + - + 35 * 5 AS col0, - 93 / - + COALESCE ( + + CAST ( NULL AS INTEGER ), - COUNT ( * ) * + 59 ) - - 54 AS col1 + +Expected: ["2654","53"] but got ["2654","NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,929 failed +* 80% was OK + +Time: 50615.720ms + +---- ---- ---- ---- ---- ---- ---- +### 408/620 [`./test/random/expr/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_37.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) * + 46, 77 col2 + +Expected: ["NULL","77"] but got ["0","77"] +``` + + +```sql +SELECT DISTINCT CAST ( - - NULLIF ( 60, + AVG ( DISTINCT 81 ) ) AS INTEGER ) AS col2 + +g is not defined +``` + + +```sql +SELECT - ( ( CASE + 29 WHEN + + 91 THEN NULL ELSE - 13 / + 72 + 83 + + 38 END ) ) + +Expected: ["-121"] but got ["-120.819"] +``` + + +```sql +SELECT ALL + 21 - 17 * + 13 * - + 86 * - 60 * - CAST ( NULL AS REAL ) - - - 80 AS col0 + +Wrong conversion type +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) - 11, CASE + 26 WHEN - 29 * + + ( + 25 ) + 64 - - 13 * 19 + + COUNT ( * ) THEN 58 ELSE NULL END * - - 65 - - 44 + + + 28 + + + AVG ( - - 97 ) + +Expected: ["NULL","NULL"] but got ["-11","NULL"] +``` + + +```sql +SELECT + NULLIF ( + + NULLIF ( + ( + MAX ( DISTINCT - 0 ) ), + ( CAST ( NULL AS INTEGER ) ) * - - 69 ), ( + 54 ) + - COUNT ( * ) ) - - 88, COALESCE ( - + 65, - + 56 + ( + 55 ) / + + CAST ( + + COALESCE ( 8, COUNT ( * ) - + + 25 ) AS INTEGER ) * 5 + + - 42, 28 + 97 ) + + COUNT ( * ) AS col1 + +Expected: ["88","-64"] but got ["NULL","-64"] +``` + + +```sql +SELECT ALL 37 + - CASE WHEN NOT ( COALESCE ( - 89, 88 ) - + 26 ) BETWEEN 83 AND NULL THEN 99 * - 73 END AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 37 AS col2, 50 / + CASE 9 WHEN 29 THEN + 78 ELSE NULL END col2 + +Expected: ["37","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL 75 / ( + MAX ( - + 2 ) ) * + 55 * 53 AS col0, 56 * + CAST ( NULL AS INTEGER ) * + + CASE + + ( 76 ) WHEN + 94 THEN + COUNT ( * ) + NULLIF ( 22, COUNT ( * ) ) WHEN + COUNT ( 33 ) THEN NULL END / - 6 + +Expected: ["-107855","NULL"] but got ["-109312.500","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,954 failed +* 80% was OK + +Time: 54182.313ms + +---- ---- ---- ---- ---- ---- ---- +### 409/620 [`./test/random/expr/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_38.test) + +_Mimic sqlite_ + +```sql +SELECT - 90 + + ( + 55 ) / + 13 + +Expected: ["-86"] but got ["-85.769"] +``` + + +```sql +SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + +Expected: ["NULL"] but got ["-1"] +``` + + +```sql +SELECT - CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE - CAST ( + + NULLIF ( + + COUNT ( * ), - 78 * 48 + 99 ) AS INTEGER ) END AS col1 + +g is not defined +``` + + +```sql +SELECT DISTINCT - CASE WHEN 48 IN ( - 60, 50, + COALESCE ( 46, - 91 + + 11 ) * - ( + 48 ) ) THEN NULL WHEN NOT COUNT ( 74 ) * 99 BETWEEN ( + 2 ) AND ( - 16 * + 47 ) THEN COUNT ( * ) END * 26 AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT + ( + + SUM ( DISTINCT - CAST ( NULL AS REAL ) ) ) + +Wrong conversion type +``` + + +```sql +SELECT CASE - - 7 WHEN - + 83 THEN - 63 * - - 37 ELSE NULL END * - + 19 * 99 * 40 + + COUNT ( * ), + 34 + - - NULLIF ( - COALESCE ( CAST ( NULL AS INTEGER ), + 85 * 87, - COALESCE ( 71, + COUNT ( * ) ) ), - 56 ) + - 14 * COUNT ( * ) AS col2 + +Expected: ["NULL","-7375"] but got ["NULL","20"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), 45 + ( - + 92 ) * + + CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["0","45"] +``` + + +```sql +SELECT - 87 / - CAST ( + MAX ( DISTINCT + 14 ) AS INTEGER ) + - SUM ( DISTINCT - - 52 ) + + 37 col2 + +Expected: ["-9"] but got ["NULL"] +``` + + +```sql +SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, CASE - 99 WHEN 4 THEN + 91 + + COUNT ( * ) + - ( - + 95 ) * + 61 END AS col2 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT 93 AS col1, CAST ( NULL AS INTEGER ) - 64 + - 60 * - 95 * - 76 * 91 * CASE - + 71 WHEN - 14 * - CAST ( NULL AS INTEGER ) - + 79 THEN + - 15 END AS col1 + +Expected: ["93","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,990 failed +* 80% was OK + +Time: 39461.902ms + +---- ---- ---- ---- ---- ---- ---- +### 410/620 [`./test/random/expr/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_39.test) + +_Mimic sqlite_ + +```sql +SELECT - SUM ( ALL - + 63 ) / - AVG ( ALL - 37 ) - CAST ( NULL AS REAL ) * - + 93 / + + 78 * - 73 - - 6 * - 69 + + - 77 * + - 62 col2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + 8 / SUM ( ALL + 69 ) * + COUNT ( * ) * 89 - - 76 - - + COUNT ( - ( - + 20 ) ) * - - MAX ( ALL 24 ) * + COUNT ( * ) AS col2 + +Expected: ["100"] but got ["110.319"] +``` + + +```sql +SELECT ALL NULLIF ( - - CAST ( NULL AS INTEGER ), + 11 ) * - CAST ( NULL AS INTEGER ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL 59 AS col2, - ( CASE + SUM ( ALL + + 13 ) WHEN + + COUNT ( * ) / + 3 THEN - 47 * 36 * - 70 * AVG ( ALL ( - 61 ) ) * 77 WHEN + 33 + + CAST ( NULL AS INTEGER ) + - 87 + - COUNT ( * ) * - - 86 THEN NULL END ) + 78 * CASE 2 WHEN 84 THEN - CAST ( + 34 AS INTEGER ) * + 81 END * COUNT ( * ) AS … + +Expected: ["59","NULL"] but got ["NULL"] +``` + + +```sql +SELECT CASE WHEN - 35 BETWEEN ( + - 7 * - - 35 + 53 + - ( COUNT ( * ) ) * 44 * + 47 ) AND ( NULL ) THEN - 43 WHEN NOT ( + 81 ) NOT IN ( ( + 19 ) ) THEN NULL END + - 96 * - 14 AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - ( + CAST ( + - AVG ( ALL - 12 ) AS INTEGER ) ) AS col0 + +g is not defined +``` + + +```sql +SELECT - 81 / + 25 + CASE 93 WHEN 97 * - 64 * + 59 THEN + - 40 * - 18 WHEN + 90 THEN NULL ELSE NULL END * + 10 * + 50, 30 - + MIN ( + CAST ( NULL AS INTEGER ) ) + + 43 * - CAST ( NULL AS INTEGER ) * + - 45 / - 4 + - 91 * - - 25 AS col0 + +Expected: ["NULL","NULL"] but got ["NULL","-2245"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) / - + 52, - CAST ( NULL AS INTEGER ) * + 85 * - + 39 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,993 failed +* 80% was OK + +Time: 74188.066ms + +---- ---- ---- ---- ---- ---- ---- +### 411/620 [`./test/random/expr/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT + ( - ( - 91 ) ) / - 94 * + - 88 AS col1 + +Expected: ["0"] but got ["0.011"] +``` + + +```sql +SELECT + - 87 / - - 47 + + 6 + - CAST ( + COUNT ( * ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT + + 43 + - CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL"] but got ["43"] +``` + + +```sql +SELECT DISTINCT COALESCE ( + 51, + COUNT ( * ) / CASE WHEN NOT NULL NOT IN ( 95, 16, - CASE - 72 WHEN - 83 THEN - 70 * + + CAST ( NULL AS REAL ) / + + 81 WHEN CAST ( + COUNT ( * ) AS REAL ) THEN + - 13 ELSE NULL END * + 74 * + COUNT ( * ) ) THEN 69 END + 27 ) AS col0 + +Wrong conversion type +``` + + +```sql +SELECT - CASE WHEN NOT + CASE + AVG ( ALL + + 26 ) WHEN ( + 47 ) + CAST ( + 26 AS INTEGER ) - - COUNT ( * ) * - COALESCE ( - - 44, + ( 80 ) ) + + + 47 THEN - 2 ELSE NULL END BETWEEN NULL AND - COUNT ( * ) THEN + + 25 WHEN 92 + + + COUNT ( * ) <= ( + ( + 40 ) + 67 ) THEN NULL END * - 82 + 89 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ), - 10 + - + SUM ( DISTINCT + 37 ) + - CAST ( NULL AS INTEGER ) + 89 * 62 AS col0 + +Expected: ["NULL","NULL"] but got ["0","5471"] +``` + + +```sql +SELECT ALL 38 * - COALESCE ( 52, - + 49 / - 55 * + + 18, NULLIF ( + + 67, - + 39 ) ) / ( + COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) AS col0 + +Expected: ["-1976"] but got ["NULL"] +``` + + +```sql +SELECT ALL - 55 AS col1, - MAX ( ALL - 3 ) / MIN ( ALL + 53 ) * + CASE - - 47 WHEN - + 13 THEN AVG ( ALL - NULLIF ( 1, + + NULLIF ( - 69, 37 + 95 + - 77 ) ) ) ELSE NULL END * - 92 - 65 + - 51 * - 61 * 37 - COUNT ( * ) col1 + +Expected: ["-55","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col1, CASE + COUNT ( * ) WHEN - - 5 THEN + - 71 * + 32 / - 55 END / + 90 * - - 55 * - + NULLIF ( + - SUM ( ALL + 39 ), - 42 ) + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,064 failed +* 79% was OK + +Time: 46793.566ms + +---- ---- ---- ---- ---- ---- ---- +### 412/620 [`./test/random/expr/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_40.test) + +_Mimic sqlite_ + +```sql +SELECT 28 / + 41 + + ( 87 ) * 82 + +Expected: ["7134"] but got ["7134.683"] +``` + + +```sql +SELECT 65 * CAST ( NULL AS INTEGER ) + 92 + +Expected: ["NULL"] but got ["92"] +``` + + +```sql +SELECT ALL CAST ( SUM ( ALL + 48 ) AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT ALL - + 57 - + + 39, 87 * - 24 / CAST ( NULL AS REAL ) col0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 28 + - + CASE - 83 WHEN COUNT ( * ) * NULLIF ( + NULLIF ( + 73, - 84 * - 36 ), - + 18 ) + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2, + COUNT ( * ) * + AVG ( ALL + 6 ) * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - 50 AS col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL NULLIF ( 5, + COUNT ( * ) - + 46 ) * ( - 36 ) * - 88 + + CASE + + ( + 96 ) WHEN - 58 * + NULLIF ( - 43, CASE WHEN NULL BETWEEN ( NULL ) AND 53 THEN NULLIF ( + + AVG ( ALL 5 ), ( CASE - - 39 WHEN + 93 THEN NULL WHEN + CAST ( + ( + - 0 ) AS INTEGER ) THEN - COUNT ( * ) * - - 81 * - 7 ELSE … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - 57 * - + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) AS col1 + +Expected: ["57"] but got ["NULL"] +``` + + +```sql +SELECT ALL - COUNT ( * ) / + + 95, - 2 + - + 35 + CASE 96 WHEN - 97 * + 20 THEN 50 * 23 WHEN NULLIF ( 52, 44 - COUNT ( * ) ) THEN NULL END col2 + +Expected: ["0","NULL"] but got ["-0.011","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,984 failed +* 80% was OK + +Time: 89513.788ms + +---- ---- ---- ---- ---- ---- ---- +### 413/620 [`./test/random/expr/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_41.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + MIN ( DISTINCT - 72 ) / 63 + +Expected: ["-1"] but got ["-1.143"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col1, - 77 AS col0 + +Expected: ["NULL","-77"] but got ["0","-77"] +``` + + +```sql +SELECT ALL CAST ( + - 50 AS REAL ) * - 42 + + CAST ( NULL AS INTEGER ) AS col1, 97 AS col0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - 39 / - CAST ( - COALESCE ( + 34, + - 63 * 36 * + 23 - - COUNT ( * ), - - 93 * + 87 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT CASE + 81 WHEN + - 18 * + - 63 / 96 * - ( 38 ) + + NULLIF ( - 79, 55 + - COUNT ( * ) * + - COUNT ( * ) ) THEN 34 ELSE NULL END AS col2, 30 / - 87 * 10 / 50 * - - 7 + +Expected: ["NULL","0"] but got ["NULL","-0.246"] +``` + + +```sql +SELECT DISTINCT - 43 / + COALESCE ( + - CAST ( NULL AS INTEGER ), + - 55 * + ( + COUNT ( * ) ) * + + 25 ) * - MIN ( DISTINCT - 98 ) AS col2 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT ALL AVG ( ALL 43 ) * - CASE WHEN NULL <> ( 38 ) THEN - SUM ( ALL 88 ) WHEN - 48 BETWEEN ( 35 ) AND - CAST ( NULL AS INTEGER ) * + 92 THEN 13 - + 75 ELSE NULL END + - 4 * 55 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 96, + ( - - AVG ( - CAST ( NULL AS INTEGER ) ) ) + CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT + CASE - - 60 WHEN - AVG ( - - 80 ) THEN + 52 END AS col1, ( - + CAST ( NULL AS INTEGER ) ) AS col2 + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT ALL - ( + 50 ) AS col2, - 47 * CASE + 55 WHEN + + 18 + + - NULLIF ( + 84, 45 ) + - - NULLIF ( 57, + 23 + + CAST ( NULL AS INTEGER ) ) + - 85 + + CAST ( 83 AS INTEGER ) THEN - - 6 + - 43 END col2 + +Expected: ["-50","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,945 failed +* 80% was OK + +Time: 52765.528ms + +---- ---- ---- ---- ---- ---- ---- +### 414/620 [`./test/random/expr/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_42.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + + CAST ( NULL AS INTEGER ) * + - SUM ( - COALESCE ( - 81, 55 + 5 + 53 ) ) + + + 56 AS col1 + +Expected: ["NULL"] but got ["56"] +``` + + +```sql +SELECT DISTINCT COUNT ( * ) / - 34 AS col0 + +Expected: ["0"] but got ["-0.029"] +``` + + +```sql +SELECT CAST ( NULL AS REAL ) * + 42 + +Wrong conversion type +``` + + +```sql +SELECT 33 * - COUNT ( * ) / + + CAST ( - COUNT ( * ) AS INTEGER ) + ( + + 1 ) AS col2 + +Expected: ["34"] but got ["NULL"] +``` + + +```sql +SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + + 43 + - 96 AS col1 + +g is not defined +``` + + +```sql +SELECT 13 / + 6, 20 / + + 81 + - 24 + + + 77 + - COUNT ( * ) * - - CASE + MAX ( DISTINCT 74 ) WHEN - ( AVG ( + + 3 ) ) THEN + 68 * + + 99 / + - MAX ( DISTINCT 65 ) - - 29 WHEN 49 + + COUNT ( * ) THEN 4 ELSE NULL END / + 62 + + NULLIF ( - 3, + 27 ) + 37 * 87 AS col0 + +Expected: ["2","NULL"] but got ["2.167","NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) col0, + 80 + + NULLIF ( 89, 99 ) + CASE - - 87 WHEN + - NULLIF ( - + 14, - 17 ) * + 39 / + 67 - + 42 * + + 36 - - 24 * 63 THEN + 55 + + + COUNT ( * ) / - COUNT ( * ) + - ( + - 23 ) * 45 + - CAST ( 86 AS REAL ) END AS col1 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT - CASE WHEN NOT - 60 BETWEEN + COUNT ( * ) AND + 47 + + 72 THEN - 52 END AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - 11 * - 65 * 55 col0, CAST ( NULL AS INTEGER ) * CASE 21 WHEN - + 95 / + + 21 THEN NULL WHEN 60 THEN 3 - + + 42 - 73 - + 64 END AS col0 + +Expected: ["39325","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL - 74 / 70 + - 96 + +Expected: ["-97"] but got ["-97.057"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,939 failed +* 80% was OK + +Time: 60249.642ms + +---- ---- ---- ---- ---- ---- ---- +### 415/620 [`./test/random/expr/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_43.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + 13 / + 96 AS col0, CAST ( NULL AS INTEGER ) + +Expected: ["0","NULL"] but got ["0.135","0"] +``` + + +```sql +SELECT DISTINCT - 97 / - - ( + 74 ) + +Expected: ["-1"] but got ["-1.311"] +``` + + +```sql +SELECT - - CAST ( SUM ( - 21 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2 + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT - + 16 / COALESCE ( CAST ( NULL AS INTEGER ), + 89, 13 ) AS col1 + +Expected: ["0"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,588 failed +* 84% was OK + +Time: 34345.834ms + +---- ---- ---- ---- ---- ---- ---- +### 416/620 [`./test/random/expr/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_44.test) + +_Mimic sqlite_ + +```sql +SELECT + 8 - + COUNT ( ( - ( CAST ( 44 AS REAL ) ) ) ) + +Wrong conversion type +``` + + +```sql +SELECT 30 + - - 96 - - 4 + - + 77 + + 67 * + CAST ( NULL AS INTEGER ) / ( - + 58 ) + +Expected: ["NULL"] but got ["53"] +``` + + +```sql +SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 + +g is not defined +``` + + +```sql +SELECT DISTINCT 64 + 63 / + 97 AS col1 + +Expected: ["64"] but got ["64.649"] +``` + + +```sql +SELECT - 33 AS col0, + 29 * + + CASE - - ( - - 93 ) WHEN + 65 THEN NULL WHEN + 84 / + 29 * - 79 + 84 + + 76 + + ( - + 19 ) * - 36 + - ( + + 8 ) * - 30 / ( - 59 ) THEN 2 WHEN - 53 - 86 THEN NULL WHEN - 1 THEN + 98 * MAX ( 59 * 89 ) END * 10 AS col0 + +Expected: ["-33","NULL"] but got ["NULL"] +``` + + +```sql +SELECT - CASE WHEN ( NULL ) BETWEEN ( + 99 ) AND - 35 + 46 THEN NULL ELSE + ( + 59 ) + 89 / - 89 END AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - 94 * 31 / + - CASE WHEN NULL <> 19 THEN NULL ELSE + 38 END AS col2 + +Expected: ["76"] but got ["NULL"] +``` + + +```sql +SELECT - 16 * + CASE COUNT ( DISTINCT + 35 ) WHEN - - 4 THEN - 29 END / + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + - + 6 AS col1, 3 - - + CAST ( NULL AS INTEGER ) / NULLIF ( - 8, - 37 + - 87 ) AS col2 + +Expected: ["NULL","NULL"] but got ["-6","3"] +``` + + +```sql +SELECT ALL 73 col1, + 95 + - + CASE + - 80 WHEN + + ( + 13 ) + + 31 + 60 * - + 25 THEN 23 + + 60 ELSE NULL END AS col1 + +Expected: ["73","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,974 failed +* 80% was OK + +Time: 48979.929ms + +---- ---- ---- ---- ---- ---- ---- +### 417/620 [`./test/random/expr/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_45.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + 38 / + - 51 + + 86 * 5 + - 74 + + 84 / + 91 + COALESCE ( - + 81, 83 * - 37, + COUNT ( * ) ) * 90 col0 + +Expected: ["-6934"] but got ["-6933.822"] +``` + + +```sql +SELECT - + 8 - - CAST ( NULL AS INTEGER ) AS col1 + +Expected: ["NULL"] but got ["-8"] +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) * SUM ( - 35 ) AS col2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - 26 + - COALESCE ( + 93, + CAST ( + + COUNT ( * ) AS INTEGER ) ) + - 30 * - 52 - + 41 AS col1 + +g is not defined +``` + + +```sql +SELECT + 99 * + 51 + + COUNT ( * ) + + 59 * + - 16 + 67 + + + CASE WHEN NULL > 89 THEN NULL WHEN NULL BETWEEN - COUNT ( * ) AND - 29 THEN + ( - 1 ) * + 64 / ( - + ( - - 27 ) ) * - - 16 - - - AVG ( DISTINCT + - 79 ) + 52 WHEN NOT 5 <= COUNT ( * ) THEN NULL END * + 75 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 26 * + CASE + + CAST ( NULL AS INTEGER ) WHEN + + 31 THEN NULL WHEN + 90 * 68 - + 47 * - - 42 THEN - ( - COUNT ( * ) ) ELSE NULL END col1, - 95 / + CAST ( + 67 AS INTEGER ) + +Expected: ["NULL","-1"] but got ["NULL","-1.418"] +``` + + +```sql +SELECT CASE - 20 WHEN 67 THEN - 76 / + 29 + - - COUNT ( DISTINCT - - 53 ) END * + COUNT ( * ), 36 + + 28 + 50 * + 98 + 99 + + + 34 + ( 13 ) + + CAST ( + NULLIF ( - - COUNT ( * ), - 12 + + 49 / 57 * - 87 ) AS INTEGER ) * - 6 * CAST ( NULL AS INTEGER ) * 97 + +Expected: ["NULL","NULL"] but got ["NULL","5110"] +``` + + +```sql +SELECT 72 * CASE WHEN NOT NULL > ( NULL ) THEN NULL ELSE - 53 END AS col0 + +Expected: ["-3816"] but got ["NULL"] +``` + + +```sql +SELECT ALL 87 / + - 20 AS col2, + CASE - 78 WHEN 72 THEN - 1 + + - 9 END + 96 AS col2 + +Expected: ["-4","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT 45 + - + 1 * + - MAX ( ALL + ( 8 ) ) * - - 88 + + MAX ( ALL + 64 ) - - CAST ( NULL AS INTEGER ) * 18 + + - 72, 5 * - + 70 + 4 + 7 * - + CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["741","-346"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,019 failed +* 79% was OK + +Time: 54476.813ms + +---- ---- ---- ---- ---- ---- ---- +### 418/620 [`./test/random/expr/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_46.test) + +_Mimic sqlite_ + +```sql +SELECT + - 40 + - CASE WHEN 36 + + 65 * + 55 IN ( 32 * SUM ( 13 ) + 61 / 8 ) THEN 95 WHEN NOT + CASE 19 WHEN 90 * + ( - 27 ) + 93 * + 2 THEN NULL WHEN + 32 * - 81 THEN 64 WHEN + ( CAST ( + AVG ( + 62 ) AS INTEGER ) ) * + 12 THEN NULL END NOT IN ( - 46 ) THEN NULL ELSE NULL END AS col0 + +g is not defined +``` + + +```sql +SELECT CAST ( - 35 AS INTEGER ) / 39 - 86 * - 8 AS col2 + +Expected: ["688"] but got ["687.103"] +``` + + +```sql +SELECT COALESCE ( MAX ( CAST ( NULL AS INTEGER ) ), 83 - + CASE + 60 WHEN + 43 - 67 THEN AVG ( 84 ) ELSE NULL END * COALESCE ( 9, 17 * - 72, + 99 + 88 ) ) * - 6 + + NULLIF ( + 95 + - 19 * COUNT ( * ), 9 ) + +Expected: ["NULL"] but got ["76"] +``` + + +```sql +SELECT ALL + CASE WHEN NOT ( + COUNT ( * ) ) IN ( 77 - 5 ) THEN - 38 * + COUNT ( * ) END + MIN ( - 78 ) * ( + 7 ) + +Expected: ["-584"] but got ["NULL"] +``` + + +```sql +SELECT ALL 39 + - + CAST ( NULL AS REAL ) + + + 6 AS col2 + +Wrong conversion type +``` + + +```sql +SELECT ALL + 0 * - - 3 AS col0, - ( - ( - + 99 ) ) / - 17 * + CASE - 9 WHEN COUNT ( * ) THEN NULL WHEN 94 THEN ( ( COUNT ( * ) ) ) + CAST ( NULL AS INTEGER ) * + 71 END AS col0 + +Expected: ["0","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + 26 * CAST ( NULL AS INTEGER ) * 68, CASE - + CAST ( NULL AS INTEGER ) WHEN 46 THEN + 23 END + - 71 AS col0 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT + - 25 + - NULLIF ( - 56, + + CASE WHEN - CASE - + CAST ( - + 28 AS INTEGER ) WHEN - 17 * + MAX ( ALL + - 68 ) * 9 * - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - CAST ( + 54 AS INTEGER ) - + 95 ELSE NULL END BETWEEN ( - - 86 * + ( - 40 ) - 6 ) AND + 59 * + ( 29 ) THEN - 30 / +… + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - 9 + - CAST ( NULL AS INTEGER ) AS col2, + MAX ( + CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL","NULL"] but got ["-9","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,945 failed +* 80% was OK + +Time: 48653.537ms + +---- ---- ---- ---- ---- ---- ---- +### 419/620 [`./test/random/expr/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_47.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + + 39 * + - CASE - 38 WHEN 61 + + 41 THEN + 43 WHEN + - 37 * 99 + + CAST ( NULL AS REAL ) THEN - 59 WHEN + + ( + COUNT ( * ) ) THEN + 19 END + +Wrong conversion type +``` + + +```sql +SELECT 65 / + 98 + +Expected: ["0"] but got ["0.663"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ), 58 AS col0 + +Expected: ["NULL","58"] but got ["0","58"] +``` + + +```sql +SELECT ALL CAST ( ( NULLIF ( + CAST ( - 93 AS INTEGER ), + + CAST ( + 77 AS INTEGER ) * - 84 - + - 67 + + - 56 + + 78 * + + ( - 20 ) * CASE + ( + 10 ) WHEN + COUNT ( * ) THEN COUNT ( * ) + - 50 * + + MAX ( ALL + 76 ) WHEN 18 THEN NULL WHEN - COUNT ( * ) THEN NULL END ) ) AS INTEGER ) + - - 67 AS co… + +g is not defined +``` + + +```sql +SELECT - - CASE WHEN NOT 40 NOT BETWEEN - 96 * AVG ( - 74 ) AND NULL THEN - 47 ELSE - 11 END * - 12 + - 1 AS col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT - CASE + 61 WHEN - 98 + - 48 + ( 36 ) + - ( + 19 ) / + + 63 + + CAST ( - + 52 AS INTEGER ) + + 54 - - 39 THEN NULL WHEN + MAX ( DISTINCT 58 ) THEN NULL WHEN - + 90 * - + 69 THEN 17 END AS col2, 48 + +Expected: ["NULL","48"] but got ["48","NULL"] +``` + + +```sql +SELECT ALL ( - - CASE ( - SUM ( DISTINCT + 91 ) ) WHEN + 92 + 3 THEN - COUNT ( * ) END ) * + 50 AS col2, CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT - 78 * 91 / - ( CAST ( COUNT ( * ) AS INTEGER ) ) * COUNT ( + - 21 ) + + - ( + COUNT ( * ) ) + +Expected: ["7097"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT 32 + - 87 AS col1, CASE + - 60 WHEN + + 53 THEN + 17 END * CAST ( NULL AS INTEGER ) * 87 / 71 AS col1 + +Expected: ["-55","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,925 failed +* 80% was OK + +Time: 45479.603ms + +---- ---- ---- ---- ---- ---- ---- +### 420/620 [`./test/random/expr/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_48.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + CAST ( + 50 AS INTEGER ) / - SUM ( 6 ) + +Expected: ["-8"] but got ["-8.333"] +``` + + +```sql +SELECT + NULLIF ( - 90, + CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + ( ( CAST ( NULL AS INTEGER ) ) ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + + 35 col2, COUNT ( * ) / + 32 * + + CAST ( - + MAX ( + - 81 ) AS INTEGER ) * + 9 + - + 97 - 53 * ( 51 ) * - CASE - + 55 WHEN + CAST ( NULL AS INTEGER ) THEN - - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ELSE COUNT ( * ) * COALESCE ( + 72, - - 40 * + + 34 * - + 81 * + 24 * - COUNT ( * )… + +Expected: ["35","194519"] but got ["35","NULL"] +``` + + +```sql +SELECT DISTINCT - 68 / 98 + + 63 - - - 51 + CAST ( COUNT ( * ) AS REAL ) * 77 * + - CAST ( NULL AS INTEGER ) col1, + COALESCE ( 20, - 26 + - ( + - COALESCE ( 27, + ( - 92 ) ) ) ) col0 + +g is not defined +``` + + +```sql +SELECT + 19 / - + NULLIF ( - 50, - COUNT ( DISTINCT - - 34 ) * - CASE + 37 WHEN - 49 + - 74 THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 43 + - 59 + - ( - 38 ) * 1 + - COUNT ( * ) THEN - 64 / 77 + + - 18 ELSE NULL END + 5 ) + - MIN ( DISTINCT ( + CASE - 3 WHEN + ( + 98 ) THEN + 86 WHEN - 96 THEN NUL… + +Expected: ["NULL","0"] but got ["NULL","0.250"] +``` + + +```sql +SELECT - - 94 * + CAST ( NULL AS INTEGER ) + + - ( + + SUM ( DISTINCT - 16 ) ) + - 52 * 60 / + + NULLIF ( - 15, 5 ) AS col0, - CASE 51 WHEN + 12 / + COUNT ( * ) * CAST ( - - COUNT ( * ) AS INTEGER ) * 13 THEN NULL WHEN 63 * - 94 THEN 55 ELSE NULL END / - 84 + - + CASE + 31 WHEN 49 + 40 * 92 THEN - … + +Expected: ["NULL","NULL"] but got ["224","NULL"] +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * ( 47 ) AS col2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT 24 + CASE WHEN + NULLIF ( 12, + + ( - - 92 ) + - 44 + - CASE 32 WHEN + + 38 THEN + 95 * + - 30 + - 24 ELSE + CASE + ( - 99 ) WHEN 80 THEN + 32 END * 38 + + CASE + 52 - 31 * 58 WHEN 49 THEN + 92 + 4 END * 42 END ) BETWEEN ( NULL ) AND ( 20 * 3 ) THEN NULL WHEN + 15 IN ( 55 ) THEN NUL… + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ( + 25 ) AS col2, 63 * - + 82 * CASE + 72 WHEN 89 THEN - + 53 + - 79 END * + 95 AS col2 + +Expected: ["25","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL 32 / + - 60 * + - 23 + - + 70 / 40 + - 26 AS col0 + +Expected: ["-27"] but got ["-27.727"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,038 failed +* 79% was OK + +Time: 28052.604ms + +---- ---- ---- ---- ---- ---- ---- +### 421/620 [`./test/random/expr/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_49.test) + +_Mimic sqlite_ + +```sql +SELECT 60 * - 67 + + COUNT ( * ) AS col2, 95 + +Expected: ["-4019","95"] but got ["95","-4019"] +``` + + +```sql +SELECT CASE 26 WHEN + COUNT ( DISTINCT + + CAST ( NULL AS REAL ) ) * - 56 * 64 + - 16 + - - ( - 23 ) THEN - ( - 29 ) * - 2 + + 16 * + + 84 * + + 93 / + CASE 43 WHEN COUNT ( * ) * + CASE - COUNT ( * ) WHEN - 48 * + + COUNT ( + 53 ) THEN NULL WHEN - 30 THEN MIN ( - 82 ) END - ( 33 ) THEN 4 WHEN - + 3… + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT 29 + - - 43 + - 41 * - ( + 8 ) * CAST ( NULL AS INTEGER ) * + 5 AS col2 + +Expected: ["NULL"] but got ["72"] +``` + + +```sql +SELECT 21 + - COUNT ( * ) - 76 + - - ( + + 27 ) + 9 * CASE WHEN - CAST ( NULL AS INTEGER ) BETWEEN + 98 + + + 68 AND + 3 * + COUNT ( * ) + - 64 * - 39 * - 32 / + COUNT ( * ) THEN NULL ELSE 62 / 10 END + ( - 60 ) + + - 50 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 1 AS col0, CASE - + 46 WHEN - - 81 THEN 83 * - + 51 / + 61 * - - 91 + 93 * - COUNT ( * ) * 89 END AS col0 + +Expected: ["1","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + + 94, CAST ( - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * + + 20 + 53, CAST ( NULL AS INTEGER ) col0 + +Expected: ["NULL","NULL"] but got ["53","0"] +``` + + +```sql +SELECT ALL - + CASE WHEN NOT - 74 IN ( + COALESCE ( + 50, - 13, 76 * + - 63 * 21 ) * + 78 * - 21 + + ( + 15 ), 64, + - 81 ) THEN - 25 + - + 10 END * 54 + + COUNT ( DISTINCT 56 ) * + COUNT ( * ) * - - 29 * - + 56 + +Expected: ["266"] but got ["NULL"] +``` + + +```sql +SELECT - 26 AS col0, + 71 * + CASE - 50 WHEN - 16 THEN - ( 15 ) WHEN + - 52 + 43 THEN NULL END * - - 52 + - 49 AS col0 + +Expected: ["-26","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col1, + CASE 26 WHEN - - 43 THEN - 78 * - MIN ( DISTINCT - + 25 ) * NULLIF ( + 18, + 38 * + ( + 19 ) * + + 75 ) * 34 * 11 + SUM ( - 49 ) * - + 3 * + NULLIF ( + AVG ( ALL 80 ), - 71 ) END + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,006 failed +* 79% was OK + +Time: 31998.523ms + +---- ---- ---- ---- ---- ---- ---- +### 422/620 [`./test/random/expr/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT 89 * + CASE 39 WHEN + - 14 THEN NULL ELSE - + ( - COUNT ( * ) ) - - - 28 END * - - CAST ( - 86 AS INTEGER ) - - CASE + AVG ( + 89 ) WHEN - CAST ( - 27 AS REAL ) THEN - 76 + + CAST ( NULL AS INTEGER ) + + - 31 + 22 * - 82 * + + COUNT ( - + ( + - ( 29 ) ) ) ELSE - 0 END + 94 + +Wrong conversion type +``` + + +```sql +SELECT - 79 / 44 + + + 90 col1 + +Expected: ["89"] but got ["88.205"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 9 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL CASE + - 88 WHEN - COALESCE ( - CAST ( - 37 AS INTEGER ), + 62 ) - + COUNT ( * ) / 56 THEN - 58 WHEN 41 THEN NULL END, 82 / 81 AS col0 + +Expected: ["NULL","1"] but got ["NULL","1.012"] +``` + + +```sql +SELECT ALL - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT + CAST ( - + CASE WHEN NOT 4 NOT BETWEEN COUNT ( * ) AND NULL THEN + 22 END AS REAL ) * 73 * - 59 / - MAX ( DISTINCT - 71 ) + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT + MAX ( + - ( + 1 ) ) * 34 + + - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( DISTINCT - 24 ) / 41 + 68 * - CASE + 74 + - 34 * 20 WHEN 67 THEN NULL WHEN MIN ( + 97 ) + CAST ( - 84 - + 15 AS INTEGER ) * 27 THEN 56 ELSE NULL END + +Expected: ["NULL","NULL"] but got ["-34","NULL"] +``` + + +```sql +SELECT ( - 91 ) AS col0, - NULLIF ( + COUNT ( * ), ( + 67 ) * - CASE ( + COUNT ( * ) ) WHEN CASE + 85 WHEN + - 28 * - 66 THEN NULL WHEN + 94 THEN + 62 END + - 95 + CASE + + COALESCE ( - COALESCE ( 49, - ( - + ( + 72 ) ) / - + SUM ( 25 ), + 65, 15 * + NULLIF ( + - 36, + NULLIF ( NULLIF ( - COALESCE … + +Expected: ["-91","-1"] but got ["-91","NULL"] +``` + + +```sql +SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), ( - 87 ) / + COUNT ( * ) * - 62 * - 63 / + + 33 ) * 38, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + 52, + CAST ( NULL AS INTEGER ) + - NULLIF ( SUM ( ALL - - 73 ), + 53 - + 93 * - 72 + NULLIF ( - 49, + CAST ( NULL AS INTEGER ) ) + 30 ) col2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","-73"] +``` + + +```sql +SELECT CASE ( - CASE - + ( + 60 ) WHEN - COALESCE ( - 43, + 42 ) + - - 23 THEN + - COUNT ( * ) ELSE - 44 * + 52 END ) WHEN - 44 THEN - 73 END + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * + 82 AS col0 + +Expected: ["NULL","NULL"] but got ["0"] +``` + + +```sql +SELECT ALL + 65 AS col1, CASE + + 3 WHEN + + 8 THEN 69 ELSE NULL END col1 + +Expected: ["65","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,085 failed +* 79% was OK + +Time: 63811.123ms + +---- ---- ---- ---- ---- ---- ---- +### 423/620 [`./test/random/expr/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_50.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 82 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - 64 / - + 11 + +Expected: ["5"] but got ["5.818"] +``` + + +```sql +SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT CASE WHEN NOT + 12 BETWEEN + ( - + 75 ) * - ( - + 78 ) + - - 40 + 19 AND CAST ( NULL AS REAL ) THEN + - 12 END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT 9 + + CASE + + NULLIF ( - 93, + 67 ) WHEN 55 * + CASE + CAST ( NULL AS INTEGER ) WHEN - - 31 THEN NULL WHEN + 76 THEN NULL ELSE + 83 END + - - 11 + + + 56 THEN NULL WHEN ( + - ( - 89 ) ) + + ( + 43 ) + + 16 + + + CAST ( NULL AS REAL ) * + 31 THEN NULL WHEN + COALESCE ( + COUNT ( * )… + +Wrong conversion type +``` + + +```sql +SELECT ALL - 53 / 66 * 44 * - - CAST ( NULL AS INTEGER ) AS col0, - 40 * + CASE + 66 WHEN - 97 THEN NULL WHEN - 65 + COUNT ( * ) * COUNT ( * ) * + 43 - 49 THEN + - 41 END + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT DISTINCT - - 98 AS col0, + ( + CASE 65 WHEN - COUNT ( * ) THEN NULL WHEN - - 96 THEN + 10 * + 19 * 67 + - ( - 60 ) * 23 + 78 END ) * - + 33 + - 34 AS col0 + +Expected: ["98","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * - - 17 * - 99 * 16, 29 * - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT + 22 / - CAST ( - 38 AS INTEGER ) * - 78 + + 20 - - CASE - 24 WHEN - - CASE - + COALESCE ( COUNT ( * ), - 78 + - 34 * + 44, SUM ( + - 92 ) ) WHEN + 79 + + CAST ( - CAST ( - 95 AS INTEGER ) AS INTEGER ) + + CASE - 39 WHEN - SUM ( ALL + 64 ) THEN 29 END * AVG ( ALL + 92 ) THEN NULL WHEN + - 65… + +Expected: ["-657"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,998 failed +* 80% was OK + +Time: 62774.177ms + +---- ---- ---- ---- ---- ---- ---- +### 424/620 [`./test/random/expr/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_51.test) + +_Mimic sqlite_ + +```sql +SELECT 64 + CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT ALL + - 73 + - CAST ( NULL AS INTEGER ) + 19 + +Expected: ["NULL"] but got ["-54"] +``` + + +```sql +SELECT ALL + - 57 / + + 27 AS col1 + +Expected: ["-2"] but got ["-2.111"] +``` + + +```sql +SELECT ALL 21 + CAST ( NULL AS INTEGER ) AS col2, CASE 87 WHEN + 31 THEN - 8 WHEN - 3 THEN - 58 WHEN - - 59 THEN NULL END + +Expected: ["NULL","NULL"] but got ["21","NULL"] +``` + + +```sql +SELECT ALL - ( CASE WHEN + CAST ( 98 AS INTEGER ) BETWEEN + CAST ( NULL AS INTEGER ) * + ( 57 ) + + CAST ( - SUM ( + 89 ) AS REAL ) AND NULL THEN CASE COALESCE ( ( 71 ), + - COALESCE ( 11, + - CAST ( NULL AS INTEGER ), CASE 16 WHEN 70 THEN + 72 ELSE - 48 * + 52 END + 89 ) ) WHEN + + 23 THEN - + 30 … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + COUNT ( * ) AS col2, - 3 + - + ( - - 70 ) / COALESCE ( + COUNT ( * ), + - 11 * 97 ) + - + CASE + CASE COUNT ( * ) WHEN - + 38 * + - 26 THEN - + 14 * ( + 56 ) ELSE NULL END WHEN - CAST ( + 44 AS INTEGER ) + - - 28 + + - 51 * - 9 THEN ( - 73 ) + 14 END AS col2 + +Expected: ["1","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT CAST ( + MIN ( DISTINCT 28 ) AS INTEGER ) * NULLIF ( + + 2, + ( CASE + ( + 33 ) WHEN + + 52 / - + 90 THEN + + 44 END ) ) / + + 41 AS col2 + +g is not defined +``` + + +```sql +SELECT - COUNT ( * ) AS col0, 80 / - NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), - 21 / COUNT ( * ) + - 98 ) + +Expected: ["-1","-80"] but got ["-1","NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col0, + 76 * CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,968 failed +* 80% was OK + +Time: 85602.335ms + +---- ---- ---- ---- ---- ---- ---- +### 425/620 [`./test/random/expr/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_52.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - + 50 + 53 AS col0, ( - CAST ( - - COUNT ( * ) AS INTEGER ) ) * + 15 AS col2 + +g is not defined +``` + + +```sql +SELECT ALL 98 / + + 41 AS col2 + +Expected: ["2"] but got ["2.390"] +``` + + +```sql +SELECT + - 35 + - + CAST ( NULL AS INTEGER ) + +Expected: ["NULL"] but got ["-35"] +``` + + +```sql +SELECT ALL - COALESCE ( + 32, - SUM ( DISTINCT 84 ) * 35 ) / CAST ( NULL AS INTEGER ) / MAX ( + CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT COUNT ( * ) - ( + 44 ) + - COUNT ( * ) AS col2, - 41 * - CASE 48 WHEN + 21 * - + CASE - + COUNT ( * ) WHEN - 3 THEN + - 7 * + + ( + 69 ) END * 30 - 35 THEN + 46 END AS col2 + +Expected: ["-44","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + 33 * + - CASE - 23 WHEN + 11 THEN - 0 + + CAST ( NULL AS INTEGER ) WHEN - 77 THEN NULL END AS col2, + 61 + CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","61"] +``` + + +```sql +SELECT - COUNT ( * ) * + - ( + 46 ) / - 55 * CAST ( - COUNT ( * ) * 12 AS INTEGER ) + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT - 21 * - COALESCE ( - 5, 79, + AVG ( - 25 ) / + COUNT ( * ) + - 39 + + - 2 + CASE - + 51 WHEN - - 25 * 40 + - CASE WHEN 64 IS NOT NULL THEN NULL WHEN - 25 BETWEEN NULL AND 36 + 23 THEN NULL ELSE + 79 + CASE 48 + + ( - 0 - ( 33 ) * 68 ) WHEN + ( 90 ) - 95 * - 87 THEN NULL WHEN + 53 * 34 THEN … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - + 4 / + 38 + + + 19 - + - 39 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + 96 * - 91 + - 97, - 82 + 69 * + ( CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL","NULL"] but got ["-8776.105","-82"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,064 failed +* 79% was OK + +Time: 116796.951ms + +---- ---- ---- ---- ---- ---- ---- +### 426/620 [`./test/random/expr/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_53.test) + +_Mimic sqlite_ + +```sql +SELECT 52 * 75 / + 95 AS col2, SUM ( DISTINCT + 67 ) + + + 29 + - 62 * - 97 * - + 80 AS col1 + +Expected: ["41","-481024"] but got ["41.053","-481024"] +``` + + +```sql +SELECT ALL CASE + 75 WHEN - 57 THEN NULL ELSE - + CASE - 36 WHEN + NULLIF ( ( + - ( - 61 ) ), 36 ) THEN - + AVG ( 61 ) ELSE 74 + + 28 + 1 - 71 + - + COUNT ( * ) + - 41 END END + - 80 * CAST ( NULL AS INTEGER ) AS col1 + +Expected: ["NULL"] but got ["10"] +``` + + +```sql +SELECT SUM ( + 36 ) * + NULLIF ( + - 37, 58 ) * + 60 * + 5 + + CAST ( NULL AS INTEGER ) + 70 * NULLIF ( 22, 27 ) + - 44, AVG ( 3 ) / - + SUM ( ALL - CASE 83 WHEN 2 THEN 9 + + 3 * - 73 ELSE NULL END ) * COUNT ( * ) + COUNT ( * ) + +Expected: ["NULL","NULL"] but got ["-398104","NULL"] +``` + + +```sql +SELECT DISTINCT COALESCE ( - CAST ( MIN ( 31 ) AS INTEGER ), 82 - - - 45 ) + - - 23 + - 31 * 93 * - 52 * 42 * + ( - - 19 ) col0 + +g is not defined +``` + + +```sql +SELECT DISTINCT - 20 * - - CAST ( NULL AS REAL ) AS col2 + +Wrong conversion type +``` + + +```sql +SELECT 24 * - - ( + - 85 ) * CASE WHEN NOT ( NULL ) NOT BETWEEN - CAST ( - - 55 AS INTEGER ) AND + COALESCE ( 75, + + 79 ) * - AVG ( ALL - 25 ) THEN + 81 ELSE - + 40 END + 40 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL 42 - + COALESCE ( - + 94, + SUM ( COALESCE ( 86, - 89 * - 66 + + + 17 / + + 92, - COALESCE ( 45, - 8, CAST ( - 79 AS INTEGER ) + + ( + 0 ), + 8 ) ) ) + + + 41 ) AS col1, + ( - + CASE - + 22 WHEN 27 * - COUNT ( * ) THEN - 79 - - + 45 WHEN + 92 / + + 69 * + - 21 THEN - CAST ( - 94 AS INTEG… + +Expected: ["136","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT 64 / COUNT ( * ) + - 61 + + CAST ( NULL AS INTEGER ) + + + 28 * ( - 4 ) * + MAX ( + 86 ) + 75 AS col1, - MAX ( ALL + 20 ) - - CASE + 10 WHEN + + 28 THEN - 2 / 95 WHEN - 60 * - 97 THEN NULL ELSE CAST ( NULL AS INTEGER ) + COUNT ( * ) END + COUNT ( * ) AS col0 + +Expected: ["NULL","NULL"] but got ["-9554","-18"] +``` + + +```sql +SELECT + 49 + CASE - 0 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 15 END AS col0 + +Expected: ["64"] but got ["NULL"] +``` + + +```sql +SELECT - 84 AS col1, 47 * - CASE + 47 WHEN ( + 79 ) THEN - 85 END AS col1 + +Expected: ["-84","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,981 failed +* 80% was OK + +Time: 78629.794ms + +---- ---- ---- ---- ---- ---- ---- +### 427/620 [`./test/random/expr/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_54.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + 51, + CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["51","NULL"] but got ["51","0"] +``` + + +```sql +SELECT + COUNT ( * ) / MIN ( DISTINCT - 41 ) * 88 + +Expected: ["0"] but got ["-2.146"] +``` + + +```sql +SELECT + 52 AS col1, NULLIF ( CAST ( NULL AS REAL ), - + SUM ( DISTINCT - 5 ) * + 58 * - 73 - - + COUNT ( * ) ) + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT 55, CAST ( + COUNT ( * ) AS INTEGER ) * + 89 col0 + +g is not defined +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) - - 35 AS col0 + +Expected: ["NULL","NULL"] but got ["0","35"] +``` + + +```sql +SELECT ALL + CASE WHEN NOT SUM ( + - 68 ) = NULL THEN NULL ELSE 21 END AS col1 + +Expected: ["21"] but got ["NULL"] +``` + + +```sql +SELECT ALL 38 + 47 * - + 90 - - CASE WHEN NOT NULL BETWEEN NULL AND 61 THEN + NULLIF ( - 1, - 90 - + COALESCE ( - ( 72 ), - 3, 56 / 75 - 28 ) * COUNT ( * ) ) * - 4 ELSE ( 0 ) END + +Cannot read property 'toString' of undefined +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,612 failed +* 83% was OK + +Time: 30907.812ms + +---- ---- ---- ---- ---- ---- ---- +### 428/620 [`./test/random/expr/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_55.test) + +_Mimic sqlite_ + +```sql +SELECT + 5 / - 43 AS col2 + +Expected: ["0"] but got ["-0.116"] +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) + - 48 * + - COALESCE ( + + 64, + - 79 ) + +Wrong conversion type +``` + + +```sql +SELECT + 54 - - 6 + CAST ( NULL AS INTEGER ) / + COALESCE ( - + 81, CAST ( NULL AS INTEGER ) + + 49 ) col1 + +Expected: ["NULL"] but got ["60"] +``` + + +```sql +SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 5 + 80 + - 41 col0 + +g is not defined +``` + + +```sql +SELECT + 93 + + 87 * - - CASE - + 71 WHEN - 15 * 76 THEN - + CAST ( NULL AS INTEGER ) END * 32 + 7 * COUNT ( * ) + 38 AS col0, + CAST ( NULL AS INTEGER ) + - 37 + - 53 * + 81 + + + 93 + +Expected: ["NULL","NULL"] but got ["NULL","-4237"] +``` + + +```sql +SELECT + ( + + NULLIF ( - COUNT ( ALL - CAST ( NULL AS INTEGER ) ), - 14 ) ) AS col1, - CASE + 63 WHEN + - 85 THEN - 42 - - COUNT ( * ) * - - COALESCE ( + 80, + + 99, 28 * + 37 + + 69 ) END / - 26 AS col0 + +Expected: ["0","NULL"] but got ["-1","NULL"] +``` + + +```sql +SELECT 45 * + CAST ( NULL AS INTEGER ) col0, CAST ( NULL AS INTEGER ) + + 50 * + - MIN ( 71 ) AS col2 + +Expected: ["NULL","NULL"] but got ["0","-3550"] +``` + + +```sql +SELECT + - COALESCE ( - NULLIF ( - 33, + CASE WHEN - 89 NOT BETWEEN - + COALESCE ( + + 64, + 48 ) * + - 14 + + 11 + COALESCE ( 39, COUNT ( * ), 98 * ( + 87 ) + 36 ) * 79 AND 28 THEN COUNT ( * ) + - ( 87 + 71 ) END - 15 / ( 14 ) ), 27, SUM ( 28 ) ) + 34 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT + CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN + + 34 * + COUNT ( * ) ELSE NULL END col1 + +Expected: ["34"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT 54 AS col1, 85 / 68 * - 72 * + 98 * + 88 * - - CASE + 0 WHEN 8 + CAST ( - 5 AS INTEGER ) THEN 85 END * - 61 AS col1 + +Expected: ["54","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS REAL ) * MAX ( ALL - 99 ) AS col0 + +Wrong conversion type +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,081 failed +* 79% was OK + +Time: 46450.571ms + +---- ---- ---- ---- ---- ---- ---- +### 429/620 [`./test/random/expr/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_56.test) + +_Mimic sqlite_ + +```sql +SELECT + CASE - 20 WHEN NULLIF ( + - 51, - CAST ( 45 AS REAL ) + - 92 * + COUNT ( * ) ) * + + 76 THEN NULL WHEN - 92 * - 61 THEN + ( - 83 ) * + CAST ( NULL AS INTEGER ) WHEN 75 / COUNT ( * ) + + 56 / 49 THEN - 41 ELSE NULL END / + 32 + ( + COUNT ( * ) ) + +Wrong conversion type +``` + + +```sql +SELECT - 61 * + CAST ( COUNT ( DISTINCT 4 ) AS INTEGER ) AS col1 + +g is not defined +``` + + +```sql +SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + + 31 * - MAX ( 19 ) * + 82 * + CASE - COUNT ( * ) WHEN ( + + CAST ( + 38 AS INTEGER ) ) THEN + ( 19 ) WHEN + 2 + + 40 THEN NULL ELSE - 37 + + CAST ( + 29 AS INTEGER ) * - CAST ( NULL AS INTEGER ) END + 26 + + 98 + +Expected: ["NULL"] but got ["1787150"] +``` + + +```sql +SELECT DISTINCT MAX ( - 91 ) / + 42 - - 60 + + COUNT ( * ) + 3 + +Expected: ["62"] but got ["61.833"] +``` + + +```sql +SELECT CASE WHEN NOT - 49 BETWEEN - ( - COALESCE ( - ( ( 22 ) ), - MAX ( 11 ) ) ) AND 78 + - 94 THEN NULL WHEN ( NULL ) NOT IN ( ( 60 ) ) THEN 50 / 26 ELSE 53 * - 71 + 40 END + 61 * + 19 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 95 col1, CASE - + 98 WHEN - 30 + + + 15 THEN + COUNT ( * ) END AS col1 + +Expected: ["95","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + MAX ( + 86 ) / CAST ( COUNT ( * ) / - 14 + + 41 AS INTEGER ) + 63 / 17 + +Expected: ["5"] but got ["NULL"] +``` + + +```sql +SELECT ALL - MIN ( DISTINCT + - 11 ) * CAST ( NULL AS INTEGER ) * + + NULLIF ( 51, 54 ) * + 71 + - - COUNT ( * ) - - - 9 - + + 30 * + + 81 * 70 * - - 15 + + 4, CASE - ( 59 ) WHEN + CAST ( NULL AS INTEGER ) + 29 THEN NULL WHEN + 93 * + - CASE 46 WHEN + + 48 THEN + COUNT ( * ) WHEN - + 95 THEN NULL E… + +Expected: ["NULL","NULL"] but got ["-2551504","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,014 failed +* 79% was OK + +Time: 44510.234ms + +---- ---- ---- ---- ---- ---- ---- +### 430/620 [`./test/random/expr/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_57.test) + +_Mimic sqlite_ + +```sql +SELECT - + 31 / 46 + +Expected: ["0"] but got ["-0.674"] +``` + + +```sql +SELECT ALL - - CAST ( NULL AS INTEGER ) + - ( - 84 ) + - 65 + - 13 * + 4 + - 13 AS col2 + +Expected: ["NULL"] but got ["-46"] +``` + + +```sql +SELECT ALL + NULLIF ( 12, 88 + - COUNT ( * ) + CAST ( NULL AS REAL ) * + CAST ( 27 AS INTEGER ) ) AS col2 + +Wrong conversion type +``` + + +```sql +SELECT ALL 94 * + CAST ( + CASE + + ( + 29 ) WHEN - 69 THEN - 13 WHEN - 52 THEN NULL ELSE - CASE + 50 WHEN COUNT ( * ) THEN - 80 * 69 END * + 66 END AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL - 71 AS col2, CASE + MAX ( ALL 23 ) WHEN + 31 + - + 21 THEN 14 ELSE NULL END * + COUNT ( * ) AS col2 + +Expected: ["-71","NULL"] but got ["NULL"] +``` + + +```sql +SELECT - - 98 * + + NULLIF ( + AVG ( ALL ( - COALESCE ( - 11, + 92, - + 44 * + ( + 58 ) + 41, + - 91 ) ) ), 11 ), CAST ( NULL AS INTEGER ) / - + COUNT ( * ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1, 97 - - + AVG ( - + 50 ) + - + CAST ( NULL AS INTEGER ) + - - 36 AS col2 + +Expected: ["NULL","NULL"] but got ["1","83"] +``` + + +```sql +SELECT DISTINCT - 97 - + CASE WHEN + 83 >= NULL THEN COALESCE ( ( - COUNT ( * ) ), 40 * 0, + 42 ) + AVG ( 14 ) WHEN NOT - 46 / + 1 NOT BETWEEN MIN ( ALL - 40 ) - ( COUNT ( * ) ) * - COUNT ( * ) AND NULL THEN NULL END + + COALESCE ( - 83, 4 + + 8, COUNT ( * ) ) * - 97 AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - COUNT ( * ) * CASE WHEN NULL NOT IN ( + 55, - 6 ) THEN NULL ELSE + 74 + + 47 END AS col2 + +Expected: ["-121"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - 22 AS col1, + 85 + 41 + + CASE + 22 WHEN 96 THEN NULL WHEN - 94 THEN + ( 59 ) * - 42 - + 10 END AS col1 + +Expected: ["-22","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,000 failed +* 80% was OK + +Time: 38376.271ms + +---- ---- ---- ---- ---- ---- ---- +### 431/620 [`./test/random/expr/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_58.test) + +_Mimic sqlite_ + +```sql +SELECT ALL CAST ( NULL AS REAL ) * - COUNT ( * ) / + + 20 AS col2 + +Wrong conversion type +``` + + +```sql +SELECT + 82 + + + 32 / 65 col1 + +Expected: ["82"] but got ["82.492"] +``` + + +```sql +SELECT DISTINCT NULLIF ( 18, + 77 ) * - 45 + - - CAST ( NULL AS INTEGER ) + +Expected: ["NULL"] but got ["-810"] +``` + + +```sql +SELECT DISTINCT - + 56 * COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), + 21 ) AS col1 + +g is not defined +``` + + +```sql +SELECT ALL + 40, - CASE WHEN NOT + 26 BETWEEN + - 95 * + 70 / - + 96 AND - ( + - 84 ) THEN NULL WHEN + 7 BETWEEN ( + NULLIF ( + 97, + - 26 * + 45 * 0 ) ) AND NULL THEN - 34 ELSE NULL END col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 86 AS col0, + ( - 50 ) + - + ( + CASE + 77 WHEN CAST ( + 14 AS INTEGER ) THEN + 89 WHEN - 81 * - 25 THEN NULL END ) - + 21 * COUNT ( DISTINCT - 32 ) AS col0 + +Expected: ["86","NULL"] but got ["NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), + 97 + - CAST ( NULL AS INTEGER ) - + 93 AS col0 + +Expected: ["NULL","NULL"] but got ["0","4"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) col0, + COUNT ( * ) / + ( - 77 ) * + + 1 * 76 * 67 * AVG ( + + CAST ( NULL AS INTEGER ) ) * - 28 + + - 30 AS col2 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT - MIN ( ALL + 40 ) / - + CAST ( - MIN ( - - 20 ) AS INTEGER ) + - - 21 AS col2 + +Expected: ["19"] but got ["NULL"] +``` + + +```sql +SELECT ALL + 54 * + 33 AS col0, 65 / + CAST ( NULL AS INTEGER ) - + - 53 - + 76 / - 46 * 13 * + 36 AS col0 + +Expected: ["1782","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,952 failed +* 80% was OK + +Time: 40352.406ms + +---- ---- ---- ---- ---- ---- ---- +### 432/620 [`./test/random/expr/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_59.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 41 / - 55 + + COUNT ( * ) + +Expected: ["1"] but got ["1.745"] +``` + + +```sql +SELECT ALL + 58 * + CAST ( NULL AS INTEGER ) + - 96 + +Expected: ["NULL"] but got ["-96"] +``` + + +```sql +SELECT ( - ( + CAST ( NULL AS REAL ) ) ) + +Wrong conversion type +``` + + +```sql +SELECT 63 * CAST ( - COUNT ( * ) AS INTEGER ), 48 AS col0 + +g is not defined +``` + + +```sql +SELECT - CASE WHEN NOT ( NULL ) BETWEEN NULL AND - 50 THEN NULL ELSE + - 87 END col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + COUNT ( ALL + + 19 ) * ( 30 ) * + ( + - CAST ( MAX ( ALL + 6 ) AS INTEGER ) ) AS col2, - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * + 90 / + - CAST ( NULL AS INTEGER ) + +Expected: ["-180","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT - - 84 * - 91 * + ( 50 ) - - - 34 * + NULLIF ( - + ( + 25 ), + - 93 - - 4 ) + + 21 + - 97 / + CAST ( - COUNT ( * ) AS INTEGER ) + + + 67 - + 98 / COUNT ( ALL + 15 ) col2 + +Expected: ["-381263"] but got ["NULL"] +``` + + +```sql +SELECT 14 * + - 33 + - 85 * - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / + NULLIF ( 87, + 60 ) * - 64 AS col1 + +Expected: ["NULL","NULL"] but got ["-462","0"] +``` + + +```sql +SELECT + CASE - 44 WHEN 69 THEN - + 28 + - 92 + + - 32 - + 20 END, - CAST ( NULL AS INTEGER ) * 53 AS col2 + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,977 failed +* 80% was OK + +Time: 42944.682ms + +---- ---- ---- ---- ---- ---- ---- +### 433/620 [`./test/random/expr/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + 77 + - 25 + COALESCE ( 17, COUNT ( * ), - NULLIF ( + 14, + - ( - 78 ) * - COUNT ( * ) ) ) + CAST ( NULL AS REAL ) AS col2 + +Wrong conversion type +``` + + +```sql +SELECT 64 / - - 90 + + 22 * + ( - 0 ) AS col1 + +Expected: ["0"] but got ["0.711"] +``` + + +```sql +SELECT 64 - + - CASE + 33 WHEN + 80 * 8 * - - 62 + + 88 + - + 5 * 63 / 11 THEN - + COALESCE ( - 93, - 63 ) ELSE NULL END + - - 51 - + + 99 AS col1, 79 AS col1 + +Expected: ["NULL","79"] but got ["79","79"] +``` + + +```sql +SELECT + + 92 * NULLIF ( COALESCE ( + - 44, 60 * + 41 ), - - 77 ) * 82 * CAST ( NULLIF ( COUNT ( * ), - 7 * - 79 + + + 35 ) AS INTEGER ) + + + 48 + +g is not defined +``` + + +```sql +SELECT 6 + - + 0 * + 51 / + ( CASE WHEN + 76 BETWEEN - 93 * + + CAST ( - - 7 AS INTEGER ) * 71 * + + 10 - + AVG ( DISTINCT - 95 ) AND - 61 THEN - - 39 WHEN 73 BETWEEN 8 AND - ( 25 ) + 86 THEN + COUNT ( * ) * AVG ( 33 ) END ) * 89 AS col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, CASE - 45 WHEN 29 THEN + - COUNT ( * ) WHEN + 74 THEN NULL END AS col1 + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT - 44 / - 97 - + + 36 + + 0 * 40 + + 15 * - MIN ( - 42 ) * + + 25 AS col1, - CASE - + 73 WHEN COALESCE ( - MAX ( ALL - - 70 ), + 94 * + COALESCE ( - 20, - 90 * - 32 + - 35 + - + 4, + 62 + - NULLIF ( + + ( 95 ), + 65 ), 26 ) * - 49 + + NULLIF ( 43, - 91 ) ) THEN - 62 * + 4 * + AVG ( 92 ) - - 7… + +Expected: ["15714","NULL"] but got ["15714.454","NULL"] +``` + + +```sql +SELECT + COALESCE ( - MAX ( + - 18 ), - - ( + COALESCE ( 15, - SUM ( ALL - + 6 ) ) ) ) / - - ( CAST ( + + MIN ( ALL - 30 ) AS INTEGER ) ) + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - 69 + + CAST ( NULL AS INTEGER ) AS col1, - 40 - - 10 * + 5 AS col0, + SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 74 + +Expected: ["NULL","10","NULL"] but got ["-69","10","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,043 failed +* 79% was OK + +Time: 51010.488ms + +---- ---- ---- ---- ---- ---- ---- +### 434/620 [`./test/random/expr/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_60.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 89 * + CAST ( - COUNT ( * ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT + COUNT ( DISTINCT - CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col2 + +Expected: ["0"] but got ["1"] +``` + + +```sql +SELECT - 85 * - - NULLIF ( + - 1, - 95 + + CAST ( NULL AS REAL ) ) AS col1 + +Wrong conversion type +``` + + +```sql +SELECT 36 * + 74 * CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT 69 / - 21 - + + AVG ( 47 ) + + CASE + 57 WHEN COUNT ( * ) + + COUNT ( * ) THEN - + ( + 4 ) END + + 20 AS col0, CAST ( NULL AS INTEGER ) + - 28 + + COUNT ( * ) AS col0 + +Expected: ["NULL","NULL"] but got ["-27"] +``` + + +```sql +SELECT DISTINCT - 52 / + + 16 + 73 * + 6 + 28 / - ( + CASE 1 WHEN ( - 58 ) THEN - + 40 WHEN - NULLIF ( + - COALESCE ( 78, - + COUNT ( * ) / + + 13 * + 54 + - - 76 ), + 41 ) / 68 THEN - - 58 * + - COUNT ( * ) + + 20 END ) AS col2 + +Expected: ["435"] but got ["NULL"] +``` + + +```sql +SELECT ALL - CASE + MAX ( DISTINCT - ( - + 3 ) ) WHEN COALESCE ( - - 93, + 87, - + COALESCE ( - 51, 42 + - 82 + - NULLIF ( 39, + - 11 ) ) * - 4 - + 32 ) THEN - 6 - + 31 END * 89 AS col0, 97 + +Expected: ["NULL","97"] but got ["97","NULL"] +``` + + +```sql +SELECT DISTINCT 11 + - COUNT ( * ) + SUM ( ALL + 48 ) + - + COUNT ( * ) / NULLIF ( - 48, 50 * + + 34 * + CASE WHEN NULL IS NOT NULL THEN NULL WHEN NULL NOT BETWEEN ( + COALESCE ( 5, - 53 ) ) AND 93 THEN - 4 END + + MAX ( DISTINCT COALESCE ( - 51, 39, + 27 ) ) * + 40 ) + + 57 / - 77 AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 91 AS col2, 90 * - - CASE 22 WHEN CAST ( NULL AS INTEGER ) * 60 THEN - 52 WHEN + 94 * - 13 THEN NULL END - 61 * + 19 AS col2 + +Expected: ["91","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + CASE 42 WHEN + 66 THEN 36 END, - COUNT ( + 40 ) * CAST ( NULL AS INTEGER ) * - 73 + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,007 failed +* 79% was OK + +Time: 65080.713ms + +---- ---- ---- ---- ---- ---- ---- +### 435/620 [`./test/random/expr/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_61.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT NULLIF ( + SUM ( ( ( + 5 ) ) ), + 66 + - ( + 85 ) ) / - - 87 + + 13 * + 47 + +Expected: ["611"] but got ["611.057"] +``` + + +```sql +SELECT 62 + + CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - - 51 + + - CAST ( - + COUNT ( 49 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL - ( - + ( CAST ( NULL AS INTEGER ) ) ) AS col1, - 31 - - + 48 + +Expected: ["NULL","17"] but got ["0","17"] +``` + + +```sql +SELECT - 86 + - + 69 + 30 * - 39 + - - 45 AS col2, CASE WHEN NOT ( NULL ) NOT BETWEEN - COALESCE ( + 91, - - 2 ) AND AVG ( ALL ( 40 ) ) THEN - 3 + 82 END + - 69 col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 25 * - + 78 * CASE - 71 WHEN 5 THEN - COUNT ( * ) END AS col2, 91 + +Expected: ["NULL","91"] but got ["91","NULL"] +``` + + +```sql +SELECT DISTINCT + 58 * + COUNT ( * ) + AVG ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) AS col0, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 + +Expected: ["NULL","NULL"] but got ["58","0"] +``` + + +```sql +SELECT - 79 AS col0, + CASE - - 28 WHEN + 13 THEN - + 3 - + CAST ( NULL AS INTEGER ) ELSE NULL END col0 + +Expected: ["-79","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + CASE WHEN NOT ( 30 ) >= NULL THEN NULL ELSE 2 END * + 48 + + + 83 * 97 + 12 + +Expected: ["8159"] but got ["NULL"] +``` + + +```sql +SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col0, + 36 * + 24 - + CASE + + 61 WHEN + COUNT ( * ) + - + 47 + + 36 + 79 / - 39 + + 33 * - 27 THEN NULL WHEN - COALESCE ( + 40, + - ( + 65 ), - 30 ) + + 52 + + + COUNT ( * ) / 24 * 6 * - ( - 8 / + 80 ) THEN 79 * COUNT ( * ) END AS col1 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,025 failed +* 79% was OK + +Time: 45647.673ms + +---- ---- ---- ---- ---- ---- ---- +### 436/620 [`./test/random/expr/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_62.test) + +_Mimic sqlite_ + +```sql +SELECT + 14 / + 60 + +Expected: ["0"] but got ["0.233"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * 19 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - CASE + - 58 WHEN 81 * + 23 * CASE WHEN - COUNT ( * ) < NULL THEN - - NULLIF ( - COALESCE ( + 75, 97 ), 61 - - 50 * 6 ) + NULLIF ( 3 + 69 * 42, 60 + - 80 ) WHEN NOT ( - 17 * COUNT ( * ) + COUNT ( * ) ) NOT BETWEEN ( 23 ) AND ( - 51 ) THEN + MAX ( DISTINCT 51 ) END + 54 * + 9 THEN 43 + CAST … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - CAST ( NULL AS REAL ) / - 55 - + 35 col1 + +Wrong conversion type +``` + + +```sql +SELECT 20 * 25 * + - CAST ( - - 10 AS INTEGER ) * - 59 + NULLIF ( - CAST ( - + ( + COALESCE ( - - CASE + - COUNT ( * ) WHEN - + 2 * + ( + - 31 ) THEN NULL ELSE + 96 END, - 96 * - 70, 21 * - 34 ) ) AS INTEGER ), - CAST ( NULL AS INTEGER ) ) + + 59 * 0 AS col0 + +g is not defined +``` + + +```sql +SELECT - NULLIF ( - 54, - COUNT ( 43 ) / + - 58 * - 16 - + 70 ) * + CAST ( NULL AS INTEGER ) AS col2, + NULLIF ( - CAST ( - - CASE + AVG ( ALL - - 5 ) WHEN - 72 / 94 THEN - 32 END AS INTEGER ), + - 28 ) * + + ( - + 75 ) - + 57 * + 8 + + COALESCE ( 59, - 2 * ( COUNT ( 62 ) ), 38 ) + +Expected: ["NULL","NULL"] but got ["0","-397"] +``` + + +```sql +SELECT + AVG ( + - ( + 74 ) ) + - 86 * + - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) + - + CASE - 68 WHEN - 66 THEN + + 21 WHEN - SUM ( DISTINCT - 28 ) THEN NULL END + 12 * + + 46 + +Expected: ["NULL","NULL"] but got ["-74","NULL"] +``` + + +```sql +SELECT 79 * + + 18 + + - COUNT ( * ) / - CAST ( MAX ( 57 ) AS INTEGER ) AS col1 + +Expected: ["1422"] but got ["NULL"] +``` + + +```sql +SELECT ALL ( - CASE 58 WHEN + 62 THEN + - 81 WHEN - NULLIF ( 19, 42 / + 94 + + 89 + + + 67 ) * - - 50 THEN 57 END ) AS col0, ( 40 ) / + 99 AS col2 + +Expected: ["NULL","0"] but got ["NULL","0.404"] +``` + + +```sql +SELECT DISTINCT COUNT ( DISTINCT + 11 ) AS col1, 1 col1 + +Expected: ["1","1"] but got ["1"] +``` + + +```sql +SELECT ALL - 29 AS col0, CASE + 8 WHEN - + 25 THEN - 15 ELSE NULL END * - - 28 AS col0 + +Expected: ["-29","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,045 failed +* 79% was OK + +Time: 50511.480ms + +---- ---- ---- ---- ---- ---- ---- +### 437/620 [`./test/random/expr/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_63.test) + +_Mimic sqlite_ + +```sql +SELECT + MIN ( ALL - NULLIF ( + 89, 47 ) ) * CAST ( + COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) / 76 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT 52 / 72 * - COALESCE ( + 14, - COUNT ( * ) * - 38 ) AS col0 + +Expected: ["0"] but got ["-10.111"] +``` + + +```sql +SELECT ALL 65 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 37 * + CAST ( NULL AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT + - 98 * - + COUNT ( * ) + - NULLIF ( 49, + + 51 * + MAX ( - - 58 ) - CAST ( NULL AS INTEGER ) ) + 80 / CAST ( - + MAX ( - 41 ) AS INTEGER ) * - 73 + - - 63 * - + 86 + +Expected: ["-5442"] but got ["NULL"] +``` + + +```sql +SELECT ALL + ( - - COUNT ( * ) ) / CASE WHEN NOT ( NOT - - ( ( - ( - COUNT ( * ) ) ) ) NOT BETWEEN NULL AND - 57 ) THEN + 5 / + + COUNT ( * ) + 35 + + 91 WHEN ( 48 ) + 82 IS NULL THEN NULL ELSE + CASE + ( 52 ) WHEN 4 THEN NULL WHEN - 0 + 85 THEN NULL ELSE 52 END END + - 77 * 76 AS col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - CASE 93 WHEN 25 THEN - 23 WHEN + - COUNT ( * ) THEN 45 END AS col2, 97 + +Expected: ["NULL","97"] but got ["97","NULL"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + MAX ( ALL + 49 ) - - CASE + 19 WHEN - + 5 - 9 + + 22 - - - 72 THEN NULL ELSE - 1 * - 57 - + - 84 - - + 24 * - - 86 END + - 37 / + - 75 AS col0, 7 AS col2, - + COUNT ( * ) + - 43 * CASE - COUNT ( * ) WHEN - COALESCE ( - 97, - 11, + - COALE… + +Expected: ["NULL","7","NULL"] but got ["NULL","7"] +``` + + +```sql +SELECT + 97 + CAST ( NULL AS INTEGER ), - MAX ( - - CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL","NULL"] but got ["97","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,002 failed +* 80% was OK + +Time: 35681.828ms + +---- ---- ---- ---- ---- ---- ---- +### 438/620 [`./test/random/expr/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_64.test) + +_Mimic sqlite_ + +```sql +SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - SUM ( ALL 20 ) + 33 + - 11 - 8 + - 74 + + 93 + +Expected: ["53"] but got ["33"] +``` + + +```sql +SELECT 45 + - 10 * CASE + CAST ( NULL AS INTEGER ) WHEN 30 - CAST ( - COUNT ( * ) AS INTEGER ) / + - 27 THEN + NULLIF ( + 21, 3 * 39 - 33 ) WHEN + ( + CAST ( NULL AS REAL ) ) THEN NULL END AS col2 + +g is not defined +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 68 * - 62 + - 89 + +Expected: ["NULL","-4305"] but got ["0","-4305"] +``` + + +```sql +SELECT - - 52 * 99 + - + CAST ( CAST ( 70 AS REAL ) AS INTEGER ) col0 + +Wrong conversion type +``` + + +```sql +SELECT ALL + 16 + - 65 * + CAST ( NULL AS INTEGER ) AS col0, - CASE - - 72 WHEN + 50 THEN - + 14 WHEN + 42 * + - CASE - 1 WHEN 19 THEN NULL WHEN CASE + COUNT ( * ) WHEN 52 * + 83 THEN 33 WHEN + 0 THEN NULL ELSE NULL END - 19 THEN - COUNT ( DISTINCT + 38 ) END THEN NULL END + 43 + +Expected: ["NULL","NULL"] but got ["16","NULL"] +``` + + +```sql +SELECT DISTINCT + ( + - COUNT ( * ) ) / - COALESCE ( CAST ( NULL AS INTEGER ), + 97 + 71 / + 9 * 77 ) + 91 * - 88 * - ( - 16 ) * - + 44 col2 + +Expected: ["5637632"] but got ["NULL"] +``` + + +```sql +SELECT ALL + CASE WHEN NOT NULL IS NOT NULL THEN + CAST ( - 81 AS INTEGER ) WHEN NOT NULL NOT BETWEEN NULL AND 15 * 92 - - 64 THEN NULL ELSE NULL END AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 16 - - + 65 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 76 + 11 * + 36 AS col0, 39 - - 37 - + CASE + 13 WHEN COUNT ( * ) + - 2 * + + 2 THEN + 60 * - CASE - 47 WHEN + + 57 + - - 21 THEN - + COUNT ( * ) * + - 13 ELSE - 45 END - 41 * + 39 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END … + +Expected: ["552","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL 7 / - CAST ( NULL AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) * + - 30 AS col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,056 failed +* 79% was OK + +Time: 47234.129ms + +---- ---- ---- ---- ---- ---- ---- +### 439/620 [`./test/random/expr/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_65.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - + ( ( - - CAST ( NULL AS INTEGER ) ) ) AS col1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS REAL ) * 98 + +Wrong conversion type +``` + + +```sql +SELECT COUNT ( * ) / - + 86 AS col1 + +Expected: ["0"] but got ["-0.012"] +``` + + +```sql +SELECT ALL + + CAST ( + SUM ( + 36 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT + + COUNT ( ALL - 96 ) / + CAST ( - COUNT ( * ) AS INTEGER ) + +Expected: ["-1"] but got ["NULL"] +``` + + +```sql +SELECT ALL + CASE WHEN NULL NOT BETWEEN NULL AND NULL THEN ( + 62 ) END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT + - 14 / - 71 * 35 col2, COALESCE ( - 94, - 30 * - + 34, - CAST ( NULL AS INTEGER ) ) * 63 * + 40 / + CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["0","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,716 failed +* 82% was OK + +Time: 35605.099ms + +---- ---- ---- ---- ---- ---- ---- +### 440/620 [`./test/random/expr/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_66.test) + +_Mimic sqlite_ + +```sql +SELECT 80 / + 92 + +Expected: ["0"] but got ["0.870"] +``` + + +```sql +SELECT 57 AS col1, 52 * - + 35, + CAST ( NULL AS REAL ) AS col1 + +Wrong conversion type +``` + + +```sql +SELECT - 82 AS col1, - 56 - + CAST ( NULL AS INTEGER ) + + MAX ( - + 6 ) + +Expected: ["-82","NULL"] but got ["-82","-62"] +``` + + +```sql +SELECT + CAST ( COUNT ( ALL + + ( - 95 ) ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT 51 * 90 + + CASE - 42 WHEN + COUNT ( * ) THEN NULL WHEN + 21 THEN - + CAST ( NULL AS INTEGER ) ELSE NULL END AS col0, 59 + +Expected: ["NULL","59"] but got ["59","NULL"] +``` + + +```sql +SELECT + CASE + 59 WHEN + 76 + - - 52 + ( - 68 ) * 91 THEN 58 END + - + 94 * 13 col2, NULLIF ( + + COALESCE ( - SUM ( - - 73 ), - 11 ), + 87 ) * CAST ( NULL AS INTEGER ) + - + 20 + +Expected: ["NULL","NULL"] but got ["NULL","-20"] +``` + + +```sql +SELECT ALL CASE - ( - 50 ) WHEN + CAST ( - + COALESCE ( - 25, 24, - 56 / 64 + 73 ) AS INTEGER ) THEN 63 * - 57 WHEN - 94 * 53 THEN + 49 / 21 END - CASE WHEN ( 37 ) NOT BETWEEN - NULLIF ( - 39, 25 ) AND ( NULL ) THEN NULL WHEN - COUNT ( * ) IS NOT NULL THEN - 68 - 55 ELSE NULL END AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT 32 + 99 AS col0, CASE WHEN NOT 22 IS NOT NULL THEN + + 70 END AS col0 + +Expected: ["131","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT COALESCE ( + ( + 15 ), + COUNT ( * ) * 83 + + - ( 20 ) ) * - 31 + CASE WHEN NOT - AVG ( + 92 ) IN ( 47 ) THEN NULLIF ( 70, SUM ( 28 ) ) END / ( + 79 * - NULLIF ( - 18 * 17, - 17 ) + - 17 ) AS col1 + +Expected: ["-465"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,062 failed +* 79% was OK + +Time: 42864.782ms + +---- ---- ---- ---- ---- ---- ---- +### 441/620 [`./test/random/expr/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_67.test) + +_Mimic sqlite_ + +```sql +SELECT 78, + 75 / + 81 + - 26 col0 + +Expected: ["78","-26"] but got ["78","-25.074"] +``` + + +```sql +SELECT 2 + - CAST ( NULL AS INTEGER ) * - 35 + +Expected: ["NULL"] but got ["2"] +``` + + +```sql +SELECT ALL + ( CAST ( NULL AS REAL ) ) - 16 * + ( - AVG ( + + 1 ) ) * + - 4 * - 39 + + + ( NULLIF ( - - COUNT ( * ), SUM ( CAST ( NULL AS INTEGER ) ) + + 33 * 29 ) ) AS col0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 85 + + ( 0 ) - - 3 - + COUNT ( * ) / + CAST ( + COUNT ( * ) AS INTEGER ) - 87 + + COUNT ( * ) * - COUNT ( * ) * - MIN ( ALL COALESCE ( + 21, + - 89, + 1 * - 2 ) ) / 2 AS col2 + +Expected: ["-160"] but got ["NULL"] +``` + + +```sql +SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + + 13 AS col2 + +g is not defined +``` + + +```sql +SELECT - 67 - + MAX ( + 45 ) - + CASE 66 WHEN 9 THEN - 59 END + + - 64 * + + 97 AS col0, 36 + +Expected: ["NULL","36"] but got ["36","NULL"] +``` + + +```sql +SELECT DISTINCT - + 12 * 7 * + + CAST ( NULL AS INTEGER ) + 68 + + - 77, 97 / - ( - ( - 98 ) ) * + - COUNT ( * ) AS col1, - - CASE + COUNT ( * ) WHEN MAX ( 60 ) / - - 62 + 50 - 88 THEN + 2 END + +Expected: ["NULL","0","NULL"] but got ["-9","0.990","NULL"] +``` + + +```sql +SELECT ALL + CASE WHEN NOT SUM ( - + 52 ) NOT BETWEEN 87 AND - + 97 + + ( - 49 ) THEN - 12 + - COUNT ( DISTINCT - 8 + CASE NULLIF ( 26, + ( 89 ) * 5 ) WHEN - CAST ( + 3 AS INTEGER ) THEN - 93 WHEN - 71 + ( 35 ) THEN NULL ELSE 89 END ) ELSE NULL END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col0, - ( MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) * - - 52 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT 47 * 48 AS col0, 1 AS col0 + +Expected: ["2256","1"] but got ["1","1"] +``` + + +```sql +SELECT 94 AS col1, + 69 * + 83 / - + CAST ( NULL AS INTEGER ) + - 43 AS col1 + +Expected: ["94","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,033 failed +* 79% was OK + +Time: 69467.608ms + +---- ---- ---- ---- ---- ---- ---- +### 442/620 [`./test/random/expr/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_68.test) + +_Mimic sqlite_ + +```sql +SELECT + COUNT ( * ) + CASE - AVG ( ALL + + 47 ) WHEN - 62 + - + 84 + - - 49 THEN 69 WHEN ( - 68 ) / + + NULLIF ( 74, + 25 * 33 ) + + 81 * + 10 + CAST ( 76 - 87 AS REAL ) THEN NULL END * - 87 + +Wrong conversion type +``` + + +```sql +SELECT + + 16 * - 90 + - - COUNT ( * ) / + 39 + +Expected: ["-1440"] but got ["-1439.974"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * - 64 AS col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL COUNT ( + + 7 ) / + 15 * - + CAST ( AVG ( DISTINCT - 87 ) AS INTEGER ) * - - 61 AS col0 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT + - CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN 0 THEN + CAST ( COUNT ( * ) AS INTEGER ) ELSE - 93 END + +g is not defined +``` + + +```sql +SELECT DISTINCT - 67 * + CASE + + CASE WHEN 69 BETWEEN 12 AND 4 / + 13 - + AVG ( 27 ) + 45 THEN - 16 END WHEN 27 * 73 * + 80 + + NULLIF ( + 7, + 65 ) + - 54 + NULLIF ( + COALESCE ( + + 55, - 89 * 53 / ( - + 53 ) ), 88 ) * 34 - - 27 + 51 * - 50 THEN + 47 * - 50 ELSE MIN ( - 86 ) END + - COUNT ( * ) … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL + 59 + + 98 + - + CAST ( NULL AS INTEGER ) + ( - CASE - 94 WHEN + 24 THEN + COUNT ( - 26 ) ELSE - - 60 END ) * - 78 AS col0, + 37 + - CASE 93 WHEN + ( 16 ) * + 58 * - 36 + + COUNT ( * ) + + - 56 * 48 * + 2 * + + SUM ( ALL + + 68 ) * - + 17 * + NULLIF ( - - 4, + - 61 + 16 + + 22 + - COUNT… + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - 72 - + + 41 / - + 36 AS col2, + COUNT ( + 57 ) * + 86 * - 9 * CASE 20 WHEN + 12 THEN + 59 + - 93 END + - 3 + +Expected: ["-71","NULL"] but got ["-70.861","NULL"] +``` + + +```sql +SELECT + 77 + + + 23 AS col0, CASE NULLIF ( ( - - 61 ), 13 + 49 ) WHEN - 26 THEN - ( 4 ) + 75 WHEN + - 60 THEN - - 1 ELSE NULL END col0 + +Expected: ["100","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 96 / - 59 * + MAX ( + 17 ) AS col2, CAST ( NULL AS INTEGER ) col0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,977 failed +* 80% was OK + +Time: 86039.273ms + +---- ---- ---- ---- ---- ---- ---- +### 443/620 [`./test/random/expr/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_69.test) + +_Mimic sqlite_ + +```sql +SELECT 89 / + - 12 + +Expected: ["-7"] but got ["-7.417"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) + - ( - - 82 ) col2 + +Expected: ["NULL"] but got ["-82"] +``` + + +```sql +SELECT 33 / CAST ( - + COUNT ( 27 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT DISTINCT - 82 AS col0, 14 / + CAST ( + 80 AS INTEGER ) + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - 53 / + 68 + +Wrong conversion type +``` + + +```sql +SELECT COUNT ( * ) + + 43 AS col0, + 60 * CASE - + 82 WHEN + 64 THEN - COUNT ( * ) ELSE NULL END AS col0 + +Expected: ["44","NULL"] but got ["NULL"] +``` + + +```sql +SELECT CASE - COUNT ( * ) WHEN + - 24 THEN - 37 WHEN - 39 / 34 THEN + NULLIF ( + 14, - SUM ( ALL + - 53 ) + + - COUNT ( * ) - 30 * - CAST ( NULL AS REAL ) ) END AS col1 + +Expected: ["14"] but got ["NULL"] +``` + + +```sql +SELECT 18 * + CASE WHEN NOT 19 NOT BETWEEN NULL AND NULL THEN + COUNT ( * ) + 36 ELSE 38 * + 86 END AS col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ), + CASE - COUNT ( * ) WHEN 28 / + 84 + - + CASE - 36 WHEN - 8 THEN + - 17 WHEN + 73 THEN NULL ELSE NULL END * NULLIF ( - CASE - 81 WHEN 4 * + 64 + - 41 * 30 THEN + 41 ELSE NULL END, 29 ) THEN 46 + CASE + CASE ( - 52 ) WHEN + 4 - 2 THEN NULL ELSE + COUNT ( AL… + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( + CAST ( NULL AS INTEGER ) ) AS col0, + MIN ( + CAST ( NULL AS INTEGER ) ) * + CASE COUNT ( * ) WHEN MIN ( ALL + 73 ) / NULLIF ( + 74, 84 ) * 10 THEN NULL ELSE - + 25 END + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,019 failed +* 79% was OK + +Time: 79667.518ms + +---- ---- ---- ---- ---- ---- ---- +### 444/620 [`./test/random/expr/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 83 / - 36 AS col1 + +Expected: ["2"] but got ["2.306"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * - + 40 col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - MIN ( + - 66 ) * + + 86 + + - SUM ( + 97 ) - - + 4 * ( + MAX ( - 8 ) ) * CASE 6 WHEN CAST ( + + 22 AS REAL ) THEN - 82 WHEN - 14 THEN NULL END AS col0 + +Wrong conversion type +``` + + +```sql +SELECT - 33 AS col0, 3 / + COUNT ( * ) + - CASE - 63 WHEN + + 43 * + COUNT ( * ) THEN + 77 * + ( 69 ) WHEN - + ( + 24 ) + + 83 * - - 92 THEN + 91 END + - - 12 * + 64 col0 + +Expected: ["-33","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT CASE WHEN NOT NULLIF ( 11, - 27 ) BETWEEN - 40 + + 42 AND - CASE CAST ( + 34 AS INTEGER ) WHEN ( 22 ) + + 40 THEN - 15 * 68 ELSE - 4 * 78 END THEN 72 END / COALESCE ( + 58, + MIN ( - 44 ) ) AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT 27 col1, - CASE - + 30 WHEN + 37 THEN NULL WHEN + 0 + 2 * - 60 THEN + ( 95 ) / COALESCE ( - 40, 57 / - 17 ) WHEN - 64 - - 98 THEN NULL ELSE NULL END AS col1 + +Expected: ["27","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL + 99 * + CAST ( - + COUNT ( ALL - 18 ) AS INTEGER ) AS col2 + +g is not defined +``` + + +```sql +SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ), 33 * + CAST ( - 13 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) / + + 12 * - 39 + +Expected: ["NULL","NULL"] but got ["-1","0"] +``` + + +```sql +SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0, 32 + + 91 + - 95 + - NULLIF ( + CASE + 52 WHEN - + 61 + - + 37 THEN + - 27 - + - 74 / MAX ( ALL + 70 ) WHEN - 37 THEN NULL WHEN + 66 THEN NULL WHEN + ( + MIN ( DISTINCT 35 ) ) + + 29 * - 72 THEN - MIN ( DISTINCT + - ( - 20 ) ) * - + 53… + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,097 failed +* 79% was OK + +Time: 67304.733ms + +---- ---- ---- ---- ---- ---- ---- +### 445/620 [`./test/random/expr/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_70.test) + +_Mimic sqlite_ + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) * 52 / - + ( 13 ) AS col1, COUNT ( * ) AS col1 + +Expected: ["NULL","1"] but got ["1"] +``` + + +```sql +SELECT DISTINCT 52 / + 42 AS col2, + 3 AS col1 + +Expected: ["1","3"] but got ["1.238","3"] +``` + + +```sql +SELECT - CAST ( + MIN ( - 85 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT DISTINCT 25 * - CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT + 37 AS col0, COALESCE ( - + COUNT ( * ), - COALESCE ( - 65, - 40 + 29 + + - 25 + - 71 * + - COUNT ( * ) / + 78 / - 51 ) * 27 + - - 72 ) / CASE + CASE - + 68 WHEN 58 + ( 57 ) / + 55 / 36 THEN + CAST ( 34 AS INTEGER ) WHEN - COALESCE ( 29, 60 + + 66 ) THEN NULL ELSE - CAST ( COUNT ( * ) AS IN… + +Expected: ["37","NULL"] but got ["NULL"] +``` + + +```sql +SELECT 8 AS col0, - 26 - - - 85 + + + 56 * + CASE 78 WHEN + 57 THEN + - 71 WHEN + 33 THEN NULL END * - + 32 col0 + +Expected: ["8","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + 52 / - 9 * CAST ( NULL AS INTEGER ) col2, COUNT ( * ) + - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","1"] +``` + + +```sql +SELECT CASE WHEN ( NOT ( - 38 BETWEEN COUNT ( * ) + + 1 AND AVG ( 66 ) - 52 ) ) THEN - MIN ( ALL ( + 54 ) ) WHEN NULL NOT BETWEEN NULL AND ( NULL ) THEN NULL END / 49 AS col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - 68 + - + 1 + + COUNT ( * ) * - 71 * - 19 - - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["NULL","NULL"] but got ["1280","0"] +``` + + +```sql +SELECT DISTINCT + CASE + 17 WHEN + - ( + COALESCE ( + MIN ( - 87 ), COUNT ( * ) + AVG ( ALL 86 ), - 76 ) ) THEN NULL WHEN SUM ( ALL 3 ) + CASE + 53 WHEN 63 THEN - 22 WHEN - MAX ( DISTINCT 69 ) THEN - NULLIF ( + 21, + MAX ( + 31 ) ) + 11 * - 59 END THEN + 97 WHEN 17 THEN + 86 / + 23 END AS col0 + +Expected: ["3"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,000 failed +* 80% was OK + +Time: 50186.268ms + +---- ---- ---- ---- ---- ---- ---- +### 446/620 [`./test/random/expr/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_71.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + COUNT ( * ) AS col0, 4 + +Expected: ["1","4"] but got ["4","1"] +``` + + +```sql +SELECT + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * + + 23 * + + 40 + 61 + + MIN ( ALL - + 31 ) AS col2 + +Expected: ["NULL"] but got ["31"] +``` + + +```sql +SELECT + 75 * ( + - CAST ( + SUM ( - 42 ) AS INTEGER ) ) + +g is not defined +``` + + +```sql +SELECT DISTINCT + - 6 * - CAST ( + + 26 AS INTEGER ) * - CAST ( NULL AS REAL ) + + - 62 * - ( - + 99 ) + +Wrong conversion type +``` + + +```sql +SELECT NULLIF ( CASE + + 57 WHEN 85 THEN - 59 * 70 WHEN 53 THEN - 87 ELSE NULL END, - COALESCE ( CAST ( - + 47 AS INTEGER ), 11, + - 77 ) / + - 7 ) + CAST ( + 84 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT ALL - 66 + + COUNT ( * ) + + ( + 74 ) * - 42 AS col1, - 3 / + CAST ( - MAX ( - 86 ) AS INTEGER ) - + - 68 + 54 + +Expected: ["-3173","122"] but got ["-3173","NULL"] +``` + + +```sql +SELECT - 15 / + CASE WHEN NOT NULL IN ( - CASE 96 WHEN + CAST ( - 0 AS INTEGER ) * + ( + CAST ( 65 AS INTEGER ) - + 87 ) + - 51 THEN NULL ELSE 26 * + CAST ( COUNT ( * ) AS INTEGER ) END ) THEN NULL WHEN NULL NOT BETWEEN + CAST ( NULL AS REAL ) + + 34 AND ( 24 - 71 ) THEN 89 - 36 * COUNT ( ALL - COA… + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 81 + ( + + CAST ( NULL AS INTEGER ) ) AS col1, - CAST ( NULL AS INTEGER ) / + 13 + +Expected: ["NULL","NULL"] but got ["81","0"] +``` + + +```sql +SELECT ALL + SUM ( DISTINCT - 98 ) col1, 81 / - 11 - + + CASE 60 WHEN - AVG ( + 77 ) THEN NULL WHEN - + 86 THEN 18 END * - 28 * + MIN ( ALL - 21 ) AS col1 + +Expected: ["-98","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,994 failed +* 80% was OK + +Time: 33185.926ms + +---- ---- ---- ---- ---- ---- ---- +### 447/620 [`./test/random/expr/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_72.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - 66 / 9 / + - 79 + +Expected: ["0"] but got ["0.093"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * - 91 * - 22 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + CAST ( + AVG ( DISTINCT + - 5 ) AS INTEGER ) * + + 91 AS col0, 87 + + + 56 + 1 * - + 10 / + 84 + +g is not defined +``` + + +```sql +SELECT + NULLIF ( + COUNT ( * ), CAST ( 37 AS REAL ) * - - 90 + + + 88 ) * + - 93 + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ), - 99 * CASE + SUM ( + 13 ) WHEN + 93 + - - 88 THEN CASE + 45 WHEN - 2 + 64 * - 64 THEN NULL ELSE + - NULLIF ( + ( + COUNT ( * ) ), - 52 ) * ( + + 53 ) + 85 + - 97 END WHEN + - 35 THEN + CAST ( NULL AS REAL ) * - + 77 END + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT + CASE 36 WHEN - - 90 THEN - 44 ELSE NULL END, 49 + - - 99 / 38 AS col1 + +Expected: ["NULL","51"] but got ["NULL","51.605"] +``` + + +```sql +SELECT - 83 * 6 * + - CASE WHEN COUNT ( * ) NOT BETWEEN + - COALESCE ( SUM ( DISTINCT 74 ), + 80, CAST ( - - 17 AS INTEGER ) ) AND - + 58 * - - 46 THEN 21 + + 78 END * 2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - - CASE + 72 WHEN + 72 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 22 * - 96 + - - 97 THEN + CAST ( - - 43 AS INTEGER ) + - 40 ELSE + 64 END * 40 AS col1 + +Expected: ["2560"] but got ["NULL"] +``` + + +```sql +SELECT + 79 * + + 75 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2, + 94 * 49 + - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["5926","4606"] +``` + + +```sql +SELECT DISTINCT - ( + 30 ) - 58 AS col1, + 37 * + 68 * - ( 67 ) / CAST ( NULL AS INTEGER ) * - 8 - - + 80 + - ( 45 ) AS col1 + +Expected: ["-88","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,050 failed +* 79% was OK + +Time: 35553.413ms + +---- ---- ---- ---- ---- ---- ---- +### 448/620 [`./test/random/expr/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_73.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 58 + - + 65 * + CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL"] but got ["-58"] +``` + + +```sql +SELECT ALL COUNT ( * ) / + 79 AS col2, - 64 / + COUNT ( * ) + - - MIN ( + NULLIF ( - + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - ( + 37 ) ) ) + + 43 * COUNT ( * ) - 43 + 18 AS col0 + +Expected: ["0","NULL"] but got ["0.013","NULL"] +``` + + +```sql +SELECT ALL + COUNT ( * ) + - + COUNT ( * ) AS col0, + 92 * + - 29 col0 + +Expected: ["0","-2668"] but got ["-2668"] +``` + + +```sql +SELECT + CASE - + COUNT ( * ) WHEN - - COUNT ( * ) THEN + 49 WHEN + COALESCE ( 99, + CAST ( 64 AS INTEGER ) / + + ( - 63 ) ) THEN + - 79 END + - + NULLIF ( CASE - - 99 WHEN + 82 THEN - ( + - ( + AVG ( - CAST ( NULL AS REAL ) ) ) ) END, 99 * 37 ) / 11 + +Wrong conversion type +``` + + +```sql +SELECT CASE - SUM ( - 39 ) WHEN + - 84 THEN + - 32 WHEN 93 THEN 6 ELSE NULL END AS col2, + 18 - 43 + - CAST ( NULL AS INTEGER ) * + 77 + - 22 + + 82 AS col2 + +Expected: ["NULL","NULL"] but got ["35"] +``` + + +```sql +SELECT ALL - NULLIF ( CAST ( - COALESCE ( - - COUNT ( * ), - 38 * + 74 - - 34 * 70 * + 39 ) AS INTEGER ), - 79 ) * 71 AS col1 + +g is not defined +``` + + +```sql +SELECT ALL CASE WHEN NOT + 14 BETWEEN NULL AND + COUNT ( * ) / + COUNT ( * ) * - 86 * + - 15 * - - COALESCE ( - ( - - 34 ), - 60, + - 71 * - + COUNT ( * ) * - 72 * COUNT ( * ) ) THEN + + 89 ELSE NULL END * - 1 AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - CASE WHEN NOT - COUNT ( * ) IN ( ( - 10 ) - + - NULLIF ( - - 86, - - COUNT ( * ) ) + 21 + - COALESCE ( - + ( - 85 ), - 4, + COUNT ( * ) ) * - MAX ( + 10 ), + 82 + - 31 ) THEN 63 WHEN CAST ( NULL AS INTEGER ) IS NULL THEN NULL END / 65 col2 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT 66 * 95 AS col1, + CASE ( - 82 ) WHEN + CAST ( + - 79 AS INTEGER ) + 62 + 8 + + 33 * 11 THEN 67 END AS col1 + +Expected: ["6270","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + 93 * - COUNT ( * ) * + - CASE ( + - 26 ) WHEN - + 41 * - CAST ( + + 8 AS INTEGER ) + - - 82 THEN - 11 END * - 92 AS col1, COUNT ( * ) + + + 61 + - - CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["NULL","NULL"] but got ["NULL","62"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,032 failed +* 79% was OK + +Time: 28356.921ms + +---- ---- ---- ---- ---- ---- ---- +### 449/620 [`./test/random/expr/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_74.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + - 17 / - 55 + - 25 - - 28 AS col2, 53 AS col1 + +Expected: ["3","53"] but got ["3.309","53"] +``` + + +```sql +SELECT + 13 * + 99 AS col2, + AVG ( ALL CAST ( NULL AS INTEGER ) ) + +Expected: ["1287","NULL"] but got ["1287","0"] +``` + + +```sql +SELECT ALL COUNT ( * ) AS col1, NULLIF ( + CASE + + 4 WHEN 46 * MAX ( - 9 ) THEN 92 END, + 22 ) AS col1 + +Expected: ["1","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL + - COALESCE ( + - COALESCE ( - 60, + 41 / + 24 + + CAST ( + CAST ( + ( + 52 ) AS REAL ) AS INTEGER ), + - 1 / + 67 + + - 52 * + 7 + - CAST ( - COUNT ( + 90 ) AS INTEGER ) ), 53 ) * - 93 - + 3 * + + 47 + +Wrong conversion type +``` + + +```sql +SELECT CASE WHEN NOT NULL >= CAST ( NULL AS INTEGER ) THEN NULL ELSE + CAST ( + 28 AS INTEGER ) + - - 42 END + - COUNT ( * ) - - - COUNT ( * ) * - MAX ( DISTINCT - 96 ) col0 + +Expected: ["-27"] but got ["NULL"] +``` + + +```sql +SELECT 60 * + CAST ( COUNT ( DISTINCT + + 81 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT DISTINCT - 6 / CAST ( NULL AS INTEGER ), + 58 + - - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","58"] +``` + + +```sql +SELECT ALL + - MIN ( DISTINCT + - 64 ) * + 50 + CASE 24 WHEN 12 THEN NULL WHEN + 99 + 93 + - + 5 + 35 * 2 / - - 94 * 13 - - 88 * - - CASE WHEN NOT NULL <= - 25 THEN NULL WHEN NOT 88 NOT BETWEEN 76 AND + 22 THEN - 48 ELSE NULL END THEN + 59 * - 18 END col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ), CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT + 3 AS col2, - CASE - 98 WHEN - 15 THEN - + CAST ( COUNT ( * ) AS INTEGER ) / + + 59 WHEN - 72 THEN + 7 ELSE NULL END AS col2 + +Expected: ["3","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,078 failed +* 79% was OK + +Time: 32534.597ms + +---- ---- ---- ---- ---- ---- ---- +### 450/620 [`./test/random/expr/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_75.test) + +_Mimic sqlite_ + +```sql +SELECT - + 33 / - 14 AS col2 + +Expected: ["2"] but got ["2.357"] +``` + + +```sql +SELECT ALL ( 29 ) * 58 * 47 / - COALESCE ( - 44, - COUNT ( * ) * - ( + 19 ) + - - 71, 92 ) + - 38 + + COUNT ( * ) - - 68 * - 96 - - CAST ( NULL AS INTEGER ) - + - 38 * - 28 + +Expected: ["NULL"] but got ["-5832.318"] +``` + + +```sql +SELECT DISTINCT + + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) * + ( + 72 ) / - + 14 + +g is not defined +``` + + +```sql +SELECT + ( + + 67 ) * + ( - CAST ( NULL AS REAL ) ) AS col1 + +Wrong conversion type +``` + + +```sql +SELECT + 59 AS col1, - 6 AS col0, CASE + COUNT ( * ) WHEN + 89 THEN + 18 * - MIN ( ALL 49 ) END AS col0 + +Expected: ["59","-6","NULL"] but got ["59","NULL"] +``` + + +```sql +SELECT + 7 + - 55 + + 9 / + 5 + - 2 + + + 45 + 48 + - 58 * 77 / 60 * - + COUNT ( * ) / CAST ( - COUNT ( * ) AS INTEGER ) + +Expected: ["-30"] but got ["NULL"] +``` + + +```sql +SELECT + ( CASE WHEN NULL BETWEEN - 3 AND 66 + + 92 THEN COUNT ( * ) END ) + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 75 col1, + 74 * - 17 + + CASE 61 WHEN ( + 86 ) THEN + CAST ( 99 AS INTEGER ) * + - 15 WHEN 77 THEN NULL END * - 66 * - 56 AS col1 + +Expected: ["75","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + 15 * - CAST ( NULL AS INTEGER ) + + - NULLIF ( + + 6, - 89 - - 82 ) + 61, 20 * CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["55","0"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ), - CASE - - 28 WHEN + - COUNT ( * ) THEN - 90 END AS col0 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,056 failed +* 79% was OK + +Time: 26864.136ms + +---- ---- ---- ---- ---- ---- ---- +### 451/620 [`./test/random/expr/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_76.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + 23 + + CAST ( NULL AS INTEGER ) col0 + +Expected: ["NULL"] but got ["23"] +``` + + +```sql +SELECT DISTINCT - 46 * 67 + 35 AS col0, 50 AS col0 + +Expected: ["-3047","50"] but got ["50","50"] +``` + + +```sql +SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT DISTINCT - ( + 61 ) + + CAST ( NULL AS REAL ) col2 + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) / + 96 AS col1, + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL COUNT ( * ) / - CAST ( + MIN ( 44 ) AS INTEGER ) + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT ALL + 53 / + 71 + - 80 AS col2, 92 - - - ( + CASE + 72 WHEN - 27 THEN - 98 WHEN CAST ( NULL AS INTEGER ) + + - NULLIF ( + 93, - 11 * - 62 ) THEN NULL ELSE NULL END ) AS col2 + +Expected: ["-80","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( 13 AS INTEGER ) / + CASE 49 WHEN MIN ( - 57 ) THEN - + 62 - - 37 - + 66 + + + 62 / AVG ( DISTINCT 79 ) WHEN 26 THEN + - 98 WHEN - COUNT ( * ) THEN + - 52 ELSE NULL END + + - 87 * + 23 + 81 AS col1 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT + 29 * - CASE WHEN + 89 IS NOT NULL THEN + 63 / - 97 / + 81 + + 41 + - + COUNT ( + + 32 ) * - 48 WHEN NOT ( NULL ) NOT BETWEEN ( - 61 ) AND NULL THEN 43 - - 16 END * + + 47 + CASE + 76 WHEN + 99 THEN + 16 / + - 52 WHEN 22 * + + 54 - + 15 + COALESCE ( 64, CASE 54 WHEN - 23 / 22 THEN + 54 ELSE… + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - 63 * - CASE - 66 WHEN 19 * - 86 THEN - + MIN ( + - 73 ) END, CAST ( + COUNT ( * ) AS INTEGER ) AS col2 + +Expected: ["NULL","1"] but got ["NULL","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,709 failed +* 82% was OK + +Time: 22868.030ms + +---- ---- ---- ---- ---- ---- ---- +### 452/620 [`./test/random/expr/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_77.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 29 / 20 + +Expected: ["1"] but got ["1.450"] +``` + + +```sql +SELECT ALL CASE + NULLIF ( + - 63, - 7 * - 49 + - 50 + 4 - - 7 * + - ( 71 ) * - ( 29 ) / - + 45 + + + 82 + - 87 * - 68 + + 90 ) WHEN 7 THEN NULL WHEN + + 50 THEN - 27 WHEN SUM ( + 13 ) + + 27 * - MAX ( + 21 ) THEN NULL END AS col0, 86 + +Expected: ["NULL","86"] but got ["86","NULL"] +``` + + +```sql +SELECT AVG ( - CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) - 2 + ( + - 69 ) + +Expected: ["NULL"] but got ["-71"] +``` + + +```sql +SELECT DISTINCT - + CAST ( + COUNT ( * ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL - 7 / + COALESCE ( + CAST ( NULL AS INTEGER ), - - COUNT ( * ) * - + 92 ) - - 8 + +Expected: ["8"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT 85 * CAST ( NULL AS REAL ) + - 70 + + CASE 33 WHEN + 63 THEN COALESCE ( - 50, COUNT ( * ) ) * 67 ELSE - 7 END * - 27 AS col0 + +Wrong conversion type +``` + + +```sql +SELECT ALL + + CASE WHEN NOT - 90 > NULL THEN - + COALESCE ( COALESCE ( 40, 89 * 57 + 53, 54 + + 20 - - 40 * NULLIF ( + 71, + COALESCE ( + 21, - 30 ) ), + 17 ), + AVG ( - 91 ) ) WHEN NULL NOT BETWEEN NULL AND 67 THEN COUNT ( * ) * + 94 - + 90 * + 56 ELSE NULL END AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT + 65 * - - CAST ( NULL AS INTEGER ), ( + - CAST ( - 17 AS INTEGER ) ) / - + CASE - 94 WHEN COUNT ( * ) THEN + 42 - - + MAX ( + - 18 ) / + COUNT ( * ) * + 21 ELSE NULL END * - 9 * 2 + + - 80 / - COUNT ( * ) + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) / - ( - 32 ) + - SUM ( DISTINCT - ( + 14 ) ), NULLIF ( - NULLIF ( - - AVG ( 84 ), ( MIN ( + ( 51 ) ) ) ), 5 * 45 * + AVG ( DISTINCT + 64 ) ) + + + CAST ( NULL AS INTEGER ) * 46 * 48 + +Expected: ["NULL","NULL"] but got ["14","-84"] +``` + + +```sql +SELECT 43 * - + 31 - + 29 AS col0, CASE - ( + + 79 ) WHEN - 9 + - + 99 THEN + 70 WHEN + - 91 THEN + 35 END AS col0 + +Expected: ["-1362","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,988 failed +* 80% was OK + +Time: 28233.369ms + +---- ---- ---- ---- ---- ---- ---- +### 453/620 [`./test/random/expr/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_78.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) * + - 42 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL 67 AS col1, - 25 + + 83 + + + 93 / + - 41 + 93 + +Expected: ["67","149"] but got ["67","148.732"] +``` + + +```sql +SELECT ALL + ( + ( + - 53 ) ) + - NULLIF ( + + SUM ( + + 44 ), + - CAST ( - 87 AS REAL ) + 73 * - 93 ) AS col0, - COUNT ( * ) - - + 88 + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( - COALESCE ( - ( + 57 ), + 30 - - 63 + - 63 * COUNT ( * ) * 39, + - 58 ) AS INTEGER ) / NULLIF ( + 96, + CAST ( 45 AS INTEGER ) ) - - 43 AS col0 + +g is not defined +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - MIN ( - 84 ) col0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL + 1 AS col0, + 35 + + ( - CASE WHEN NOT ( + CAST ( ( - 42 ) AS REAL ) ) IS NULL THEN NULL WHEN COUNT ( * ) BETWEEN ( NULL ) AND + COALESCE ( ( - 92 ), 86 ) THEN CAST ( 66 AS INTEGER ) END ) + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT - + 89 / - 26 * CAST ( COUNT ( * ) AS INTEGER ) / - COUNT ( * ) * + COUNT ( * ) + - 15 * + 62 - - 17 + +Expected: ["-916"] but got ["NULL"] +``` + + +```sql +SELECT ALL + 3 * + 1 + 89 + + + COUNT ( * ) + 82 AS col1, - CASE + CASE 52 WHEN - - ( - COUNT ( * ) ) * ( - + COUNT ( * ) ) * NULLIF ( + MIN ( DISTINCT - 69 ), + 52 + - 22 ) THEN NULL ELSE - COUNT ( * ) + + ( - COUNT ( ALL 14 ) ) END WHEN - - 87 * - 8 THEN - + 39 WHEN - 72 THEN NULL END / + 45 AS c… + +Expected: ["175","NULL"] but got ["NULL"] +``` + + +```sql +SELECT 24 * + MIN ( + NULLIF ( + 63, + 71 ) ) + + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - MIN ( 37 ), + 72 * - CASE + ( + SUM ( DISTINCT + 51 ) ) WHEN 93 * + 49 THEN + 44 WHEN 4 * ( - 72 ) + - 69 THEN NULL ELSE NULL END + 37 AS col1 + +Expected: ["NULL","NULL"] but got ["1475","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,030 failed +* 79% was OK + +Time: 22842.718ms + +---- ---- ---- ---- ---- ---- ---- +### 454/620 [`./test/random/expr/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_79.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 73, 21 / - CASE + COALESCE ( - 10, ( + + COALESCE ( 77, - 55 ) ), + COUNT ( * ) + 28 ) WHEN + 82 * 44 + - 75 + - 80 / 98 THEN + 27 ELSE 35 END * + 41 AS col1 + +Expected: ["73","0"] but got ["73","-0.015"] +``` + + +```sql +SELECT 43 * + + 22 * 18 * - ( - CAST ( NULL AS REAL ) ) + - 99 * - - 97 + COUNT ( * ) + 80 + +Wrong conversion type +``` + + +```sql +SELECT + 21 - + CAST ( - MAX ( + - 58 ) AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT ALL + 74 * COUNT ( + 45 ) * + + 63 * - CAST ( NULL AS INTEGER ) + - 62 - - 66 * + 94 / + ( 85 ) + +Expected: ["NULL"] but got ["10.988"] +``` + + +```sql +SELECT 58 + - CAST ( NULL AS INTEGER ) + - 57 AS col0 + +Expected: ["NULL"] but got ["1"] +``` + + +```sql +SELECT + 83 + + + 41 + CASE + 68 WHEN + 10 / - 92 THEN NULL WHEN + 82 + - COUNT ( * ) / - - 99 * - 4 THEN COUNT ( * ) END + + 20 * ( + 90 ) * - + 67 - - 72 * + 77 * - + 10 AS col2, 23 + +Expected: ["NULL","23"] but got ["23","NULL"] +``` + + +```sql +SELECT DISTINCT CASE WHEN NOT CAST ( NULL AS INTEGER ) NOT BETWEEN COUNT ( * ) + + 18 + - 23 + + - 18 AND 1 THEN 15 END AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT + ( + + 79 ) * - 48 + + CASE WHEN NOT + 81 IN ( + 76 + + 11 ) THEN + 40 ELSE NULL END AS col0 + +Expected: ["-3752"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - 28 + - 38 AS col2, CASE - 33 WHEN - 89 THEN 13 ELSE NULL END AS col2 + +Expected: ["-66","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + + 79 AS col1, CAST ( NULL AS INTEGER ) * - SUM ( - + 96 ) AS col0, + - 86 + +Expected: ["NULL","NULL","-86"] but got ["79","0","-86"] +``` + + +```sql +SELECT 91 / - ( + CAST ( NULL AS INTEGER ) ) AS col1, + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) + 22 AS col0 + +Expected: ["NULL","NULL"] but got ["NULL","22"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,066 failed +* 79% was OK + +Time: 23541.380ms + +---- ---- ---- ---- ---- ---- ---- +### 455/620 [`./test/random/expr/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT 48 / + + 76 + + - 81 + - 78 + + - 92 + +Expected: ["-251"] but got ["-250.368"] +``` + + +```sql +SELECT ALL - ( - - CAST ( COUNT ( * ) AS INTEGER ) ) + 92 + +g is not defined +``` + + +```sql +SELECT ALL - 85 * - CAST ( NULL AS INTEGER ) AS col2, 26 + +Expected: ["NULL","26"] but got ["0","26"] +``` + + +```sql +SELECT DISTINCT - 58 + + CAST ( NULL AS REAL ) - - 6 + + COUNT ( DISTINCT - 58 ) * + 23 * - COUNT ( * ) + 11 AS col2 + +Wrong conversion type +``` + + +```sql +SELECT COALESCE ( 8, - 90 ) * + 74, + CASE - COUNT ( * ) WHEN + - CASE WHEN - 50 NOT BETWEEN + ( - 5 ) + 1 * - 15 AND COUNT ( * ) THEN - 87 * + 60 END THEN NULL WHEN + 17 THEN 0 * CAST ( - CAST ( 8 AS INTEGER ) AS INTEGER ) END / 82 + - 48 * - 21 AS col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT COUNT ( * ) / - COALESCE ( + + CAST ( NULL AS INTEGER ), + - 93 + - + 11 * + 76 ), 24 / ( 29 ) + +Expected: ["0","0"] but got ["NULL","0.828"] +``` + + +```sql +SELECT DISTINCT - CASE 14 WHEN 17 + 74 THEN NULL ELSE CASE 63 WHEN + 61 THEN 95 * - - COUNT ( * ) * COUNT ( * ) - + 76 ELSE NULL END + - + 2 + 90 - 20 - - 39 / + 45 * - 43 END col2, 38 + +Expected: ["NULL","38"] but got ["38","NULL"] +``` + + +```sql +SELECT 57 + + CASE + COUNT ( * ) WHEN - 80 THEN + + 58 END - - 44 * + + 74 / - 67 + ( - COUNT ( * ) ) * + 48, CAST ( NULL AS INTEGER ) + - 20 AS col1 + +Expected: ["NULL","NULL"] but got ["NULL","-20"] +``` + + +```sql +SELECT + NULLIF ( + + 5, CAST ( - + MIN ( + COALESCE ( - - 85, + + 52 ) ) AS INTEGER ) ) + +g is not defined +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + 7 + - CAST ( - 45 AS INTEGER ) - - - 61 + - - 1 - 74, + AVG ( - - CAST ( NULL AS INTEGER ) ) + 63 AS col2 + +Expected: ["NULL","NULL"] but got ["-82","63"] +``` + + +```sql +SELECT ALL + 2 col0, ( 32 ) + - 3 + CASE - 81 WHEN - - 81 THEN 21 END + + 27 + + 93 AS col0 + +Expected: ["2","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,139 failed +* 78% was OK + +Time: 25024.695ms + +---- ---- ---- ---- ---- ---- ---- +### 456/620 [`./test/random/expr/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_80.test) + +_Mimic sqlite_ + +```sql +SELECT + 87 * + + NULLIF ( 21, - 40 * 93 / 67 ) + + + COUNT ( * ) * + - 25 - + ( - CAST ( + - AVG ( DISTINCT + ( + + 37 ) ) AS INTEGER ) ) + 15 col2 + +Expected: ["1780"] but got ["1817"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + 47 AS col0 + +Expected: ["NULL"] but got ["47"] +``` + + +```sql +SELECT DISTINCT CAST ( - COUNT ( + 42 ) AS INTEGER ) + + COALESCE ( 50, + 50 ) / - + 96 + +g is not defined +``` + + +```sql +SELECT ALL + CASE 14 WHEN + 12 THEN CASE 11 WHEN + + ( + 55 ) THEN + COUNT ( * ) + + - 79 END + + + 97 END * + 41 + + - CAST ( + 61 AS REAL ) + + - 99 * + 21 * COUNT ( * ) * + 64 * CASE 63 WHEN - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END + +Wrong conversion type +``` + + +```sql +SELECT - 3 * - CAST ( NULL AS INTEGER ) * - 28, - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT 13 + + + 43 + - 81 / ( - CASE - COUNT ( * ) WHEN CASE WHEN NOT + 69 BETWEEN ( 12 ) AND + CAST ( NULL AS INTEGER ) / + 41 THEN NULL ELSE - 51 + ( - 36 ) END * + 28 THEN NULL WHEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 92 ELSE 84 + + MAX ( 68 ) END ) + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT ( COUNT ( * ) ) + + 74 * + 15 col2, + NULLIF ( + - CASE + COUNT ( DISTINCT + 77 ) WHEN CASE + CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 84 + 32 * 53 THEN COUNT ( * ) END / + 63 THEN NULL WHEN COUNT ( * ) THEN - 73 - + 47 END, - 38 * 33 ) AS col0 + +Expected: ["1111","120"] but got ["1111","NULL"] +``` + + +```sql +SELECT ALL - 47 / - 79, + CASE - 8 WHEN - 88 THEN NULL WHEN - 98 THEN - 82 END col2 + +Expected: ["0","NULL"] but got ["0.595","NULL"] +``` + + +```sql +SELECT - 15 * - CAST ( NULL AS INTEGER ) AS col0, CASE + 56 WHEN + COUNT ( ALL - 28 ) THEN - 17 * + CAST ( NULL AS INTEGER ) WHEN - + 79 + + 53 THEN NULL END AS col2 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT 58 * 86 AS col0, 3 / CASE 35 WHEN - - 70 THEN - 18 WHEN + 19 + 17 THEN NULL END AS col0 + +Expected: ["4988","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,050 failed +* 79% was OK + +Time: 36009.902ms + +---- ---- ---- ---- ---- ---- ---- +### 457/620 [`./test/random/expr/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_81.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 83 / + CAST ( - ( + COUNT ( DISTINCT + - 13 ) ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT DISTINCT + - 91 AS col1, 41 * 89 * 33 / + 49 AS col2 + +Expected: ["-91","2457"] but got ["-91","2457.490"] +``` + + +```sql +SELECT - 8 - + + 85, - CAST ( NULL AS INTEGER ) * + + AVG ( ALL - 3 ) + - + COALESCE ( 27, AVG ( ALL - 73 ) ) + + 68 AS col1 + +Expected: ["-93","NULL"] but got ["-93","41"] +``` + + +```sql +SELECT DISTINCT + 11 / - 55 AS col2, - 56 * - CASE + 59 WHEN 71 / - SUM ( DISTINCT + - 15 ) + - - 39 THEN - ( CAST ( + COUNT ( * ) AS INTEGER ) ) / + COUNT ( * ) - + + ( + AVG ( DISTINCT - - 58 ) ) END AS col2 + +Expected: ["0","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + CASE + - 24 WHEN - 20 - - ( - 25 ) - + 6 + CAST ( 1 AS REAL ) * - 60 THEN - 32 / - ( NULLIF ( CASE - CASE + 44 WHEN + COUNT ( * ) THEN 44 WHEN - SUM ( - 57 ) * - COUNT ( DISTINCT 27 ) + 32 THEN NULL END WHEN - AVG ( 15 ) * - 92 + COUNT ( * ) THEN NULL WHEN + AVG ( 87 ) THEN + 19 END, CAST … + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + NULLIF ( 94, + CASE WHEN ( NULL ) BETWEEN + - 85 AND ( - CAST ( NULL AS REAL ) ) THEN + - 65 END * 30 ) + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT 7 / - 75 AS col2, CASE + - CAST ( NULL AS INTEGER ) WHEN 26 THEN + 12 END AS col2 + +Expected: ["0","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT - 25 + CASE 55 WHEN - - 22 - - MIN ( ALL + 24 ) + - 3 + - - SUM ( ALL - 57 ) - 90 THEN - 33 + - + 75 + - 78 + 0 - - 50 ELSE NULL END AS col2, CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT MAX ( - - CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + 91 AS col0, - ( - - CAST ( NULL AS INTEGER ) ) + - 4 * - - COALESCE ( CAST ( NULL AS INTEGER ), 21 ) * + 30 col2 + +Expected: ["NULL","NULL"] but got ["91","0"] +``` + + +```sql +SELECT DISTINCT + + 54 / COALESCE ( + NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) * + - 25 ), - 81 * + - 82 ) + +Expected: ["0"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,042 failed +* 79% was OK + +Time: 28305.879ms + +---- ---- ---- ---- ---- ---- ---- +### 458/620 [`./test/random/expr/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_82.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + CAST ( NULL AS REAL ) * - + ( - - 25 ) / COUNT ( * ), + 77 * - + 30 AS col2 + +Wrong conversion type +``` + + +```sql +SELECT ( - 62 ) col2, + 15 - - 94 AS col2 + +Expected: ["-62","109"] but got ["109","109"] +``` + + +```sql +SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL 73 * CAST ( NULL AS INTEGER ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL + COALESCE ( - 59, - COUNT ( * ), + 69 ) * - ( - - NULLIF ( 0, - CAST ( NULL AS INTEGER ) ) ) + 15 + +Expected: ["15"] but got ["NULL"] +``` + + +```sql +SELECT - CASE WHEN ( NULL BETWEEN 59 AND ( + 22 ) ) THEN 48 ELSE 91 END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * - 54 col2, - ( + 51 ) * + + 11 + - - 13 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","-574"] +``` + + +```sql +SELECT + - CAST ( NULL AS INTEGER ) + - - 18, COUNT ( + 5 ) / - ( - 61 ) + + CASE + 45 WHEN + 47 THEN + - MIN ( DISTINCT + + 89 ) ELSE NULL END AS col0 + +Expected: ["NULL","NULL"] but got ["18","NULL"] +``` + + +```sql +SELECT ALL + 66 AS col2, - CASE + + 15 WHEN - 55 THEN + 61 WHEN COUNT ( + 23 ) THEN COUNT ( * ) * - 72 END AS col2 + +Expected: ["66","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL 34 AS col0, - CASE - 29 WHEN - + ( 36 ) + + 11 + - 97 - + + 86 THEN - 52 * + 46 END AS col0 + +Expected: ["34","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,104 failed +* 78% was OK + +Time: 27055.651ms + +---- ---- ---- ---- ---- ---- ---- +### 459/620 [`./test/random/expr/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_83.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 59 * + + COUNT ( * ) + 2 * + 74 AS col0, - 41 * - 3 + - + COUNT ( * ) + COUNT ( - + 61 ) + 67 + + + NULLIF ( 53, - 94 ) * - + COALESCE ( - ( + + 10 ), + COUNT ( * ) * - 77 * - + 38 * + 37 + - - 22 * + - 45 * + 29 - + + 62 ) / - 1 + 47 + ( - 83 ) * - COUNT ( - 52 ) AS col0 + +Expected: ["207","-210"] but got ["-210"] +``` + + +```sql +SELECT CASE - + 55 WHEN + 44 THEN NULL ELSE + + 12 + + 10 + - - 81 END * + 9 + + 68 + + CAST ( NULL AS INTEGER ), 63 - 52 col0 + +Expected: ["NULL","11"] but got ["995","11"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS REAL ) + ( 90 - 27 * + COUNT ( * ) ) + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( SUM ( 80 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL 7 AS col1, 61 - - CASE 2 WHEN + 33 - 65 THEN + COUNT ( * ) WHEN + - 43 - - + 70 - 15 * + 96 * 65 * - + 80 / - 25 * - - COUNT ( * ) THEN NULL ELSE NULL END + + 64 + + 71 * + + ( - COUNT ( * ) ) / - CASE - 36 WHEN 30 THEN NULL ELSE 57 + - ( - 61 ) * - + 51 END * + 66 * - 71 - + NULLIF ( + … + +Expected: ["7","NULL"] but got ["NULL"] +``` + + +```sql +SELECT - CASE WHEN NOT + 0 BETWEEN + MIN ( ALL CASE 3 WHEN 84 THEN - 60 * 42 ELSE NULL END ) * 55 AND + 34 THEN + 19 + - 10 WHEN NULL <= ( NULL ) THEN COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) END + + 1 * - 6 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - + 53 / + MIN ( + 13 ) + + CASE CAST ( NULL AS INTEGER ) WHEN - 93 / + 39 / + 16 * 32 * - - CAST ( NULL AS INTEGER ) * - 88 THEN NULL ELSE 29 END + - + 54 / ( - NULLIF ( + 68, - 92 * + SUM ( DISTINCT 95 ) * 67 / - 43 + - 73 + - 69 + + 58 * - 22 * 25 + - 5 * - CAST ( NULL AS INTEGER ) + + 29… + +Expected: ["-848"] but got ["NULL"] +``` + + +```sql +SELECT ALL 87 * - ( CAST ( NULL AS INTEGER ) ), + CASE - 33 WHEN - SUM ( DISTINCT + 67 ) THEN + - ( - CASE + 97 WHEN - + 79 THEN 78 END ) * + 10 / - 46 WHEN + 27 THEN NULL END * + + 66 AS col1 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT 6 * - CAST ( NULL AS INTEGER ), + CAST ( + + ( - 16 ) AS INTEGER ) * - COUNT ( * ) / + 33 + CAST ( NULL AS INTEGER ) + - - 87 * + CAST ( - 3 AS INTEGER ) - + + 95 + - 47 AS col1 + +Expected: ["NULL","NULL"] but got ["0","-402.515"] +``` + + +```sql +SELECT + 18 / + 89 + +Expected: ["0"] but got ["0.202"] +``` + + +```sql +SELECT COUNT ( * ) / 79 - + 99 AS col1 + +Expected: ["-99"] but got ["-98.987"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,995 failed +* 80% was OK + +Time: 26289.136ms + +---- ---- ---- ---- ---- ---- ---- +### 460/620 [`./test/random/expr/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_84.test) + +_Mimic sqlite_ + +```sql +SELECT ALL CASE CAST ( NULL AS REAL ) WHEN - 52 THEN 52 WHEN 44 THEN 53 + + ( + 59 + - 46 ) * - CAST ( + 26 AS INTEGER ) END col1 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 83 / - 12 + +Expected: ["6"] but got ["6.917"] +``` + + +```sql +SELECT ALL + + 2 * + + 28 * - - CAST ( NULL AS INTEGER ) * 24 + + 71 + +Expected: ["NULL"] but got ["71"] +``` + + +```sql +SELECT + CAST ( - AVG ( ALL - 11 ) AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT DISTINCT 92 / + - 84 + +Expected: ["-1"] but got ["-1.095"] +``` + + +```sql +SELECT - 44 / - 64, - CASE COALESCE ( COUNT ( * ), + 87 * MAX ( + 68 ) + - 32 / - 54 + MAX ( DISTINCT 73 ) / + NULLIF ( + 44, + CASE 3 WHEN - 51 + - + COUNT ( * ) * + + 84 THEN NULL WHEN - 64 THEN - + 43 ELSE - 37 END * + 93 * + MIN ( ALL - + 27 ) ), + 64 * ( + CASE 3 WHEN 8 * - 72 - + 45 THEN 7 EN… + +Expected: ["0","NULL"] but got ["0.688","NULL"] +``` + + +```sql +SELECT + 57 * CASE WHEN NOT ( NULL ) NOT BETWEEN - 49 AND - - COUNT ( * ) * - COUNT ( * ) * - COALESCE ( - - 53, - NULLIF ( + AVG ( + 14 ), + 57 + - + COUNT ( * ) + - - ( 20 ) + + 75 / 66 ) ) + - + COALESCE ( 36, - COALESCE ( - 46, + - CASE - ( + 57 ) WHEN + 95 THEN NULL WHEN + CASE + - 33 WHEN - 2… + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - NULLIF ( + ( - 0 ), + ( CAST ( NULL AS INTEGER ) ) ) AS col1 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT 31 + 95 + - COUNT ( * ) + - ( + 33 ) - + - ( - 9 ) * - - CASE - COALESCE ( AVG ( - + 35 ), - - ( + CAST ( NULL AS INTEGER ) ) * 70, + SUM ( - + ( - + 20 ) ) / + CAST ( NULL AS INTEGER ) / ( + 50 ) ) WHEN - 47 / 5 + COUNT ( * ) THEN - 61 + 86 END, 61 + + CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","61"] +``` + + +```sql +SELECT 49 + - 56 + - 27 + 60 AS col2, CASE - 25 WHEN - 92 THEN NULL WHEN - 79 * - 81 THEN + 47 * + 87 END AS col2 + +Expected: ["26","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,992 failed +* 80% was OK + +Time: 33503.424ms + +---- ---- ---- ---- ---- ---- ---- +### 461/620 [`./test/random/expr/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_85.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 9 / + 92 + - 43 * - + COUNT ( * ) * - 98 + +Expected: ["-4214"] but got ["-4213.902"] +``` + + +```sql +SELECT ALL 26 * + 14 + + - 9 * - CAST ( NULL AS INTEGER ) * + + 83 + - 82 + 78 * 55 AS col2 + +Expected: ["NULL"] but got ["4572"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / + CASE - 28 WHEN - 68 THEN 80 WHEN + 37 THEN NULL WHEN - 67 THEN - 1 ELSE NULL END + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT ALL + 27 + + 98 + + CAST ( NULL AS REAL ) + + + 28 + - 8 * - 14 + - 75 - + NULLIF ( - 35, + 33 - 13 ) * 17 * COALESCE ( + COUNT ( * ), + CAST ( - 46 AS INTEGER ) ) * 8 AS col2 + +Wrong conversion type +``` + + +```sql +SELECT 98 + + 54 * CAST ( - + COUNT ( * ) AS INTEGER ) - 18 + + 34 / 2 - 4 col1 + +g is not defined +``` + + +```sql +SELECT ALL - 84 AS col0, CASE - 33 WHEN + + 31 THEN - CAST ( 9 AS REAL ) END AS col0 + +Expected: ["-84","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT 99 / 81 + +Expected: ["1"] but got ["1.222"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - + + 71 AS col2 + +Expected: ["NULL","NULL"] but got ["0","-71"] +``` + + +```sql +SELECT ALL + 17 * + COUNT ( * ) AS col0, + 81 / + 26 + + + CASE - 1 WHEN + COALESCE ( + COUNT ( - + 7 ), + 78 ) / + 77 - - 16 - - - 42 + - 85 + + + COUNT ( * ) * COUNT ( * ) + - 67 THEN + COALESCE ( 36, - 54, + + 80 ) END AS col0 + +Expected: ["17","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + - ( - + COUNT ( * ) ) - CASE WHEN NOT ( NULL ) NOT BETWEEN + 70 AND + MAX ( ALL + + ( + 2 ) ) + - + 74 THEN + 11 ELSE NULL END AS col1 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT - - CASE WHEN NOT - 9 IN ( + 59 - + SUM ( DISTINCT - + ( - 5 ) ) ) THEN - 53 WHEN ( 17 * + 60 ) NOT IN ( + 45 * 9 + 60 ) OR + ( COUNT ( * ) ) * + 19 IS NULL THEN NULL ELSE NULL END + +Expected: ["-53"] but got ["NULL"] +``` + + +```sql +SELECT 46 / - - 15 + +Expected: ["3"] but got ["3.067"] +``` + + +```sql +SELECT 5 / - 35 AS col1 + +Expected: ["0"] but got ["-0.143"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,033 failed +* 79% was OK + +Time: 27011.384ms + +---- ---- ---- ---- ---- ---- ---- +### 462/620 [`./test/random/expr/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_86.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 64 * ( - + 83 ) + - 88 + + + COUNT ( * ) * - 77 / 55 AS col1 + +Expected: ["-5401"] but got ["-5401.400"] +``` + + +```sql +SELECT ALL + 30 + CAST ( NULL AS INTEGER ) + +Expected: ["NULL"] but got ["30"] +``` + + +```sql +SELECT ALL AVG ( DISTINCT CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT + 65 * + 50 * + - MIN ( ALL - ( + 16 ) ) + CAST ( NULL AS INTEGER ) + - 10 + - 93, + CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["51897","0"] +``` + + +```sql +SELECT ALL 37 * 65 + - 66 * CAST ( AVG ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + ( + COALESCE ( + 22, - 4 + 68 ) ) + - 61 AS col1 + +g is not defined +``` + + +```sql +SELECT ALL NULLIF ( ( - CASE - 78 WHEN + + COUNT ( * ) THEN - + 84 - - + 81 END ), 44 ) AS col2, 44 + +Expected: ["NULL","44"] but got ["44","NULL"] +``` + + +```sql +SELECT 51 * + - CASE WHEN NOT 1 BETWEEN - MIN ( - NULLIF ( - 96, 11 ) ) AND ( COUNT ( * ) ) THEN COUNT ( DISTINCT - 90 ) ELSE NULL END col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) + + + 83 + 10 AS col0, CASE - 86 WHEN - + 24 - 95 / - COUNT ( ALL 74 ) THEN - - 25 * + COALESCE ( 2, - 42 ) ELSE NULL END + +Expected: ["NULL","NULL"] but got ["93","NULL"] +``` + + +```sql +SELECT ALL + - MIN ( - + 93 ) * - NULLIF ( 0, + CAST ( NULL AS INTEGER ) * - 32 ) * - MIN ( - 70 ) - - 23 + - 25 AS col0 + +Expected: ["-2"] but got ["NULL"] +``` + + +```sql +SELECT ALL + 13 col1, + 39 * - ( + 90 ) / + - CAST ( NULL AS INTEGER ) col1 + +Expected: ["13","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,906 failed +* 80% was OK + +Time: 25791.586ms + +---- ---- ---- ---- ---- ---- ---- +### 463/620 [`./test/random/expr/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_87.test) + +_Mimic sqlite_ + +```sql +SELECT - + 82 / + 97 + +Expected: ["0"] but got ["-0.845"] +``` + + +```sql +SELECT + 40 * + CAST ( NULL AS INTEGER ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL - + CAST ( - 61 AS INTEGER ) * 65 / + - CAST ( NULL AS REAL ) AS col0 + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( - MIN ( - 52 ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) AS col1 + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - - CAST ( NULL AS INTEGER ), CASE 2 WHEN - - 11 THEN + - 26 ELSE NULL END + - CASE - 39 WHEN 42 THEN - 29 * - 75 WHEN 43 * 60 THEN NULL ELSE - 13 + 92 END + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT 94 * COUNT ( * ) / + 77 AS col0, - CASE + - 59 WHEN + 81 THEN - - 47 + COALESCE ( 76, - 97 ) WHEN - 3 THEN CAST ( 92 AS INTEGER ) + 59 WHEN + 61 THEN NULL END AS col0 + +Expected: ["1","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,739 failed +* 82% was OK + +Time: 18686.830ms + +---- ---- ---- ---- ---- ---- ---- +### 464/620 [`./test/random/expr/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_88.test) + +_Mimic sqlite_ + +```sql +SELECT 66 * - ( - 51 ) * + 9 + CAST ( NULL AS INTEGER ) + - 68 - - 59 + - 8 * - + 43 + + COUNT ( * ) AS col0 + +Expected: ["NULL"] but got ["30630"] +``` + + +```sql +SELECT DISTINCT - SUM ( ALL 2 ) * - 92 + + 94 - - ( - COUNT ( * ) ) / + 48 - 15 col0 + +Expected: ["263"] but got ["262.979"] +``` + + +```sql +SELECT ALL - COUNT ( + 82 ) * + CAST ( NULL AS REAL ) * + - 98 / - 12 AS col0, - 89 + +Wrong conversion type +``` + + +```sql +SELECT ALL + 80 * + 85 + + CAST ( + - COUNT ( * ) AS INTEGER ) * + 9 AS col2 + +g is not defined +``` + + +```sql +SELECT 80 + COUNT ( * ) * 93 * - NULLIF ( 6, + COUNT ( 33 ) ) - - CASE WHEN NOT 17 NOT BETWEEN - 91 - - 31 AND 36 THEN - + 3 ELSE NULL END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL + CASE - + 44 WHEN 51 * - 55 - + + 99 * - ( - 28 ) * - + 88 THEN 40 ELSE NULL END, 84 * - + CAST ( NULL AS INTEGER ) / + 18 + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT ALL + 0 + - COALESCE ( - CASE - 81 WHEN - 57 THEN NULL WHEN 91 THEN NULL WHEN - 82 * COALESCE ( + 86, 40 ) THEN NULL ELSE 48 / - CAST ( NULL AS INTEGER ) + + 16 * 43 END, 57 ) + - 69 / - 81 col0 + +Expected: ["-57"] but got ["NULL"] +``` + + +```sql +SELECT ALL CASE 45 WHEN 49 THEN COUNT ( * ) ELSE NULL END AS col1, 52 + +Expected: ["NULL","52"] but got ["52","NULL"] +``` + + +```sql +SELECT ALL 80 AS col2, + CASE - 98 WHEN 50 THEN + - 29 WHEN - + 24 / + 61 * - 43 THEN NULL END AS col2 + +Expected: ["80","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL AVG ( - - 41 ) + - - 2 * 48 * - - NULLIF ( + NULLIF ( CAST ( NULL AS INTEGER ), + 84 * + 66 + + + COUNT ( * ) + - 18 ), ( - 35 ) + 61 ) * 61 AS col0, CAST ( NULL AS INTEGER ) AS col1 + +Expected: ["NULL","NULL"] but got ["41","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,085 failed +* 79% was OK + +Time: 28880.761ms + +---- ---- ---- ---- ---- ---- ---- +### 465/620 [`./test/random/expr/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_89.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 84 * 63 / - - 50 + - 59 + - 22 + + + COUNT ( * ) + - 50 * - 72 * CAST ( NULL AS REAL ) / - 56 AS col1 + +Wrong conversion type +``` + + +```sql +SELECT ALL + + ( - 63 ) * CAST ( NULL AS INTEGER ) * - 28 * AVG ( - - 65 ) / - 65 + + 98 * + 80 + +Expected: ["NULL"] but got ["7840"] +``` + + +```sql +SELECT ALL 75 * + CAST ( NULL AS INTEGER ) * ( - + 42 ), + CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT + COALESCE ( + - ( 51 ), 10 * - + 5 - + - 48 ) / - + 7 - - + 54 AS col1 + +Expected: ["61"] but got ["61.286"] +``` + + +```sql +SELECT - CAST ( - MIN ( + 22 ) AS INTEGER ) AS col1 + +g is not defined +``` + + +```sql +SELECT CASE - + 76 WHEN + 7 THEN - - 30 END + + - 8 * ( - - 71 ) + COUNT ( * ) AS col2, + 34 / 84 + +Expected: ["NULL","0"] but got ["NULL","0.405"] +``` + + +```sql +SELECT ALL + 38 * - - 77 AS col2, + 62 / + - CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["2926","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL - 0 * 71 + CAST ( NULL AS INTEGER ) AS col0, 0 + + + CASE + 94 WHEN + 89 * + + CAST ( 35 AS INTEGER ) THEN - 28 END * - COUNT ( * ) + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT - - CASE WHEN NOT - + 21 BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL OR NOT + + 78 * ( + 77 ) * - 87 - + - 18 * - 28 * 4 + - + CASE - 1 WHEN + - 80 THEN - 15 WHEN 22 * ( + 38 ) + + - 64 + - CASE + 33 WHEN + - COUNT ( * ) THEN - COUNT ( ALL ( 6 ) ) END THEN NULL WHEN - 27 + + + 59 * - 87 * … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL + 47 col2, 4 * - ( + 8 ) + - 16 + - 42 + SUM ( ALL - - 67 ) * ( + CASE - + SUM ( + + 41 ) WHEN + - 41 * - - 71 THEN NULL WHEN + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END ) + - - 52 col2, - - 26 - 94 + - CASE - + 20 WHEN - + CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) * - 43 +… + +Expected: ["47","NULL","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + COALESCE ( + 17, + 23 ) * 5 + + - CASE WHEN NOT NULL > NULL THEN + CASE WHEN NOT + 3 IS NULL THEN NULL ELSE ( NULLIF ( NULLIF ( COUNT ( * ), - MIN ( ALL 2 ) ), - COALESCE ( + MAX ( ALL 12 ), 23 * 61, - COUNT ( * ) ) ) ) END WHEN NULL < ( COUNT ( * ) ) THEN NULL ELSE 17 * 10 END col2 + +Expected: ["-85"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,004 failed +* 79% was OK + +Time: 32705.686ms + +---- ---- ---- ---- ---- ---- ---- +### 466/620 [`./test/random/expr/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT - NULLIF ( 52, 73 ) / - 38 AS col1 + +Expected: ["1"] but got ["1.368"] +``` + + +```sql +SELECT ALL 8 + - CAST ( NULL AS INTEGER ) * ( - 85 ) AS col0 + +Expected: ["NULL"] but got ["8"] +``` + + +```sql +SELECT 22 col1, 35 * + CASE 28 WHEN 4 THEN NULL WHEN - 57 THEN 46 END * + 57 / - 91 AS col1 + +Expected: ["22","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL - 53, 56 * ( + ( + ( - CAST ( NULL AS REAL ) ) ) ) + - + 68 - - - MIN ( - - ( - 69 ) ) * - 98 + + MAX ( + 97 ) * CASE - 4 WHEN - 23 * 97 + COUNT ( DISTINCT 40 ) THEN 80 WHEN 54 * 2 THEN - 96 ELSE - MAX ( 94 ) END AS col1 + +Wrong conversion type +``` + + +```sql +SELECT ALL + CAST ( + ( COUNT ( * ) ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT ALL + COUNT ( * ) AS col1, 53 / CASE - 61 WHEN 73 + COUNT ( * ) THEN COUNT ( * ) * - 10 + - - 16 + + + 38 / COUNT ( DISTINCT 78 ) + + 15 + 1 WHEN - + 91 THEN + COUNT ( * ) + 49 END + 14 / 6 col1 + +Expected: ["1","NULL"] but got ["NULL"] +``` + + +```sql +SELECT CASE - COALESCE ( + 2, - CAST ( NULL AS INTEGER ) ) WHEN + + 11 * - + 93 * 31 THEN 1 + + 71 WHEN - 72 THEN NULL END - - CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN - 33 BETWEEN ( NULL ) AND - 14 THEN + 27 END - + 30 / - COALESCE ( 26, - NULLIF ( - 59, - COUNT ( * ) ) + + COUNT ( * ) + + 41… + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + + 74 col0, CASE WHEN NOT NULL >= ( NULL ) THEN NULL ELSE 80 END * - 68 + +Expected: ["74","-5440"] but got ["74","NULL"] +``` + + +```sql +SELECT - 12 * + ( - CAST ( NULL AS INTEGER ) ) AS col0, + CASE MAX ( - 48 ) WHEN 20 * - 45 THEN COUNT ( * ) WHEN - 8 THEN 60 ELSE NULL END AS col0 + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + ( + + 12 ) + - + 36 + - 83 * - 12 * ( - 71 ) * + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + ( + 21 ) ) * 16 + - 97, CAST ( NULL AS INTEGER ) * - 90 AS col2 + +Expected: ["NULL","NULL"] but got ["-121","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,046 failed +* 79% was OK + +Time: 26486.700ms + +---- ---- ---- ---- ---- ---- ---- +### 467/620 [`./test/random/expr/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_90.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + 87 / + - 33 + - - 77 AS col2 + +Expected: ["75"] but got ["74.364"] +``` + + +```sql +SELECT ALL COUNT ( * ) / + - MIN ( ( - 7 ) ) * - 70 + - - 98 + MIN ( ALL 43 ) * 36 * + - 0 - + + CAST ( NULL AS INTEGER ) + + - NULLIF ( + 75, + 17 ) / - SUM ( + 84 ) AS col0 + +Expected: ["NULL"] but got ["98.891"] +``` + + +```sql +SELECT ALL + 6 * + 21 * 76 - - + 49 AS col0, 92 + CASE - + COUNT ( * ) WHEN - COUNT ( * ) * 13 - + 63 * + + 60 * + 20 + - - 56 THEN COUNT ( * ) WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN - - 51 + - 41 ELSE NULL END + + + 44 + 51 * + 67 * 43 AS col0 + +Expected: ["9625","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + - CAST ( COUNT ( * ) AS INTEGER ) + + 43 + + 65 * 85 + + 58 + +g is not defined +``` + + +```sql +SELECT DISTINCT CASE - 86 WHEN - CASE + 36 WHEN + 88 * + 42 THEN NULL WHEN + - 54 THEN - - 43 END + ( CAST ( + 28 AS REAL ) ) + + 84 * 12 + + + NULLIF ( + 89, - 80 ) THEN NULL WHEN - 12 * 6 THEN - 37 + 91 * + ( + - 19 ) * + + COUNT ( * ) * 86 - ( 18 ) + - 91 / - + 52 * + COUNT ( * ) * - 54 END + +Wrong conversion type +``` + + +```sql +SELECT - CASE WHEN NOT 26 IN ( + 95 ) THEN - NULLIF ( 63, + COUNT ( * ) ) * MIN ( DISTINCT 12 ) WHEN NOT ( COUNT ( * ) - 68 * + 98 ) IS NULL THEN NULL ELSE NULL END * + 51 + +Expected: ["38556"] but got ["NULL"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL + 83 + 0 * - CASE WHEN NOT + NULLIF ( - 5, - 71 * 0 + - - 57 ) BETWEEN - 72 AND ( 54 * - COUNT ( * ) + 86 ) THEN NULL WHEN NOT ( - ( - CAST ( NULL AS INTEGER ) ) ) NOT BETWEEN + 11 / COUNT ( * ) AND - 43 THEN - COUNT ( * ) * + NULLIF ( CAST ( NULL AS INTEGER ), 16 + 8 ) + + 93 END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL 79 + 54 + - 5 AS col1, CAST ( NULL AS INTEGER ), 10 * - CASE - 51 WHEN - 61 THEN 78 - + 45 WHEN - 80 * - - 76 * + - 5 + NULLIF ( - 94 + 52, - 26 ) / ( 17 + - COUNT ( * ) ) THEN + 82 ELSE NULL END + +Expected: ["128","NULL","NULL"] but got ["128","0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,060 failed +* 79% was OK + +Time: 25624.403ms + +---- ---- ---- ---- ---- ---- ---- +### 468/620 [`./test/random/expr/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_91.test) + +_Mimic sqlite_ + +```sql +SELECT - CASE + - 1 WHEN CAST ( NULL AS INTEGER ) THEN - 64 ELSE - + 18 + + ( 90 ) / - 14 + - 60 END AS col1 + +Expected: ["84"] but got ["84.429"] +``` + + +```sql +SELECT ALL + + 59 + CAST ( NULL AS INTEGER ) - + 73 / + + 14 col2 + +Expected: ["NULL"] but got ["53.786"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS REAL ) - 61 col0 + +Wrong conversion type +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + 26 AS col1, CAST ( NULL AS INTEGER ) col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT + 49 * CASE ( ( - 89 ) ) WHEN - - 55 THEN NULL WHEN - COUNT ( * ) THEN - ( 25 ) ELSE NULL END AS col2, 33 + +Expected: ["NULL","33"] but got ["33","NULL"] +``` + + +```sql +SELECT - CAST ( COALESCE ( CASE COUNT ( * ) WHEN 58 THEN NULL WHEN + ( + 76 ) THEN 40 WHEN 91 THEN - 91 * + COUNT ( * ) ELSE NULL END, - 85 ) AS INTEGER ) * - 14 + - 27 / 53 AS col2 + +g is not defined +``` + + +```sql +SELECT DISTINCT - - ( - - CASE WHEN NOT + 87 BETWEEN NULL AND ( NULL ) THEN + 33 END ) + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL 66 AS col0, 57 - - CASE 41 WHEN - 95 - - 18 THEN - + 93 ELSE NULL END AS col0 + +Expected: ["66","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT 33 / ( + CAST ( COUNT ( * ) AS INTEGER ) ) + - COUNT ( * ) / + 26 AS col2 + +Expected: ["33"] but got ["NULL"] +``` + + +```sql +SELECT - - CAST ( NULL AS INTEGER ) + + 88 AS col2, - CASE 76 WHEN - CASE - 62 WHEN - 68 * COUNT ( + 7 ) - 54 THEN - 69 END * + 86 THEN NULL WHEN - - 25 THEN + COALESCE ( MIN ( ALL + + 5 ), - 46 * + CAST ( + CAST ( + 75 AS INTEGER ) AS INTEGER ) + 76 ) WHEN - 10 + 76 THEN 88 ELSE NULL END * 79 + + … + +Expected: ["NULL","NULL"] but got ["88","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,050 failed +* 79% was OK + +Time: 26319.393ms + +---- ---- ---- ---- ---- ---- ---- +### 469/620 [`./test/random/expr/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_92.test) + +_Mimic sqlite_ + +```sql +SELECT COALESCE ( - 92, - COUNT ( * ) * COUNT ( * ) * + 9 ) / - 68 + +Expected: ["1"] but got ["1.353"] +``` + + +```sql +SELECT 67 * - CAST ( NULL AS INTEGER ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + - 40 * + CAST ( - ( + + COUNT ( * ) ) AS INTEGER ) AS col0 + +g is not defined +``` + + +```sql +SELECT ALL ( + COALESCE ( - COUNT ( * ), - 56, + MAX ( ALL - 85 ), NULLIF ( 10, + 41 ) ) ) * + COUNT ( * ) + + 42 * ( COUNT ( * ) - NULLIF ( - MAX ( ALL 58 ), NULLIF ( COUNT ( * ), + 47 + + 16 ) * - COALESCE ( COALESCE ( + CAST ( - 9 AS REAL ), + COUNT ( * ) / ( + 18 / 68 ), + 67 ) * + 51 - + 62, 9… + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - CASE WHEN NOT + COALESCE ( + CAST ( ( 16 ) AS INTEGER ), + 92 + - 66, CAST ( NULL AS INTEGER ) * - 47 ) NOT BETWEEN NULLIF ( 98, 67 ) * + 63 AND COUNT ( * ) + 21 THEN CASE 84 WHEN + 36 THEN NULLIF ( 2, - ( 57 ) ) + 72 * 16 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END END col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL COUNT ( * ) AS col2, CASE + COUNT ( * ) WHEN 94 THEN 38 END AS col2 + +Expected: ["1","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + - CAST ( NULL AS INTEGER ) col2, + 46 + - - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","46"] +``` + + +```sql +SELECT DISTINCT COUNT ( * ) + + 69 / CAST ( + + MIN ( 45 ) AS INTEGER ) + + + 48 * + 31 col1 + +Expected: ["1490"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT 84 + - 94 * + CAST ( NULL AS INTEGER ) + 10 AS col2 + +Expected: ["NULL"] but got ["94"] +``` + + +```sql +SELECT ALL + 8 AS col0, 32 * ( + COALESCE ( + - 41, 66 ) ) / + - CAST ( NULL AS INTEGER ) * - 97 * + 6 + - + 41 + - - 50 AS col0 + +Expected: ["8","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL - ( + CAST ( NULL AS INTEGER ) ), + CASE + 89 WHEN 95 THEN 91 * + - 49 END + 19 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,097 failed +* 79% was OK + +Time: 36929.795ms + +---- ---- ---- ---- ---- ---- ---- +### 470/620 [`./test/random/expr/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_93.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 25 / 11 + +Expected: ["-2"] but got ["-2.273"] +``` + + +```sql +SELECT ALL - 98 * - ( 70 ) * + CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + CASE - 24 WHEN 25 / - ( + COUNT ( * ) ) + - 9 THEN 53 WHEN CAST ( - 48 AS REAL ) THEN NULL ELSE - 59 / 62 END * - 31 + - 93 + +Wrong conversion type +``` + + +```sql +SELECT ALL + 94 * CAST ( + NULLIF ( + + 66, - COUNT ( * ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) / 49 + - 27 + CASE WHEN NOT 32 BETWEEN - 37 + - 51 AND - ( + 3 ) / COUNT ( * ) THEN NULL WHEN 80 + MAX ( + ( 47 ) ) >= + 28 * 8 THEN + 29 + 81 ELSE NULL END - - 25 * + 34 * + COUNT ( * ) col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL + + 68 * + COUNT ( * ) * - 50 + + + CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["-3400","0"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ), CASE 21 WHEN CASE + 11 WHEN 9 THEN + 2 + + 60 END / - 0 + 93 THEN + + ( + - 69 ) END AS col2 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT 18 / 31, CASE - - 1 WHEN + 74 * 49 THEN NULL WHEN - 25 THEN 26 + 77 WHEN - 80 THEN 27 END * + 32 AS col1 + +Expected: ["0","NULL"] but got ["0.581","NULL"] +``` + + +```sql +SELECT 75 + - - CASE WHEN NOT ( NULL ) >= 4 THEN NULL WHEN NOT 24 IN ( 77 * + AVG ( + 27 ) + 72 * 4 ) THEN + 91 + - ( 2 + + ( 55 ) ) / + 18 END AS col2 + +Expected: ["163"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,047 failed +* 79% was OK + +Time: 35314.022ms + +---- ---- ---- ---- ---- ---- ---- +### 471/620 [`./test/random/expr/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_94.test) + +_Mimic sqlite_ + +```sql +SELECT - MIN ( DISTINCT - 33 ) * - 19 + - + 3 / - 39 + +Expected: ["-627"] but got ["-626.923"] +``` + + +```sql +SELECT ALL - + 13 + + CAST ( NULL AS INTEGER ) - - + 94 + +Expected: ["NULL"] but got ["81"] +``` + + +```sql +SELECT - ( + CAST ( NULL AS REAL ) ) AS col0 + +Wrong conversion type +``` + + +```sql +SELECT + 16 + - 24 AS col1, 24 / - AVG ( DISTINCT - + 34 ) * 20 * + CASE + 27 WHEN 24 THEN NULL WHEN + 51 * - COUNT ( * ) THEN NULL WHEN - CAST ( 69 AS INTEGER ) THEN NULLIF ( + 87, CAST ( NULL AS INTEGER ) ) ELSE NULL END + 45 AS col1 + +Expected: ["-8","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT 35 - + + 66 * 92 + - ( - - CAST ( + MIN ( DISTINCT - 53 ) AS INTEGER ) ) AS col2 + +g is not defined +``` + + +```sql +SELECT - CASE WHEN + 88 NOT BETWEEN - 13 AND - CAST ( - 77 AS INTEGER ) / 50 - - 89 + + 31 * + 65 THEN NULLIF ( - 49, + + 71 ) END + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 85 AS col2, CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT - CASE COUNT ( * ) WHEN ( COUNT ( * ) ) / + 60 - + - COUNT ( - 16 ) THEN - 57 - + 28 WHEN - 42 THEN CASE + 62 WHEN 22 / - 98 + - 69 * - COUNT ( * ) THEN - 86 WHEN + ( + 13 ) THEN NULL WHEN - 86 THEN + 88 * 82 WHEN 94 * + 28 + + COUNT ( * ) THEN NULL ELSE + 81 * 49 + + 84 * - 70 END END AS co… + +Expected: ["85"] but got ["NULL"] +``` + + +```sql +SELECT 59 col2, CASE - 75 WHEN 56 THEN + 53 WHEN - - ( + CAST ( + - 44 AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) THEN ( - 20 ) * - - 19 * + 75 * + 43 END * - + 98 AS col2 + +Expected: ["59","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( + 84 ) - - COALESCE ( - + 27, - - 64 * - + 57 + - 52 ) / CASE COALESCE ( 8, 96 / - 89 ) WHEN - COUNT ( * ) * - MIN ( ALL - - 51 ) + 22 * + - MIN ( ALL - - 10 ) THEN + COUNT ( * ) - - 27 WHEN + - 41 THEN 70 * - 92 + 61 + + - 37 + + 54 / + 40 END *… + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT + 29 / - COALESCE ( + + 5, 46, + 65 ) AS col1 + +Expected: ["-5"] but got ["-5.800"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,058 failed +* 79% was OK + +Time: 27335.644ms + +---- ---- ---- ---- ---- ---- ---- +### 472/620 [`./test/random/expr/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_95.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT ( + 13 ) - - 79 AS col0, CAST ( NULL AS INTEGER ) AS col1 + +Expected: ["92","NULL"] but got ["92","0"] +``` + + +```sql +SELECT ALL 50 / + - ( + + 6 ) + +Expected: ["-8"] but got ["-8.333"] +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) / - - COUNT ( ALL + + 87 ) + +Wrong conversion type +``` + + +```sql +SELECT CASE + CAST ( ( - + CASE + 1 WHEN - - CASE - + 31 WHEN 86 THEN NULL ELSE + 3 + + + 75 + 85 * - 17 + - CAST ( NULL AS INTEGER ) - + 89 END + - + 42 THEN NULL ELSE COUNT ( * ) * 64 END ) AS INTEGER ) WHEN - 25 THEN CAST ( NULL AS INTEGER ) WHEN + ( 10 ) THEN NULL END AS col0 + +g is not defined +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ), + CASE - - 48 WHEN + 39 - + - COUNT ( * ) THEN - + 50 + - 70 WHEN + 28 + + - 4 THEN NULL ELSE NULL END * - - 85 * + COUNT ( * ) AS col1 + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + + +```sql +SELECT 36 + - + 42 + - CASE WHEN NULL BETWEEN NULL AND NULL THEN - 35 END + + - 64 AS col0 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + 31 + CASE - - 29 WHEN + 17 + + 42 THEN NULL WHEN - - 19 * + - CASE - NULLIF ( - 32, COUNT ( * ) + - - 69 ) WHEN + + 72 THEN + 3 ELSE + 73 - - 18 + 58 + + 91 END - + 96 THEN 46 + + COALESCE ( + ( 49 ), 63 * CAST ( - 28 AS INTEGER ) ) * - 44 WHEN 29 THEN 37 END AS col1 + +Expected: ["68"] but got ["NULL"] +``` + + +```sql +SELECT 81 AS col2, - CASE + 29 WHEN 5 THEN NULL WHEN - 11 THEN + 92 WHEN - ( - + 77 ) THEN NULL ELSE NULL END * 5 AS col2 + +Expected: ["81","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL CASE - - CAST ( NULL AS INTEGER ) WHEN - + 62 + 96 THEN + + 62 ELSE + 1 END + - COUNT ( * ) + 78 + - + 63 + + + 55 + + + 10 / - MAX ( ALL CAST ( NULL AS INTEGER ) ) * - ( COUNT ( * ) ) + + 49 * - - COUNT ( ALL CAST ( + 19 AS INTEGER ) ) / - - COUNT ( * ), 91 * 24 / + 74 + + MIN ( - - 83 … + +Expected: ["NULL","112"] but got ["NULL","112.514"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) + - 34 * - + COUNT ( * ) col2, - 73 + + + CAST ( NULL AS INTEGER ) * - - 92 + +Expected: ["NULL","NULL"] but got ["34","-73"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,074 failed +* 79% was OK + +Time: 29824.546ms + +---- ---- ---- ---- ---- ---- ---- +### 473/620 [`./test/random/expr/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_96.test) + +_Mimic sqlite_ + +```sql +SELECT + + 66 / 58 * 71 * - 5 AS col2 + +Expected: ["-355"] but got ["-403.966"] +``` + + +```sql +SELECT ALL 30 * CAST ( NULL AS INTEGER ) - + 47 AS col0 + +Expected: ["NULL"] but got ["-47"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + - - 79 + - 43 / CAST ( CASE - 3 WHEN + 99 THEN NULL ELSE + COUNT ( * ) * + - MAX ( ALL + 10 ) END AS INTEGER ) * - - 36 - + 96 + +g is not defined +``` + + +```sql +SELECT 97 + - - CAST ( NULL AS INTEGER ) * CASE - CAST ( - 0 AS REAL ) WHEN 46 THEN - 16 WHEN - 63 THEN NULL ELSE NULL END AS col2 + +Wrong conversion type +``` + + +```sql +SELECT COALESCE ( + 98, + MIN ( + 74 ) ) * - + 49 + COUNT ( ALL - 63 ) - + 32 * CASE CAST ( 78 AS INTEGER ) WHEN - - 28 * 9 + - - CASE WHEN NOT 40 > NULL THEN NULL WHEN + 3 BETWEEN + 8 + + 74 AND ( NULL ) THEN COUNT ( * ) + + ( - NULLIF ( + + 48, ( - + 26 ) ) ) * 43 * + + 67 * - - 97 * + 60 ELSE - … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT DISTINCT + 78 col0, ( COUNT ( * ) ) / + + CASE + - 59 WHEN + 91 * + + 52 * - - COALESCE ( 29, - COUNT ( DISTINCT - - 33 ) + - 86 * 90, - 5 - 84 ) THEN 24 END * 23 + - 46 * 14 AS col0 + +Expected: ["78","NULL"] but got ["NULL"] +``` + + +```sql +SELECT - 28 - - ( + + 54 ) / - CAST ( - SUM ( ALL ( 81 ) ) AS INTEGER ) * - - 48 * 96 + - - 49 - + COUNT ( * ) / + 9 + - 60 + 56 + COALESCE ( + 37, - - 41 ) * - ( + - 71 ) + - 53 * + 2 + +Expected: ["2538"] but got ["NULL"] +``` + + +```sql +SELECT - CASE - COUNT ( * ) WHEN 69 + + 44 + + + 29 * - ( - 27 ) + + + 38 + + + 52 THEN - 46 WHEN + - COUNT ( * ) * + + COUNT ( * ) THEN NULL ELSE NULL END, + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - ( 48 ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,024 failed +* 79% was OK + +Time: 32926.695ms + +---- ---- ---- ---- ---- ---- ---- +### 474/620 [`./test/random/expr/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_97.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + 90 col1, 64 AS col1 + +Expected: ["90","64"] but got ["64","64"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) + + 0 / + - 48 + CAST ( NULL AS REAL ) - + 34 * - 86 * - CAST ( 63 AS REAL ) * + 57 + 46 + + 35 AS col1, + 26 * - 0 + 25 AS col0 + +Wrong conversion type +``` + + +```sql +SELECT + 4 * + - CAST ( - COUNT ( * ) AS INTEGER ) - + - 22 + +g is not defined +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) col0, - AVG ( - + CAST ( NULL AS INTEGER ) ) AS col2 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT + 1 * - COUNT ( * ) * + - 98 * - ( CAST ( NULL AS INTEGER ) ) + - 47 AS col1 + +Expected: ["NULL"] but got ["-47"] +``` + + +```sql +SELECT ALL - ( - CASE WHEN NOT 43 IS NULL THEN NULL WHEN NOT ( NULL ) BETWEEN 56 / 17 + - 50 AND 28 * + 61 + + 0 THEN + - 8 END ) AS col2 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + 37 AS col2, - 15 + - CASE - 20 WHEN - 85 THEN NULL WHEN - - 42 + - 67 THEN - 81 + + 69 WHEN + ( - COUNT ( * ) ) THEN COALESCE ( 86, - 68 ) END + 40 AS col2 + +Expected: ["37","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - CASE COUNT ( * ) WHEN - - COUNT ( * ) + 29 / - 40 * - ( - - CASE 37 WHEN - + MIN ( + 39 ) / CASE + + ( + - 12 ) WHEN - 23 + - 19 THEN NULL WHEN - 12 * - ( SUM ( 84 ) ) THEN 5 ELSE - - 57 - - - 61 END THEN NULL WHEN + CASE + 92 WHEN - 72 / - - COUNT ( * ) THEN NULL WHEN + - SUM ( +… + +Expected: ["79"] but got ["NULL"] +``` + + +```sql +SELECT ALL - 64 * CASE + - 89 WHEN 66 / COUNT ( * ) THEN + + COUNT ( * ) END col2, CASE - + 44 WHEN + 22 THEN - 9 END * 23 * - - 34 AS col2 + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + 7 * + 13 AS col2, - ( - CASE 24 WHEN + 85 THEN NULL WHEN + 7 THEN COALESCE ( + ( 42 ), - 63 ) END ) AS col2 + +Expected: ["91","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,033 failed +* 79% was OK + +Time: 25299.271ms + +---- ---- ---- ---- ---- ---- ---- +### 475/620 [`./test/random/expr/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_98.test) + +_Mimic sqlite_ + +```sql +SELECT + CAST ( CAST ( 27 AS REAL ) AS INTEGER ) AS col1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT 40 / - - 17 AS col2 + +Expected: ["2"] but got ["2.353"] +``` + + +```sql +SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 + +Expected: ["1","NULL"] but got ["0"] +``` + + +```sql +SELECT - 2 + + + CAST ( - COUNT ( * ) AS INTEGER ) + +g is not defined +``` + + +```sql +SELECT DISTINCT + CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN NULL ELSE + 26 END col2 + +Expected: ["26"] but got ["NULL"] +``` + + +```sql +SELECT - CASE WHEN NULL NOT BETWEEN ( NULL ) AND 53 THEN - - 50 WHEN NULL IS NULL THEN NULL END / + 15 + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, AVG ( CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL CASE + 1 WHEN 35 + 5 / - - 2 THEN 78 END AS col1, - 17 + - + ( - COUNT ( * ) ) * - + 29 / - 32 * - 47 * - - 86 + - - 78 AS col2 + +Expected: ["NULL","61"] but got ["NULL","61.000"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,793 failed +* 82% was OK + +Time: 18127.025ms + +---- ---- ---- ---- ---- ---- ---- +### 476/620 [`./test/random/expr/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_99.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - MAX ( - 57 ) + 16 + + 44 / - + CASE - 95 WHEN 84 + 9 + + 81 * + 48 + + 37 THEN NULL WHEN - ( - + 82 ) THEN NULL ELSE 42 + - - 88 END * + 36 + + 41 * COUNT ( * ) + + 45 + +Expected: ["159"] but got ["158.991"] +``` + + +```sql +SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT COUNT ( DISTINCT - - 46 ) + + - CASE 87 WHEN 46 / + 17 * - 59 * - 83 THEN 10 END + - CASE + 85 WHEN 55 * + CAST ( NULL AS REAL ) - - 52 THEN + 70 ELSE NULL END * - - 18 + + 97 * 51 + +Wrong conversion type +``` + + +```sql +SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - 55 + - 66 + +g is not defined +``` + + +```sql +SELECT ALL + + COUNT ( * ) / 25 + 85 + + + 98 + - 27 * 98 * - - SUM ( - 27 ) + + 79 / + + 94 * + + CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) + +Expected: ["71625"] but got ["NULL"] +``` + + +```sql +SELECT ALL + 94 AS col1, ( - 51 ) - - 87 * + 99 * - - AVG ( - 2 ) * + - 75 / - 86 * + + CASE - + 13 WHEN - ( - 81 ) THEN + - COUNT ( * ) WHEN - 51 * - 13 THEN NULL END AS col1 + +Expected: ["94","NULL"] but got ["NULL"] +``` + + +```sql +SELECT 83 - + 10 + - + 68 + + 19 - + CAST ( - ( + - 17 ) AS INTEGER ) * MIN ( 57 ) * + 46 + - - ( ( 90 ) ) + + 64 + + - NULLIF ( - 1, + - 3 ) * - + 69 + CASE WHEN NOT - SUM ( + 48 ) NOT BETWEEN ( - 53 ) AND - 29 * - COUNT ( * ) THEN COUNT ( * ) WHEN NOT NULL IS NOT NULL THEN - 41 * ( COUNT ( * ) * … + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT COUNT ( * ) * - 18 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) col2, 17 + COUNT ( * ) + - COALESCE ( 13, - 15 + 62 ) + + CASE - 85 + 82 * + 81 WHEN 61 * + 60 THEN 41 / - 49 END * 19 AS col2 + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL 96 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + 73 * + + 80 AS col0 + +Expected: ["NULL","NULL"] but got ["0","5840"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,071 failed +* 79% was OK + +Time: 25642.319ms + +---- ---- ---- ---- ---- ---- ---- +### 477/620 [`./test/random/groupby/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT - tab1.col0 * 84 + + 38 AS col2 FROM tab1 GROUP BY tab1.col0 + +Expected: ["-1810","-2314","-6850"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - + cor0.col1 FROM tab0, tab0 cor0 GROUP BY cor0.col1 + +Expected: ["-81","0"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1 + +Expected: ["41","59","61"] but got ["NULL"] +``` + + +```sql +SELECT ALL 59 / 26 FROM tab2 AS cor0 GROUP BY cor0.col0 + +Expected: ["2","2","2"] but got ["2.269","2.269","2.269"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 GROUP BY tab0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2 cor0 GROUP BY cor0.col1 + +Wrong conversion type +``` + + +```sql +SELECT ALL cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT ( cor0.col1 ) IS NULL + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,287 failed +* 57% was OK + +Time: 27397.331ms + +---- ---- ---- ---- ---- ---- ---- +### 478/620 [`./test/random/groupby/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT 47 / + cor0.col1 FROM tab1 AS cor0 GROUP BY col1 + +Expected: ["0","1","7"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col0 + +Expected: ["0","81"] but got ["NULL"] +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 GROUP BY col0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL + cor0.col1 + + ( col1 ) AS col1 FROM tab0 AS cor0 GROUP BY col1 + +Expected: ["0","162"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - NULLIF ( + cor0.col2 * cor0.col1, - cor0.col1 ) + - 31 * cor0.col2 - - col1 col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2 + +Expected: ["-2607","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY col0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 GROUP BY cor1.col1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT 2 / + 19 FROM tab1 AS cor0 GROUP BY col0 + +Expected: ["0"] but got ["0.105"] +``` + + +```sql +SELECT + cor1.col0 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0, cor0.col2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT ( cor0.col1 ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) * 11 FROM tab0, tab2 AS cor0 GROUP BY tab0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL 86 + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor1.col0 + +Expected: ["112","112","129","129","169","169"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL CASE - cor0.col1 WHEN cor0.col1 THEN NULL ELSE cor0.col1 END FROM tab0 cor0 GROUP BY cor0.col1 + +Expected: ["81","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL - + tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1 + +Expected: ["-81","0"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT cor1.col0 - + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0, cor1.col0 + +1 results returned but expected 9 +``` + + +```sql +SELECT NULLIF ( cor0.col1, cor0.col1 * 4 + - col1 ) * + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col1 + +Expected: ["3483","NULL","NULL"] but got ["NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,144 failed +* 58% was OK + +Time: 24621.064ms + +---- ---- ---- ---- ---- ---- ---- +### 479/620 [`./test/random/groupby/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_10.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col0 AS col2, + col0 + - col1 AS col2 FROM tab0 GROUP BY col1, col0 + +Expected: ["26","26","43","-38","83","83"] but got ["26","43","83"] +``` + + +```sql +SELECT DISTINCT + + col0 FROM tab0 cor0 GROUP BY col2, col0 HAVING NOT + col2 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN ( - col0 ) AND NULL GROUP BY col1 + +Expected: ["57"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT col0 AS col1, col0, col0 AS col1 FROM tab0 cor0 GROUP BY col0 + +6 results returned but expected 9 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 284 failed +* 97% was OK + +Time: 22402.512ms + +---- ---- ---- ---- ---- ---- ---- +### 480/620 [`./test/random/groupby/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_11.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 GROUP BY col2 HAVING NOT ( NOT col2 IS NOT NULL ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + col2 * col1 AS col0, - col1 AS col0 FROM tab1 AS cor0 GROUP BY col2, col1 + +Expected: ["2565","-57","3124","-44","48","-6"] but got ["-44","-57","-6"] +``` + + +```sql +SELECT + col1 AS col2, col1 * col1 - - + col1, - col1 AS col2 FROM tab1 AS cor0 GROUP BY col1 + +6 results returned but expected 9 +``` + + +```sql +SELECT ALL - - col0 / 30 AS col1 FROM tab2 AS cor0 GROUP BY col0, col1, col2 HAVING NOT col0 * + col0 NOT BETWEEN CAST ( NULL AS REAL ) AND - 74 * col1 + - col1 + +Wrong conversion type +``` + + +```sql +SELECT - + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 GROUP BY col1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + col2 + + ( + col2 ) FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL GROUP BY col2 + +Expected: ["116","158","174"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY col0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL + col2, ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT 65 NOT BETWEEN - col0 + - col1 AND 78 GROUP BY col2 + +Expected: ["45","45","71","71","8","8"] but got ["NULL","NULL"] +``` + + +```sql +SELECT - - 67 + - + col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY col1 + +Expected: ["-14","NULL","67","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ), + ( - - col0 ) AS col0, + col0 FROM tab2 GROUP BY col0, col2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - + 5 / 17 / CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 GROUP BY col2, col1 HAVING NOT - + col2 + col1 < - col1 * + 81 * - 57 * - col1 + +Expected: ["NULL"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT + CASE WHEN NOT NULL NOT BETWEEN NULL AND NULL THEN - col1 ELSE NULL END FROM tab2 GROUP BY col0 + +Cannot read property 'toString' of undefined +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 873 failed +* 91% was OK + +Time: 24278.216ms + +---- ---- ---- ---- ---- ---- ---- +### 481/620 [`./test/random/groupby/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_12.test) + +_Mimic sqlite_ + +```sql +SELECT - col0 FROM tab1 AS cor0 WHERE NOT - 48 * - 90 IN ( + + 87 ) GROUP BY col0 + +Expected: ["-22","-28","-82"] but got ["NULL"] +``` + + +```sql +SELECT ALL + col2 + - + ( - 41 ) - - - col1 col1, 7 FROM tab1 cor0 GROUP BY col2, col1 + +Expected: ["29","7","43","7","68","7"] but got ["7","29","7","43","7","68"] +``` + + +```sql +SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY col1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab2 GROUP BY col2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL - - 46 * CAST ( NULL AS REAL ) * + col0 col1 FROM tab0 AS cor0 GROUP BY col0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 75 + CAST ( - 81 AS INTEGER ) AS col2 FROM tab1 GROUP BY col1, col2 HAVING + col2 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL 20 + + 77 + - - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * - 88 FROM tab1 GROUP BY col0 HAVING NOT NULL IS NOT NULL + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["97","0","97","0","97","0"] +``` + + +```sql +SELECT ALL + col1 * - col0 * CASE WHEN NULL = + col2 THEN NULL ELSE col0 END + + col1 FROM tab0 AS cor0 GROUP BY col0, col1 + +Expected: ["-149688","0","0"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + - col2 AS col1, col2 FROM tab0 WHERE NOT + - col1 IN ( - - 38, + 41, CAST ( + + col1 AS INTEGER ) ) GROUP BY col2, col2 + +Expected: ["-24","24"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) FROM tab0 GROUP BY col1 HAVING + 79 IS NOT NULL + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT - 74 AS col1, col0 * + 6, - + 87 AS col1 FROM tab2 GROUP BY col1, col0 HAVING NOT NULL IS NOT NULL + +6 results returned but expected 9 +``` + + +```sql +SELECT DISTINCT - - col1 - - col0 * + CAST ( NULL AS INTEGER ) * col0, CASE - 55 WHEN + 36 THEN NULL WHEN - + col0 THEN NULL WHEN - 29 THEN - + col1 WHEN + 19 THEN NULL ELSE NULL END AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL GROUP BY col2, col1, col0 + +Expected: ["NULL","NULL"] but got ["0","NULL","81","NULL"] +``` + + +```sql +SELECT ALL col2 + + col2 col0, col2 * col2 AS col2, 87 FROM tab2 GROUP BY col2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - col0 / - CAST ( NULL AS INTEGER ) + col0 - + 52 AS col0, 69 FROM tab2 AS cor0 GROUP BY col0, col1 + +Expected: ["NULL","69","NULL","69","NULL","69"] but got ["69","NULL","69","NULL","69","NULL"] +``` + + +```sql +SELECT ALL col2 + col2 - - 43 * + - COUNT ( * ) / CASE + CAST ( NULL AS INTEGER ) WHEN - - COALESCE ( - + 59, col1 / col1 * + COUNT ( ALL + - 40 ) * - 52, - - CASE WHEN col1 NOT BETWEEN NULL AND NULL THEN NULL ELSE 33 + + col0 / 65 END * col2 ) * - col2 + col0 THEN - COUNT ( * ) WHEN col0 THEN NULL… + +Cannot read property 'toString' of undefined +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 56 BETWEEN - - 14 + col2 * - + col1 / - col1 * + - col1 AND - ( + col1 ) + + col2 GROUP BY col1, col1 + +Expected: ["NULL","NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + ( NULLIF ( - cor0.col1, col1 ) ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 + +Expected: ["-81","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,446 failed +* 85% was OK + +Time: 28094.339ms + +---- ---- ---- ---- ---- ---- ---- +### 482/620 [`./test/random/groupby/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_13.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + cor0.col2 - + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2 + +Expected: ["0","0","0"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT cor0.col0 + - ( - cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col1, col0 + +Expected: ["164","44","56"] but got ["NULL"] +``` + + +```sql +SELECT ALL 97 * + 3 + - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["210","291"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL col2 / 60 FROM tab0 AS cor0 GROUP BY col0, cor0.col2 + +Expected: ["0","0","1"] but got ["0.400","0.633","1.317"] +``` + + +```sql +SELECT DISTINCT NULLIF ( + cor0.col2 * cor0.col1, - cor0.col1 ) + - 31 * cor0.col2 + - col1 col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2 + +Expected: ["1119","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) + - 3 FROM tab0 AS cor0 GROUP BY cor0.col2 + +Expected: ["NULL","NULL","NULL"] but got ["-3","-3","-3"] +``` + + +```sql +SELECT NULLIF ( - cor0.col1, cor0.col1 ) FROM tab0 AS cor0 GROUP BY col1 + +Expected: ["-81","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS REAL ) - 56 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 cor0 GROUP BY cor0.col1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1, cor0.col2 + +Correct amount of values returned but hash was different than expected. +``` + +#### ☓ Ran 3,182 tests as _sqlite_ + +* 1,259 failed +* 60% was OK + +Time: 11280.771ms + +---- ---- ---- ---- ---- ---- ---- +### 483/620 [`./test/random/groupby/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - ( 50 ) + tab1.col2 AS col1 FROM tab1 GROUP BY col2 + +Expected: ["-42","-5","21"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1 + +Expected: ["41","59","61"] but got ["NULL"] +``` + + +```sql +SELECT - 66 + cor0.col1 FROM tab0 AS cor0 GROUP BY col1 + +Expected: ["-66","15"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - 70 / - 15 + col1 AS col2 FROM tab0 GROUP BY tab0.col1 + +Expected: ["4","85"] but got ["4.667","85.667"] +``` + + +```sql +SELECT NULLIF ( + col1, cor0.col1 * - ( cor0.col1 ) ) AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0 + +Expected: ["81","NULL","NULL"] but got ["0","0","81"] +``` + + +```sql +SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab0 cor0 GROUP BY cor0.col1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 GROUP BY cor0.col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL + cor0.col2 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor0.col2, cor1.col1 + +Expected: ["58","58","79","79","87","87"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2, cor0.col1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - tab2.col2 FROM tab2 GROUP BY tab2.col2 HAVING + col2 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - cor0.col2 * - cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor0.col2, cor1.col0 + +1 results returned but expected 9 +``` + + +```sql +SELECT + cor0.col1 - + NULLIF ( cor0.col1, COALESCE ( - cor0.col1, - cor0.col0, cor0.col1 + 52 ) ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0 + +Expected: ["0","NULL","NULL"] but got ["NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,198 failed +* 58% was OK + +Time: 27250.032ms + +---- ---- ---- ---- ---- ---- ---- +### 484/620 [`./test/random/groupby/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT 49 - - col2 * cor0.col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col2 + +Expected: ["1993","49","49"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + tab1.col2 AS col1 FROM tab1 GROUP BY col2 + +Expected: ["45","71","8"] but got ["NULL"] +``` + + +```sql +SELECT 82 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["0","6642"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + 82 / 87 FROM tab0 GROUP BY tab0.col2 + +Expected: ["0","0","0"] but got ["0.943","0.943","0.943"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 92 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0 + +Expected: ["NULL"] but got ["92"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) FROM tab1 GROUP BY col1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT CASE cor0.col0 WHEN cor0.col2 * + cor0.col2 THEN cor0.col2 WHEN - 42 / cor0.col2 + cor0.col0 THEN + ( - cor0.col0 ) WHEN - col2 + - cor0.col0 THEN NULL END + NULLIF ( + cor0.col2, + cor0.col0 ) FROM tab0 cor0 GROUP BY cor0.col0, col2 + +Expected: ["53","NULL","NULL"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT - cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1 + +Expected: ["-26","-43","-83"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL - cor1.col1 + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1, cor0.col0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2 + +Wrong conversion type +``` + + +```sql +SELECT tab1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 GROUP BY tab1.col2 HAVING NOT tab1.col2 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT cor1.col1 + - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor1.col1 + +Expected: ["-41","-59","-61","20","22","40"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,465 failed +* 55% was OK + +Time: 21427.186ms + +---- ---- ---- ---- ---- ---- ---- +### 485/620 [`./test/random/groupby/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - - ( - tab0.col0 ) FROM tab0 GROUP BY tab0.col0 + +Expected: ["-26","-43","-83"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + - 35 FROM tab1 AS cor0 GROUP BY cor0.col0 + +Expected: ["NULL","NULL","NULL"] but got ["-35","-35","-35"] +``` + + +```sql +SELECT DISTINCT - cor0.col0 * - cor0.col0 AS col1 FROM tab1 cor0 GROUP BY col0 + +Expected: ["484","6724","784"] but got ["NULL"] +``` + + +```sql +SELECT ALL cor0.col1 + col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1 + +Expected: ["0","162"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor0.col2, cor1.col1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT 12 / 68 FROM tab2 GROUP BY tab2.col2 + +Expected: ["0","0","0"] but got ["0.176","0.176","0.176"] +``` + + +```sql +SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 GROUP BY tab0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT NULLIF ( + 79, + cor0.col2 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1 + +Expected: ["79","79","NULL"] but got ["79","79","79"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY col1 + +Wrong conversion type +``` + + +```sql +SELECT + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2, cor1.col1 + +Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1 HAVING NOT ( tab1.col1 ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT cor0.col1 - cor0.col1 * + 37 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1 + +Expected: ["-1476","-2124","-2196"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL - + NULLIF ( tab0.col1, + 29 / - 88 ) AS col0 FROM tab0 GROUP BY tab0.col1 + +Expected: ["-81","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,369 failed +* 56% was OK + +Time: 21141.759ms + +---- ---- ---- ---- ---- ---- ---- +### 486/620 [`./test/random/groupby/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + tab2.col1 col2 FROM tab2 GROUP BY col1 + +Expected: ["41","59","61"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, col1 + +Expected: ["0","81"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - 0 / - cor0.col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY col1, cor0.col1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT 3 / + 5 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0 + +Expected: ["0","0","0"] but got ["0.600","0.600","0.600"] +``` + + +```sql +SELECT - - CAST ( NULL AS REAL ) AS col2 FROM tab1 GROUP BY tab1.col2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 GROUP BY tab0.col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - col1 * - CAST ( NULL AS INTEGER ) + - 97 FROM tab0 GROUP BY tab0.col1 + +Expected: ["NULL","NULL"] but got ["-97","-97"] +``` + + +```sql +SELECT ALL - 90 / - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor1.col0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1 HAVING NOT + tab0.col1 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 + +Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL + cor0.col2 * NULLIF ( - cor0.col1, cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1 + +Expected: ["-1944","NULL","NULL"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT cor0.col1 * + CASE cor0.col0 / + cor0.col2 WHEN + cor0.col0 / cor0.col0 THEN cor0.col1 * + cor0.col1 WHEN cor0.col0 / - cor0.col0 THEN NULL END FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2 + +Expected: ["205379","68921","NULL"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT NULLIF ( cor0.col1, + cor0.col1 + + cor0.col1 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["81","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,488 failed +* 55% was OK + +Time: 20861.798ms + +---- ---- ---- ---- ---- ---- ---- +### 487/620 [`./test/random/groupby/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col0 * - cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0 + +Expected: ["-1806","-650","-6806"] but got ["NULL"] +``` + + +```sql +SELECT ALL - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col1, cor0.col1 + +Expected: ["-41","-59","-61"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL + cor0.col1 * - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1 + +Expected: ["-6561","0"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + 92 / + 53 FROM tab2 GROUP BY tab2.col2 + +Expected: ["1","1","1"] but got ["1.736","1.736","1.736"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0 GROUP BY cor0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 + +Wrong conversion type +``` + + +```sql +SELECT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2, cor0.col0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + tab1.col1 FROM tab1 GROUP BY tab1.col1 HAVING tab1.col1 IS NOT NULL + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,625 failed +* 53% was OK + +Time: 23373.015ms + +---- ---- ---- ---- ---- ---- ---- +### 488/620 [`./test/random/groupby/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + col2 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2 + +Expected: ["-1944","0","0"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT - cor0.col1 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["-81","0"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT cor0.col2 + - cor0.col2 + + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2 + +Expected: ["41","59","61"] but got ["NULL"] +``` + + +```sql +SELECT - ( + cor0.col1 * CAST ( NULL AS REAL ) ) + + 69 * col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2 + +Wrong conversion type +``` + + +```sql +SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 GROUP BY cor0.col0, col2, cor0.col1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * - 66 FROM tab0 AS cor0 GROUP BY cor0.col2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT CAST ( - cor0.col1 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1 + +Expected: ["-44","-57","-6"] but got ["0","0","0"] +``` + + +```sql +SELECT + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 + +Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT + NULLIF ( - COALESCE ( - cor0.col2, cor0.col1 ), 79 ) / cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1 + +Expected: ["1","1","NULL"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL tab0.col0 FROM tab0 GROUP BY tab0.col0 HAVING NOT tab0.col0 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT NULLIF ( cor0.col1, - cor0.col1 ) * - col1 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["-6561","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - NULLIF ( + cor0.col1, cor0.col1 / - 16 ) FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["-81","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,547 failed +* 54% was OK + +Time: 28699.951ms + +---- ---- ---- ---- ---- ---- ---- +### 489/620 [`./test/random/groupby/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT - tab2.col2 / - tab2.col2 AS col1 FROM tab2 GROUP BY col2 + +Expected: ["1","1","1"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + col1 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["0","6561"] but got ["NULL"] +``` + + +```sql +SELECT - cor0.col1 * - cor0.col1 FROM tab0 AS cor0 GROUP BY col1 + +Expected: ["0","6561"] but got ["NULL","NULL"] +``` + + +```sql +SELECT - NULLIF ( cor0.col0, + 26 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0 + +Expected: ["-43","-83","NULL"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT + - CAST ( NULL AS REAL ) * + tab0.col2 AS col0 FROM tab0 GROUP BY tab0.col2 + +Wrong conversion type +``` + + +```sql +SELECT 65 / 40 AS col1 FROM tab1 GROUP BY tab1.col0 + +Expected: ["1","1","1"] but got ["1.625","1.625","1.625"] +``` + + +```sql +SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 GROUP BY tab1.col1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT tab2.col2 FROM tab2 GROUP BY tab2.col2 HAVING NOT ( tab2.col2 ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * 22 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL cor0.col2 + - 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor1.col2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT cor0.col2 * - ( + cor0.col2 ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 + +Expected: ["-3364","-3364","-6241","-6241","-7569","-7569"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,975 failed +* 70% was OK + +Time: 21104.628ms + +---- ---- ---- ---- ---- ---- ---- +### 490/620 [`./test/random/groupby/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT col1 AS col1 FROM tab1 GROUP BY col1 HAVING col1 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col0, - col0 AS col0 FROM tab0 AS cor0 GROUP BY col0, col2 + +Expected: ["26","-26","43","-43","83","-83"] but got ["26","43","83"] +``` + + +```sql +SELECT DISTINCT + cor0.col0 * 74 FROM tab0 AS cor0 GROUP BY cor0.col0 + +Expected: ["1924","3182","6142"] but got ["NULL"] +``` + + +```sql +SELECT + cor0.col2 * 38 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2 + +Expected: ["1444","3002","912"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT 67 + 43 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["3550","67"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT * FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * 93 FROM tab1 AS cor0 GROUP BY cor0.col1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) * ( + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0 + +Wrong conversion type +``` + + +```sql +SELECT ALL col2 AS col1, - AVG ( - col2 ) AS col1, - col2 AS col1 FROM tab0 AS cor0 GROUP BY col2 + +3 results returned but expected 9 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 503 failed +* 94% was OK + +Time: 20537.234ms + +---- ---- ---- ---- ---- ---- ---- +### 491/620 [`./test/random/select/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 cor0 + +18 results returned but expected 54 +``` + + +```sql +SELECT - col2 / - col0 - + 69 AS col0 FROM tab1 AS cor0 + +Expected: ["-51","-68","-69"] but got ["-51","-67.800","-68.109"] +``` + + +```sql +SELECT DISTINCT + col0 + col1 / CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT + 63 - 48 * col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0 + +Expected: ["NULL"] but got ["63"] +``` + + +```sql +SELECT * FROM tab0 WHERE NOT ( - col2 * + col0 ) IN ( - col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,572 failed +* 84% was OK + +Time: 18468.317ms + +---- ---- ---- ---- ---- ---- ---- +### 492/620 [`./test/random/select/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - col2 + + ( 69 ) / - col2 FROM tab1 AS cor0 + +Expected: ["-55","-58","-96"] but got ["-55.278","-58.211","-96.719"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1 + +27 results returned but expected 243 +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab0, tab1, tab2 AS cor0, tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT col0 FROM tab1 WHERE NOT ( col0 ) IN ( + col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,338 failed +* 86% was OK + +Time: 18960.251ms + +---- ---- ---- ---- ---- ---- ---- +### 493/620 [`./test/random/select/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_10.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col0 / + ( ( cor0.col2 ) ) AS col0 FROM tab0 AS cor0 + +Expected: ["0","1","35"] but got ["0.727","1.085","35"] +``` + + +```sql +SELECT - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-26","-27","-38"] +``` + + +```sql +SELECT ALL CAST ( NULL AS REAL ) / - 31 FROM tab1, tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + 50 / + tab0.col2 AS col0 FROM tab0, tab2 cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["3","64","80"] +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT - col0 + - col2 FROM tab1 WHERE NOT col0 BETWEEN col1 AND - col2 + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,287 failed +* 87% was OK + +Time: 26788.021ms + +---- ---- ---- ---- ---- ---- ---- +### 494/620 [`./test/random/select/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_100.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab1 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT ALL + 69 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT + + cor0.col0 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col2 / + 51 + + col0 FROM tab2 AS cor0 + +Expected: ["7","78","79"] but got ["7.529","78.510","79.745"] +``` + + +```sql +SELECT col1 * + CAST ( NULL AS INTEGER ) + 30 FROM tab0 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["30","30","30"] +``` + + +```sql +SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) - - col1 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["86","91","97"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) + + 63 AS col2 FROM tab2, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + col2 BETWEEN ( col0 * col2 ) AND col2 + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,441 failed +* 85% was OK + +Time: 24379.690ms + +---- ---- ---- ---- ---- ---- ---- +### 495/620 [`./test/random/select/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_101.test) + +_Mimic sqlite_ + +```sql +SELECT + ( col0 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] +``` + + +```sql +SELECT - col1 - col2 / + col0 AS col2 FROM tab2 AS cor0 + +Expected: ["-17","-34","-59"] but got ["-17.481","-34.857","-59.333"] +``` + + +```sql +SELECT + cor3.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab2, tab0, tab0 cor0, tab1 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + 93 + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["93"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( cor0.col2 ) AND - col2 * col2 * + col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 cor0, tab1, tab2 cor1 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,435 failed +* 85% was OK + +Time: 24177.338ms + +---- ---- ---- ---- ---- ---- ---- +### 496/620 [`./test/random/select/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_102.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab2 WHERE NOT + col1 IN ( - col2 * col2 * - col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT col0 + - ( col0 + tab2.col2 ) * + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 + +Expected: ["NULL"] but got ["7","78","79"] +``` + + +```sql +SELECT DISTINCT col2 / cor0.col0 + 11 col0 FROM tab0 AS cor0 + +Expected: ["11","12"] but got ["11.029","11.921","12.375"] +``` + + +```sql +SELECT ALL ( + col2 ) + CAST ( NULL AS REAL ) * - 9 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT + - CAST ( NULL AS INTEGER ) * 5 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT cor0.col1 * 71 / 92 AS col0 FROM tab1, tab1 cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab2 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,458 failed +* 85% was OK + +Time: 25632.155ms + +---- ---- ---- ---- ---- ---- ---- +### 497/620 [`./test/random/select/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_103.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + + cor0.col1 + col0 / ( + col0 * ( - cor0.col0 ) ) FROM tab1 AS cor0 + +Expected: ["10","13","26"] but got ["12.988","25.667","9.984"] +``` + + +```sql +SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab0 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT ALL + 37 - - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["37","37","37"] +``` + + +```sql +SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) * + 34 + + col0 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["14","156","158"] +``` + + +```sql +SELECT ALL - + col1 * ( + col2 * + CAST ( ( col1 ) AS REAL ) ) + + col0 AS col1 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab1 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT DISTINCT * FROM tab1 WHERE NOT col2 IN ( col0 / - col2 + + col0 * col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,457 failed +* 85% was OK + +Time: 21529.683ms + +---- ---- ---- ---- ---- ---- ---- +### 498/620 [`./test/random/select/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_104.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + col0 + + tab1.col2 + CAST ( NULL AS INTEGER ) * + 57 FROM tab1 + +Expected: ["NULL"] but got ["121","176","57"] +``` + + +```sql +SELECT ALL + - CAST ( + col1 AS REAL ) + col0 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL + col0 / 37 + col2 * - col0 AS col2 FROM tab0 cor0 + +Expected: ["-35","-7296","-792"] but got ["-34.054","-7295.595","-791.351"] +``` + + +```sql +SELECT cor0.col2 + - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["54","57","96"] +``` + + +```sql +SELECT cor0.col2 * - 5 FROM tab1 cor0 CROSS JOIN tab0, tab0 cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab0 cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… +``` + + +```sql +SELECT - cor0.col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab0 WHERE NOT + col1 + + col1 IN ( tab0.col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab0 cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,433 failed +* 85% was OK + +Time: 28275.224ms + +---- ---- ---- ---- ---- ---- ---- +### 499/620 [`./test/random/select/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_105.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col0 / 73 FROM tab2 + +Expected: ["0","1"] but got ["0.096","1.068","1.082"] +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS REAL ) FROM tab2, tab0, tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - ( + 90 ) + cor1.col0 / 90 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 + col1 ) IN ( + tab2.col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT col0 * + CAST ( NULL AS INTEGER ) * + tab2.col0 AS col2 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 cor1, tab0 AS cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,443 failed +* 85% was OK + +Time: 23704.004ms + +---- ---- ---- ---- ---- ---- ---- +### 500/620 [`./test/random/select/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_106.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + - cor1.col2 / 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] +``` + + +```sql +SELECT cor0.col1 / col0 + col1 * - col1 FROM tab2 AS cor0 + +Expected: ["-289","-3481","-957"] but got ["-288.785","-3480.244","-956.571"] +``` + + +```sql +SELECT ALL - col0 * - CAST ( + 27 AS REAL ) FROM tab2 cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL tab0.col2 * 10 + cor0.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT + col1 FROM tab2 WHERE NOT ( + col2 ) IN ( + col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 * col1 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab1, tab0 cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,415 failed +* 85% was OK + +Time: 20801.215ms + +---- ---- ---- ---- ---- ---- ---- +### 501/620 [`./test/random/select/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_107.test) + +_Mimic sqlite_ + +```sql +SELECT CAST ( NULL AS INTEGER ) - 91 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT tab0.col1 * col2 + - CAST ( NULL AS INTEGER ) + col1 FROM tab0 + +Expected: ["NULL"] but got ["194","2924","7553"] +``` + + +```sql +SELECT DISTINCT - ( col2 ) / col0 AS col2 FROM tab2 + +Expected: ["-3","0"] but got ["-0.333","-0.481","-3.857"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) - + 85 col0 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-85","-85","-85"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS REAL ) * + col2 + col0 * + tab1.col2 / + tab1.col1 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 cor1, tab2, tab2 cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT ( col0 + + col2 + col2 ) IN ( + col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,454 failed +* 85% was OK + +Time: 21876.717ms + +---- ---- ---- ---- ---- ---- ---- +### 502/620 [`./test/random/select/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_108.test) + +_Mimic sqlite_ + +```sql +SELECT - - ( col2 ) / col1 AS col2 FROM tab1 AS cor0 + +Expected: ["2","5","7"] but got ["2.077","5.700","7.385"] +``` + + +```sql +SELECT ALL col0 + + 3 * - col2 * - CAST ( NULL AS INTEGER ) + 97 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["121","132","186"] +``` + + +```sql +SELECT cor0.col2 / - ( - 49 ) AS col1 FROM tab0, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT col2 + col2 * CAST ( NULL AS REAL ) FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + 2 * tab2.col0 + CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab2 + +Expected: ["NULL"] but got ["14","156","158"] +``` + + +```sql +SELECT + cor0.col1 FROM tab2 cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 cor1, tab1, t +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL * FROM tab0 WHERE NOT ( col2 ) IN ( + col0 + col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 cor1, tab1, tab1 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,399 failed +* 86% was OK + +Time: 20644.964ms + +---- ---- ---- ---- ---- ---- ---- +### 503/620 [`./test/random/select/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_109.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( - col2 ) AS col2 FROM tab1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - 76 / + cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + col1 / 59 - + col0 AS col2 FROM tab2 AS cor0 + +Expected: ["-7","-77","-79"] but got ["-6.475","-77","-78.712"] +``` + + +```sql +SELECT ALL - - cor0.col2 + - CAST ( NULL AS INTEGER ) * - 31 col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] +``` + + +```sql +SELECT DISTINCT + col2 * - tab2.col1 - - CAST ( NULL AS REAL ) col1 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT - col0 FROM tab1 WHERE NOT col0 + col1 / - col1 + + tab1.col2 IN ( col1 * + tab1.col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab0 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,408 failed +* 85% was OK + +Time: 27035.858ms + +---- ---- ---- ---- ---- ---- ---- +### 504/620 [`./test/random/select/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_11.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col1 / 77 - col0 col0 FROM tab0 + +Expected: ["-23","-34","-88"] but got ["-22.883","-33.740","-87.818"] +``` + + +```sql +SELECT ALL - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-86","-91","-97"] +``` + + +```sql +SELECT DISTINCT cor0.col1 * CAST ( NULL AS INTEGER ) * + col2 + col1 / col0 AS col2 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["0.215","0.756","4.429"] +``` + + +```sql +SELECT + tab1.col0 / + cor0.col0 FROM tab1, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT 29 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL col0 FROM tab1 WHERE NOT - col1 + + col1 IN ( col0 + - col2 - + col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) / 44 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 + +Wrong conversion type +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,340 failed +* 86% was OK + +Time: 24199.012ms + +---- ---- ---- ---- ---- ---- ---- +### 505/620 [`./test/random/select/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_110.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 FROM tab0 cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT - ( col2 ) + - col2 / col1 AS col0 FROM tab2 AS cor0 + +Expected: ["-26","-27","-40"] but got ["-26.441","-27.871","-40.235"] +``` + + +```sql +SELECT ALL - + col0 + + CAST ( NULL AS REAL ) * + col1 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - - 58 + 34 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL cor0.col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["24","35","89"] +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN col2 AND ( NULL ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 cor1, tab2, tab1 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,009 tests as _sqlite_ + +* 1,415 failed +* 85% was OK + +Time: 21307.125ms + +---- ---- ---- ---- ---- ---- ---- +### 506/620 [`./test/random/select/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_111.test) + +_Mimic sqlite_ + +```sql +SELECT - col2 * - 70 + tab0.col1 / col0 + 50 * col1 AS col0 FROM tab0 + +Expected: ["10291","4922","6613"] but got ["10291.022","4922.771","6613.583"] +``` + + +```sql +SELECT tab2.col2 * - CAST ( - 11 * - col1 AS REAL ) AS col0 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) IN ( col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] +``` + + +```sql +SELECT ALL + - cor1.col2 / - ( + cor1.col1 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 - - col1 AS col2 FROM tab1 + +Expected: ["NULL"] but got ["109","67","80"] +``` + + +```sql +SELECT ALL ( + 21 ) FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab0 cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,476 failed +* 85% was OK + +Time: 20799.093ms + +---- ---- ---- ---- ---- ---- ---- +### 507/620 [`./test/random/select/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_112.test) + +_Mimic sqlite_ + +```sql +SELECT col1 / ( + 63 ) FROM tab1 AS cor0 + +Expected: ["0","0","0"] but got ["0.159","0.206","0.413"] +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) + col1 + - col0 * - ( + col2 ) / col0 col2 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-26","-27","-38"] +``` + + +```sql +SELECT + - CAST ( NULL AS INTEGER ) + 2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["2","2","2"] +``` + + +```sql +SELECT ALL + tab1.col1 / 79 AS col0 FROM tab1, tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 cor1, tab2 AS cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT - col0 IN ( tab1.col0 * + col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,452 failed +* 85% was OK + +Time: 20851.687ms + +---- ---- ---- ---- ---- ---- ---- +### 508/620 [`./test/random/select/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_113.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 63 + col2 * - CAST ( - col1 AS REAL ) + - col2 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT 97 + - col1 / - 75 AS col1 FROM tab2 AS cor0 + +Expected: ["97"] but got ["97.227","97.413","97.787"] +``` + + +```sql +SELECT col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT + 76 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT ALL 94 / - cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 + - col0 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-24","-35","-89"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT + col2 - col2 BETWEEN col0 / col0 AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0, tab2 cor0, tab2 cor1 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,365 failed +* 86% was OK + +Time: 25097.073ms + +---- ---- ---- ---- ---- ---- ---- +### 509/620 [`./test/random/select/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_114.test) + +_Mimic sqlite_ + +```sql +SELECT - 40 * cor0.col2 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-2160","-2280","-3840"] +``` + + +```sql +SELECT - 15 + col0 / 99 FROM tab1 AS cor0 + +Expected: ["-15","-15","-15"] but got ["-14.192","-14.354","-14.970"] +``` + + +```sql +SELECT * FROM tab1, tab0 cor0, tab0 cor1, tab0 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) * + col0 * col1 + - col2 + + col0 AS col2 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 42 FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT col0 IN ( + col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT + cor0.col2 + + cor1.col2 / tab2.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 + +27 results returned but expected 9 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,393 failed +* 86% was OK + +Time: 26484.674ms + +---- ---- ---- ---- ---- ---- ---- +### 510/620 [`./test/random/select/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_115.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + + 32 / col1 AS col0 FROM tab0 AS cor0 + +Expected: ["0","0","0"] but got ["0.330","0.352","0.372"] +``` + + +```sql +SELECT 82 + col1 * CAST ( NULL AS INTEGER ) * col1 col0 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["82","82","82"] +``` + + +```sql +SELECT tab0.col1 / 28 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT col2 + CAST ( NULL AS REAL ) + 25 * col2 AS col0 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab0 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT col0 / - col2 IN ( col0 + - col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,445 failed +* 85% was OK + +Time: 21614.169ms + +---- ---- ---- ---- ---- ---- ---- +### 511/620 [`./test/random/select/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_116.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - + col1 / ( col2 * - col1 ) AS col1 FROM tab1 AS cor0 + +Expected: ["0"] but got ["0.010","0.018","0.019"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + - ( col1 ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-10","-13","-26"] +``` + + +```sql +SELECT - cor0.col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL + - cor1.col1 / cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - cor0.col1 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-86","-91","-97"] +``` + + +```sql +SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL ) + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT * FROM tab1 WHERE NOT col1 * - col2 - col1 IN ( tab1.col0 * + col1 / + col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0 cor1 + +27 results returned but expected 243 +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,466 failed +* 85% was OK + +Time: 20937.936ms + +---- ---- ---- ---- ---- ---- ---- +### 512/620 [`./test/random/select/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_117.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + col0 / + 21 AS col2 FROM tab2 AS cor0 + +Expected: ["0","3","3"] but got ["0.333","3.714","3.762"] +``` + + +```sql +SELECT col1 + + CAST ( NULL AS REAL ) * - col0 col0 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) / + col1 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT + col0 * col2 + CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL"] but got ["162","3648","7680"] +``` + + +```sql +SELECT ALL - cor1.col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT + + col1 / CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 + +Expected: ["0","0","4"] but got ["0.215","0.756","4.429"] +``` + + +```sql +SELECT ALL * FROM tab0 WHERE NOT ( + col2 * + col1 ) IN ( + col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2, tab1 cor0, tab1 cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT DISTINCT + col1 / + col0 + + col0 FROM tab2 AS cor0 + +Expected: ["11","78","79"] but got ["11.429","78.756","79.215"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,524 failed +* 84% was OK + +Time: 21318.401ms + +---- ---- ---- ---- ---- ---- ---- +### 513/620 [`./test/random/select/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_118.test) + +_Mimic sqlite_ + +```sql +SELECT - col2 - + CAST ( - col1 AS INTEGER ) / + col2 AS col0 FROM tab0 AS cor0 + +Expected: ["-31","-81","96"] but got ["-30.394","-80.890","96"] +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab0 cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + cor1.col0 * + 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT + 50 * + tab0.col2 + col2 * CAST ( NULL AS INTEGER ) / 19 AS col2 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["1650","4100","50"] +``` + + +```sql +SELECT DISTINCT cor0.col0 * + cor0.col0 - - CAST ( NULL AS INTEGER ) * + 88 FROM tab0, tab0 AS cor0 + +Expected: ["NULL"] but got ["1225","576","7921"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) / + 17 AS col0 FROM tab0, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT col1 * col1 * - col1 FROM tab0 WHERE NOT col0 IN ( col1 + - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab1 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,447 failed +* 85% was OK + +Time: 23216.468ms + +---- ---- ---- ---- ---- ---- ---- +### 514/620 [`./test/random/select/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_119.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - col2 / + col0 FROM tab2 cor0 + +Expected: ["-3","0"] but got ["-0.333","-0.481","-3.857"] +``` + + +```sql +SELECT + + col1 * - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-7396","-8281","-9409"] +``` + + +```sql +SELECT ALL + col1 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 cor1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab2, tab1 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT DISTINCT - col2 FROM tab1 WHERE NOT col0 BETWEEN ( + col1 + col2 ) AND NULL + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,441 failed +* 85% was OK + +Time: 28639.829ms + +---- ---- ---- ---- ---- ---- ---- +### 515/620 [`./test/random/select/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_12.test) + +_Mimic sqlite_ + +```sql +SELECT - col1 / col2 AS col0 FROM tab0 + +Expected: ["-1","-2","-97"] but got ["-1.110","-2.606","-97"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab1 cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT ALL - CAST ( NULL AS REAL ) + col2 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… +``` + + +```sql +SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab2 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["-54","-57","-96"] +``` + + +```sql +SELECT * FROM tab0 WHERE NOT + col2 - tab0.col1 IN ( col0 * col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,256 failed +* 87% was OK + +Time: 20834.771ms + +---- ---- ---- ---- ---- ---- ---- +### 516/620 [`./test/random/select/slt_good_120.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_120.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - + col2 - - col0 / col1 AS col2 FROM tab0 AS cor0 + +Expected: ["-1","-33","-82"] but got ["-0.639","-32.721","-81.022"] +``` + + +```sql +SELECT DISTINCT cor0.col2 / CAST ( NULL AS REAL ) FROM tab1 cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 75 / tab2.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + col0 * - CAST ( NULL AS INTEGER ) / + tab1.col0 + col2 + 92 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["146","149","188"] +``` + + +```sql +SELECT cor1.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab0 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= ( NULL ) OR NOT + col2 * col1 IN ( + col1 / - col1 - - col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT + col0 * + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["35","7298","792"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,434 failed +* 85% was OK + +Time: 20826.518ms + +---- ---- ---- ---- ---- ---- ---- +### 517/620 [`./test/random/select/slt_good_121.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_121.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - 59 / col2 AS col0 FROM tab1 AS cor0 + +Expected: ["-1","0"] but got ["-0.615","-1.035","-1.093"] +``` + + +```sql +SELECT ALL - - cor0.col1 * CAST ( - col2 AS REAL ) AS col2 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-24","-35","-89"] +``` + + +```sql +SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-26","-27","-38"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - col0 * col1 * + tab2.col2 FROM tab2 WHERE NOT ( col2 ) IN ( col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0, tab1 cor0, tab0 AS cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT - col0 / 45 + - col1 AS col2 FROM tab2 AS cor0 + +Expected: ["-18","-31","-60"] but got ["-18.756","-31.156","-60.733"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,397 failed +* 86% was OK + +Time: 20758.083ms + +---- ---- ---- ---- ---- ---- ---- +### 518/620 [`./test/random/select/slt_good_122.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_122.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col1 / + col0 + col2 FROM tab1 AS cor0 + +Expected: ["57","62","96"] but got ["57.156","62.667","96.162"] +``` + + +```sql +SELECT CAST ( + 92 AS REAL ) * + col1 + - col2 + col1 * cor0.col2 AS col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT + - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) + col0 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab1 cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 - - col0 * + col1 IN ( col1 * col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,464 failed +* 85% was OK + +Time: 21272.181ms + +---- ---- ---- ---- ---- ---- ---- +### 519/620 [`./test/random/select/slt_good_123.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_123.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - col2 / col1 col1 FROM tab0 AS cor0 + +Expected: ["0"] but got ["-0.010","-0.384","-0.901"] +``` + + +```sql +SELECT ALL - col1 * tab2.col0 * CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL CAST ( NULL AS REAL ) + col0 / - col1 FROM tab1 cor0 + +Wrong conversion type +``` + + +```sql +SELECT - cor0.col1 / + 11 AS col2 FROM tab2, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT 0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT col0 / col1 BETWEEN + col0 * col0 AND + col0 - - col2 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 cor1, tab2, tab0 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,443 failed +* 85% was OK + +Time: 31050.740ms + +---- ---- ---- ---- ---- ---- ---- +### 520/620 [`./test/random/select/slt_good_124.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_124.test) + +_Mimic sqlite_ + +```sql +SELECT + 56 / col2 - - col0 FROM tab1 cor0 + +Expected: ["4","64","80"] but got ["4.037","64.982","80.583"] +``` + + +```sql +SELECT DISTINCT ( + col2 ) * col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["35","7298","792"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] +``` + + +```sql +SELECT DISTINCT - - cor0.col0 * CAST ( col0 AS REAL ) - col1 AS col1 FROM tab0 cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab1, tab1 cor0, tab2, tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + tab1.col1 AS col2 FROM tab1 WHERE NOT + col0 IN ( - col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0 cor0, tab0, tab0 cor1 + +36 results returned but expected 972 +``` + +#### ☓ Ran 2,865 tests as _sqlite_ + +* 396 failed +* 86% was OK + +Time: 7061.630ms + +---- ---- ---- ---- ---- ---- ---- +### 521/620 [`./test/random/select/slt_good_125.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_125.test) + +#### ★ Assuming all 12 tests still passes as _sqlite_ + +Time: 0.427ms + +---- ---- ---- ---- ---- ---- ---- +### 522/620 [`./test/random/select/slt_good_126.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_126.test) + +#### ★ Assuming all 12 tests still passes as _sqlite_ + +Time: 0.616ms + +---- ---- ---- ---- ---- ---- ---- +### 523/620 [`./test/random/select/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_13.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 97 * - col1 + CAST ( + col1 AS REAL ) - col2 * - tab2.col1 col1 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT 1 / - cor0.col0 AS col0 FROM tab0, tab0 AS cor0 + +Expected: ["0"] but got ["-0.011","-0.029","-0.042"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + 49 col1 FROM tab0 + +Expected: ["NULL"] but got ["49"] +``` + + +```sql +SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT 12 * + 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2, tab2 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 cor0, tab2 AS cor1, tab0 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT col1 / col0 FROM tab2 WHERE NOT - col2 BETWEEN ( col2 * + col1 ) AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - 17 * - 37 * + col2 + CAST ( NULL AS REAL ) * - col2 FROM tab1 AS cor0 + +Wrong conversion type +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,314 failed +* 86% was OK + +Time: 21159.992ms + +---- ---- ---- ---- ---- ---- ---- +### 524/620 [`./test/random/select/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_14.test) + +_Mimic sqlite_ + +```sql +SELECT + - col1 / + col2 + + col0 FROM tab1 cor0 + +Expected: ["3","64","80"] but got ["2.519","63.825","79.865"] +``` + + +```sql +SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + col2 * - col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT 57 - + ( + col1 * - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["57","57","57"] +``` + + +```sql +SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) / - col2 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["1","33","82"] +``` + + +```sql +SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 cor0, tab2, tab2 cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT + col2 + col1 + + col2 FROM tab2 AS cor0 WHERE NOT col2 IN ( col1 * - col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,300 failed +* 87% was OK + +Time: 20382.591ms + +---- ---- ---- ---- ---- ---- ---- +### 525/620 [`./test/random/select/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_15.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + col1 + - CAST ( NULL AS REAL ) * + 98 AS col1 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + 81 + col2 / 38 FROM tab1 AS cor0 + +Expected: ["82","82","83"] but got ["82.421","82.500","83.526"] +``` + + +```sql +SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… +``` + + +```sql +SELECT + + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT * FROM tab2 WHERE NOT col1 IN ( + col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["-54","-57","-96"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab0 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,280 failed +* 87% was OK + +Time: 19956.137ms + +---- ---- ---- ---- ---- ---- ---- +### 526/620 [`./test/random/select/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_16.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - cor0.col0 / col1 - + cor0.col1 FROM tab0 AS cor0 + +Expected: ["-86","-91","-97"] but got ["-86.279","-91.978","-97.361"] +``` + + +```sql +SELECT ALL - cor0.col0 / 75 col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + - cor0.col0 AS col0 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-7","-78","-79"] +``` + + +```sql +SELECT ALL + 94 / - tab0.col2 FROM tab0, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - CAST ( col0 AS REAL ) * cor0.col0 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0, tab1 cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( + col2 + col1 + col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,295 failed +* 87% was OK + +Time: 19961.805ms + +---- ---- ---- ---- ---- ---- ---- +### 527/620 [`./test/random/select/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_17.test) + +_Mimic sqlite_ + +```sql +SELECT - + CAST ( NULL AS INTEGER ) + 99 * col0 AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["2376","3465","8811"] +``` + + +```sql +SELECT - + col0 + col2 / + col1 FROM tab2 AS cor0 + +Expected: ["-7","-77","-78"] but got ["-6.129","-76.765","-77.559"] +``` + + +```sql +SELECT - CAST ( + col1 AS REAL ) + - col0 * - col2 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + 28 + - cor0.col1 / + 8 AS col0 FROM tab0, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT + col0 - CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL"] but got ["24","35","89"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0, tab2 AS cor0, tab1 AS cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT col0 * + col0 FROM tab1 WHERE NOT col0 * + col1 + - col0 * - col2 NOT BETWEEN ( - col0 ) AND ( + col2 * + col2 + + col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,327 failed +* 86% was OK + +Time: 29946.970ms + +---- ---- ---- ---- ---- ---- ---- +### 528/620 [`./test/random/select/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_18.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT ALL + col2 * col1 / - 27 FROM tab2 + +Expected: ["-23","-31","-56"] but got ["-23.926","-31","-56.815"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * + col1 * - col0 AS col0 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) / + col2 + - cor0.col0 * col0 AS col1 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab1, tab0 AS cor0, tab0 cor1, tab2 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab0 WHERE NOT + col0 * col1 IN ( col0 + - col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab0 AS cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,335 failed +* 86% was OK + +Time: 21906.421ms + +---- ---- ---- ---- ---- ---- ---- +### 529/620 [`./test/random/select/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_19.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT - col0 - col2 / + col0 AS col0 FROM tab0 AS cor0 + +Expected: ["-25","-35","-89"] but got ["-25.375","-35.029","-89.921"] +``` + + +```sql +SELECT ALL * FROM tab2, tab0 cor0, tab1, tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - cor0.col1 + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-17","-31","-59"] +``` + + +```sql +SELECT CAST ( 95 AS REAL ) AS col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - cor0.col1 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab0 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( - col2 ) AS col1 FROM tab0 + +Expected: ["NULL"] but got ["-1","-33","-82"] +``` + + +```sql +SELECT col2 AS col2 FROM tab1 WHERE col0 IN ( - col0 / tab1.col1 + + col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,306 failed +* 86% was OK + +Time: 20120.555ms + +---- ---- ---- ---- ---- ---- ---- +### 530/620 [`./test/random/select/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + col2 * + tab0.col1 + - col0 / - col1 FROM tab0 + +Expected: ["2838","7462","97"] but got ["2838.279","7462.978","97.361"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 + col0 AS col1 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["171","36","57"] +``` + + +```sql +SELECT CAST ( col1 AS REAL ) + - tab1.col0 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL 86 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT * FROM tab1 WHERE NOT ( col1 ) IN ( col2 + col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,291 failed +* 87% was OK + +Time: 19230.292ms + +---- ---- ---- ---- ---- ---- ---- +### 531/620 [`./test/random/select/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_20.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - cor0.col1 / - 12 col2 FROM tab0, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1, tab0 AS cor0, tab0 cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT DISTINCT cor0.col1 / + col0 FROM tab2 AS cor0 + +Expected: ["0","4"] but got ["0.215","0.756","4.429"] +``` + + +```sql +SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT + col1 * - col0 - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL col1 * + 84 - - ( tab1.col0 + CAST ( NULL AS INTEGER ) ) FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["1172","2187","904"] +``` + + +```sql +SELECT ALL - tab1.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… +``` + + +```sql +SELECT col2 * col2 FROM tab0 AS cor0 WHERE NOT col1 * col2 * - cor0.col2 BETWEEN col2 AND NULL + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,299 failed +* 87% was OK + +Time: 20203.980ms + +---- ---- ---- ---- ---- ---- ---- +### 532/620 [`./test/random/select/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_21.test) + +_Mimic sqlite_ + +```sql +SELECT + 94 / - col2 + col1 + 9 FROM tab0 AS cor0 + +Expected: ["12","93","99"] but got ["12","92.152","98.854"] +``` + + +```sql +SELECT ALL - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab1 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT CAST ( col2 AS REAL ) AS col0 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT col2 FROM tab2 WHERE NOT - col0 BETWEEN col2 AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,347 failed +* 86% was OK + +Time: 25256.290ms + +---- ---- ---- ---- ---- ---- ---- +### 533/620 [`./test/random/select/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_22.test) + +_Mimic sqlite_ + +```sql +SELECT ALL cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) * 41 FROM tab1 + +Expected: ["NULL"] but got ["10","13","26"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-86","-91","-97"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - - col2 / + col1 + + cor0.col0 / 24 AS col0 FROM tab0 AS cor0 + +Expected: ["1","1","3"] but got ["1.384","1.469","4.609"] +``` + + +```sql +SELECT 9 / - col2 + + col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT col1 * col0 * col0 IN ( - col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0, tab1 cor1 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,324 failed +* 86% was OK + +Time: 24767.506ms + +---- ---- ---- ---- ---- ---- ---- +### 534/620 [`./test/random/select/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_23.test) + +_Mimic sqlite_ + +```sql +SELECT col2 - - tab2.col0 / + tab2.col1 AS col1 FROM tab2 + +Expected: ["27","27","42"] but got ["27.226","27.322","42.647"] +``` + + +```sql +SELECT ALL + - col0 * ( + cor0.col0 ) + + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-49","-6084","-6241"] +``` + + +```sql +SELECT ALL + col2 * CAST ( 27 AS REAL ) AS col1 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL * FROM tab2, tab1, tab0 AS cor0, tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT 20 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["20"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0, tab0 cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT * FROM tab1 AS cor0 WHERE NOT col0 + col2 IN ( + col0 - + cor0.col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,346 failed +* 86% was OK + +Time: 20604.366ms + +---- ---- ---- ---- ---- ---- ---- +### 535/620 [`./test/random/select/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_24.test) + +_Mimic sqlite_ + +```sql +SELECT col1 / - 43 + + col0 * tab2.col2 FROM tab2 + +Expected: ["189","2027","3002"] but got ["188.279","2026.628","3001.605"] +``` + + +```sql +SELECT ALL - col1 + cor0.col0 * + CAST ( NULL AS INTEGER ) * 34 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-17","-31","-59"] +``` + + +```sql +SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1 + - col1 * + col0 AS col2 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-2064","-3395","-8099"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS REAL ) * col1 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2, tab1 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT col1 FROM tab2 WHERE NOT - col1 BETWEEN col2 AND NULL + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,321 failed +* 86% was OK + +Time: 20100.159ms + +---- ---- ---- ---- ---- ---- ---- +### 536/620 [`./test/random/select/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_25.test) + +_Mimic sqlite_ + +```sql +SELECT + - 18 - - col2 * col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-18","-18","-18"] +``` + + +```sql +SELECT + CAST ( col0 AS REAL ) - col1 AS col0 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - tab2.col0 AS col1 FROM tab2 WHERE NOT - col1 * col2 IN ( + col1 * col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - col2 / + col1 AS col0 FROM tab2 + +Expected: ["-2","0","0"] but got ["-0.441","-0.871","-2.235"] +``` + + +```sql +SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab0 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - + col0 * - CAST ( NULL AS INTEGER ) + - 92 AS col2 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-92"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,313 failed +* 86% was OK + +Time: 19977.665ms + +---- ---- ---- ---- ---- ---- ---- +### 537/620 [`./test/random/select/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_26.test) + +_Mimic sqlite_ + +```sql +SELECT + CAST ( col0 AS INTEGER ) / - col2 + ( - col1 ) - + col1 AS col0 FROM tab1 AS cor0 + +Expected: ["-21","-26","-52"] but got ["-21.123","-26.833","-52.056"] +``` + + +```sql +SELECT - cor0.col0 * + col0 + CAST ( NULL AS REAL ) * col0 * + col0 AS col0 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 98 FROM tab1 cor0 + +Expected: ["NULL"] but got ["-98"] +``` + + +```sql +SELECT - col2 * col1 - col1 * + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-1248","-1404","-570"] +``` + + +```sql +SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab1, tab1 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + cor1.col1 * - 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL tab0.col2 * - tab0.col0 FROM tab0 WHERE NOT - col2 - - col2 BETWEEN col0 AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT DISTINCT + col2 / + cor0.col0 + col2 FROM tab2 AS cor0 + +Expected: ["26","30","38"] but got ["26.333","30.857","38.481"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,349 failed +* 86% was OK + +Time: 21578.205ms + +---- ---- ---- ---- ---- ---- ---- +### 538/620 [`./test/random/select/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_27.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - cor0.col1 / col0 + col0 FROM tab0 AS cor0 + +Expected: ["21","33","88"] but got ["20.417","32.229","87.978"] +``` + + +```sql +SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1, tab1, tab0 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - cor1.col0 * + 21 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) + col1 * - col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-1248","-1404","-570"] +``` + + +```sql +SELECT + - CAST ( NULL AS REAL ) * - col0 + + col2 * + 31 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1, tab1 cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( + tab0.col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 45 AS col2 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,287 failed +* 87% was OK + +Time: 28339.338ms + +---- ---- ---- ---- ---- ---- ---- +### 539/620 [`./test/random/select/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_28.test) + +_Mimic sqlite_ + +```sql +SELECT + ( - cor0.col1 ) + 93 / - col1 FROM tab1 AS cor0 + +Expected: ["-19","-20","-29"] but got ["-19.300","-20.154","-29.577"] +``` + + +```sql +SELECT ALL * FROM tab2, tab1, tab0 AS cor0, tab0 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT ( - tab0.col0 + - CAST ( NULL AS INTEGER ) * ( col1 ) ) FROM tab0 + +Expected: ["NULL"] but got ["-24","-35","-89"] +``` + + +```sql +SELECT - 54 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT + tab0.col2 + col1 * CAST ( NULL AS INTEGER ) / + col1 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["1","33","82"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab2 AS cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT col1 + CAST ( - 60 AS REAL ) FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab1 cor0 WHERE NOT - col2 IN ( cor0.col2 / - cor0.col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,306 failed +* 86% was OK + +Time: 21299.590ms + +---- ---- ---- ---- ---- ---- ---- +### 540/620 [`./test/random/select/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_29.test) + +_Mimic sqlite_ + +```sql +SELECT col2 * - ( + col1 ) + col0 / - col1 - 86 AS col2 FROM tab0 AS cor0 + +Expected: ["-183","-2924","-7548"] but got ["-183.361","-2924.279","-7548.978"] +``` + + +```sql +SELECT ( cor0.col1 + - cor2.col0 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT CAST ( - 33 AS INTEGER ) - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-33","-33","-33"] +``` + + +```sql +SELECT ALL - - CAST ( col1 AS REAL ) * + col0 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 * - col0 col0 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["-4096","-6400","-9"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1, tab2 cor0, tab2 AS cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab1 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + tab2.col0 * col2 AS col1 FROM tab2 WHERE NOT ( + col0 * - col1 ) IN ( tab2.col0 + col1 * col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,405 failed +* 85% was OK + +Time: 20251.482ms + +---- ---- ---- ---- ---- ---- ---- +### 541/620 [`./test/random/select/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT 40 + ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["40","40","40"] +``` + + +```sql +SELECT ALL cor0.col0 + 94 / col2 FROM tab1 AS cor0 + +Expected: ["4","65","80"] but got ["4.741","65.649","80.979"] +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - ( + col2 ) * col2 + ( col1 * - col1 ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-7396","-8281","-9409"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IN ( col0 + col0 * col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,258 failed +* 87% was OK + +Time: 19602.442ms + +---- ---- ---- ---- ---- ---- ---- +### 542/620 [`./test/random/select/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_30.test) + +_Mimic sqlite_ + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - - col1 + - col2 / + col0 FROM tab0 AS cor0 + +Expected: ["85","91","97"] but got ["84.625","90.079","96.971"] +``` + + +```sql +SELECT ( col0 ) + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] +``` + + +```sql +SELECT - col0 + CAST ( ( col1 ) AS REAL ) FROM tab1 cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT ALL - col2 FROM tab2 WHERE NOT col0 IN ( - col2 / - col0 + + col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( col0 ) + ( - col2 ) * - col2 FROM tab1 + +Expected: ["NULL"] but got ["2919","3313","9296"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,409 failed +* 85% was OK + +Time: 20837.734ms + +---- ---- ---- ---- ---- ---- ---- +### 543/620 [`./test/random/select/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_31.test) + +_Mimic sqlite_ + +```sql +SELECT + col2 + + col2 / col1 AS col0 FROM tab2 AS cor0 + +Expected: ["26","27","40"] but got ["26.441","27.871","40.235"] +``` + + +```sql +SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * cor0.col2 col1 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * + col0 * - col0 + 48 AS col0 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["48","48","48"] +``` + + +```sql +SELECT ALL - tab1.col0 / 51 AS col2 FROM tab1, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT CAST ( NULL AS REAL ) * - ( col0 * + ( 40 ) ) AS col1 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1, tab1 cor0, tab1 AS cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - col1 IN ( col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,382 failed +* 86% was OK + +Time: 27073.920ms + +---- ---- ---- ---- ---- ---- ---- +### 544/620 [`./test/random/select/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_32.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - col0 + + CAST ( 60 AS INTEGER ) / + col0 AS col0 FROM tab1 + +Expected: ["-64","-80","17"] but got ["-63.063","-79.250","17"] +``` + + +```sql +SELECT ALL - + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) * - col1 + cor0.col1 FROM tab2 cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab2, tab0 AS cor0, tab2 cor1, tab2 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab0 cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT ( col2 ) IN ( - col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,354 failed +* 86% was OK + +Time: 23966.453ms + +---- ---- ---- ---- ---- ---- ---- +### 545/620 [`./test/random/select/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_33.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + - cor0.col2 + - CAST ( NULL AS INTEGER ) * 58 AS col2 FROM tab0 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-1","-33","-82"] +``` + + +```sql +SELECT col1 + - 77 / col0 AS col0 FROM tab1 AS cor0 + +Expected: ["1","13","9"] but got ["0.333","12.037","8.797"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * cor1.col0 FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) / - col1 col2 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT col2 * col2 + col1 * col0 AS col1 FROM tab0 WHERE NOT ( - col0 ) IN ( col0 * tab0.col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab2, tab1 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,384 failed +* 86% was OK + +Time: 21141.155ms + +---- ---- ---- ---- ---- ---- ---- +### 546/620 [`./test/random/select/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_34.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col1 + 14 / - col0 + - col1 FROM tab1 AS cor0 + +Expected: ["-4","0"] but got ["-0.175","-0.219","-4.667"] +``` + + +```sql +SELECT col0 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] +``` + + +```sql +SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col0 - + cor0.col1 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-17","-31","-59"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1, tab2, tab2 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT ( col0 ) IN ( + col2 + col2 * col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,385 failed +* 86% was OK + +Time: 20495.557ms + +---- ---- ---- ---- ---- ---- ---- +### 547/620 [`./test/random/select/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_35.test) + +_Mimic sqlite_ + +```sql +SELECT ALL ( 17 ) / col0 FROM tab2 + +Expected: ["0","0","2"] but got ["0.215","0.218","2.429"] +``` + + +```sql +SELECT + col1 + - ( - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] +``` + + +```sql +SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab1 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + col2 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["26","27","38"] +``` + + +```sql +SELECT ALL - - col0 + - col2 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - col2 * - col2 IN ( col1 + col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1, tab2 cor0, tab0 AS cor1 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,344 failed +* 86% was OK + +Time: 20660.236ms + +---- ---- ---- ---- ---- ---- ---- +### 548/620 [`./test/random/select/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_36.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 cor1, tab0, t +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL - col2 / col0 AS col1 FROM tab0 + +Expected: ["-1","0","0"] but got ["-0.029","-0.921","-1.375"] +``` + + +```sql +SELECT DISTINCT col1 * CAST ( + 86 AS REAL ) + + col2 - + col1 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) * - col1 + col2 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 + + col2 ) BETWEEN - cor0.col2 AND ( NULL ) OR NOT + col0 IN ( col1 + col2 - col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,438 failed +* 85% was OK + +Time: 25221.575ms + +---- ---- ---- ---- ---- ---- ---- +### 549/620 [`./test/random/select/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_37.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT ( col2 ) + + cor0.col2 / + cor0.col0 FROM tab0 AS cor0 + +Expected: ["1","34","82"] but got ["1.029","34.375","82.921"] +``` + + +```sql +SELECT DISTINCT + col2 + + ( - col0 ) / + CAST ( NULL AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1 cor0, tab1, tab1 AS cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 cor0 + +Expected: ["NULL"] but got ["17","31","59"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * col2 + col1 * col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["2064","3395","8099"] +``` + + +```sql +SELECT + cor0.col1 * tab0.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT * FROM tab0, tab0 cor0, tab2 cor1, tab2 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT - col1 IN ( col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + ( col2 ) + CAST ( NULL AS INTEGER ) - + 63 * col0 * - col1 AS col0 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["40377","4968","65616"] +``` + + +```sql +SELECT DISTINCT - + col0 / + cor0.col1 + col0 FROM tab0 AS cor0 + +Expected: ["24","35","89"] but got ["23.721","34.639","88.022"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,300 failed +* 87% was OK + +Time: 26442.624ms + +---- ---- ---- ---- ---- ---- ---- +### 550/620 [`./test/random/select/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_38.test) + +_Mimic sqlite_ + +```sql +SELECT CAST ( + col1 AS REAL ) * + col2 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT col0 / - col2 + col2 AS col2 FROM tab0 + +Expected: ["-34","33","81"] but got ["-34","32.273","80.915"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + + 52 AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["52","52","52"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab2 cor0 + +Expected: ["NULL"] but got ["-17","-31","-59"] +``` + + +```sql +SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 + col1 + - col1 ) IN ( col2 ) OR - col1 * col0 <= NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,339 failed +* 86% was OK + +Time: 21278.089ms + +---- ---- ---- ---- ---- ---- ---- +### 551/620 [`./test/random/select/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_39.test) + +_Mimic sqlite_ + +```sql +SELECT + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - col0 + CAST ( col0 AS INTEGER ) / col2 FROM tab0 AS cor0 + +Expected: ["-24","-88","0"] but got ["-23.273","-87.915","0"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - 24 * + cor0.col1 * 41 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab2 cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT - + CAST ( + ( cor0.col1 ) AS REAL ) / - col1 - cor0.col2 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - tab0.col1 FROM tab0, tab2, tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab2 cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT * FROM tab1 WHERE NOT - col0 * + col1 IN ( col0 / col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,334 failed +* 86% was OK + +Time: 20762.883ms + +---- ---- ---- ---- ---- ---- ---- +### 552/620 [`./test/random/select/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + - CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL + 60 / ( tab0.col0 + 64 ) FROM tab0 + +Expected: ["0","0","0"] but got ["0.392","0.606","0.682"] +``` + + +```sql +SELECT ALL * FROM tab1, tab1 cor0, tab2 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + col2 * + CAST ( col0 AS REAL ) + + col1 AS col0 FROM tab1 cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN + col1 / - col2 AND col2 + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,317 failed +* 86% was OK + +Time: 19715.389ms + +---- ---- ---- ---- ---- ---- ---- +### 553/620 [`./test/random/select/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_40.test) + +_Mimic sqlite_ + +```sql +SELECT - col2 / 47 + col0 * - col2 * + col2 FROM tab0 AS cor0 + +Expected: ["-26136","-35","-598437"] but got ["-26136.702","-35.021","-598437.745"] +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) / col0 AS col1 FROM tab1 cor0 + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-34","-7","9"] +``` + + +```sql +SELECT ALL - cor1.col1 / - ( + cor1.col2 ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2, tab2 AS cor0, tab1 cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT + col0 AS col2 FROM tab2 WHERE NOT ( col1 ) BETWEEN NULL AND - col0 + - col0 + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,324 failed +* 86% was OK + +Time: 22419.479ms + +---- ---- ---- ---- ---- ---- ---- +### 554/620 [`./test/random/select/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_41.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - CAST ( NULL AS REAL ) * + 15 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + 83 / - col1 FROM tab1 + +Expected: ["-3","-6","-8"] but got ["-3.192","-6.385","-8.300"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) + cor0.col1 AS col0 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["17","31","59"] +``` + + +```sql +SELECT * FROM tab0, tab0 cor0, tab2, tab2 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab0 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + - col2 + + col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-28","-47","-83"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT * FROM tab1 WHERE NOT col2 * + col0 IN ( col1 + col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT cor0.col1 / + col0 FROM tab0 AS cor0 + +Expected: ["1","2","3"] but got ["1.022","2.771","3.583"] +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,362 failed +* 86% was OK + +Time: 29212.685ms + +---- ---- ---- ---- ---- ---- ---- +### 555/620 [`./test/random/select/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_42.test) + +_Mimic sqlite_ + +```sql +SELECT + col2 / 50 AS col0 FROM tab2 AS cor0 + +Expected: ["0","0","0"] but got ["0.520","0.540","0.760"] +``` + + +```sql +SELECT DISTINCT - col2 + - CAST ( - col2 + col1 * + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL + - CAST ( NULL AS INTEGER ) * 86 + col1 * + 90 AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["7740","8190","8730"] +``` + + +```sql +SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1, tab0 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1, tab0 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0, tab1 AS cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - cor0.col1 + - col0 * 85 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-2040","-2975","-7565"] +``` + + +```sql +SELECT * FROM tab2 WHERE NOT - col2 IN ( col0 * + col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,431 failed +* 85% was OK + +Time: 21183.268ms + +---- ---- ---- ---- ---- ---- ---- +### 556/620 [`./test/random/select/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_43.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col2 * 24 / col0 + col1 * - 3 AS col2 FROM tab0 + +Expected: ["-225","-251","-291"] but got ["-225","-250.888","-290.314"] +``` + + +```sql +SELECT - + 21 + - col2 * - col2 * - col1 + cor0.col2 * - CAST ( NULL AS INTEGER ) * col2 col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-118","-611905","-93675"] +``` + + +```sql +SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0 + +Expected: ["NULL"] but got ["26","27","38"] +``` + + +```sql +SELECT + - col1 - - CAST ( + ( col0 ) AS REAL ) AS col2 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab0 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + tab0.col0 * + col1 + col0 * + tab0.col0 * - col1 FROM tab0 WHERE NOT col2 + tab0.col0 IN ( col1 / col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 AS cor1, tab1, tab2 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,317 failed +* 86% was OK + +Time: 22207.191ms + +---- ---- ---- ---- ---- ---- ---- +### 557/620 [`./test/random/select/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_44.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + + col2 / + col0 AS col2 FROM tab0 AS cor0 + +Expected: ["0","0","1"] but got ["0.029","0.921","1.375"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * col1 + - col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-54","-57","-96"] +``` + + +```sql +SELECT DISTINCT + CAST ( + 18 AS REAL ) - col1 * - 3 AS col1 FROM tab2 cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab1, tab0 cor0, tab0, tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1, tab2, tab0 cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - col0 IN ( col1 * + col1 * + col0 + - col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,341 failed +* 86% was OK + +Time: 20459.826ms + +---- ---- ---- ---- ---- ---- ---- +### 558/620 [`./test/random/select/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_45.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT * FROM tab2, tab1, tab0 AS cor0, tab1 cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT - cor0.col2 / cor0.col1 AS col2 FROM tab1 AS cor0 + +Expected: ["-2","-5","-7"] but got ["-2.077","-5.700","-7.385"] +``` + + +```sql +SELECT DISTINCT + cor0.col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL + + col2 * col2 * - CAST ( NULL AS INTEGER ) + col2 + col0 * - col1 col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-24","-583","-944"] +``` + + +```sql +SELECT ALL * FROM tab1, tab0 cor0, tab0 AS cor1, tab0 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) + cor0.col0 * col1 col2 FROM tab0 cor0 + +Expected: ["NULL"] but got ["2064","3395","8099"] +``` + + +```sql +SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT * FROM tab2 WHERE NOT ( + col1 + + col0 * col0 ) IN ( + col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,346 failed +* 86% was OK + +Time: 24146.494ms + +---- ---- ---- ---- ---- ---- ---- +### 559/620 [`./test/random/select/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_46.test) + +_Mimic sqlite_ + +```sql +SELECT + cor0.col1 * + col0 + - col1 / + col0 + 99 FROM tab0 AS cor0 + +Expected: ["2160","3492","8197"] but got ["2159.417","3491.229","8196.978"] +``` + + +```sql +SELECT ALL + col1 / CAST ( NULL AS REAL ) FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT + col2 + - col1 * + CAST ( NULL AS INTEGER ) / 71 AS col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] +``` + + +```sql +SELECT - 52 / cor0.col1 FROM tab1, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["3","64","80"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT col0 IN ( col1 * col1 * tab1.col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab1 cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,389 failed +* 86% was OK + +Time: 42177.684ms + +---- ---- ---- ---- ---- ---- ---- +### 560/620 [`./test/random/select/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_47.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + col2 / - 16 FROM tab0 AS cor0 + +Expected: ["-2","-5","0"] but got ["-0.063","-2.063","-5.125"] +``` + + +```sql +SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IN ( cor0.col2 ) OR - col2 IN ( - col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0 cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 cor1, tab1 AS cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT 37 / 34 AS col1 FROM tab0, tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab0 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) + 69 FROM tab0 + +Expected: ["NULL"] but got ["69"] +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,374 failed +* 86% was OK + +Time: 33064.355ms + +---- ---- ---- ---- ---- ---- ---- +### 561/620 [`./test/random/select/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_48.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + 81 / - col1 FROM tab0 + +Expected: ["0"] but got ["-0.835","-0.890","-0.942"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN col1 * col0 * + col1 + + col1 * + col0 AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab2 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + cor0.col1 + + CAST ( NULL AS INTEGER ) * - ( - col0 ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] +``` + + +```sql +SELECT DISTINCT - CAST ( 64 AS REAL ) FROM tab2 cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0, tab2 cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0, tab2 cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI… +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab2, tab2 cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,375 failed +* 86% was OK + +Time: 29979.740ms + +---- ---- ---- ---- ---- ---- ---- +### 562/620 [`./test/random/select/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_49.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 81 / col0 AS col0 FROM tab1 + +Expected: ["-1","-1","-27"] but got ["-1.012","-1.266","-27"] +``` + + +```sql +SELECT ALL + + CAST ( NULL AS INTEGER ) + - ( cor0.col1 ) * - ( cor0.col0 ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["1040","640","78"] +``` + + +```sql +SELECT - tab2.col0 * + CAST ( col1 AS REAL ) * tab2.col1 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) - cor0.col2 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["-54","-57","-96"] +``` + + +```sql +SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL 9 / cor0.col1 FROM tab2, tab1 cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 AS cor1, tab0 AS cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT ( - col2 ) IN ( col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,342 failed +* 86% was OK + +Time: 38702.468ms + +---- ---- ---- ---- ---- ---- ---- +### 563/620 [`./test/random/select/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT ALL * FROM tab0, tab0 cor0, tab2 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + col1 / - 99 AS col1 FROM tab0 + +Expected: ["0"] but got ["-0.869","-0.919","-0.980"] +``` + + +```sql +SELECT CAST ( 24 + - col2 AS REAL ) AS col0 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 cor1 + +18 results returned but expected 54 +``` + + +```sql +SELECT + col1 - - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 * col1 / 84 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["18.262","7.690","9.964"] +``` + + +```sql +SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL - col0 * + col1 AS col2 FROM tab2 WHERE NOT - col1 * tab2.col1 IN ( col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,323 failed +* 86% was OK + +Time: 28190.507ms + +---- ---- ---- ---- ---- ---- ---- +### 564/620 [`./test/random/select/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_50.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 57 / + col0 AS col0 FROM tab2 AS cor0 + +Expected: ["0","0","8"] but got ["0.722","0.731","8.143"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) - 0 AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT + cor0.col1 + col0 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + col0 * col2 + CAST ( NULL AS INTEGER ) * col0 - - col2 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["2054","216","3040"] +``` + + +```sql +SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab1 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL tab2.col0 * tab2.col2 AS col0 FROM tab2 WHERE NOT col0 BETWEEN col0 * col1 + col0 AND col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,405 failed +* 85% was OK + +Time: 21634.933ms + +---- ---- ---- ---- ---- ---- ---- +### 565/620 [`./test/random/select/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_51.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - col0 + + cor0.col0 / + ( col1 ) AS col1 FROM tab0 cor0 + +Expected: ["-24","-35","-89"] but got ["-23.721","-34.639","-88.022"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + + col1 + CAST ( 97 AS REAL ) * - cor0.col0 - + col0 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab2, tab1 AS cor0, tab0 cor1, tab0, tab0 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["-3","-64","-80"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 cor1, tab0, t +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab0 AS cor1 + +27 results returned but expected 243 +``` + + +```sql +SELECT DISTINCT - col1 * + col1 * + col2 + + col2 * col1 * + col2 FROM tab0 WHERE NOT + col0 IN ( col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,362 failed +* 86% was OK + +Time: 21202.038ms + +---- ---- ---- ---- ---- ---- ---- +### 566/620 [`./test/random/select/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_52.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + - CAST ( + col2 AS REAL ) AS col1 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - + cor0.col0 / 95 AS col1 FROM tab1 AS cor0 + +Expected: ["0","0","0"] but got ["-0.032","-0.674","-0.842"] +``` + + +```sql +SELECT ALL - - 23 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["23","23","23"] +``` + + +```sql +SELECT 14 col2 FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) / - 81 AS col2 FROM tab1, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - tab2.col1 - CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL"] but got ["-17","-31","-59"] +``` + + +```sql +SELECT DISTINCT col2 FROM tab0 WHERE NOT ( - col0 ) IN ( col2 / col1 + col2 / col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,428 failed +* 85% was OK + +Time: 20832.399ms + +---- ---- ---- ---- ---- ---- ---- +### 567/620 [`./test/random/select/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_53.test) + +_Mimic sqlite_ + +```sql +SELECT col2 + col0 + - col0 / col2 FROM tab1 + +Expected: ["120","176","57"] but got ["119.877","175.167","56.944"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1, tab0 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT + - cor0.col0 * col1 * - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["13520","2028","6400"] +``` + + +```sql +SELECT - - ( + col1 ) * cor0.col0 - CAST ( NULL AS REAL ) FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + col1 / - col1 + CAST ( NULL AS INTEGER ) + - ( col0 ) FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["-4","-65","-81"] +``` + + +```sql +SELECT ALL cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT 81 / + 97 col2 FROM tab0, tab2 AS cor0, tab2 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT col2 IN ( + tab1.col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,370 failed +* 86% was OK + +Time: 30171.424ms + +---- ---- ---- ---- ---- ---- ---- +### 568/620 [`./test/random/select/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_54.test) + +_Mimic sqlite_ + +```sql +SELECT ALL cor0.col2 * col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT col0 + col0 / + 58 FROM tab1 + +Expected: ["3","65","81"] but got ["3.052","65.103","81.379"] +``` + + +```sql +SELECT - 75 / 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL CAST ( + 43 AS INTEGER ) / + col1 + + CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0.443","0.473","0.500"] +``` + + +```sql +SELECT DISTINCT - + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0 + +Expected: ["NULL"] but got ["-17","-31","-59"] +``` + + +```sql +SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT ALL col2 FROM tab1 WHERE NOT col1 IN ( + col0 * + col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0, tab0 cor1 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,459 failed +* 85% was OK + +Time: 22173.148ms + +---- ---- ---- ---- ---- ---- ---- +### 569/620 [`./test/random/select/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_55.test) + +_Mimic sqlite_ + +```sql +SELECT - col1 + col1 + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - cor0.col0 / 6 AS col2 FROM tab1, tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - col0 * - col0 - col0 / - col1 AS col0 FROM tab0 AS cor0 + +Expected: ["1225","576","7921"] but got ["1225.361","576.279","7921.978"] +``` + + +```sql +SELECT ALL CAST ( NULL AS REAL ) FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col1 * - col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-289","-3481","-961"] +``` + + +```sql +SELECT ALL cor2.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT * FROM tab0 WHERE NOT - col0 IN ( + col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,009 tests as _sqlite_ + +* 1,391 failed +* 86% was OK + +Time: 21628.232ms + +---- ---- ---- ---- ---- ---- ---- +### 570/620 [`./test/random/select/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_56.test) + +_Mimic sqlite_ + +```sql +SELECT - col0 / col2 AS col0 FROM tab1 + +Expected: ["-1","0","0"] but got ["-0.056","-0.833","-1.123"] +``` + + +```sql +SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * + cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["1343","217","4602"] +``` + + +```sql +SELECT ALL + tab0.col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT CAST ( - cor1.col0 AS REAL ) FROM tab2, tab2 AS cor0, tab1 cor1 + +Wrong conversion type +``` + + +```sql +SELECT ALL - tab2.col0 * CAST ( NULL AS INTEGER ) FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col1 IN ( + col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab2, tab0 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,322 failed +* 86% was OK + +Time: 21101.240ms + +---- ---- ---- ---- ---- ---- ---- +### 571/620 [`./test/random/select/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_57.test) + +_Mimic sqlite_ + +```sql +SELECT + col1 / col0 FROM tab0 cor0 + +Expected: ["1","2","3"] but got ["1.022","2.771","3.583"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 63 + col0 * col1 + col1 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["2150","3492","8190"] +``` + + +```sql +SELECT col0 - + CAST ( col2 AS REAL ) FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT + + col2 + 98 * + cor0.col1 + CAST ( NULL AS INTEGER ) * cor0.col2 * + col2 AS col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["8461","9000","9507"] +``` + + +```sql +SELECT ALL * FROM tab0, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT * FROM tab2, tab0, tab0 AS cor0, tab0 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab1 WHERE NOT col0 * - col2 IN ( col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1, tab2 cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,442 failed +* 85% was OK + +Time: 21021.587ms + +---- ---- ---- ---- ---- ---- ---- +### 572/620 [`./test/random/select/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_58.test) + +_Mimic sqlite_ + +```sql +SELECT CAST ( NULL AS INTEGER ) - col2 * col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-1","-1089","-6724"] +``` + + +```sql +SELECT DISTINCT ( col2 ) / + col0 + ( - ( + col1 ) ) AS col0 FROM tab2 AS cor0 + +Expected: ["-17","-28","-59"] but got ["-16.519","-27.143","-58.667"] +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) * col1 - - col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL 21 / + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * cor0.col2 col0 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - col0 + col1 BETWEEN col1 AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab1 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,411 failed +* 85% was OK + +Time: 28234.270ms + +---- ---- ---- ---- ---- ---- ---- +### 573/620 [`./test/random/select/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_59.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col2 / + tab0.col1 - + col1 / col0 AS col2 FROM tab0 + +Expected: ["-1","-2","-3"] but got ["-0.121","-2.761","-3.200"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 cor1, tab2, tab2 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT DISTINCT - ( - col0 ) * col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["4096","6400","9"] +``` + + +```sql +SELECT col1 + CAST ( NULL AS REAL ) AS col2 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) - + cor0.col0 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-3","-64","-80"] +``` + + +```sql +SELECT ALL 9 AS col2 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) / cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab1 WHERE NOT ( - col2 ) IN ( + col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT + + col0 / + col1 FROM tab1 AS cor0 + +Expected: ["0","6"] but got ["0.115","6.154","6.400"] +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,418 failed +* 85% was OK + +Time: 24252.117ms + +---- ---- ---- ---- ---- ---- ---- +### 574/620 [`./test/random/select/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT + col0 / - col1 + - ( - col2 ) col0 FROM tab2 AS cor0 + +Expected: ["25","27","34"] but got ["24.678","26.774","33.353"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT col2 + + col2 / + CAST ( NULL AS REAL ) FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT ALL 43 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + 35 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["35"] +``` + + +```sql +SELECT ALL tab2.col1 * tab2.col0 FROM tab2 WHERE NOT ( + col0 ) IN ( col1 + + col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,345 failed +* 86% was OK + +Time: 20478.133ms + +---- ---- ---- ---- ---- ---- ---- +### 575/620 [`./test/random/select/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_60.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + col0 / col2 AS col0 FROM tab1 AS cor0 + +Expected: ["0","1"] but got ["0.056","0.833","1.123"] +``` + + +```sql +SELECT col1 + + col0 * - col2 + col0 * ( - col2 + CAST ( NULL AS INTEGER ) ) / col0 FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["-190","-3695","-7763"] +``` + + +```sql +SELECT + cor0.col2 / cor0.col1 FROM tab0, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT ( ( - col2 ) ) * CAST ( NULL AS INTEGER ) + 29 * + tab0.col2 * col1 FROM tab0 + +Expected: ["NULL"] but got ["216398","2813","82302"] +``` + + +```sql +SELECT ALL cor0.col2 + + col0 - CAST ( NULL AS REAL ) / 33 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL col2 FROM tab2 WHERE NOT - col2 IN ( col1 + tab2.col1 * col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - cor0.col2 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab2 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,421 failed +* 85% was OK + +Time: 23081.708ms + +---- ---- ---- ---- ---- ---- ---- +### 576/620 [`./test/random/select/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_61.test) + +_Mimic sqlite_ + +```sql +SELECT + CAST ( NULL AS INTEGER ) * + 69 AS col0 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + col1 + CAST ( - 56 AS INTEGER ) / + col1 AS col0 FROM tab1 AS cor0 + +Expected: ["24","5","9"] but got ["23.846","4.400","8.692"] +``` + + +```sql +SELECT CAST ( NULL AS REAL ) * + col0 + col2 / - 74 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab2 AS cor1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + col0 AS col0 FROM tab2 WHERE NOT col0 IN ( col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2, tab0 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,417 failed +* 85% was OK + +Time: 27074.143ms + +---- ---- ---- ---- ---- ---- ---- +### 577/620 [`./test/random/select/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_62.test) + +_Mimic sqlite_ + +```sql +SELECT - col1 / - col0 AS col2 FROM tab0 + +Expected: ["1","2","3"] but got ["1.022","2.771","3.583"] +``` + + +```sql +SELECT ALL + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] +``` + + +```sql +SELECT DISTINCT + CAST ( + col2 AS REAL ) * tab0.col0 AS col0 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT + cor0.col2 / + 85 AS col0 FROM tab2, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["24","35","89"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT + col1 + col2 * col0 IN ( - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,353 failed +* 86% was OK + +Time: 30713.200ms + +---- ---- ---- ---- ---- ---- ---- +### 578/620 [`./test/random/select/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_63.test) + +_Mimic sqlite_ + +```sql +SELECT - col0 + col2 + + col2 / - 2 FROM tab1 cor0 + +Expected: ["-32","-35","24"] but got ["-32","-35.500","24"] +``` + + +```sql +SELECT CAST ( NULL AS REAL ) FROM tab2, tab1, tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - cor1.col0 col2 FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 63 AS col1 FROM tab2, tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL - cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab2 WHERE NOT + col2 + col2 + col1 IN ( - tab2.col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,421 failed +* 85% was OK + +Time: 22364.626ms + +---- ---- ---- ---- ---- ---- ---- +### 579/620 [`./test/random/select/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_64.test) + +_Mimic sqlite_ + +```sql +SELECT - + 36 * col0 - + CAST ( NULL AS REAL ) * 65 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT cor0.col1 / + 34 + 84 / + cor0.col0 FROM tab0 AS cor0 + +Expected: ["2","4","5"] but got ["3.620","5.253","6.029"] +``` + + +```sql +SELECT ALL - cor1.col1 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 + col0 + - col2 AS col0 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-20","41","52"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * - col1 * - tab2.col2 AS col0 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + col2 IN ( col2 * + col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,367 failed +* 86% was OK + +Time: 21320.998ms + +---- ---- ---- ---- ---- ---- ---- +### 580/620 [`./test/random/select/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_65.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col0 / 82 AS col0 FROM tab0 + +Expected: ["0","0","1"] but got ["0.293","0.427","1.085"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + 88 col0 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["88","88","88"] +``` + + +```sql +SELECT tab1.col2 - CAST ( ( col1 ) AS REAL ) AS col2 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + 35 + - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 + +Expected: ["NULL"] but got ["-54","0","11"] +``` + + +```sql +SELECT ALL * FROM tab1, tab1 cor0, tab1 AS cor1, tab0, tab0 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL col0 FROM tab2 WHERE NOT - col1 BETWEEN ( col2 / col1 ) AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab1 cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,400 failed +* 86% was OK + +Time: 20930.483ms + +---- ---- ---- ---- ---- ---- ---- +### 581/620 [`./test/random/select/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_66.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - cor0.col2 / cor0.col0 + col0 * - 21 FROM tab1 AS cor0 + +Expected: ["-1344","-1681","-81"] but got ["-1344.891","-1681.200","-81"] +``` + + +```sql +SELECT + col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["17","31","59"] +``` + + +```sql +SELECT ALL + 6 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["1","33","82"] +``` + + +```sql +SELECT DISTINCT col1 * + CAST ( cor0.col1 AS REAL ) FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT col1 col0 FROM tab1 WHERE NOT col0 BETWEEN col1 AND col2 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 cor1, tab0, tab2 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT + 29 / - col0 + - col1 AS col1 FROM tab0 + +Expected: ["-87","-91","-97"] but got ["-87.208","-91.326","-97.829"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,377 failed +* 86% was OK + +Time: 20773.952ms + +---- ---- ---- ---- ---- ---- ---- +### 582/620 [`./test/random/select/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_67.test) + +_Mimic sqlite_ + +```sql +SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL - - col1 * - ( + col1 ) + col0 / + 98 AS col2 FROM tab2 AS cor0 + +Expected: ["-289","-3481","-961"] but got ["-288.194","-3480.204","-960.929"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + 48 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["48","48","48"] +``` + + +```sql +SELECT DISTINCT + col0 + - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["7","78","79"] +``` + + +```sql +SELECT DISTINCT - CAST ( - col1 AS REAL ) * col1 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab1, tab2 AS cor0, tab1 cor1, tab0, tab0 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT + col0 + - col1 * + col0 + col2 IN ( - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab2 cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,354 failed +* 86% was OK + +Time: 27970.103ms + +---- ---- ---- ---- ---- ---- ---- +### 583/620 [`./test/random/select/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_68.test) + +_Mimic sqlite_ + +```sql +SELECT - CAST ( NULL AS INTEGER ) + col0 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] +``` + + +```sql +SELECT ALL - ( + 2 ) * - col0 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2, tab0 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + col2 / + col0 + + col2 * + col1 FROM tab0 + +Expected: ["2839","7462","97"] but got ["2839.375","7462.921","97.029"] +``` + + +```sql +SELECT DISTINCT + col0 * + col2 * CAST ( NULL AS INTEGER ) + - col2 * col1 AS col0 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-2838","-7462","-97"] +``` + + +```sql +SELECT + col1 AS col0 FROM tab1 WHERE NOT col0 * col0 * - col2 IN ( + tab1.col2 + - col2 * col0 + - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + col0 + - col1 BETWEEN - col2 AND - col2 + col1 + +6 results returned but expected 9 +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,386 failed +* 86% was OK + +Time: 24112.579ms + +---- ---- ---- ---- ---- ---- ---- +### 584/620 [`./test/random/select/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_69.test) + +_Mimic sqlite_ + +```sql +SELECT + CAST ( NULL AS INTEGER ) * col2 * cor0.col2 AS col2 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - col2 / 70 + col1 AS col2 FROM tab1 AS cor0 + +Expected: ["10","12","26"] but got ["11.629","25.229","9.186"] +``` + + +```sql +SELECT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - tab0.col2 - CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 FROM tab2 cor0 + +Expected: ["NULL"] but got ["-17","-31","-59"] +``` + + +```sql +SELECT DISTINCT - col1 + tab2.col1 FROM tab2 WHERE NOT col0 IN ( col1 + + col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,403 failed +* 85% was OK + +Time: 21413.288ms + +---- ---- ---- ---- ---- ---- ---- +### 585/620 [`./test/random/select/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT col2 * cor0.col0 * col0 IN ( cor0.col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - col0 / col2 FROM tab0 AS cor0 + +Expected: ["-1","-35","0"] but got ["-0.727","-1.085","-35"] +``` + + +```sql +SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["1","33","82"] +``` + + +```sql +SELECT - + cor0.col1 / CAST ( - col1 AS REAL ) FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) / col0 FROM tab0 cor0 + +Expected: ["NULL"] but got ["24","35","89"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,283 failed +* 87% was OK + +Time: 20058.289ms + +---- ---- ---- ---- ---- ---- ---- +### 586/620 [`./test/random/select/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_70.test) + +_Mimic sqlite_ + +```sql +SELECT + col2 / + col0 + - CAST ( + ( + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 + +Expected: ["-36","-57","-95"] but got ["-36","-56.109","-94.800"] +``` + + +```sql +SELECT DISTINCT 40 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 FROM tab2 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-17","-31","-59"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS REAL ) * ( + col0 ) + 28 FROM tab2 cor0 + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * cor0.col1 / + col2 AS col2 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1, tab0 cor0, tab2 AS cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT ALL - tab1.col2 * - col1 * + col0 AS col1 FROM tab1 WHERE NOT ( - col1 - + col0 ) BETWEEN + col0 + + col1 AND NULL + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,449 failed +* 85% was OK + +Time: 21064.831ms + +---- ---- ---- ---- ---- ---- ---- +### 587/620 [`./test/random/select/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_71.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - CAST ( - 72 AS INTEGER ) / - col2 FROM tab0 cor0 + +Expected: ["-2","-72","0"] but got ["-0.878","-2.182","-72"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 67 AS col1 FROM tab2, tab2 AS cor0 + +Expected: ["NULL"] but got ["67"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) + - cor0.col0 + cor0.col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-19","-62","24"] +``` + + +```sql +SELECT - + CAST ( NULL AS REAL ) * + col2 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab1 WHERE NOT - col0 IN ( + col2 + tab1.col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,400 failed +* 86% was OK + +Time: 26349.765ms + +---- ---- ---- ---- ---- ---- ---- +### 588/620 [`./test/random/select/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_72.test) + +_Mimic sqlite_ + +```sql +SELECT - col2 + 4 / - col0 AS col1 FROM tab0 AS cor0 + +Expected: ["-1","-33","-82"] but got ["-1.114","-33.167","-82.045"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 AS col0 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT tab0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT + cor0.col1 + CAST ( - col2 AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT * FROM tab1 WHERE NOT col2 * col0 + + col1 + + col1 * col2 IN ( tab1.col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,437 failed +* 85% was OK + +Time: 25445.324ms + +---- ---- ---- ---- ---- ---- ---- +### 589/620 [`./test/random/select/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_73.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col0 + 64 / col1 AS col2 FROM tab1 AS cor0 + +Expected: ["5","70","84"] but got ["5.462","70.400","84.923"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) / col1 + col1 AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] +``` + + +```sql +SELECT ALL + 6 / + cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) * col2 FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT + col2 + + CAST ( NULL AS REAL ) * - 28 - - cor0.col0 * - CAST ( - 50 + col1 AS INTEGER ) * 0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT + col1 / + col0 IN ( col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab2 cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,433 failed +* 85% was OK + +Time: 21876.474ms + +---- ---- ---- ---- ---- ---- ---- +### 590/620 [`./test/random/select/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_74.test) + +_Mimic sqlite_ + +```sql +SELECT col1 / col2 + col2 AS col2 FROM tab0 + +Expected: ["35","83","98"] but got ["35.606","83.110","98"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL + CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * col0 + - col0 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-7","-78","-79"] +``` + + +```sql +SELECT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab0 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - + ( - col0 ) * - col2 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-189","-2028","-3002"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col2 IN ( col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1, tab0, tab1 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,400 failed +* 86% was OK + +Time: 20752.755ms + +---- ---- ---- ---- ---- ---- ---- +### 591/620 [`./test/random/select/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_75.test) + +_Mimic sqlite_ + +```sql +SELECT + col0 + tab0.col2 / - tab0.col1 FROM tab0 + +Expected: ["24","35","89"] but got ["23.616","34.990","88.099"] +``` + + +```sql +SELECT col1 * - col2 * - col0 col0 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IN ( - cor0.col1 * col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) * col2 col1 FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * tab0.col2 FROM tab0, tab2 cor0, tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT tab2.col1 - - tab2.col2 * CAST ( NULL AS REAL ) FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - 17 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab0 cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,336 failed +* 86% was OK + +Time: 21664.426ms + +---- ---- ---- ---- ---- ---- ---- +### 592/620 [`./test/random/select/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_76.test) + +_Mimic sqlite_ + +```sql +SELECT + col0 * - tab1.col0 + + col2 / col1 FROM tab1 + +Expected: ["-4091","-6393","-7"] but got ["-4090.300","-6.923","-6392.615"] +``` + + +```sql +SELECT - tab0.col0 + - CAST ( NULL AS REAL ) * - 77 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT 57 col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 + cor0.col0 AS col1 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["3","64","80"] +``` + + +```sql +SELECT - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 WHERE NOT col0 / - col2 + + tab0.col0 IN ( - col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + 80 / - cor0.col2 FROM tab2, tab1 cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1 cor0, tab1, tab0 cor1 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,440 failed +* 85% was OK + +Time: 29072.108ms + +---- ---- ---- ---- ---- ---- ---- +### 593/620 [`./test/random/select/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_77.test) + +_Mimic sqlite_ + +```sql +SELECT + col2 * col2 / - 36 + + col0 AS col1 FROM tab2 AS cor0 + +Expected: ["-13","39","60"] but got ["-13.250","38.889","59.222"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT CAST ( NULL AS REAL ) * col1 + + col2 * - 5 AS col2 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + cor0.col0 / + cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT col2 * - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL"] but got ["-2916","-3249","-9216"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 cor1, tab0, t +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT ALL col2 + col0 AS col2 FROM tab1 WHERE NOT - col0 + - col1 IN ( - tab1.col1 / col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,415 failed +* 85% was OK + +Time: 30178.911ms + +---- ---- ---- ---- ---- ---- ---- +### 594/620 [`./test/random/select/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_78.test) + +_Mimic sqlite_ + +```sql +SELECT col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] +``` + + +```sql +SELECT ( - col0 ) / - col1 + 33 FROM tab0 + +Expected: ["33","33","33"] but got ["33.279","33.361","33.978"] +``` + + +```sql +SELECT + + col0 * CAST ( + col2 AS REAL ) AS col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1, tab0 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT ALL - 92 / 11 FROM tab1, tab0 cor0, tab2, tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL col1 - col1 * col0 AS col0 FROM tab2 WHERE NOT ( col0 * col0 * col1 ) IN ( - tab2.col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,395 failed +* 86% was OK + +Time: 23851.092ms + +---- ---- ---- ---- ---- ---- ---- +### 595/620 [`./test/random/select/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_79.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col0 * col2 / col1 AS col0 FROM tab1 + +Expected: ["364","590","6"] but got ["364.800","590.769","6.231"] +``` + + +```sql +SELECT * FROM tab2 WHERE NOT col0 * + col1 IN ( col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT col0 * + col1 + CAST ( NULL AS REAL ) * - col2 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL + + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] +``` + + +```sql +SELECT ALL - 87 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT * FROM tab0, tab0 cor0, tab1, tab2 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 64 + col0 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["7","78","79"] +``` + + +```sql +SELECT DISTINCT + col1 / tab1.col2 AS col1 FROM tab1 + +Expected: ["0"] but got ["0.135","0.175","0.481"] +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 AS cor1, tab0, tab0 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,395 failed +* 86% was OK + +Time: 23913.871ms + +---- ---- ---- ---- ---- ---- ---- +### 596/620 [`./test/random/select/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT col0 / col2 AS col1 FROM tab0 + +Expected: ["0","1","35"] but got ["0.727","1.085","35"] +``` + + +```sql +SELECT ALL * FROM tab0, tab1 AS cor0, tab0 cor1, tab2 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - 77 + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["-77","-77","-77"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT - 46 col1 FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1, tab2 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 cor1, tab2 co +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col0 FROM tab0 + +Expected: ["NULL"] but got ["-24","-35","-89"] +``` + + +```sql +SELECT ALL + CAST ( - col0 AS REAL ) * col2 * ( col0 ) col0 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT - col2 + col0 + - col1 * + col2 FROM tab2 WHERE NOT col2 + - col1 + + col0 BETWEEN col2 + + col2 AND ( - col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,322 failed +* 86% was OK + +Time: 23879.636ms + +---- ---- ---- ---- ---- ---- ---- +### 597/620 [`./test/random/select/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_80.test) + +_Mimic sqlite_ + +```sql +SELECT cor0.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["24","35","89"] +``` + + +```sql +SELECT - col2 + col0 / - col2 AS col2 FROM tab0 AS cor0 + +Expected: ["-33","-36","-83"] but got ["-33.727","-36","-83.085"] +``` + + +```sql +SELECT + col1 * CAST ( cor0.col2 AS REAL ) AS col1 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT ALL - ( 11 ) / - tab0.col0 AS col1 FROM tab0, tab0 cor0, tab0 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 cor1, tab2 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + + 49 + - col2 / col0 + col0 / - cor0.col0 FROM tab1 AS cor0 + +Expected: ["30","47","48"] but got ["30","46.800","47.109"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,423 failed +* 85% was OK + +Time: 35479.025ms + +---- ---- ---- ---- ---- ---- ---- +### 598/620 [`./test/random/select/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_81.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["24","35","89"] +``` + + +```sql +SELECT DISTINCT - tab1.col1 + 57 / + col1 + tab1.col0 col0 FROM tab1 + +Expected: ["-21","59","71"] but got ["-20.808","59.700","71.385"] +``` + + +```sql +SELECT - CAST ( col0 AS REAL ) AS col1 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 cor1, tab2 co +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab2 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 cor1, tab1, tab1 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * cor0.col0 AS col1 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["162","3648","7680"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT col0 BETWEEN + col1 + col1 AND col0 + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,406 failed +* 85% was OK + +Time: 27059.045ms + +---- ---- ---- ---- ---- ---- ---- +### 599/620 [`./test/random/select/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_82.test) + +_Mimic sqlite_ + +```sql +SELECT + col0 + - CAST ( NULL AS INTEGER ) / cor0.col2 AS col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] +``` + + +```sql +SELECT DISTINCT - col1 * + col0 * CAST ( col1 AS INTEGER ) - col1 / col0 FROM tab1 AS cor0 + +Expected: ["-13520","-2036","-6400"] but got ["-13520.163","-2036.667","-6400.156"] +``` + + +```sql +SELECT ALL CAST ( col0 AS REAL ) * - col2 AS col1 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) / tab2.col0 FROM tab2, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 + + col2 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["1","33","82"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 cor1, tab0, tab0 cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT ALL * FROM tab2 WHERE NOT col0 * - tab2.col1 IN ( col2 - - col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,379 failed +* 86% was OK + +Time: 24549.909ms + +---- ---- ---- ---- ---- ---- ---- +### 600/620 [`./test/random/select/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_83.test) + +_Mimic sqlite_ + +```sql +SELECT cor0.col0 * CAST ( NULL AS INTEGER ) * cor0.col1 + col1 - + ( col2 ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["53","9","96"] +``` + + +```sql +SELECT - col0 * ( + 95 ) / col1 + - ( - col2 ) - col1 FROM tab2 AS cor0 + +Expected: ["-158","-25","-420"] but got ["-158.593","-25.452","-420.471"] +``` + + +```sql +SELECT ALL - cor0.col1 + CAST ( + col1 * + col2 AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col0 * col1 * - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 + +Expected: ["NULL"] but got ["-7","-78","-79"] +``` + + +```sql +SELECT ALL - 83 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT + col0 AS col0 FROM tab2 WHERE NOT col0 * + col1 IN ( col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) - 15 AS col1 FROM tab0, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0, tab1 cor1 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,430 failed +* 85% was OK + +Time: 25427.453ms + +---- ---- ---- ---- ---- ---- ---- +### 601/620 [`./test/random/select/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_84.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - col0 * col2 + + col0 / col1 AS col2 FROM tab1 AS cor0 + +Expected: ["-162","-3642","-7674"] but got ["-161.885","-3641.600","-7673.846"] +``` + + +```sql +SELECT ALL - col1 * col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-2838","-7462","-97"] +``` + + +```sql +SELECT ALL 35 / - tab2.col1 FROM tab2, tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1, tab0 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab2 cor1, tab1, t +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT col2 * - tab0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL + col1 + CAST ( col0 AS REAL ) + + col1 AS col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 cor1, tab0, tab0 cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT ALL col2 + tab2.col1 FROM tab2 WHERE NOT + col1 IN ( - col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,451 failed +* 85% was OK + +Time: 31491.463ms + +---- ---- ---- ---- ---- ---- ---- +### 602/620 [`./test/random/select/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_85.test) + +_Mimic sqlite_ + +```sql +SELECT - - ( + 62 ) / col1 + 11 FROM tab0 AS cor0 + +Expected: ["11","11","11"] but got ["11.639","11.681","11.721"] +``` + + +```sql +SELECT * FROM tab1 WHERE NOT col2 IN ( col1 * col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - 59 * cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 WHERE NULL BETWEEN NULL AND NULL + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 AS cor1 WHERE +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT col1 * - CAST ( NULL AS REAL ) col1 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT - - CAST ( NULL AS INTEGER ) * 34 FROM tab2 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["1","33","82"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab1 cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,433 failed +* 85% was OK + +Time: 30959.542ms + +---- ---- ---- ---- ---- ---- ---- +### 603/620 [`./test/random/select/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_86.test) + +_Mimic sqlite_ + +```sql +SELECT - CAST ( NULL AS REAL ) + + col1 * col2 * col0 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - tab1.col2 / - 99 FROM tab1 + +Expected: ["0","0","0"] but got ["0.545","0.576","0.970"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT 56 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT 68 + - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 + +Expected: ["NULL"] but got ["68"] +``` + + +```sql +SELECT * FROM tab0 WHERE NOT col2 + col1 IN ( col2 * col2 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 cor1, tab2 AS cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,378 failed +* 86% was OK + +Time: 25446.248ms + +---- ---- ---- ---- ---- ---- ---- +### 604/620 [`./test/random/select/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_87.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - col2 / + 81 FROM tab2 AS cor0 + +Expected: ["0"] but got ["-0.321","-0.333","-0.469"] +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1, tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT 69 * col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT + 92 / - 33 FROM tab2, tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab1 cor1 + +27 results returned but expected 243 +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 51 AS col1 FROM tab2 + +Expected: ["NULL"] but got ["-51"] +``` + + +```sql +SELECT - col1 * col1 col0 FROM tab1 WHERE NOT col0 BETWEEN ( col1 ) AND tab1.col2 * col2 + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,377 failed +* 86% was OK + +Time: 24805.255ms + +---- ---- ---- ---- ---- ---- ---- +### 605/620 [`./test/random/select/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_88.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - + cor0.col0 / col2 AS col1 FROM tab1 AS cor0 + +Expected: ["-1","0","0"] but got ["-0.056","-0.833","-1.123"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * col0 + col2 FROM tab2 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 14 AS col2 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["14"] +``` + + +```sql +SELECT cor0.col1 + + col0 * col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) - 17 FROM tab1, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + col0 * + tab0.col2 + col0 * + col2 FROM tab0 WHERE NOT - tab0.col2 - - col2 * col2 IN ( col1 * tab0.col0 - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab1 cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,429 failed +* 85% was OK + +Time: 30815.974ms + +---- ---- ---- ---- ---- ---- ---- +### 606/620 [`./test/random/select/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_89.test) + +_Mimic sqlite_ + +```sql +SELECT + cor0.col2 / + 96 AS col2 FROM tab0 AS cor0 + +Expected: ["0","0","0"] but got ["0.010","0.344","0.854"] +``` + + +```sql +SELECT DISTINCT tab0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT + 54 AS col2 FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT + 52 / - cor0.col2 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-3","-64","-80"] +``` + + +```sql +SELECT ALL + - col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2 cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,404 failed +* 85% was OK + +Time: 33371.298ms + +---- ---- ---- ---- ---- ---- ---- +### 607/620 [`./test/random/select/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT + ( - col0 ) + - col2 * CAST ( - 77 AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + col0 / col2 + + col1 FROM tab0 cor0 + +Expected: ["132","86","92"] but got ["132","86.727","92.085"] +``` + + +```sql +SELECT ALL * FROM tab0, tab2, tab1 cor0, tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 91 * + cor0.col1 * - 95 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-146965","-267995","-510055"] +``` + + +```sql +SELECT - cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-24","-35","-89"] +``` + + +```sql +SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2 AS cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT * FROM tab1 WHERE NOT - col2 * col2 + - col1 IN ( col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,295 failed +* 87% was OK + +Time: 26969.420ms + +---- ---- ---- ---- ---- ---- ---- +### 608/620 [`./test/random/select/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_90.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + 86 / + col2 FROM tab1 cor0 + +Expected: ["0","1"] but got ["0.896","1.509","1.593"] +``` + + +```sql +SELECT DISTINCT - col0 * - CAST ( cor0.col0 AS REAL ) AS col0 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL - cor0.col1 / ( - cor0.col0 ) AS col0 FROM tab2, tab1 cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - 86 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab0 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT * FROM tab2 WHERE NOT - col0 IN ( col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab2 cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,375 failed +* 86% was OK + +Time: 25303.313ms + +---- ---- ---- ---- ---- ---- ---- +### 609/620 [`./test/random/select/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_91.test) + +_Mimic sqlite_ + +```sql +SELECT + + col1 + col2 / 86 FROM tab2 cor0 + +Expected: ["17","31","59"] but got ["17.442","31.314","59.302"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab2 cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT ALL + + 85 / - tab1.col2 FROM tab0, tab2, tab1 AS cor0, tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + cor0.col2 * CAST ( NULL AS INTEGER ) * - col2 - + col2 col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-26","-27","-38"] +``` + + +```sql +SELECT ALL CAST ( NULL AS REAL ) * col1 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - cor0.col2 * - CAST ( NULL AS INTEGER ) + + col2 * + cor0.col1 AS col2 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["1248","1404","570"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 + col1 ) IN ( col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + col2 * - col1 + - 87 / col2 FROM tab1 AS cor0 + +Expected: ["-1248","-1405","-571"] but got ["-1248.906","-1405.611","-571.526"] +``` + + +```sql +SELECT ALL - - 85 / col0 AS col2 FROM tab1 AS cor0 + +Expected: ["1","1","28"] but got ["1.063","1.328","28.333"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,371 failed +* 86% was OK + +Time: 30387.498ms + +---- ---- ---- ---- ---- ---- ---- +### 610/620 [`./test/random/select/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_92.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 64 / 94 AS col2 FROM tab2, tab0 cor0, tab1 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT col2 / + col0 - - col2 * col1 * cor0.col1 FROM tab2 AS cor0 + +Expected: ["10982","25950","90506"] but got ["10982.481","25950.857","90506.333"] +``` + + +```sql +SELECT ALL - - CAST ( - 42 AS REAL ) * cor0.col0 col1 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + col1 * col1 + CAST ( NULL AS INTEGER ) + + ( + col0 ) * cor0.col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["3748","7849","838"] +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab0 AS cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT + col0 FROM tab0 WHERE NOT ( col2 ) BETWEEN col1 * tab0.col2 AND ( NULL ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,485 failed +* 85% was OK + +Time: 35825.161ms + +---- ---- ---- ---- ---- ---- ---- +### 611/620 [`./test/random/select/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_93.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col0 / - cor0.col2 + 90 col1 FROM tab0 AS cor0 + +Expected: ["55","89","90"] but got ["55","88.915","89.273"] +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) * - col1 + col2 AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["1","33","82"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL + CAST ( NULL AS REAL ) * - 26 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + + ( cor0.col1 ) AS col1 FROM tab2, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) * col1 / col0 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["-3","-64","-80"] +``` + + +```sql +SELECT tab0.col0 - col0 FROM tab0 WHERE NOT ( - col2 ) IN ( + col0 * col0 + - col2 * col2 + col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab0, tab0 AS cor2 + +45 results returned but expected 3645 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,389 failed +* 86% was OK + +Time: 27956.519ms + +---- ---- ---- ---- ---- ---- ---- +### 612/620 [`./test/random/select/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_94.test) + +_Mimic sqlite_ + +```sql +SELECT + - 13 + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-13","-13","-13"] +``` + + +```sql +SELECT + + 3 / col2 AS col2 FROM tab1 AS cor0 + +Expected: ["0","0","0"] but got ["0.031","0.053","0.056"] +``` + + +```sql +SELECT DISTINCT CAST ( + col1 AS REAL ) AS col0 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) + - 20 AS col0 FROM tab1, tab2 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col2 + col1 AS col0 FROM tab1 cor0 + +Expected: ["NULL"] but got ["10","13","26"] +``` + + +```sql +SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL col1 AS col1 FROM tab1 WHERE NOT col1 BETWEEN NULL AND - col0 * - col0 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 cor0, tab1, tab0 cor1 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,435 failed +* 85% was OK + +Time: 24759.894ms + +---- ---- ---- ---- ---- ---- ---- +### 613/620 [`./test/random/select/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_95.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + col0 / col1 - + 8 AS col2 FROM tab0 AS cor0 + +Expected: ["-8"] but got ["-7.022","-7.639","-7.721"] +``` + + +```sql +SELECT 62 * - tab0.col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["-5332","-5642","-6014"] +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col2 + col1 + + col2 col2 FROM tab1 AS cor0 + +Expected: ["NULL"] but got ["109","67","80"] +``` + + +```sql +SELECT + cor0.col2 / cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) * - 98 col1 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 cor1, tab0 co +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 cor1, tab0, tab1 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT ALL * FROM tab2 WHERE NOT ( col2 ) IN ( col0 + col0 * - col0 - - col2 * tab2.col2 * col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,399 failed +* 86% was OK + +Time: 29720.538ms + +---- ---- ---- ---- ---- ---- ---- +### 614/620 [`./test/random/select/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_96.test) + +_Mimic sqlite_ + +```sql +SELECT - col1 / 22 FROM tab2 + +Expected: ["-1","-2","0"] but got ["-0.773","-1.409","-2.682"] +``` + + +```sql +SELECT + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IN ( - col0 ) OR NULL BETWEEN NULL AND NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) + + 94 AS col2 FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["94","94","94"] +``` + + +```sql +SELECT ALL CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT 27 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1, tab0 cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT + col2 / - col1 col2 FROM tab1 AS cor0 + +Expected: ["-2","-5","-7"] but got ["-2.077","-5.700","-7.385"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,324 failed +* 86% was OK + +Time: 35043.031ms + +---- ---- ---- ---- ---- ---- ---- +### 615/620 [`./test/random/select/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_97.test) + +_Mimic sqlite_ + +```sql +SELECT + - col1 * + col2 + col0 + + col0 / cor0.col2 FROM tab0 AS cor0 + +Expected: ["-27","-2814","-7372"] but got ["-27","-2813.273","-7371.915"] +``` + + +```sql +SELECT cor0.col2 * CAST ( NULL AS INTEGER ) + - col2 * col1 * 99 FROM tab1 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-123552","-138996","-56430"] +``` + + +```sql +SELECT ALL + cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT - - CAST ( + col2 AS REAL ) AS col0 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 + col0 AS col2 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["24","35","89"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab0 cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT DISTINCT + col0 * - col2 - - col0 FROM tab2 WHERE NOT ( - col1 * col2 ) IN ( + col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,412 failed +* 85% was OK + +Time: 25163.935ms + +---- ---- ---- ---- ---- ---- ---- +### 616/620 [`./test/random/select/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_98.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 + +Expected: ["NULL"] but got ["10","13","26"] +``` + + +```sql +SELECT - col1 / ( + col0 ) - - col2 col1 FROM tab0 AS cor0 + +Expected: ["-1","30","81"] but got ["-1.771","29.417","80.978"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT - - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] +``` + + +```sql +SELECT DISTINCT + + CAST ( NULL AS REAL ) + col0 / col0 AS col1 FROM tab0 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab2 cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT ALL col0 * - col0 AS col2 FROM tab2 WHERE NOT col2 * col0 IN ( tab2.col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,404 failed +* 85% was OK + +Time: 22269.385ms + +---- ---- ---- ---- ---- ---- ---- +### 617/620 [`./test/random/select/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_99.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT ( + tab1.col1 ) / + 96 + col0 * - col2 FROM tab1 + +Expected: ["-162","-3648","-7680"] but got ["-161.729","-3647.896","-7679.865"] +``` + + +```sql +SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + + col2 * + col2 * col1 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["611884","93654","97"] +``` + + +```sql +SELECT - + col2 * + CAST ( - col2 AS REAL ) * - col2 AS col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL 9 col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT 80 / - 39 FROM tab1, tab1 cor0, tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - + col1 + + CAST ( NULL AS INTEGER ) + + 56 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-30","-35","-41"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( + col1 * col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1, tab2 cor2 + +36 results returned but expected 972 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,382 failed +* 86% was OK + +Time: 21806.945ms + +---- ---- ---- ---- ---- ---- ---- +### 618/620 [`./test/select1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select1.test) + +#### ★ Assuming all 1,031 tests still passes as _sqlite_ + +Time: 0.442ms + +---- ---- ---- ---- ---- ---- ---- +### 619/620 [`./test/select2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select2.test) + +_Mimic sqlite_ + +```sql +SELECT a, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, b FROM t1 + +Correct amount of values returned but hash was different than expected. +``` + +#### ☓ Ran 1,031 tests as _sqlite_ + +* 104 failed +* 89% was OK + +Time: 10367.363ms + +---- ---- ---- ---- ---- ---- ---- +### 620/620 [`./test/select3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select3.test) + +_Mimic sqlite_ + +```sql +SELECT d-e, c-d, (a+b+c+d+e)/5 FROM t1 WHERE d NOT BETWEEN 110 AND 150 OR e+d BETWEEN a+b-10 AND c+130 OR b>c + +81 results returned but expected 72 +``` + + +```sql +SELECT (SELECT count(*) FROM t1 AS x WHERE x.b=d+2) OR c BETWEEN b-2 AND d+2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT e FROM t1 WHERE b>c AND d NOT BETWEEN 110 AND 150 AND a>b + +Expected: ["197","227","230"] but got ["157","165","197","227","230","NULL"] +``` + + +```sql +SELECT c FROM t1 WHERE (a>b-2 AND a> ‣ +9b. Search over graph with << ‣ +10. CREATE GRAPH ‣ +11. CREATE GRAPH ‣ +12. CREATE GRAPH ‣ +13. CREATE GRAPH ‣ +14. CREATE GRAPH ‣ +15. CREATE GRAPH ‣ +16. Create database ‣ +17. Create database ‣ +18. Create graph from file ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +XML@http://localhost:7387/dist/alasql.js:15265:24 +doSearch@http://localhost:7387/dist/alasql.js:5337:63 +doSearch@[native code] +statement@http://localhost:7387/dist/alasql.js:5435:22 +dexec@http://localhost:7387/dist/alasql.js:4280:36 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test305.js:113:21 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +99. Drop database ‣ +Test 306 XML reader +1. Read XML file / SEARCH like JSON ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +XML@http://localhost:7387/dist/alasql.js:15265:24 +doSearch@http://localhost:7387/dist/alasql.js:5337:63 +doSearch@[native code] +statement@http://localhost:7387/dist/alasql.js:5435:22 +dexec@http://localhost:7387/dist/alasql.js:4280:36 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test306.js:21:11 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +1a. Read XML file / SEARCH XML ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +XML@http://localhost:7387/dist/alasql.js:15265:24 +doSearch@http://localhost:7387/dist/alasql.js:5337:63 +doSearch@[native code] +statement@http://localhost:7387/dist/alasql.js:5435:22 +dexec@http://localhost:7387/dist/alasql.js:4280:36 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test306.js:29:11 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +2. Read XML file / SEARCH XML ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +XML@http://localhost:7387/dist/alasql.js:15265:24 +doSearch@http://localhost:7387/dist/alasql.js:5337:63 +doSearch@[native code] +statement@http://localhost:7387/dist/alasql.js:5435:22 +dexec@http://localhost:7387/dist/alasql.js:4249:20 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test306.js:39:11 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +3. Read XML file / SEARCH XML ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +XML@http://localhost:7387/dist/alasql.js:15265:24 +doSearch@http://localhost:7387/dist/alasql.js:5337:63 +doSearch@[native code] +statement@http://localhost:7387/dist/alasql.js:5435:22 +dexec@http://localhost:7387/dist/alasql.js:4280:36 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test306.js:47:12 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +4. Read XML file / SEARCH XML ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +XML@http://localhost:7387/dist/alasql.js:15265:24 +doSearch@http://localhost:7387/dist/alasql.js:5337:63 +doSearch@[native code] +statement@http://localhost:7387/dist/alasql.js:5435:22 +dexec@http://localhost:7387/dist/alasql.js:4280:36 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test306.js:55:12 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +5. Read XML file / SEARCH XML ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +XML@http://localhost:7387/dist/alasql.js:15265:24 +doSearch@http://localhost:7387/dist/alasql.js:5337:63 +doSearch@[native code] +statement@http://localhost:7387/dist/alasql.js:5435:22 +dexec@http://localhost:7387/dist/alasql.js:4280:36 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test306.js:62:12 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +6a. Read GEFX file / SEARCH XML ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +XML@http://localhost:7387/dist/alasql.js:15265:24 +doSearch@http://localhost:7387/dist/alasql.js:5337:63 +doSearch@[native code] +statement@http://localhost:7387/dist/alasql.js:5435:22 +dexec@http://localhost:7387/dist/alasql.js:4280:36 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test306.js:71:12 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +6b. Read GEFX file / SEARCH XML ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +XML@http://localhost:7387/dist/alasql.js:15265:24 +doSearch@http://localhost:7387/dist/alasql.js:5337:63 +doSearch@[native code] +statement@http://localhost:7387/dist/alasql.js:5435:22 +dexec@http://localhost:7387/dist/alasql.js:4280:36 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test306.js:81:12 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +7. Edges ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +XML@http://localhost:7387/dist/alasql.js:15265:24 +doSearch@http://localhost:7387/dist/alasql.js:5337:63 +doSearch@[native code] +statement@http://localhost:7387/dist/alasql.js:5435:22 +dexec@http://localhost:7387/dist/alasql.js:4280:36 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test306.js:89:12 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +7. SEARCH INTO ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +XML@http://localhost:7387/dist/alasql.js:15265:24 +doSearch@http://localhost:7387/dist/alasql.js:5337:63 +doSearch@[native code] +statement@http://localhost:7387/dist/alasql.js:5435:22 +dexec@http://localhost:7387/dist/alasql.js:4280:36 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test306.js:97:12 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +Test 330 PROLOG +"before all" hook ‣ +InvalidAccessError: DOM Exception 15 +loadFile@http://localhost:7387/dist/alasql.js:3331:20 +http://localhost:7387/dist/alasql.js:15635:13 +forEach@[native code] +execute@http://localhost:7387/dist/alasql.js:15632:23 +dexec@http://localhost:7387/dist/alasql.js:4286:52 +exec@http://localhost:7387/dist/alasql.js:4231:22 +alasql@http://localhost:7387/dist/alasql.js:120:22 +http://localhost:7387/test330.js:14:11 +callFn@http://localhost:7387/lib/mocha/mocha.js:4387:25 +run@http://localhost:7387/lib/mocha/mocha.js:4380:13 +next@http://localhost:7387/lib/mocha/mocha.js:4667:13 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +Test 353 Compiled Promised Statements +1. CREATE DATABASE ‣ +2. Compiled Sync ‣ +3. Compiled Sync with Error ‣ +5. Compiles Async ‣ +7. Compile Promise ‣ +undefined is not a constructor (evaluating 'new Promise') +promise@http://localhost:7387/dist/alasql.js:4385:25 +http://localhost:7387/test353.js:70:15 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +5. Compile With Error ‣ +undefined is not a constructor (evaluating 'new Promise') +promise@http://localhost:7387/dist/alasql.js:4385:25 +http://localhost:7387/test353.js:79:15 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +99. DROP DATABASE ‣ +373. Use functions in group by +1. Use functions from GROUP BY without alias ‣ +[{"MONTH(fecha_Venta)":"NaN","Sales":0}] deepEqual [{"MONTH(fecha_Venta)":10,"Sales":12500},{"MONTH(fecha_Venta)":9,"Sales":25000}] +AssertionError@http://localhost:7387/lib/assert/assert.js:151:30 +fail@http://localhost:7387/lib/assert/assert.js:198:34 +deepEqual@http://localhost:7387/lib/assert/assert.js:244:9 +http://localhost:7387/test373.js:34:25 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +2. Use functions with alias from GROUP BY ‣ +[{"mes":"NaN","Sales":0}] deepEqual [{"mes":10,"Sales":12500},{"mes":9,"Sales":25000}] +AssertionError@http://localhost:7387/lib/assert/assert.js:151:30 +fail@http://localhost:7387/lib/assert/assert.js:198:34 +deepEqual@http://localhost:7387/lib/assert/assert.js:244:9 +http://localhost:7387/test373.js:45:25 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +Test 392 Observable (issue #499) +1. CREATE DATABASE ‣ +2. Prepare test data ‣ +Array.observe is not a function. (In 'Array.observe(alasql.databases.test392.tables.one.data,function(args){ +// test++; +// console.log('changed',arguments); + })', 'Array.observe' is undefined) +http://localhost:7387/test392.js:27:18 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +99. DROP DATABASE ‣ +Test 395 SQLLOGICTEST SELECT 1 +1. CREATE DATABASE ‣ +2. Test inline ‣ +3. Test from table ‣ +4. Test like in command-line ‣ +undefined is not a constructor (evaluating 'new Promise') +promise@http://localhost:7387/dist/alasql.js:4423:23 +http://localhost:7387/test395.js:36:19 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +5. More tests ‣ +99. DROP DATABASE ‣ +Test 400 Trigger with INSERTED +1. CREATE DATABASE ‣ +2. Create table and trigger ‣ +3. Insert ‣ +[[100,"undefined"],[200,"undefined"]] deepEqual [[100,2016],[200,2016]] +AssertionError@http://localhost:7387/lib/assert/assert.js:151:30 +fail@http://localhost:7387/lib/assert/assert.js:198:34 +deepEqual@http://localhost:7387/lib/assert/assert.js:244:9 +http://localhost:7387/test400.js:31:21 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +99. DROP DATABASE ‣ +Test 408 - DATEADD() and DATEDIFF() +1. CREATE DATABASE ‣ +2. DATEDIFF() ‣ +[{"Duration":"undefined"}] deepEqual [{"Duration":1}] +AssertionError@http://localhost:7387/lib/assert/assert.js:151:30 +fail@http://localhost:7387/lib/assert/assert.js:198:34 +deepEqual@http://localhost:7387/lib/assert/assert.js:244:9 +http://localhost:7387/test408.js:32:21 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +3. DATEDIFF() ‣ +"undefined" deepEqual -1 +AssertionError@http://localhost:7387/lib/assert/assert.js:151:30 +fail@http://localhost:7387/lib/assert/assert.js:198:34 +deepEqual@http://localhost:7387/lib/assert/assert.js:244:9 +http://localhost:7387/test408.js:43:21 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +4. DATEADD() ‣ +4. DATE_ADD() MySQL-style ‣ +false == true +AssertionError@http://localhost:7387/lib/assert/assert.js:151:30 +fail@http://localhost:7387/lib/assert/assert.js:198:34 +ok@http://localhost:7387/lib/assert/assert.js:218:19 +http://localhost:7387/test408.js:83:11 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +99. DROP DATABASE ‣ +Test 419 Load data from text file with default headers option +1. Load TXT ‣ +2. Load CSV with {headers:true} ‣ +3. Load CSV by default ‣ +4. Load CSV with {headers:false} ‣ +4. Load XLSX with {headers:true} ‣ +Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) +onerror@http://localhost:7387/lib/mocha/mocha.js:5879:19 +5. Load XLSX ‣ +Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) +onerror@http://localhost:7387/lib/mocha/mocha.js:5879:19 +6. Load XLSX with {headers:true} ‣ +Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) +onerror@http://localhost:7387/lib/mocha/mocha.js:5879:19 +Test 420 Load data from XLSX without extra line +1. Load XLSX ‣ +Error: Cannot find file [Content_Types].xml in zip (http://localhost:7387/lib/xlsx/xlsx.core.min.js:6) +onerror@http://localhost:7387/lib/mocha/mocha.js:5879:19 +Test 421 Test for JOINSTAR +1. Create tables ‣ +2. OVERWRITE JOINSTAR ‣ +3. JSON JOINSTAR ‣ +undefined is not an object (evaluating 'alasql.databases.test421.dbversion') +http://localhost:7387/test421.js:38:29 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 +4. UNDESCORE JOINSTAR ‣ +undefined is not an object (evaluating 'alasql.databases.test421.dbversion') +http://localhost:7387/test421.js:52:29 +run@http://localhost:7387/lib/mocha/mocha.js:4354:19 +runTest@http://localhost:7387/lib/mocha/mocha.js:4782:13 +http://localhost:7387/lib/mocha/mocha.js:4860:19 +next@http://localhost:7387/lib/mocha/mocha.js:4707:16 +http://localhost:7387/lib/mocha/mocha.js:4717:11 +next@http://localhost:7387/lib/mocha/mocha.js:4655:25 +http://localhost:7387/lib/mocha/mocha.js:4684:9 +timeslice@http://localhost:7387/lib/mocha/mocha.js:5904:27 \ No newline at end of file diff --git a/test/browserTestRunner.tmlp.html b/test/browserTestRunner.tmlp.html index e2379cf87d..8158790e06 100644 --- a/test/browserTestRunner.tmlp.html +++ b/test/browserTestRunner.tmlp.html @@ -53,14 +53,19 @@ '
  • - `alasql@'+alasql.version+'`

  • '+ '
  • - Failures: '+$('#mocha-stats .failures em').text()+'

  • '+ '
  • - Passes '+$('#mocha-stats .passes em').text()+'

  • '+ - '



    Showing only errors:


    ' + '

    ```
    ' ); // Show only errors $('li.suite:not(:has(li.test.fail))').hide(); + $('#mocha-stats .passes').hide(); + $('#mocha-stats .failures').hide(); + },3000); + + From f74ca7f00d7e65985c55dea0a01cfb77a997abe9 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Sun, 28 Feb 2016 23:29:28 +0100 Subject: [PATCH 46/54] Update testlog --- TESTLOG.md | 17 ++++++++++------- test/!testlog/Chakra.md | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/TESTLOG.md b/TESTLOG.md index 6829838f0c..84516d3c80 100644 --- a/TESTLOG.md +++ b/TESTLOG.md @@ -57,19 +57,22 @@ See full result [here](https://github.com/agershun/alasql/tree/develop/test/!tes - Passes 1034 -### Chakra +### Chakra v6.0.0-pre2 - `alasql@0.2.3-develop-1206` -- Failures: 80 -- Passes 1044 +- 1360 passing (2m) +- 66 pending +- 26 failing See full result [here](https://github.com/agershun/alasql/tree/develop/test/!testlog/Chakra.md) ### Node -The regression test is used everytime the library is compiled from `src/` to `dist/` and must always have 100% OK before releaseing a new version. - -See last result [here](https://travis-ci.org/agershun/alasql/builds). +- `alasql@0.2.3-detached.from.b496c74-69` +- 1386 passing (9s) +- 66 pending + +The regression test is ran everytime the library is compiled from `src/` to `dist/` and must always be 100% OK before releaseing a new version. -If 100% OK this will be green: +If 100% of the regression test is OK for [the lats commit](https://travis-ci.org/agershun/alasql/builds) this will be green: [![Build status](https://api.travis-ci.org/agershun/alasql.svg)](https://travis-ci.org/agershun/alasql?123) \ No newline at end of file diff --git a/test/!testlog/Chakra.md b/test/!testlog/Chakra.md index 195bd7d317..23e4ffcf9b 100644 --- a/test/!testlog/Chakra.md +++ b/test/!testlog/Chakra.md @@ -1,6 +1,6 @@ - Running tests on alasql@0.2.3-develop-1206 +``` Environment detected: { "alasqlPath": "C:\\Users\\mrw\\git\\alasql\\dist", "isBrowser": false, From 6a31b0a7379dc351cb91337195580e958740ea86 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Mon, 29 Feb 2016 14:24:04 +0100 Subject: [PATCH 47/54] Update README.md --- README.md | 699 ++++++------------------------------------------------ 1 file changed, 78 insertions(+), 621 deletions(-) diff --git a/README.md b/README.md index f3681c72c4..3bfc415797 100644 --- a/README.md +++ b/README.md @@ -1,638 +1,95 @@ +# The AlaSQL Wiki -[![bitHound Score](https://www.bithound.io/github/agershun/alasql/badges/score.svg?123)](https://www.bithound.io/github/agershun/alasql) -[![Build status](https://api.travis-ci.org/agershun/alasql.svg)](https://travis-ci.org/agershun/alasql?123) -[![NPM downloads](http://img.shields.io/npm/dm/alasql.svg?style=flat&label=npm%20downloads)](https://npmjs.org/package/alasql?) -[![Inline docs](http://inch-ci.org/github/agershun/alasql.svg?branch=develop)](http://inch-ci.org/github/agershun/alasql) -![Stars](https://img.shields.io/github/stars/agershun/alasql.svg?label=Github%20%E2%98%85&a) -![Release](https://img.shields.io/github/release/agershun/alasql.svg?label=Last%20release&a) -![NPM version](https://img.shields.io/npm/l/alasql.svg?) +* **The [[README]] section actually seeks to be helpful** -_AlaSQL is an open source project and we appreciate any and all contributions we can get. Please help out._ +* **[[Getting started]] gives you inspiration on how to use the library** -_Got a question? Ask on [Stack Overflow](http://stackoverflow.com/questions/ask?tags=AlaSQL) and tag with "alasql"._ +* **We are proud of what [other people say](People) about the library** +### About AlaSQL -# AlaSQL +AlaSQL applys SQL opperations to JavaScript arrays and objects therefore the library can best be described as a JavaScript SQL database. +The API is designed for: -_( [à la](http://en.wiktionary.org/wiki/%C3%A0_la) [SQL](http://en.wikipedia.org/wiki/SQL) ) [ælæ ɛskju:ɛl]_ - AlaSQL is an open source SQL database for Javascript with a strong focus on query speed and datasource flexibility for relational data, schemaless data, and graph data. It works in your browser, Node.js, IO.js and Cordova. +* JavaScript [[data manipulation]] plus advanced filtering, grouping and joining +* Client-side SQL database with option for persistency (as Local Storage and Indexed DB) +* Fast data processing for BI and ERP applications on fat clients +* Easy ETL (extract, transfer, and loading) data to/from [CSV](Csv) and [XLSX](Xlsx) + others +* Works in all major browsers, Node.js, and mobile applications -The library is designed for: - -* Fast SQL based in-memory data processing for BI and ERP applications on fat clients -* Easy ETL and option for persistency by data import / manipulation / export for several formats -* All major browsers, Node.js, and mobile applications - -We focus on [speed](https://github.com/agershun/alasql/wiki/Speed) by taking advantage of the dynamic nature of javascript when building up queries. Real world solutions demands flexibility regarding where data comes from and where it is to be stored. We focus on flexibility by making sure you can [import/export](https://github.com/agershun/alasql/wiki/Import-export) and query directly on data stored in Excel (both `xls` and `.xlsx`), CSV, JSON, TAB, IndexedDB, LocalStorage, and SQLite files. - - -The library brings you the comfort of a full database engine to your javascript app. No, really - its working towards a full database engine complying with [most of SQL-99](https://github.com/agershun/alasql/wiki/Supported-SQL-statements) spiced up with additional syntax for handling noSQL (schema less) data and graph networks. - - -```js -// A) Traditional SQL -alasql("CREATE TABLE cities (city string, population number)"); - -alasql("INSERT INTO cities VALUES ('Rome',2863223),('Paris',2249975),('Berlin',3517424),('Madrid',3041579)"); - -var res = alasql("SELECT * FROM cities WHERE population < 3500000 ORDER BY population DESC"); - -console.log(res); - -/* -[ - { - "city": "Madrid", - "population": 3041579 - }, - { - "city": "Rome", - "population": 2863223 - }, - { - "city": "Paris", - "population": 2249975 - } -] -*/ -``` ```js -// B) SQL on array of objects +// a) SQL on array of objects var data = [{a:1,b:10}, {a:2,b:20}, {a:1,b:30}]; - var res = alasql('SELECT a, SUM(b) AS b FROM ? GROUP BY a',[data]); +console.log(res); -console.log(res); // [{"a":1,"b":40},{"a":2,"b":20}] -``` - -```js -// C) Promise notation + read from file example -alasql.promise('SELECT * FROM XLS("mydata.xls") WHERE lastname LIKE "A%" and city = "London" GROUP BY name ') +// b) Async promise notation +alasql + .promise('SELECT * FROM XLS("mydata.xls") GROUP BY name WHERE lastname LIKE "A%" and city = "London"') .then(function(res){ - console.log(res); // output depends on mydata.xls + console.log(res); }).catch(function(err){ - console.log('Does the file exists? there was an error:', err); + console.log('error:', err); }); ``` - - - - -```js -// D) Cheat and load your data directly - -alasql("CREATE TABLE example1 (a INT, b INT)"); - -alasql.tables.example1.data = [ // Insert data directly from javascript object... - {a:2,b:6}, - {a:3,b:4} -]; - -alasql("INSERT INTO example1 VALUES (1,5)"); // ...or you insert data with normal SQL - -var res = alasql("SELECT * FROM example1 ORDER BY b DESC"); - -console.log(res); // [{a:2,b:6},{a:1,b:5},{a:3,b:4}] -``` - -jsFiddle with [example A)](http://jsfiddle.net/hguw3LLk/) and [example B)](http://jsfiddle.net/c1hbytf1/) - -## Install - - -```bash -npm install --save alasql # node -meteor add agershun:alasql # meteor -bower install --save alasql # bower -npm install -g alasql # command line -``` - -For the browser: include [alasql.min.js](http://cdn.jsdelivr.net/alasql/latest/alasql.min.js) - -```html - -``` - - -## Get started - -The wiki has a great section on [how to get started](https://github.com/agershun/alasql/wiki/Getting%20started) - -When you feel you got the grip you can check out the wiki section about [data manipulation](https://github.com/agershun/alasql/wiki/Data-manipulation) or getting inspired by the [list of Q&As](http://stackoverflow.com/questions/tagged/alasql) - - - - -* Documentation: [Github wiki](https://github.com/agershun/alasql/wiki) - -* Library CDN: [jsDelivr.com](http://www.jsdelivr.com/#!alasql) - -* Feedback: [Open an issue](https://github.com/agershun/alasql/issues/new) - -* Try online: Playground - -* Website: [alasql.org](http://AlaSQL.org) - - - - - - -## Please note - -**All contributions are much welcome and greatly appreciated(!)** - -The project has never received any funding and is based on unpaid voluntary work: [We really (really) love pull requests](https://github.com/agershun/alasql/blob/develop/CONTRIBUTING.md) - - -AlaSQL project is very young and still in active development phase, therefore it may have [bugs](https://github.com/agershun/alasql/labels/Bug). Please, submit any bugs and suggestions [as an issue](https://github.com/agershun/alasql/issues/new). AlaSQL uses [Semantic Versioning](http://semver.org/) so please note that major version is zero (0.y.z) and the API can not be considered 100% stable. Consider this before using the library in production. - -Please checkout the [limitations of the library](https://github.com/agershun/alasql#limitations) - - -## Performance -AlaSQL is very focused on speed and we make sure to use all the tricks we can find to make javascript spit out your results as quick as possible. For example: - -* Queries are cached as compiled functions. -* Joined tables are pre-indexed -* ```WHERE``` expressions are pre-filtered for joins - -The results are good. Check out AlaSQL vs. other javaScript SQL databases: - -* **3x speed** [compared to SQL.js](http://jsperf.com/sql-js-vs-alasql-js/11) selecting with `SUM`, `JOIN`, and `GROUP BY`. - -* **1x speed** [compared to WebSQL](http://jsperf.com/alasql-js-vs-websql/8) selecting with `SUM`, `JOIN`, and `GROUP BY` (in-memory operations for WebSQL - see [this discussion](https://github.com/agershun/alasql/issues/47)) - -* **2x speed** [compared to Linq](http://jsperf.com/alasql-vs-linq-on-groupby/3) for `GROUP BY` on 1,048,576 rows - - -See more [speed related info on the wiki](https://github.com/agershun/alasql/wiki/Speed) - - - - - - - - -## Features you might like - - - - -### Traditional SQL - -Use "good old" SQL on your data with multiple levels of: `JOIN`, `VIEW`, `GROUP BY`, ```UNION```, ```PRIMARY KEY```, `ANY`, `ALL`, ```IN```, ```ROLLUP()```, ```CUBE()```, ```GROUPING SETS()```, ```CROSS APPLY```, ```OUTER APPLY```, ```WITH SELECT```, and subqueries. See the wiki to [compare supported features with SQL standards](https://github.com/agershun/alasql/wiki/SQL%20keywords). - - - -### User defined functions in your SQL - -You can use all benefits of SQL and JavaScript together by defining you own costume functions. Just add new functions to the alasql.fn object: - - -```js -alasql.fn.myfn = function(a,b) { - return a*b+1; -} -var res = alasql('SELECT myfn(a,b) FROM one'); -``` - -See more [in the wiki](https://github.com/agershun/alasql/wiki/User-Defined-Functions) - - -### Compiled statements and functions - -```js -var ins = alasql.compile('INSERT INTO one VALUES (?,?)'); -ins(1,10); -ins(2,20); -``` - -See more [in the wiki](https://github.com/agershun/alasql/wiki/Compile) - - -### Work directly on JSON data - -Group your JavaScript array of objects by field and count number of records in each group: - -```js -var data = [{a:1,b:1,c:1},{a:1,b:2,c:1},{a:1,b:3,c:1}, {a:2,b:1,c:1}]; -var res = alasql('SELECT a, COUNT(*) AS b FROM ? GROUP BY a',[data]); -console.log(res); -``` -See more ideas of creative datamanipulation [in the wiki](https://github.com/agershun/alasql/wiki/Getting-started) - - - - - - - -### AlaSQL works in the console - CLI - -After globally installing AlaSQL `npm install alasql -g` you can access AlaSQL via the commandline - - -```bash -> alasql "SET @data = @[{a:'1',b:?},{a:'2',b:?}]; SELECT a, b FROM @data;" 10 20 -[ 1, [ { a: 1, b: 10 }, { a: 2, b: 20 } ] ] - -> alasql "VALUE OF SELECT COUNT(*) as abc FROM TXT('README.md') WHERE LENGTH([0]) > ?" 140 -// Number of lines with more than 140 characters in README.md -``` - -See more [in the wiki](https://github.com/agershun/alasql/wiki/AlaSQL-CLI) - - - - -### AlaSQL ♥ D3.js - -AlaSQL plays nice with d3.js and gives you a convenient way to integrate a specific subset of your data vis the visual powers of d3. See more about [D3.js and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/d3.js) - - -### AlaSQL ♥ Excel - -AlaSQL can export data to both [Excel 2003 (.xls)](https://github.com/agershun/alasql/wiki/XLS) and [Excel 2007 (.xlsx)](https://github.com/agershun/alasql/wiki/XLSX) with coloring of cells and other Excel formatting functions. - - -### AlaSQL ♥ Meteor - -Meteor is amazing. You can now query directly on your Meteor collections with SQL - simple and easy. See more about [Meteor and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Meteor) - - - -### AlaSQL ♥ Angular.js - -Angular is great. Besides using AlaSQL for normal data manipulation it works like a charm for exporting you present scope to Excel. See more about [Angular and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Angular.js) - - -### AlaSQL ♥ Google Maps - -Pinpointing data on a map should be easy. AlaSQL is great to prepare source data for Google Maps from for example Excel or CSV making a one unit of work for fetching and identifying whats relevant. See more about [Google Maps and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) - - - -### AlaSQL ♥ Google Spreadsheets - -AlaSQL can query data directly from a google spreadsheet. A good "partnership" for easy editing and powerfull data manipulation. See more about [Google Spreadsheets and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) - - - - - - - - - - - - - - - - -### AlaSQL supports plugins - -AlaSQL supports plugins. To install the plugin you need to use the `REQUIRE` statement. See more [at the wiki](https://github.com/agershun/alasql/wiki/Plugins) - - - - - - - -### Graphs - -AlaSQL is a multi-paradigm database with support for graphs that can be searched or manipulated. - - -```js -// Who loves lovers of Alice? -var res = alasql('SEARCH / ANY(>> >> #Alice) name'); -console.log(res) // ['Olga','Helen'] -``` - -See more [at the wiki](https://github.com/agershun/alasql/wiki/GRAPH) - - - - - -### AlaSQL as a WebWorker - -AlaSQL can work as a webworker. Include alasql-worker.js and thats's it: AlaSQL will work as a webworker. - -```html - - -``` - -Try the example [at jsFiddle](http://jsfiddle.net/agershun/oxv4rzzc/). - -Another option - run alasql.worker() function: - -```html - - -``` - -Try this example [in jsFiddle](http://jsfiddle.net/agershun/rjwp8u48/3/). - -Also you can use AlaSQL in webworker just simply load it as a script: - -```js - importScripts('alasql.min.js'); -``` - -### Read and write Excel, CSV, TAB, JSON, and text files to/from database - -Now AlaSQL can work with files in XLS, XSLX, CSV, TAB, TXT, and JSON format - -```js - alasql('select * into one from csv("mydata.csv")'); - alasql('select Country, Name from xlsx("cities.xlsx",{headers:true, range:"B1:E10"})\ - where Population > 100000', - [],function(data){ - console.log(data); - }); -``` -See test168 and test169 for examples - -### Read SQLite database files - -AlaSQL can read (not write) SQLite data files if you include [SQL.js](https://github.com/kripken/sql.js) library: -```html - - - -``` - -See more detailed [the example](http://alasql.org/demo/004sqlite/). - - - - -### ETL sample: CSV and IndexedDB database - -Upload CSV file with headers to IndexedDB database, and then save only asian countries -to Excel file: -```js - alasql('ATTACH INDEXEDDB DATABASE geo; \ - CREATE TABLE IF NOT EXISTS geo.country; \ - SELECT * INTO geo.country FROM CSV("country.csv",{headers:true}); \ - SELECT * INTO XLSX("asia.xlsx") FROM geo.country WHERE continent_name = "Asia"'); -``` -See [the example](http://alasql.org/demo/001csv/). - - - - - -Most of SQL-99. Please [see the wiki](https://github.com/agershun/alasql/wiki/Supported-SQL-statements) for more info - - - -### JavaScript Sugar - -AlaSQL extends "good old" SQL to make it closer to JavaScript. The "sugar" includes: - -* Json objects - `{a:'1',b:@['1','2','3']}` -* Object propertires - `obj->property->subproperty` -* Object and arrays elements - ```obj->(a*1)``` -* JavaScript functions - ```obj->valueOf()``` -* SELECT VALUE, ROW, COLUMN, MATRIX to format results of query - - - - - -### localStorage and DOM-storage -You can use browser localStorage and [DOM-storage](https://github.com/node-browser-compat/dom-storage) as a data storage. Here is a sample: - -``` - alasql('CREATE localStorage DATABASE IF NOT EXISTS Atlas'); - alasql('ATTACH localStorage DATABASE Atlas AS MyAtlas'); - alasql('CREATE TABLE IF NOT EXISTS MyAtlas.City (city string, population number)'); - alasql('SELECT * INTO MyAtlas.City FROM ?',[[{city:'Vienna', population:1731000}, - {city:'Budapest', population:1728000}]]); - var res = alasql('SELECT * FROM MyAtlas.City'); - console.log(res); -``` - -Try this sample in [jsFiddle](http://jsfiddle.net/agershun/x1gq3wf2/). Run this sample -two or three times, and AlaSQL store more and more data in localStorage. Here, "Atlas" is -the name of localStorage database, where "MyAtlas" is a memory AlaSQL database. - -You can use localStorage in two modes: SET AUTOCOMMIT ON to immediate save data -to localStorage after each statement or SET AUTOCOMMIT OFF. In this case you need -to use COMMIT statement to save all data from in-memory mirror to localStorage. - -### Work with CSV, TAB, TXT, and JSON files -You can use files in these formats directly from AlaSQL (in sync and async modes): - -```js - var res1 = alasq("select * from txt('mytext.txt') where [0] like 'M%'"); - var res2 = alasq("select * from tab('mydata.tab') order by [1]"); - var res3 = alasq("select [3] as city,[4] as population from csv('cities.csv')"); - - alasq("select * from json('array.json')",[],function(res4){ - console.log(res4) - }); -``` - -See [test157.js](test/test157.js) as an example. - -### JSON-object - -You can use JSON objects in your databases (do not forget use == and !== operators for deep comparision of objects): - -```sql - -alasql> SELECT VALUE {a:'1',b:'2'} - -{a:1,b:2} - -alasql> SELECT VALUE {a:'1',b:'2'} == {a:'1',b:'2'} - -true - -alasql> SELECT VALUE {a:'1',b:'2'}->b - -2 - -alasql> SELECT VALUE {a:'1',b:(2*2)}->b - -4 - -``` - -Try AlaSQL JSON objects in Console [sample](http://alasql.org/console?drop table if exists one;create table one;insert into one values {a:@[1,2,3],c:{e:23}}, {a:@[{b:@[1,2,3]}]};select * from one) - - - -### Alaserver - simple database server - -Yes, you can even use AlaSQL as a very simple server for tests. - -To run enter the command: -``` - alaserver [port] -``` -then type in browser something like "http://127.0.0.1:1337/?SELECT VALUE 2*2" - -Warning: Alaserver is not multi-thread, not concurrent, and not secured. - -### Webpack and Browserify - -When targeting the browser, several code bundlers like Webpack and Browserify will pick up modules you might not want. - -Here's a list of modules that alasql requires -* fs -* cptable -* jszip -* xlsx -* xls -* cpexcel -* path -* es6-promise - -#### Webpack - -Use the built-in IgnorePlugin - -```js -var IgnorePlugin = require("webpack").IgnorePlugin; - -module.exports = { - ... - //Will ignore the modules fs, path, xlsx, xls - plugins:[new IgnorePlugin(/(^fs$|xlsx|xls|^path$)/)] -}; -``` - -#### Browserify - -Read up on [excluding](https://github.com/substack/browserify-handbook#excluding), [ignoring](https://github.com/substack/browserify-handbook#ignoring), and [shimming](https://github.com/substack/browserify-handbook#shimming) - -Example (using excluding) - -```js -var browserify = require("browserify"); -var b = browserify("./main.js").bundle(); -//Will ignore the modules fs, path, xlsx, xls -["fs","path","xlsx","xls"].map(ignore => b.ignore(ignore)); -``` - - - -### Miss a feature? -Take charge and [add your idea](http://feathub.com/agershun/alasql/features/new) or [vote on your favorite feature](http://feathub.com/agershun/alasql) to be implemented: - -[![Feature Requests](http://feathub.com/agershun/alasql?format=svg)](http://feathub.com/agershun/alasql) - - - -## Limitations - -Please be aware that AlaSQL ~~may~~ have [bugs](https://github.com/agershun/alasql/labels/Bug). Besides the bugs there are a number of limitations - -0. AlaSQL has a (long) list of keywords that must be escaped if used for column names. When selecting a field named `key` please write ``` SELECT `key` FROM ... ``` instead. This is also the case for words like ``` `value` ```, ``` `read` ```, ``` `count` ```, ``` `by` ```, ``` `top` ```, ``` `path` ```, ``` `deleted` ```, ``` `work` ``` and ``` `offset` ```. Please consult the [full list of keywords](https://github.com/agershun/alasql/wiki/AlaSQL-Keywords). - - -0. It is Ok with select for 1000000 records or to join two tables by 10000 records in each (You can use streaming functions to work with longer datasources - see [test/test143.js](test/test143.js)) but be aware that the workload is multiplied so selecting from more than 8 tables with just 100 rows in each will show bad performance. This is one of our top priorities to make better. - -0. Limited functionality for transactions (supports only for localStorage) - Sorry, transactions are limited, because AlaSQL started to use more complex approach for PRIMARY KEYS / FOREIGN KEYS. Transactions will be fully turned on again in future version. - -0. A `(FULL) OUTER JOIN` and `RIGHT JOIN` on more than 2 tables will not give the expected results. `INNER JOIN` and `LEFT JOIN` are ok. - -Probably, there are many of others. Please, help us to fix them by [submitting it as an issue](https://github.com/agershun/alasql/issues). Thank you! - - - - - -## Tests - -#### Tests with Mocha -AlaSQL uses ```mocha``` for tests. Install mocha and run - -``` - > npm test - -``` -or run [test/index.html](test/index.html) for tests in browser (Please serve via localhost with for example `http-server`). - -#### Tests with AlaSQL ASSERT from SQL - -Now you can use AlaSQL [ASSERT](wiki/Assert) operator to test results of previous operation: - -```sql - CREATE TABLE one (a INT); - ASSERT 1; - INSERT INTO one VALUES (1),(2),(3); - ASSERT 3; - SELECT * FROM one ORDER BY a DESC; - ASSERT [{a:3},{a:2},{a:1}]; -``` - -#### SQLLOGICTEST - -AlaSQL uses SQLLOGICTEST to test it compatibility with SQL-99. The tests include about 2.000.000 queries and statements. - -The testruns can be found in the [testlog](TESTLOG.md). - - - -### FileSaver - -AlaSQL uses [FileSaver.js](https://github.com/eligrey/FileSaver.js/) library for saving files locally from the browser. Please be aware that it does not save files in Safari 8.0. - - - - -## License - -MIT - see [MIT licence information](LICENSE) - -## Main contributors - -* [Andrey Gershun](http://github.com/agershun) -* [Mathias Rangel Wulff](https://twitter.com/rangelwulff) -* [Aubert Grégoire](https://github.com/gregaubert) - -## Credits - -Many thanks to Zach Carter for [Jison](http://zaach.github.io/jison/) parser generator, to the author of FileSaver.js, Andrew Kent for his [SQL Parser](https://github.com/forward/sql-parser), -authors of [XLSX](https://github.com/SheetJS/js-xlsx) library, -and other people for useful tools, which make our work much easier. - -### Related projects that have inspired us - -* [AlaX](http://github.com/agershun/alax) - Export to Excel with colors and formats -* [WebSQLShim](http://github.com/agershun/WebSQLShim) - WebSQL shim over IndexedDB (work in progress) -* [AlaMDX](http://github.com/agershun/alamdx) - JavaScript MDX OLAP library (work in progress) -* [Other similar projects](http://github.com/agershun/alasql/wiki/Similar-Projects.md) - list of databases on JavaScript - -[![ghit.me](https://ghit.me/badge.svg?repo=agershun/alasql)](https://ghit.me/repo/agershun/alasql) - ----- - -© 2014-2015, Andrey Gershun (agershun@gmail.com) & M. Rangel Wulff (m@rawu.dk) + +Try example `a)` in [jsFiddle](http://jsfiddle.net/agershun/30to2rh8/1/). + +Please make sure [[promise]] is supported if you are in the browser. + +### AlaSQL Q&A +* [Data manipulation](Data manipulation) - array filtering, grouping, ordering +* [Data import and export](Import-export) - [TXT](Txt), [CSV](Csv), [TSV/TAB](Tsv)/, [XLS](Xls), +[XLSX](Xlsx), [HTML](Html), [JSON](Json) +* [Search in JSON arrays and objects](JSON) +* SQL for [JavaScript frameworks and libraries](JavaScript Frameworks): + * Platforms: [Apache Cordova](Apache Cordova), [Ionic](Ionic), [Windows 8](Windows 8) + * Frameworks: [Angular.js](Angular.js), + * Maps and diagrams: [d3.js](d3.js), [Google Maps](Google maps) + * Charts: [Highcharts.js](Highcharts.js), [Google Charts](Google Charts) + * Spreadsheets: [Microsoft Excel](XLSX), [Google Docs Spreadsheets](Google Spreadsheets) + * Grid: [Handsontable.js](Handsontable.js) + * Formatting: [Numeral.js](Numeral.js), [Moment.js](Moment.js), [Sprintf.js](Sprintf.hs) + * Applications: [Lotus Notes](http://blog.tcl-digitrade.com/blogs/tcl-digitrade-blog.nsf/dx/26.11.2015130651SMAG8A.htm) +* [SQL database](Sql database) - in-memory database + [AlaSQL FileStorage](FileStorage) persistence engine +* [SQL queries](SQL queries) +* [External databases](External databases) - [IndexedDB](IndexedDB), [Local Storage](LocalStorage), and [SQLite](SQLite) integration + +### AlaSQL Documentation +* [[Install]] +* [Getting started](Getting started) +* [Supported SQL statements](Sql) +* [Functions](Functions) +* [JavaScript API](Api) +* [Webworker version](Webworker) +* [LINQ fluent interface](Fluent Interface) +* [Import and export functions](Import export) +* [Options](AlaSQL Options) +* [Errors processing](Errors) +* [Internal structure](Internal Structure) +* [Performance](Performance) +* [TypeScript](TypeScript) +* [SQL-99 compatibility](SQL-99), [SQL-99 keywords](SQL-keywords), [AlaSQL keywords](AlaSQL-Keywords) +* ["User Manual"](http://www.slideshare.net/AndreyGershun/alasql-manual-141220-1) - PowerPoint presentation +* SlideShare [AlaSQL.js - fast JavaScript in-memory SQL database](http://www.slideshare.net/AndreyGershun/alasqljsfast-javascript-inmemory-sql-database) +* SlideShare [SQL and NoSQL in AlaSQL database](http://www.slideshare.net/AndreyGershun/sql-and-nosql-in-alasql) +* [Quirky things](Quirky) about AlaSQL +* [[Error codes]] + + + +### Command-Line Utilities +* [alacon](Alacon) - command-line utility for text and data files processing with SQL +* [alaserver](Alaserver) - simple SQL server based on AlaSQL + +### Development +* [How to setup environment for AlaSQL development?](How to setup environment for AlaSQL development) +* [How to assemble AlaSQL?](How to assemble AlaSQL) +* [How to prepare new release?](How to release) + +### Sandbox +* [AlaSQL Console](http://alasql.org/console/alaconsole.html) + +Unsure if AlaSQL fit your needs? Chekout the [other JavaScript SQL databases](Similar-Projects) From 41969538904b716a5f4ba7352edc83cdeadf9636 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Mon, 29 Feb 2016 14:24:51 +0100 Subject: [PATCH 48/54] Update README.md --- README.md | 699 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 621 insertions(+), 78 deletions(-) diff --git a/README.md b/README.md index 3bfc415797..f3681c72c4 100644 --- a/README.md +++ b/README.md @@ -1,95 +1,638 @@ -# The AlaSQL Wiki -* **The [[README]] section actually seeks to be helpful** +[![bitHound Score](https://www.bithound.io/github/agershun/alasql/badges/score.svg?123)](https://www.bithound.io/github/agershun/alasql) +[![Build status](https://api.travis-ci.org/agershun/alasql.svg)](https://travis-ci.org/agershun/alasql?123) +[![NPM downloads](http://img.shields.io/npm/dm/alasql.svg?style=flat&label=npm%20downloads)](https://npmjs.org/package/alasql?) +[![Inline docs](http://inch-ci.org/github/agershun/alasql.svg?branch=develop)](http://inch-ci.org/github/agershun/alasql) +![Stars](https://img.shields.io/github/stars/agershun/alasql.svg?label=Github%20%E2%98%85&a) +![Release](https://img.shields.io/github/release/agershun/alasql.svg?label=Last%20release&a) +![NPM version](https://img.shields.io/npm/l/alasql.svg?) -* **[[Getting started]] gives you inspiration on how to use the library** +_AlaSQL is an open source project and we appreciate any and all contributions we can get. Please help out._ -* **We are proud of what [other people say](People) about the library** +_Got a question? Ask on [Stack Overflow](http://stackoverflow.com/questions/ask?tags=AlaSQL) and tag with "alasql"._ -### About AlaSQL -AlaSQL applys SQL opperations to JavaScript arrays and objects therefore the library can best be described as a JavaScript SQL database. +# AlaSQL -The API is designed for: -* JavaScript [[data manipulation]] plus advanced filtering, grouping and joining -* Client-side SQL database with option for persistency (as Local Storage and Indexed DB) -* Fast data processing for BI and ERP applications on fat clients -* Easy ETL (extract, transfer, and loading) data to/from [CSV](Csv) and [XLSX](Xlsx) + others -* Works in all major browsers, Node.js, and mobile applications +_( [à la](http://en.wiktionary.org/wiki/%C3%A0_la) [SQL](http://en.wikipedia.org/wiki/SQL) ) [ælæ ɛskju:ɛl]_ - AlaSQL is an open source SQL database for Javascript with a strong focus on query speed and datasource flexibility for relational data, schemaless data, and graph data. It works in your browser, Node.js, IO.js and Cordova. +The library is designed for: + +* Fast SQL based in-memory data processing for BI and ERP applications on fat clients +* Easy ETL and option for persistency by data import / manipulation / export for several formats +* All major browsers, Node.js, and mobile applications + +We focus on [speed](https://github.com/agershun/alasql/wiki/Speed) by taking advantage of the dynamic nature of javascript when building up queries. Real world solutions demands flexibility regarding where data comes from and where it is to be stored. We focus on flexibility by making sure you can [import/export](https://github.com/agershun/alasql/wiki/Import-export) and query directly on data stored in Excel (both `xls` and `.xlsx`), CSV, JSON, TAB, IndexedDB, LocalStorage, and SQLite files. + + +The library brings you the comfort of a full database engine to your javascript app. No, really - its working towards a full database engine complying with [most of SQL-99](https://github.com/agershun/alasql/wiki/Supported-SQL-statements) spiced up with additional syntax for handling noSQL (schema less) data and graph networks. + + +```js +// A) Traditional SQL +alasql("CREATE TABLE cities (city string, population number)"); + +alasql("INSERT INTO cities VALUES ('Rome',2863223),('Paris',2249975),('Berlin',3517424),('Madrid',3041579)"); + +var res = alasql("SELECT * FROM cities WHERE population < 3500000 ORDER BY population DESC"); + +console.log(res); + +/* +[ + { + "city": "Madrid", + "population": 3041579 + }, + { + "city": "Rome", + "population": 2863223 + }, + { + "city": "Paris", + "population": 2249975 + } +] +*/ +``` ```js -// a) SQL on array of objects +// B) SQL on array of objects var data = [{a:1,b:10}, {a:2,b:20}, {a:1,b:30}]; + var res = alasql('SELECT a, SUM(b) AS b FROM ? GROUP BY a',[data]); -console.log(res); -// b) Async promise notation -alasql - .promise('SELECT * FROM XLS("mydata.xls") GROUP BY name WHERE lastname LIKE "A%" and city = "London"') +console.log(res); // [{"a":1,"b":40},{"a":2,"b":20}] +``` + +```js +// C) Promise notation + read from file example +alasql.promise('SELECT * FROM XLS("mydata.xls") WHERE lastname LIKE "A%" and city = "London" GROUP BY name ') .then(function(res){ - console.log(res); + console.log(res); // output depends on mydata.xls }).catch(function(err){ - console.log('error:', err); + console.log('Does the file exists? there was an error:', err); }); ``` - -Try example `a)` in [jsFiddle](http://jsfiddle.net/agershun/30to2rh8/1/). - -Please make sure [[promise]] is supported if you are in the browser. - -### AlaSQL Q&A -* [Data manipulation](Data manipulation) - array filtering, grouping, ordering -* [Data import and export](Import-export) - [TXT](Txt), [CSV](Csv), [TSV/TAB](Tsv)/, [XLS](Xls), -[XLSX](Xlsx), [HTML](Html), [JSON](Json) -* [Search in JSON arrays and objects](JSON) -* SQL for [JavaScript frameworks and libraries](JavaScript Frameworks): - * Platforms: [Apache Cordova](Apache Cordova), [Ionic](Ionic), [Windows 8](Windows 8) - * Frameworks: [Angular.js](Angular.js), - * Maps and diagrams: [d3.js](d3.js), [Google Maps](Google maps) - * Charts: [Highcharts.js](Highcharts.js), [Google Charts](Google Charts) - * Spreadsheets: [Microsoft Excel](XLSX), [Google Docs Spreadsheets](Google Spreadsheets) - * Grid: [Handsontable.js](Handsontable.js) - * Formatting: [Numeral.js](Numeral.js), [Moment.js](Moment.js), [Sprintf.js](Sprintf.hs) - * Applications: [Lotus Notes](http://blog.tcl-digitrade.com/blogs/tcl-digitrade-blog.nsf/dx/26.11.2015130651SMAG8A.htm) -* [SQL database](Sql database) - in-memory database + [AlaSQL FileStorage](FileStorage) persistence engine -* [SQL queries](SQL queries) -* [External databases](External databases) - [IndexedDB](IndexedDB), [Local Storage](LocalStorage), and [SQLite](SQLite) integration - -### AlaSQL Documentation -* [[Install]] -* [Getting started](Getting started) -* [Supported SQL statements](Sql) -* [Functions](Functions) -* [JavaScript API](Api) -* [Webworker version](Webworker) -* [LINQ fluent interface](Fluent Interface) -* [Import and export functions](Import export) -* [Options](AlaSQL Options) -* [Errors processing](Errors) -* [Internal structure](Internal Structure) -* [Performance](Performance) -* [TypeScript](TypeScript) -* [SQL-99 compatibility](SQL-99), [SQL-99 keywords](SQL-keywords), [AlaSQL keywords](AlaSQL-Keywords) -* ["User Manual"](http://www.slideshare.net/AndreyGershun/alasql-manual-141220-1) - PowerPoint presentation -* SlideShare [AlaSQL.js - fast JavaScript in-memory SQL database](http://www.slideshare.net/AndreyGershun/alasqljsfast-javascript-inmemory-sql-database) -* SlideShare [SQL and NoSQL in AlaSQL database](http://www.slideshare.net/AndreyGershun/sql-and-nosql-in-alasql) -* [Quirky things](Quirky) about AlaSQL -* [[Error codes]] - - - -### Command-Line Utilities -* [alacon](Alacon) - command-line utility for text and data files processing with SQL -* [alaserver](Alaserver) - simple SQL server based on AlaSQL - -### Development -* [How to setup environment for AlaSQL development?](How to setup environment for AlaSQL development) -* [How to assemble AlaSQL?](How to assemble AlaSQL) -* [How to prepare new release?](How to release) - -### Sandbox -* [AlaSQL Console](http://alasql.org/console/alaconsole.html) - -Unsure if AlaSQL fit your needs? Chekout the [other JavaScript SQL databases](Similar-Projects) + + + + +```js +// D) Cheat and load your data directly + +alasql("CREATE TABLE example1 (a INT, b INT)"); + +alasql.tables.example1.data = [ // Insert data directly from javascript object... + {a:2,b:6}, + {a:3,b:4} +]; + +alasql("INSERT INTO example1 VALUES (1,5)"); // ...or you insert data with normal SQL + +var res = alasql("SELECT * FROM example1 ORDER BY b DESC"); + +console.log(res); // [{a:2,b:6},{a:1,b:5},{a:3,b:4}] +``` + +jsFiddle with [example A)](http://jsfiddle.net/hguw3LLk/) and [example B)](http://jsfiddle.net/c1hbytf1/) + +## Install + + +```bash +npm install --save alasql # node +meteor add agershun:alasql # meteor +bower install --save alasql # bower +npm install -g alasql # command line +``` + +For the browser: include [alasql.min.js](http://cdn.jsdelivr.net/alasql/latest/alasql.min.js) + +```html + +``` + + +## Get started + +The wiki has a great section on [how to get started](https://github.com/agershun/alasql/wiki/Getting%20started) + +When you feel you got the grip you can check out the wiki section about [data manipulation](https://github.com/agershun/alasql/wiki/Data-manipulation) or getting inspired by the [list of Q&As](http://stackoverflow.com/questions/tagged/alasql) + + + + +* Documentation: [Github wiki](https://github.com/agershun/alasql/wiki) + +* Library CDN: [jsDelivr.com](http://www.jsdelivr.com/#!alasql) + +* Feedback: [Open an issue](https://github.com/agershun/alasql/issues/new) + +* Try online: Playground + +* Website: [alasql.org](http://AlaSQL.org) + + + + + + +## Please note + +**All contributions are much welcome and greatly appreciated(!)** - +The project has never received any funding and is based on unpaid voluntary work: [We really (really) love pull requests](https://github.com/agershun/alasql/blob/develop/CONTRIBUTING.md) + + +AlaSQL project is very young and still in active development phase, therefore it may have [bugs](https://github.com/agershun/alasql/labels/Bug). Please, submit any bugs and suggestions [as an issue](https://github.com/agershun/alasql/issues/new). AlaSQL uses [Semantic Versioning](http://semver.org/) so please note that major version is zero (0.y.z) and the API can not be considered 100% stable. Consider this before using the library in production. + +Please checkout the [limitations of the library](https://github.com/agershun/alasql#limitations) + + +## Performance +AlaSQL is very focused on speed and we make sure to use all the tricks we can find to make javascript spit out your results as quick as possible. For example: + +* Queries are cached as compiled functions. +* Joined tables are pre-indexed +* ```WHERE``` expressions are pre-filtered for joins + +The results are good. Check out AlaSQL vs. other javaScript SQL databases: + +* **3x speed** [compared to SQL.js](http://jsperf.com/sql-js-vs-alasql-js/11) selecting with `SUM`, `JOIN`, and `GROUP BY`. + +* **1x speed** [compared to WebSQL](http://jsperf.com/alasql-js-vs-websql/8) selecting with `SUM`, `JOIN`, and `GROUP BY` (in-memory operations for WebSQL - see [this discussion](https://github.com/agershun/alasql/issues/47)) + +* **2x speed** [compared to Linq](http://jsperf.com/alasql-vs-linq-on-groupby/3) for `GROUP BY` on 1,048,576 rows + + +See more [speed related info on the wiki](https://github.com/agershun/alasql/wiki/Speed) + + + + + + + + +## Features you might like + + + + +### Traditional SQL + +Use "good old" SQL on your data with multiple levels of: `JOIN`, `VIEW`, `GROUP BY`, ```UNION```, ```PRIMARY KEY```, `ANY`, `ALL`, ```IN```, ```ROLLUP()```, ```CUBE()```, ```GROUPING SETS()```, ```CROSS APPLY```, ```OUTER APPLY```, ```WITH SELECT```, and subqueries. See the wiki to [compare supported features with SQL standards](https://github.com/agershun/alasql/wiki/SQL%20keywords). + + + +### User defined functions in your SQL + +You can use all benefits of SQL and JavaScript together by defining you own costume functions. Just add new functions to the alasql.fn object: + + +```js +alasql.fn.myfn = function(a,b) { + return a*b+1; +} +var res = alasql('SELECT myfn(a,b) FROM one'); +``` + +See more [in the wiki](https://github.com/agershun/alasql/wiki/User-Defined-Functions) + + +### Compiled statements and functions + +```js +var ins = alasql.compile('INSERT INTO one VALUES (?,?)'); +ins(1,10); +ins(2,20); +``` + +See more [in the wiki](https://github.com/agershun/alasql/wiki/Compile) + + +### Work directly on JSON data + +Group your JavaScript array of objects by field and count number of records in each group: + +```js +var data = [{a:1,b:1,c:1},{a:1,b:2,c:1},{a:1,b:3,c:1}, {a:2,b:1,c:1}]; +var res = alasql('SELECT a, COUNT(*) AS b FROM ? GROUP BY a',[data]); +console.log(res); +``` +See more ideas of creative datamanipulation [in the wiki](https://github.com/agershun/alasql/wiki/Getting-started) + + + + + + + +### AlaSQL works in the console - CLI + +After globally installing AlaSQL `npm install alasql -g` you can access AlaSQL via the commandline + + +```bash +> alasql "SET @data = @[{a:'1',b:?},{a:'2',b:?}]; SELECT a, b FROM @data;" 10 20 +[ 1, [ { a: 1, b: 10 }, { a: 2, b: 20 } ] ] + +> alasql "VALUE OF SELECT COUNT(*) as abc FROM TXT('README.md') WHERE LENGTH([0]) > ?" 140 +// Number of lines with more than 140 characters in README.md +``` + +See more [in the wiki](https://github.com/agershun/alasql/wiki/AlaSQL-CLI) + + + + +### AlaSQL ♥ D3.js + +AlaSQL plays nice with d3.js and gives you a convenient way to integrate a specific subset of your data vis the visual powers of d3. See more about [D3.js and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/d3.js) + + +### AlaSQL ♥ Excel + +AlaSQL can export data to both [Excel 2003 (.xls)](https://github.com/agershun/alasql/wiki/XLS) and [Excel 2007 (.xlsx)](https://github.com/agershun/alasql/wiki/XLSX) with coloring of cells and other Excel formatting functions. + + +### AlaSQL ♥ Meteor + +Meteor is amazing. You can now query directly on your Meteor collections with SQL - simple and easy. See more about [Meteor and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Meteor) + + + +### AlaSQL ♥ Angular.js + +Angular is great. Besides using AlaSQL for normal data manipulation it works like a charm for exporting you present scope to Excel. See more about [Angular and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Angular.js) + + +### AlaSQL ♥ Google Maps + +Pinpointing data on a map should be easy. AlaSQL is great to prepare source data for Google Maps from for example Excel or CSV making a one unit of work for fetching and identifying whats relevant. See more about [Google Maps and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) + + + +### AlaSQL ♥ Google Spreadsheets + +AlaSQL can query data directly from a google spreadsheet. A good "partnership" for easy editing and powerfull data manipulation. See more about [Google Spreadsheets and AlaSQL in the wiki](https://github.com/agershun/alasql/wiki/Google-maps) + + + + + + + + + + + + + + + + +### AlaSQL supports plugins + +AlaSQL supports plugins. To install the plugin you need to use the `REQUIRE` statement. See more [at the wiki](https://github.com/agershun/alasql/wiki/Plugins) + + + + + + + +### Graphs + +AlaSQL is a multi-paradigm database with support for graphs that can be searched or manipulated. + + +```js +// Who loves lovers of Alice? +var res = alasql('SEARCH / ANY(>> >> #Alice) name'); +console.log(res) // ['Olga','Helen'] +``` + +See more [at the wiki](https://github.com/agershun/alasql/wiki/GRAPH) + + + + + +### AlaSQL as a WebWorker + +AlaSQL can work as a webworker. Include alasql-worker.js and thats's it: AlaSQL will work as a webworker. + +```html + + +``` + +Try the example [at jsFiddle](http://jsfiddle.net/agershun/oxv4rzzc/). + +Another option - run alasql.worker() function: + +```html + + +``` + +Try this example [in jsFiddle](http://jsfiddle.net/agershun/rjwp8u48/3/). + +Also you can use AlaSQL in webworker just simply load it as a script: + +```js + importScripts('alasql.min.js'); +``` + +### Read and write Excel, CSV, TAB, JSON, and text files to/from database + +Now AlaSQL can work with files in XLS, XSLX, CSV, TAB, TXT, and JSON format + +```js + alasql('select * into one from csv("mydata.csv")'); + alasql('select Country, Name from xlsx("cities.xlsx",{headers:true, range:"B1:E10"})\ + where Population > 100000', + [],function(data){ + console.log(data); + }); +``` +See test168 and test169 for examples + +### Read SQLite database files + +AlaSQL can read (not write) SQLite data files if you include [SQL.js](https://github.com/kripken/sql.js) library: +```html + + + +``` + +See more detailed [the example](http://alasql.org/demo/004sqlite/). + + + + +### ETL sample: CSV and IndexedDB database + +Upload CSV file with headers to IndexedDB database, and then save only asian countries +to Excel file: +```js + alasql('ATTACH INDEXEDDB DATABASE geo; \ + CREATE TABLE IF NOT EXISTS geo.country; \ + SELECT * INTO geo.country FROM CSV("country.csv",{headers:true}); \ + SELECT * INTO XLSX("asia.xlsx") FROM geo.country WHERE continent_name = "Asia"'); +``` +See [the example](http://alasql.org/demo/001csv/). + + + + + +Most of SQL-99. Please [see the wiki](https://github.com/agershun/alasql/wiki/Supported-SQL-statements) for more info + + + +### JavaScript Sugar + +AlaSQL extends "good old" SQL to make it closer to JavaScript. The "sugar" includes: + +* Json objects - `{a:'1',b:@['1','2','3']}` +* Object propertires - `obj->property->subproperty` +* Object and arrays elements - ```obj->(a*1)``` +* JavaScript functions - ```obj->valueOf()``` +* SELECT VALUE, ROW, COLUMN, MATRIX to format results of query + + + + + +### localStorage and DOM-storage +You can use browser localStorage and [DOM-storage](https://github.com/node-browser-compat/dom-storage) as a data storage. Here is a sample: + +``` + alasql('CREATE localStorage DATABASE IF NOT EXISTS Atlas'); + alasql('ATTACH localStorage DATABASE Atlas AS MyAtlas'); + alasql('CREATE TABLE IF NOT EXISTS MyAtlas.City (city string, population number)'); + alasql('SELECT * INTO MyAtlas.City FROM ?',[[{city:'Vienna', population:1731000}, + {city:'Budapest', population:1728000}]]); + var res = alasql('SELECT * FROM MyAtlas.City'); + console.log(res); +``` + +Try this sample in [jsFiddle](http://jsfiddle.net/agershun/x1gq3wf2/). Run this sample +two or three times, and AlaSQL store more and more data in localStorage. Here, "Atlas" is +the name of localStorage database, where "MyAtlas" is a memory AlaSQL database. + +You can use localStorage in two modes: SET AUTOCOMMIT ON to immediate save data +to localStorage after each statement or SET AUTOCOMMIT OFF. In this case you need +to use COMMIT statement to save all data from in-memory mirror to localStorage. + +### Work with CSV, TAB, TXT, and JSON files +You can use files in these formats directly from AlaSQL (in sync and async modes): + +```js + var res1 = alasq("select * from txt('mytext.txt') where [0] like 'M%'"); + var res2 = alasq("select * from tab('mydata.tab') order by [1]"); + var res3 = alasq("select [3] as city,[4] as population from csv('cities.csv')"); + + alasq("select * from json('array.json')",[],function(res4){ + console.log(res4) + }); +``` + +See [test157.js](test/test157.js) as an example. + +### JSON-object + +You can use JSON objects in your databases (do not forget use == and !== operators for deep comparision of objects): + +```sql + +alasql> SELECT VALUE {a:'1',b:'2'} + +{a:1,b:2} + +alasql> SELECT VALUE {a:'1',b:'2'} == {a:'1',b:'2'} + +true + +alasql> SELECT VALUE {a:'1',b:'2'}->b + +2 + +alasql> SELECT VALUE {a:'1',b:(2*2)}->b + +4 + +``` + +Try AlaSQL JSON objects in Console [sample](http://alasql.org/console?drop table if exists one;create table one;insert into one values {a:@[1,2,3],c:{e:23}}, {a:@[{b:@[1,2,3]}]};select * from one) + + + +### Alaserver - simple database server + +Yes, you can even use AlaSQL as a very simple server for tests. + +To run enter the command: +``` + alaserver [port] +``` +then type in browser something like "http://127.0.0.1:1337/?SELECT VALUE 2*2" + +Warning: Alaserver is not multi-thread, not concurrent, and not secured. + +### Webpack and Browserify + +When targeting the browser, several code bundlers like Webpack and Browserify will pick up modules you might not want. + +Here's a list of modules that alasql requires +* fs +* cptable +* jszip +* xlsx +* xls +* cpexcel +* path +* es6-promise + +#### Webpack + +Use the built-in IgnorePlugin + +```js +var IgnorePlugin = require("webpack").IgnorePlugin; + +module.exports = { + ... + //Will ignore the modules fs, path, xlsx, xls + plugins:[new IgnorePlugin(/(^fs$|xlsx|xls|^path$)/)] +}; +``` + +#### Browserify + +Read up on [excluding](https://github.com/substack/browserify-handbook#excluding), [ignoring](https://github.com/substack/browserify-handbook#ignoring), and [shimming](https://github.com/substack/browserify-handbook#shimming) + +Example (using excluding) + +```js +var browserify = require("browserify"); +var b = browserify("./main.js").bundle(); +//Will ignore the modules fs, path, xlsx, xls +["fs","path","xlsx","xls"].map(ignore => b.ignore(ignore)); +``` + + + +### Miss a feature? +Take charge and [add your idea](http://feathub.com/agershun/alasql/features/new) or [vote on your favorite feature](http://feathub.com/agershun/alasql) to be implemented: + +[![Feature Requests](http://feathub.com/agershun/alasql?format=svg)](http://feathub.com/agershun/alasql) + + + +## Limitations + +Please be aware that AlaSQL ~~may~~ have [bugs](https://github.com/agershun/alasql/labels/Bug). Besides the bugs there are a number of limitations + +0. AlaSQL has a (long) list of keywords that must be escaped if used for column names. When selecting a field named `key` please write ``` SELECT `key` FROM ... ``` instead. This is also the case for words like ``` `value` ```, ``` `read` ```, ``` `count` ```, ``` `by` ```, ``` `top` ```, ``` `path` ```, ``` `deleted` ```, ``` `work` ``` and ``` `offset` ```. Please consult the [full list of keywords](https://github.com/agershun/alasql/wiki/AlaSQL-Keywords). + + +0. It is Ok with select for 1000000 records or to join two tables by 10000 records in each (You can use streaming functions to work with longer datasources - see [test/test143.js](test/test143.js)) but be aware that the workload is multiplied so selecting from more than 8 tables with just 100 rows in each will show bad performance. This is one of our top priorities to make better. + +0. Limited functionality for transactions (supports only for localStorage) - Sorry, transactions are limited, because AlaSQL started to use more complex approach for PRIMARY KEYS / FOREIGN KEYS. Transactions will be fully turned on again in future version. + +0. A `(FULL) OUTER JOIN` and `RIGHT JOIN` on more than 2 tables will not give the expected results. `INNER JOIN` and `LEFT JOIN` are ok. + +Probably, there are many of others. Please, help us to fix them by [submitting it as an issue](https://github.com/agershun/alasql/issues). Thank you! + + + + + +## Tests + +#### Tests with Mocha +AlaSQL uses ```mocha``` for tests. Install mocha and run + +``` + > npm test + +``` +or run [test/index.html](test/index.html) for tests in browser (Please serve via localhost with for example `http-server`). + +#### Tests with AlaSQL ASSERT from SQL + +Now you can use AlaSQL [ASSERT](wiki/Assert) operator to test results of previous operation: + +```sql + CREATE TABLE one (a INT); + ASSERT 1; + INSERT INTO one VALUES (1),(2),(3); + ASSERT 3; + SELECT * FROM one ORDER BY a DESC; + ASSERT [{a:3},{a:2},{a:1}]; +``` + +#### SQLLOGICTEST + +AlaSQL uses SQLLOGICTEST to test it compatibility with SQL-99. The tests include about 2.000.000 queries and statements. + +The testruns can be found in the [testlog](TESTLOG.md). + + + +### FileSaver + +AlaSQL uses [FileSaver.js](https://github.com/eligrey/FileSaver.js/) library for saving files locally from the browser. Please be aware that it does not save files in Safari 8.0. + + + + +## License + +MIT - see [MIT licence information](LICENSE) + +## Main contributors + +* [Andrey Gershun](http://github.com/agershun) +* [Mathias Rangel Wulff](https://twitter.com/rangelwulff) +* [Aubert Grégoire](https://github.com/gregaubert) + +## Credits + +Many thanks to Zach Carter for [Jison](http://zaach.github.io/jison/) parser generator, to the author of FileSaver.js, Andrew Kent for his [SQL Parser](https://github.com/forward/sql-parser), +authors of [XLSX](https://github.com/SheetJS/js-xlsx) library, +and other people for useful tools, which make our work much easier. + +### Related projects that have inspired us + +* [AlaX](http://github.com/agershun/alax) - Export to Excel with colors and formats +* [WebSQLShim](http://github.com/agershun/WebSQLShim) - WebSQL shim over IndexedDB (work in progress) +* [AlaMDX](http://github.com/agershun/alamdx) - JavaScript MDX OLAP library (work in progress) +* [Other similar projects](http://github.com/agershun/alasql/wiki/Similar-Projects.md) - list of databases on JavaScript + +[![ghit.me](https://ghit.me/badge.svg?repo=agershun/alasql)](https://ghit.me/repo/agershun/alasql) + +---- + +© 2014-2015, Andrey Gershun (agershun@gmail.com) & M. Rangel Wulff (m@rawu.dk) From c05950c2f1495373bf22458a1e1d5ba5020d047a Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Tue, 1 Mar 2016 20:00:48 +0100 Subject: [PATCH 49/54] Chakra test run --- TESTLOG.md | 10 +- test/!testlog/Chakra.md | 114 +- test/!testlog/SQLlogic Chakra.md | 7323 ++++++++++++++++++++++++++++++ 3 files changed, 7362 insertions(+), 85 deletions(-) diff --git a/TESTLOG.md b/TESTLOG.md index 84516d3c80..e6d6bf7eb2 100644 --- a/TESTLOG.md +++ b/TESTLOG.md @@ -25,8 +25,6 @@ It has not yet been possible to run the SQLlogic tests on the Chrakra engine. The [regression tests for AlaSQL](https://github.com/agershun/alasql/tree/develop/test/) consists of more than 1000 test cases (hopefully) covering all of the functionality in the library. By executing `npm run test:only` the regression test will run via node. By executing `npm run test:browser` it will run in a browser. - - ### Chrome 48 - `alasql@0.2.3-develop-1206` - Failures: 61 @@ -57,11 +55,11 @@ See full result [here](https://github.com/agershun/alasql/tree/develop/test/!tes - Passes 1034 -### Chakra v6.0.0-pre2 -- `alasql@0.2.3-develop-1206` -- 1360 passing (2m) +### Chakra v6.0.0-pre5 +- `alasql@0.2.3-develop-1216` +- 1364 passing (2m) - 66 pending -- 26 failing +- 22 failing See full result [here](https://github.com/agershun/alasql/tree/develop/test/!testlog/Chakra.md) diff --git a/test/!testlog/Chakra.md b/test/!testlog/Chakra.md index 23e4ffcf9b..ee0259a7ea 100644 --- a/test/!testlog/Chakra.md +++ b/test/!testlog/Chakra.md @@ -1,6 +1,8 @@ - Running tests on alasql@0.2.3-develop-1206 +### Chakra v6.0.0-pre5 ``` + Running tests on alasql@0.2.3-develop-1216 + Environment detected: { "alasqlPath": "C:\\Users\\mrw\\git\\alasql\\dist", "isBrowser": false, @@ -42,39 +44,11 @@ ........................................................ .................................................... - 1360 passing (2m) + 1364 passing (20s) 66 pending - 26 failing + 22 failing - 1) Test 55 - Error in WHERE and preIndex with ParamValue SELECT - gives "Cannot find indices of undefined": - Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test. - at done (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:245:7) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:317:7) - at Anonymous function (C:\Users\mrw\git\alasql\test\test055.js:16:3) - at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) - at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) - at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) - at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) - at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - - 2) Test 56 - Error in WHERE and preIndex with ParamValue SELECT - order by ": - Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test. - at done (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:245:7) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:317:7) - at Anonymous function (C:\Users\mrw\git\alasql\test\test056.js:15:3) - at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) - at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) - at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) - at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) - at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - - 3) Test 202 GETTIME and CAST 2. CONVERT(,,110): + 1) Test 202 GETTIME and CAST 2. CONVERT(,,110): AssertionError: false == true + expected - actual @@ -92,7 +66,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 4) Test 212: CONVERT dates with style 2. CONVERT DATE TO STRING: + 2) Test 212: CONVERT dates with style 2. CONVERT DATE TO STRING: AssertionError: false == true + expected - actual @@ -110,7 +84,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 5) Test 212: CONVERT dates with style 3. CONVERT JAVASCRIPT DATE TO STRING: + 3) Test 212: CONVERT dates with style 3. CONVERT JAVASCRIPT DATE TO STRING: AssertionError: false == true + expected - actual @@ -128,7 +102,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 6) Test 212: CONVERT dates with style 4. CONVERT JAVASCRIPT DATE TO STRING: + 4) Test 212: CONVERT dates with style 4. CONVERT JAVASCRIPT DATE TO STRING: AssertionError: false == true + expected - actual @@ -146,7 +120,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 7) Test 212: CONVERT dates with style 5. CONVERT DATE TO STRING FROM TABLE: + 5) Test 212: CONVERT dates with style 5. CONVERT DATE TO STRING FROM TABLE: AssertionError: false == true + expected - actual @@ -164,7 +138,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 8) Test 212: CONVERT dates with style 6. CONVERT DATE TO STRING FROM TABLE: + 6) Test 212: CONVERT dates with style 6. CONVERT DATE TO STRING FROM TABLE: AssertionError: false == true + expected - actual @@ -182,7 +156,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 9) Test 212: CONVERT dates with style 7. CONVERT DATE TO STRING FROM TABLE: + 7) Test 212: CONVERT dates with style 7. CONVERT DATE TO STRING FROM TABLE: AssertionError: false == true + expected - actual @@ -200,7 +174,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 10) Test 212: CONVERT dates with style 8. CONVERT DATE TO STRING FROM TABLE without columns: + 8) Test 212: CONVERT dates with style 8. CONVERT DATE TO STRING FROM TABLE without columns: AssertionError: false == true + expected - actual @@ -218,7 +192,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 11) Test 212: CONVERT dates with style 9. CONVERT DATE TO STRING FROM TABLE without columns: + 9) Test 212: CONVERT dates with style 9. CONVERT DATE TO STRING FROM TABLE without columns: AssertionError: false == true + expected - actual @@ -236,7 +210,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 12) Test 232 Errors handling 3. Log error async: + 10) Test 232 Errors handling 3. Log error async: AssertionError: false == true + expected - actual @@ -257,7 +231,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 13) Test 232 Errors handling 4. Log error sync: + 11) Test 232 Errors handling 4. Log error sync: AssertionError: false == true + expected - actual @@ -275,10 +249,10 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 14) Test 238 Test from string and into string 1. JSON: + 12) Test 238 Test from string and into string 1. JSON: Error: ENOENT: no such file or directory, open 'C:\Usersmrwgitalasql est\test238.json' - at fs.openSync (fs.js:584:3) - at fs.writeFileSync (fs.js:1238:3) + at fs.openSync (fs.js:620:3) + at fs.writeFileSync (fs.js:1284:3) at utils.saveFile (C:\Users\mrw\git\alasql\dist\alasql.js:3517:13) at alasql.into.JSON (C:\Users\mrw\git\alasql\dist\alasql.js:13945:2) at Function code (Function code:1:7) @@ -298,10 +272,10 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 15) Test 238 Test from string and into string 2. CSV() and AS: + 13) Test 238 Test from string and into string 2. CSV() and AS: Error: ENOENT: no such file or directory, open 'C:\Usersmrwgitalasql est\restest238a.csv' - at fs.openSync (fs.js:584:3) - at fs.writeFileSync (fs.js:1238:3) + at fs.openSync (fs.js:620:3) + at fs.writeFileSync (fs.js:1284:3) at utils.saveFile (C:\Users\mrw\git\alasql\dist\alasql.js:3517:13) at alasql.into.CSV (C:\Users\mrw\git\alasql\dist\alasql.js:14018:2) at Function code (Function code:1:7) @@ -321,10 +295,10 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 16) Test 238 Test from string and into string 3. XLSX: + 14) Test 238 Test from string and into string 3. XLSX: Error: ENOENT: no such file or directory, open 'C:\Usersmrwgitalasql est\restest238b.xlsx' - at fs.openSync (fs.js:584:3) - at fs.writeFileSync (fs.js:1238:3) + at fs.openSync (fs.js:620:3) + at fs.writeFileSync (fs.js:1284:3) at write_zip_type (C:\Users\mrw\git\alasql\node_modules\xlsx\xlsx.js:11412:16) at writeSync (C:\Users\mrw\git\alasql\node_modules\xlsx\xlsx.js:11421:12) at writeFileSync (C:\Users\mrw\git\alasql\node_modules\xlsx\xlsx.js:11436:2) @@ -348,17 +322,17 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 17) Test 242 Multi-columns Excel file 1. Read multi-column file: + 15) Test 242 Multi-columns Excel file 1. Read multi-column file: Uncaught Error: ENOENT: no such file or directory, open 'C:\Usersmrwgitalasql est\test242.xlsx' at Anonymous function (C:\Users\mrw\git\alasql\dist\alasql.js:3397:25) - at readFileAfterOpen (fs.js:324:5) + at readFileAfterOpen (fs.js:360:5) - 18) Test 242 Multi-columns Excel file 2. Read multi-column file: + 16) Test 242 Multi-columns Excel file 2. Read multi-column file: Uncaught Error: ENOENT: no such file or directory, open 'C:\Usersmrwgitalasql est\test242.xlsx' at Anonymous function (C:\Users\mrw\git\alasql\dist\alasql.js:3397:25) - at readFileAfterOpen (fs.js:324:5) + at readFileAfterOpen (fs.js:360:5) - 19) Test 293 SLT#1 3. SELECT 1 - no modifier: + 17) Test 293 SLT#1 3. SELECT 1 - no modifier: TypeError: Function expected at Anonymous function (C:\Users\mrw\git\alasql\test\test293.js:73:5) at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) @@ -370,7 +344,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 20) Test 293 SLT#1 4. SELECT 1 - RECORDSET: + 18) Test 293 SLT#1 4. SELECT 1 - RECORDSET: TypeError: Function expected at Anonymous function (C:\Users\mrw\git\alasql\test\test293.js:89:5) at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) @@ -382,7 +356,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 21) Test 392 Observable (issue #499) 2. Prepare test data: + 19) Test 392 Observable (issue #499) 2. Prepare test data: TypeError: Object doesn't support property or method 'observe' at Anonymous function (C:\Users\mrw\git\alasql\test\test392.js:27:5) at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) @@ -394,7 +368,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 22) Test 400 Trigger with INSERTED 3. Insert: + 20) Test 400 Trigger with INSERTED 3. Insert: AssertionError: [ [ 100, undefined ], [ 200, undefined ] ] deepEqual [ [ 100, 2016 ], [ 200, 2016 ] ] + expected - actual @@ -422,21 +396,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 23) Test 406. Complex SEARCH 1. Parse complex JSON: - Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test. - at done (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:245:7) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:317:7) - at Anonymous function (C:\Users\mrw\git\alasql\test\test406.js:79:7) - at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) - at Runnable.prototype.run (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:261:7) - at Runner.prototype.runTest (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:421:5) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:528:7) - at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:341:7) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:351:7) - at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - - 24) Test 408 - DATEADD() and DATEDIFF() 3. DATEDIFF(): + 21) Test 408 - DATEADD() and DATEDIFF() 3. DATEDIFF(): AssertionError: undefined deepEqual -1 at Anonymous function (C:\Users\mrw\git\alasql\test\test408.js:43:5) at callFnAsync (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:306:5) @@ -448,7 +408,7 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 25) Test 408 - DATEADD() and DATEDIFF() 4. DATE_ADD() MySQL-style: + 22) Test 408 - DATEADD() and DATEDIFF() 4. DATE_ADD() MySQL-style: AssertionError: false == true + expected - actual @@ -466,9 +426,5 @@ at next (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:285:5) at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runner.js:319:5) - 26) Test 418 Load data from internet .xlsx from URL Load http: - Error: timeout of 7000ms exceeded. Ensure the done() callback is being called in this test. - at Anonymous function (C:\Users\mrw\AppData\Roaming\npm\node_modules\mocha\lib\runnable.js:189:5) - diff --git a/test/!testlog/SQLlogic Chakra.md b/test/!testlog/SQLlogic Chakra.md index e69de29bb2..8ba000f9cb 100644 --- a/test/!testlog/SQLlogic Chakra.md +++ b/test/!testlog/SQLlogic Chakra.md @@ -0,0 +1,7323 @@ +# SQLlogictest results for AlaSQL - on Chakra v6.0.0-pre5 + +`2016-03-01T15:19:47.954Z target: alasql@0.2.3-develop-1216` + +This is a subset of the total 622 tests. +Results from 190 test files: + +---- ---- ---- ---- ---- ---- ---- +### 1/190 [`./test/evidence/in1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/in1.test) + +_Mimic sqlite_ + +```sql +SELECT 1 IN t1 + +Unable to get property 't1' of undefined or null reference +``` + + +```sql +INSERT INTO t5 SELECT * FROM t4 + +Cannot insert record, because it already exists in primary key index +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 216 tests as _sqlite_ + +* 148 skipped +* 19 failed +* 22% was OK + +Time: 501.461ms + +---- ---- ---- ---- ---- ---- ---- +### 2/190 [`./test/evidence/in2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/in2.test) + +_Mimic sqlite_ + +```sql +SELECT 1 FROM t1 WHERE 1 IN (SELECT 1,2) + +Expected to get an error but did not +``` + +#### ☓ Ran 53 tests as _sqlite_ + +* 4 failed +* 92% was OK + +Time: 281.118ms + +---- ---- ---- ---- ---- ---- ---- +### 3/190 [`./test/evidence/slt_lang_aggfunc.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_aggfunc.test) + +_Mimic sqlite_ + +```sql +SELECT avg(DISTINCT x) FROM t1 + +Expected: ["0"] but got ["0.500"] +``` + + +```sql +SELECT total(DISTINCT x) FROM t1 + +Syntax error +``` + + +```sql +SELECT avg(y) FROM t1 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT sum(y) FROM t1 + +Expected: ["0"] but got ["truefalseNULLtruetrue"] +``` + + +```sql +SELECT sum(DISTINCT y) FROM t1 + +Expected: ["0"] but got ["truefalseNULL"] +``` + + +```sql +SELECT count(DISTINCT *) FROM t1 WHERE y='false' + +Expected to get an error but did not +``` + + +```sql +SELECT sum(x) FROM t1 WHERE y='null' + +Expected: ["NULL"] but got ["0"] +``` + +#### ☓ Ran 80 tests as _sqlite_ + +* 37 failed +* 53% was OK + +Time: 293.080ms + +---- ---- ---- ---- ---- ---- ---- +### 4/190 [`./test/evidence/slt_lang_createtrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createtrigger.test) + +_Mimic sqlite_ + +```sql +CREATE TRIGGER t1r1 UPDATE ON t1 BEGIN SELECT 1; END; + +Expected to get an error but did not +``` + + +```sql +DROP TRIGGER t1r1 + +Unable to get property 'beforeinsert' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 26 tests as _sqlite_ + +* 9 skipped +* 2 failed +* 57% was OK + +Time: 118.867ms + +---- ---- ---- ---- ---- ---- ---- +### 5/190 [`./test/evidence/slt_lang_createview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createview.test) + +_Mimic sqlite_ + +```sql +SELECT x FROM view1 + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +DELETE FROM view1 WHERE x>0 + +Expected to get an error but did not +``` + +#### ☓ Ran 23 tests as _sqlite_ + +* 8 failed +* 65% was OK + +Time: 144.977ms + +---- ---- ---- ---- ---- ---- ---- +### 6/190 [`./test/evidence/slt_lang_dropindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropindex.test) + +_Mimic sqlite_ + +```sql +DROP INDEX t1i1; + +Expected to get an error but did not +``` + +#### ☓ Ran 8 tests as _sqlite_ + +* 2 failed +* 75% was OK + +Time: 71.391ms + +---- ---- ---- ---- ---- ---- ---- +### 7/190 [`./test/evidence/slt_lang_droptable.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptable.test) + +_Mimic sqlite_ + +```sql +DROP INDEX t1i1; + +Expected to get an error but did not +``` + +#### ☓ Ran 12 tests as _sqlite_ + +* 1 failed +* 91% was OK + +Time: 61.668ms + +---- ---- ---- ---- ---- ---- ---- +### 8/190 [`./test/evidence/slt_lang_droptrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptrigger.test) + +_Mimic sqlite_ + +```sql +DROP TRIGGER t1r1 + +Unable to get property 'beforeinsert' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 12 tests as _sqlite_ + +* 5 skipped +* 1 failed +* 50% was OK + +Time: 57.072ms + +---- ---- ---- ---- ---- ---- ---- +### 9/190 [`./test/evidence/slt_lang_dropview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropview.test) + +_Mimic sqlite_ + +```sql +SELECT x FROM view2 + +Expected: ["0"] but got ["NULL"] +``` + +#### ☓ Ran 13 tests as _sqlite_ + +* 1 failed +* 92% was OK + +Time: 103.385ms + +---- ---- ---- ---- ---- ---- ---- +### 10/190 [`./test/evidence/slt_lang_reindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_reindex.test) + +_Mimic sqlite_ +#### ★ Ran 7 tests as _sqlite_ + +* 100% was OK + +`sqlite 7 OK: ./test/evidence/slt_lang_reindex.test` + +Time: 52.951ms + +---- ---- ---- ---- ---- ---- ---- +### 11/190 [`./test/evidence/slt_lang_replace.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_replace.test) + +_Mimic sqlite_ +#### ★ Ran 14 tests as _sqlite_ + +* 100% was OK + +`sqlite 14 OK: ./test/evidence/slt_lang_replace.test` + +Time: 94.323ms + +---- ---- ---- ---- ---- ---- ---- +### 12/190 [`./test/evidence/slt_lang_update.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_update.test) + +_Mimic sqlite_ + +```sql +UPDATE t1 SET z='foo' + +Expected to get an error but did not +``` + +#### ☓ Ran 27 tests as _sqlite_ + +* 2 failed +* 92% was OK + +Time: 205.225ms + +---- ---- ---- ---- ---- ---- ---- +### 13/190 [`./test/index/between/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((col0 IN (SELECT col3 FROM tab0 WHERE (((col0 > 9 OR col3 IN (SELECT col0 FROM tab0 WHERE col1 < 4.40) OR col3 BETWEEN 6 AND 3) AND col1 IS NULL OR (col3 < 1 AND col3 < 2))) OR (col3 IS NULL) AND col0 > 3) OR col3 > 9)) + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,022 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 106256.678ms + +---- ---- ---- ---- ---- ---- ---- +### 14/190 [`./test/index/between/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 10,033 tests as _sqlite_ + +* 100% was OK + +`sqlite 10033 OK: ./test/index/between/10/slt_good_0.test` + +Time: 108222.572ms + +---- ---- ---- ---- ---- ---- ---- +### 15/190 [`./test/index/between/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col4 < 28.47 AND col1 IN (SELECT col4 FROM tab0 WHERE (((col3 = 64 OR (((col3 IN (SELECT col0 FROM tab0 WHERE col3 BETWEEN 85 AND 52 OR (((col3 < 20)) AND col3 > 60)))))) AND col1 = 95.83))) + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,029 tests as _sqlite_ + +* 40 failed +* 99% was OK + +Time: 80062.883ms + +---- ---- ---- ---- ---- ---- ---- +### 16/190 [`./test/index/between/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col3 < 32) AND ((((col3 <= 73 AND col0 < 84 OR col0 >= 3 AND (((col4 < 22.55) OR col0 <= 88 AND (col4 <= 26.20) OR col3 < 9) AND col0 >= 80 AND col0 = 25 AND (((col3 = 9)))) OR (col3 <= 96) AND col1 < 20.30 AND col3 > 2 OR (col4 >= 34.97 OR ((col1 > 27.35))) AND ((col4 < … + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 40 failed +* 99% was OK + +Time: 96269.984ms + +---- ---- ---- ---- ---- ---- ---- +### 17/190 [`./test/index/between/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_3.test) + +_Mimic sqlite_ +#### ★ Ran 10,032 tests as _sqlite_ + +* 100% was OK + +`sqlite 10032 OK: ./test/index/between/10/slt_good_3.test` + +Time: 96705.432ms + +---- ---- ---- ---- ---- ---- ---- +### 18/190 [`./test/index/between/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_4.test) + +_Mimic sqlite_ +#### ★ Ran 10,032 tests as _sqlite_ + +* 100% was OK + +`sqlite 10032 OK: ./test/index/between/10/slt_good_4.test` + +Time: 95421.447ms + +---- ---- ---- ---- ---- ---- ---- +### 19/190 [`./test/index/between/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((col3 < 49 AND (col4 >= 2.37 AND col3 <= 34 OR (col0 > 45 AND col3 IN (84,55,60,5,10,51) AND col3 > 44)) AND ((col4 BETWEEN 85.7 AND 68.3 AND col0 > 12) OR col3 >= 61 AND col1 < 44.10 OR ((((col1 <= 88.54)) AND col3 BETWEEN 50 AND 64) AND col0 < 7) OR ((col0 > 68)) AND co… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,031 tests as _sqlite_ + +* 50 failed +* 99% was OK + +Time: 85591.552ms + +---- ---- ---- ---- ---- ---- ---- +### 20/190 [`./test/index/between/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 10,123 tests as _sqlite_ + +* 100% was OK + +`sqlite 10123 OK: ./test/index/between/100/slt_good_0.test` + +Time: 105030.149ms + +---- ---- ---- ---- ---- ---- ---- +### 21/190 [`./test/index/between/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col0 < 732) OR (col4 IN (SELECT col1 FROM tab0 WHERE (((col3 IN (SELECT col0 FROM tab0 WHERE col4 > 814.80) AND col0 IS NULL AND ((col4 >= 266.93) OR col3 < 534) AND (col0 > 608) AND (col0 <= 34) AND col0 < 942)) OR col3 BETWEEN 616 AND 482)) AND col4 > 307.71 AND col0 > … + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,125 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 109548.276ms + +---- ---- ---- ---- ---- ---- ---- +### 22/190 [`./test/index/between/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (((((((col1 IN (SELECT col4 FROM tab0 WHERE ((col3 <= 554) AND col0 BETWEEN 735 AND 859 AND col0 IN (SELECT col3 FROM tab0 WHERE (col1 >= 36.15))) AND ((((col1 <= 171.81))))) AND col4 < 379.48 OR col4 IS NULL AND col1 >= 914.18 OR col3 >= 324 OR ((col4 > 84.85 AND col0 >= … + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,121 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 119318.773ms + +---- ---- ---- ---- ---- ---- ---- +### 23/190 [`./test/index/between/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col4 IN (SELECT col1 FROM tab0 WHERE col3 IN (808,18,855,768,767,23) AND ((col0 > 394 AND col1 = 993.11 AND col3 < 701 AND col3 >= 317 OR ((col0 <= 101 OR col0 < 928)) AND (col3 IN (SELECT col0 FROM tab0 WHERE ((col3 >= 671) OR col0 > 775) AND ((((col0 <= 903 OR (col0 > 9)… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,121 tests as _sqlite_ + +* 40 failed +* 99% was OK + +Time: 109690.402ms + +---- ---- ---- ---- ---- ---- ---- +### 24/190 [`./test/index/between/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE col4 IN (SELECT col1 FROM tab0 WHERE (((((((col3 BETWEEN 320 AND 970 AND col3 <= 223) OR col4 <= 829.17) AND (col3 >= 651 AND (col3 < 768 OR col0 > 379 OR ((col0 <= 960 OR ((((col4 >= 450.22 AND (col0 = 332 AND col3 < 129)) OR (col1 IN… + +Unable to get property '1' of undefined or null reference +``` + +#### ☓ Ran 10,125 tests as _sqlite_ + +* 50 failed +* 99% was OK + +Time: 111861.976ms + +---- ---- ---- ---- ---- ---- ---- +### 25/190 [`./test/index/between/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col0 > 2377 OR ((col1 > 2834.62)) AND (col0 IS NULL OR (col4 < 7463.98 AND (col3 <= 1805)) OR ((col3 >= 5222))) AND col0 <= 9495 AND col3 IN (SELECT col0 FROM tab0 WHERE col1 >= 6814.64 OR (col1 > 7430.5) AND col3 > 6478 OR col3 < 2867 AND col1 > 1953.89 AND (col3 >= 2268 … + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 3,792 tests as _sqlite_ + +* 11 failed +* 99% was OK + +Time: 176631.928ms + +---- ---- ---- ---- ---- ---- ---- +### 26/190 [`./test/index/commute/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((((col4 < 26.48))) AND col4 IN (SELECT col1 FROM tab0 WHERE (col3 < 55 OR ((col0 >= 53 AND (((((col0 > 8) AND (((col3 IN (SELECT col0 FROM tab0 WHERE col0 < 65 AND col1 > 42.32)) OR col1 IS NULL OR col3 > 84 OR (col4 IS NULL)) OR ((col0 <= 9))))) AND col0 IN (1))) OR col3… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 30792.551ms + +---- ---- ---- ---- ---- ---- ---- +### 27/190 [`./test/index/commute/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_1.test) + +_Mimic sqlite_ +#### ★ Ran 10,030 tests as _sqlite_ + +* 100% was OK + +`sqlite 10030 OK: ./test/index/commute/10/slt_good_1.test` + +Time: 30271.325ms + +---- ---- ---- ---- ---- ---- ---- +### 28/190 [`./test/index/commute/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_2.test) + +_Mimic sqlite_ +#### ★ Ran 10,037 tests as _sqlite_ + +* 100% was OK + +`sqlite 10037 OK: ./test/index/commute/10/slt_good_2.test` + +Time: 28631.166ms + +---- ---- ---- ---- ---- ---- ---- +### 29/190 [`./test/index/commute/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_3.test) + +_Mimic sqlite_ +#### ★ Ran 10,032 tests as _sqlite_ + +* 100% was OK + +`sqlite 10032 OK: ./test/index/commute/10/slt_good_3.test` + +Time: 36289.630ms + +---- ---- ---- ---- ---- ---- ---- +### 30/190 [`./test/index/commute/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_4.test) + +_Mimic sqlite_ +#### ★ Ran 10,030 tests as _sqlite_ + +* 100% was OK + +`sqlite 10030 OK: ./test/index/commute/10/slt_good_4.test` + +Time: 35319.714ms + +---- ---- ---- ---- ---- ---- ---- +### 31/190 [`./test/index/commute/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 <= 88 OR col0 IN (SELECT col3 FROM tab0 WHERE col3 IS NULL AND col3 >= 88 AND col0 = 0 AND (col0 IS NULL) AND col3 <= 25 AND (col4 > 37.85) OR (col1 IN (SELECT col4 FROM tab0 WHERE (col4 IN (92.81,73.37,41.28,48.15,77.90)) OR (col0 > 11) AND col3 >= 77 AND col1 IN (89… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 32363.515ms + +---- ---- ---- ---- ---- ---- ---- +### 32/190 [`./test/index/commute/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 >= 22 AND col3 IS NULL OR (col0 <= 92 AND (col3 IN (82,73,69,28,90,98) OR ((col0 > 53))) AND col3 > 41) AND col1 < 7.43 AND ((col0 > 45)) AND col1 >= 86.98 OR col4 IN (98.61) AND col0 < 82 OR col3 IN (SELECT col0 FROM tab0 WHERE ((((col3 <= 2) OR col4 > 64.95 OR (col3… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,036 tests as _sqlite_ + +* 20 failed +* 99% was OK + +Time: 38897.285ms + +---- ---- ---- ---- ---- ---- ---- +### 33/190 [`./test/index/commute/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col1 > 33.14 OR (((col3 > 73 OR (col3 IN (63,42)))) AND ((((col0 IN (SELECT col3 FROM tab0 WHERE (col3 < 37) AND col0 > 24 OR (col1 IN (SELECT col4 FROM tab0 WHERE col1 > 49.28) OR col3 > 9))) OR col3 > 51 OR (col1 > 52.62)))) OR col0 IS NULL) OR ((((col4 = 81.75) OR (col0… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 31412.841ms + +---- ---- ---- ---- ---- ---- ---- +### 34/190 [`./test/index/commute/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_8.test) + +_Mimic sqlite_ +#### ★ Ran 10,032 tests as _sqlite_ + +* 100% was OK + +`sqlite 10032 OK: ./test/index/commute/10/slt_good_8.test` + +Time: 34471.312ms + +---- ---- ---- ---- ---- ---- ---- +### 35/190 [`./test/index/commute/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col4 IN (SELECT col1 FROM tab0 WHERE ((col0 IN (SELECT col3 FROM tab0 WHERE col3 >= 39) AND col0 <= 84)))) AND col4 <= 14.38 + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 20 failed +* 99% was OK + +Time: 33503.491ms + +---- ---- ---- ---- ---- ---- ---- +### 36/190 [`./test/index/commute/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col4 < 749.14 AND (col3 >= 449 AND ((col3 = 703)) AND col0 > 373) AND (col3 < 160) AND col0 > 859 AND col1 BETWEEN 47.53 AND 235.98 AND col0 < 447 OR col3 <= 639 OR col1 IN (SELECT col4 FROM tab0 WHERE col4 > 401.5 AND ((col4 < 922.12 AND ((col0 > 154) AND (col1 IN (SELECT… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,122 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 52482.048ms + +---- ---- ---- ---- ---- ---- ---- +### 37/190 [`./test/index/commute/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_1.test) + +_Mimic sqlite_ +#### ★ Ran 10,120 tests as _sqlite_ + +* 100% was OK + +`sqlite 10120 OK: ./test/index/commute/100/slt_good_1.test` + +Time: 42486.847ms + +---- ---- ---- ---- ---- ---- ---- +### 38/190 [`./test/index/commute/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_2.test) + +_Mimic sqlite_ +#### ★ Ran 10,123 tests as _sqlite_ + +* 100% was OK + +`sqlite 10123 OK: ./test/index/commute/100/slt_good_2.test` + +Time: 52869.182ms + +---- ---- ---- ---- ---- ---- ---- +### 39/190 [`./test/index/commute/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE ((((((((col3 < 927) OR col0 BETWEEN 727 AND 937 OR col0 = 89))))) AND col0 BETWEEN 817 AND 967) OR col3 IN (SELECT col0 FROM tab0 WHERE col0 < 797))) + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,121 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 46020.853ms + +---- ---- ---- ---- ---- ---- ---- +### 40/190 [`./test/index/commute/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col0 >= 640 OR ((col3 IN (SELECT col0 FROM tab0 WHERE (col3 IN (SELECT col0 FROM tab0 WHERE (col1 < 98.26)) OR (col3 < 181) AND col4 < 574.65) OR (col1 <= 733.28)) AND col0 > 357) AND (((col0 >= 686))) AND col3 = 476 AND col3 > 153 AND ((col0 < 909)) AND ((col0 > 631 AND (… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,124 tests as _sqlite_ + +* 30 failed +* 99% was OK + +Time: 46680.565ms + +---- ---- ---- ---- ---- ---- ---- +### 41/190 [`./test/index/commute/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_5.test) + +_Mimic sqlite_ +#### ★ Ran 10,121 tests as _sqlite_ + +* 100% was OK + +`sqlite 10121 OK: ./test/index/commute/100/slt_good_5.test` + +Time: 47889.848ms + +---- ---- ---- ---- ---- ---- ---- +### 42/190 [`./test/index/commute/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col1 >= 775.92 OR (col3 < 898 AND (col4 IN (SELECT col1 FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col4 < 552.87)) AND ((col0 <= 166)) AND col3 IS NULL AND col3 <= 883 OR col4 >= 1.64 AND (((col0 <= 832) OR (col3 <= 130))))) OR col1 > 641.85 AND (((col4 < 803.30)… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,122 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 44320.500ms + +---- ---- ---- ---- ---- ---- ---- +### 43/190 [`./test/index/commute/100/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_7.test) + +_Mimic sqlite_ +#### ★ Ran 10,123 tests as _sqlite_ + +* 100% was OK + +`sqlite 10123 OK: ./test/index/commute/100/slt_good_7.test` + +Time: 48390.892ms + +---- ---- ---- ---- ---- ---- ---- +### 44/190 [`./test/index/commute/100/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col0 = 783) AND col0 >= 334 OR ((col0 > 336 OR col1 < 601.60 AND ((((((col4 > 896.38)) AND col3 > 417)) OR (col4 > 98.79 AND (((col0 >= 184) AND (col4 > 480.55 OR col0 > 561 AND col0 >= 133 AND (col0 < 937))) OR col3 > 684 OR col3 > 499 AND col0 < 895)) AND ((col0 < 706))… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,122 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 49891.803ms + +---- ---- ---- ---- ---- ---- ---- +### 45/190 [`./test/index/commute/100/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_9.test) + +_Mimic sqlite_ +#### ★ Ran 10,123 tests as _sqlite_ + +* 100% was OK + +`sqlite 10123 OK: ./test/index/commute/100/slt_good_9.test` + +Time: 46178.905ms + +---- ---- ---- ---- ---- ---- ---- +### 46/190 [`./test/index/commute/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 4,741 tests as _sqlite_ + +* 100% was OK + +`sqlite 4741 OK: ./test/index/commute/1000/slt_good_0.test` + +Time: 93486.589ms + +---- ---- ---- ---- ---- ---- ---- +### 47/190 [`./test/index/commute/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((((col0 IN (SELECT col3 FROM tab0 WHERE col3 = 7862 OR (col0 > 7104) AND col3 IN (SELECT col0 FROM tab0 WHERE ((col4 < 3774.80))) OR col0 >= 4545 OR (col3 > 1867) AND col1 >= 3341.69 AND col1 <= 8546.42 AND col0 <= 6797 AND col0 = 9644 AND (col3 IN (8505,121,8833,5588,941… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,583 tests as _sqlite_ + +* 20 failed +* 99% was OK + +Time: 221397.775ms + +---- ---- ---- ---- ---- ---- ---- +### 48/190 [`./test/index/commute/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE col1 < 444.10)) AND col4 >= 7680.91) + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 11,021 tests as _sqlite_ + +* 10 failed +* 99% was OK + +Time: 243212.870ms + +---- ---- ---- ---- ---- ---- ---- +### 49/190 [`./test/index/commute/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_3.test) + +_Mimic sqlite_ +#### ★ Ran 11,025 tests as _sqlite_ + +* 100% was OK + +`sqlite 11025 OK: ./test/index/commute/1000/slt_good_3.test` + +Time: 346944.536ms + +---- ---- ---- ---- ---- ---- ---- +### 50/190 [`./test/index/delete/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 10,907 tests as _sqlite_ + +* 100% was OK + +`sqlite 10907 OK: ./test/index/delete/1/slt_good_0.test` + +Time: 19391.878ms + +---- ---- ---- ---- ---- ---- ---- +### 51/190 [`./test/index/delete/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 10,730 tests as _sqlite_ + +* 100% was OK + +`sqlite 10730 OK: ./test/index/delete/10/slt_good_0.test` + +Time: 19438.756ms + +---- ---- ---- ---- ---- ---- ---- +### 52/190 [`./test/index/delete/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_1.test) + +_Mimic sqlite_ +#### ★ Ran 10,774 tests as _sqlite_ + +* 100% was OK + +`sqlite 10774 OK: ./test/index/delete/10/slt_good_1.test` + +Time: 20937.043ms + +---- ---- ---- ---- ---- ---- ---- +### 53/190 [`./test/index/delete/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_2.test) + +_Mimic sqlite_ +#### ★ Ran 9,390 tests as _sqlite_ + +* 100% was OK + +`sqlite 9390 OK: ./test/index/delete/10/slt_good_2.test` + +Time: 25670.825ms + +---- ---- ---- ---- ---- ---- ---- +### 54/190 [`./test/index/delete/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_3.test) + +_Mimic sqlite_ +#### ★ Ran 10,065 tests as _sqlite_ + +* 100% was OK + +`sqlite 10065 OK: ./test/index/delete/10/slt_good_3.test` + +Time: 20182.354ms + +---- ---- ---- ---- ---- ---- ---- +### 55/190 [`./test/index/delete/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_4.test) + +_Mimic sqlite_ +#### ★ Ran 10,599 tests as _sqlite_ + +* 100% was OK + +`sqlite 10599 OK: ./test/index/delete/10/slt_good_4.test` + +Time: 19953.923ms + +---- ---- ---- ---- ---- ---- ---- +### 56/190 [`./test/index/delete/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_5.test) + +_Mimic sqlite_ +#### ★ Ran 10,353 tests as _sqlite_ + +* 100% was OK + +`sqlite 10353 OK: ./test/index/delete/10/slt_good_5.test` + +Time: 20551.603ms + +---- ---- ---- ---- ---- ---- ---- +### 57/190 [`./test/index/delete/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 11,145 tests as _sqlite_ + +* 100% was OK + +`sqlite 11145 OK: ./test/index/delete/100/slt_good_0.test` + +Time: 21314.985ms + +---- ---- ---- ---- ---- ---- ---- +### 58/190 [`./test/index/delete/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_1.test) + +_Mimic sqlite_ +#### ★ Ran 10,895 tests as _sqlite_ + +* 100% was OK + +`sqlite 10895 OK: ./test/index/delete/100/slt_good_1.test` + +Time: 24869.396ms + +---- ---- ---- ---- ---- ---- ---- +### 59/190 [`./test/index/delete/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_2.test) + +_Mimic sqlite_ +#### ★ Ran 11,033 tests as _sqlite_ + +* 100% was OK + +`sqlite 11033 OK: ./test/index/delete/100/slt_good_2.test` + +Time: 23134.383ms + +---- ---- ---- ---- ---- ---- ---- +### 60/190 [`./test/index/delete/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_3.test) + +_Mimic sqlite_ +#### ★ Ran 10,942 tests as _sqlite_ + +* 100% was OK + +`sqlite 10942 OK: ./test/index/delete/100/slt_good_3.test` + +Time: 22341.885ms + +---- ---- ---- ---- ---- ---- ---- +### 61/190 [`./test/index/delete/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 11,924 tests as _sqlite_ + +* 100% was OK + +`sqlite 11924 OK: ./test/index/delete/1000/slt_good_0.test` + +Time: 21679.677ms + +---- ---- ---- ---- ---- ---- ---- +### 62/190 [`./test/index/delete/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_1.test) + +_Mimic sqlite_ +#### ★ Ran 11,838 tests as _sqlite_ + +* 100% was OK + +`sqlite 11838 OK: ./test/index/delete/1000/slt_good_1.test` + +Time: 22098.893ms + +---- ---- ---- ---- ---- ---- ---- +### 63/190 [`./test/index/delete/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10000/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 20,347 tests as _sqlite_ + +* 100% was OK + +`sqlite 20347 OK: ./test/index/delete/10000/slt_good_0.test` + +Time: 41620.792ms + +---- ---- ---- ---- ---- ---- ---- +### 64/190 [`./test/index/in/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 > 31 OR col3 <= 49 AND (col0 IN (SELECT col3 FROM tab0 WHERE col3 IN (74,13,49,39,67) OR col4 >= 87.31 OR col1 <= 89.41 AND col0 > 12 AND (col3 < 4 OR col0 <= 52 OR col1 > 0.4 AND col3 > 5 AND col0 = 86 OR ((((col0 = 83 OR (((col0 IN (77) OR ((col1 > 51.39)) AND col3 … + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,035 tests as _sqlite_ + +* 30 failed +* 99% was OK + +Time: 86488.340ms + +---- ---- ---- ---- ---- ---- ---- +### 65/190 [`./test/index/in/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((col0 IN (SELECT col3 FROM tab0 WHERE (col3 IN (SELECT col0 FROM tab0 WHERE col1 > 74.44))) AND ((col3 IN (73,90)) OR col4 > 54.25 OR (col0 IN (58,68,2) AND col0 = 51 OR col1 > 30.12)))) OR col3 < 34 + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,036 tests as _sqlite_ + +* 30 failed +* 99% was OK + +Time: 90269.294ms + +---- ---- ---- ---- ---- ---- ---- +### 66/190 [`./test/index/in/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_2.test) + +_Mimic sqlite_ +#### ★ Ran 10,035 tests as _sqlite_ + +* 100% was OK + +`sqlite 10035 OK: ./test/index/in/10/slt_good_2.test` + +Time: 88035.376ms + +---- ---- ---- ---- ---- ---- ---- +### 67/190 [`./test/index/in/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_3.test) + +_Mimic sqlite_ +#### ★ Ran 10,037 tests as _sqlite_ + +* 100% was OK + +`sqlite 10037 OK: ./test/index/in/10/slt_good_3.test` + +Time: 87018.469ms + +---- ---- ---- ---- ---- ---- ---- +### 68/190 [`./test/index/in/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col0 = 32 AND col0 > 66 AND ((col0 IS NULL)) OR (col4 <= 40.93) AND ((col3 <= 55)) OR ((col3 > 88)) OR ((col3 < 42) AND col0 < 32 OR (col3 > 72) AND col3 IN (99,86,86,87,87,11) AND (((col0 > 51)))) OR ((col4 < 3.44)) OR (col1 IN (92.43) OR ((col3 = 32))) AND (((col3 = 23))… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,038 tests as _sqlite_ + +* 30 failed +* 99% was OK + +Time: 87408.895ms + +---- ---- ---- ---- ---- ---- ---- +### 69/190 [`./test/index/in/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col4 IN (SELECT col1 FROM tab0 WHERE ((col0 > 26)) AND ((((col0 IN (24,73,85,15,54,8))) AND col0 = 39 AND col3 <= 66 AND col4 < 93.31 OR (col0 IS NULL) AND ((((col1 IS NULL) OR col0 = 49) OR (col0 IS NULL AND ((col4 >= 38.72 OR col0 >= 43)) OR col0 IS NULL AND col4 >= 21.… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,038 tests as _sqlite_ + +* 15 failed +* 99% was OK + +Time: 83055.615ms + +---- ---- ---- ---- ---- ---- ---- +### 70/190 [`./test/index/in/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE (((col4 IN (SELECT col1 FROM tab0 WHERE ((col0 >= 975))) OR col1 BETWEEN 323.0 AND 982.34 OR (((col0 IN (251,821,693,586,116) AND col0 IN (810,408) AND (col1 > 722.50 AND col4 < 359.60)))) AND col4 <= 244.64 AND col1 > 83.19) OR col0 IS… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,128 tests as _sqlite_ + +* 30 failed +* 99% was OK + +Time: 96545.160ms + +---- ---- ---- ---- ---- ---- ---- +### 71/190 [`./test/index/in/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col4 > 945.15 AND col0 <= 745 AND (col3 < 668 OR col3 IN (SELECT col0 FROM tab0 WHERE (col3 = 227) AND (col3 = 758) AND col4 >= 234.80 OR (col0 IS NULL) OR (col0 IN (455,424,243,331,768)) AND col4 < 813.43 OR col0 > 392 OR col1 BETWEEN 990.61 AND 364.96 OR col0 <= 886 AND… + +Unable to get property '1' of undefined or null reference +``` + +#### ☓ Ran 10,127 tests as _sqlite_ + +* 15 failed +* 99% was OK + +Time: 104809.592ms + +---- ---- ---- ---- ---- ---- ---- +### 72/190 [`./test/index/in/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col1 >= 196.55 AND ((((col0 <= 274)) AND col0 > 676 OR (((col0 < 747 AND (col1 < 448.35)))) OR (col3 IN (SELECT col0 FROM tab0 WHERE col3 > 612) AND (col0 IN (84,102,155,846)) AND (col3 < 664)) OR col0 >= 909 OR (col0 = 936) AND (col4 >= 226.22))) AND col0 <= 835 OR col1 … + +Unable to get property '1' of undefined or null reference +``` + +#### ☓ Ran 10,128 tests as _sqlite_ + +* 15 failed +* 99% was OK + +Time: 107151.852ms + +---- ---- ---- ---- ---- ---- ---- +### 73/190 [`./test/index/in/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (((((((col0 <= 382))) AND col4 IN (SELECT col1 FROM tab0 WHERE (col0 <= 332 OR (((col1 < 576.83)) OR col1 <= 724.21 OR col0 BETWEEN 587 AND 730 OR (col3 > 794 AND col1 IN (SELECT col4 FROM tab0 WHERE col1 IN (0.79,673.92,13.18,990.13) AND col4 >= 532.39))))))))) AND (((col… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,126 tests as _sqlite_ + +* 15 failed +* 99% was OK + +Time: 100666.690ms + +---- ---- ---- ---- ---- ---- ---- +### 74/190 [`./test/index/in/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (col0 > 793) AND col3 < 242 AND (((((col0 IS NULL AND col3 < 254)) AND ((col0 >= 221) OR col3 < 269 AND (col3 IS NULL) AND (((col3 = 922) AND col0 <= 264 AND (col0 <= 157) AND col0 > 495) AND (col3 < 188)) AND ((col4 = 842.46) OR col3 >= 851 OR col4 IN (SELECT col1 FROM ta… + +Unable to get property '1' of undefined or null reference +``` + +#### ☓ Ran 10,127 tests as _sqlite_ + +* 15 failed +* 99% was OK + +Time: 108660.925ms + +---- ---- ---- ---- ---- ---- ---- +### 75/190 [`./test/index/in/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE (((col4 >= 6897.58 AND col0 IN (7530,4312)) AND col1 <= 494.83 AND (col3 > 7877 OR col0 > 8556) OR (col3 IN (SELECT col0 FROM tab0 WHERE ((((col1 >= 3878.9)) AND col0 <= 9103 OR col3 = 6252 OR col3 > 30 AND (col0 < 8923 AND col4 = 8696.1 AND col3 IS NULL) AND (col0 <= 9125… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 11,028 tests as _sqlite_ + +* 60 failed +* 99% was OK + +Time: 581327.382ms + +---- ---- ---- ---- ---- ---- ---- +### 76/190 [`./test/index/in/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_1.test) + +_Mimic sqlite_ +#### ★ Ran 11,024 tests as _sqlite_ + +* 100% was OK + +`sqlite 11024 OK: ./test/index/in/1000/slt_good_1.test` + +Time: 451569.274ms + +---- ---- ---- ---- ---- ---- ---- +### 77/190 [`./test/index/orderby/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 10,053 tests as _sqlite_ + +* 100% was OK + +`sqlite 10053 OK: ./test/index/orderby/10/slt_good_0.test` + +Time: 29291.463ms + +---- ---- ---- ---- ---- ---- ---- +### 78/190 [`./test/index/orderby/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_1.test) + +_Mimic sqlite_ +#### ★ Ran 10,054 tests as _sqlite_ + +* 100% was OK + +`sqlite 10054 OK: ./test/index/orderby/10/slt_good_1.test` + +Time: 28775.312ms + +---- ---- ---- ---- ---- ---- ---- +### 79/190 [`./test/index/orderby/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_2.test) + +_Mimic sqlite_ +#### ★ Ran 10,051 tests as _sqlite_ + +* 100% was OK + +`sqlite 10051 OK: ./test/index/orderby/10/slt_good_2.test` + +Time: 38355.070ms + +---- ---- ---- ---- ---- ---- ---- +### 80/190 [`./test/index/orderby/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_3.test) + +_Mimic sqlite_ +#### ★ Ran 10,051 tests as _sqlite_ + +* 100% was OK + +`sqlite 10051 OK: ./test/index/orderby/10/slt_good_3.test` + +Time: 33907.228ms + +---- ---- ---- ---- ---- ---- ---- +### 81/190 [`./test/index/orderby/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_4.test) + +_Mimic sqlite_ +#### ★ Ran 10,052 tests as _sqlite_ + +* 100% was OK + +`sqlite 10052 OK: ./test/index/orderby/10/slt_good_4.test` + +Time: 26151.746ms + +---- ---- ---- ---- ---- ---- ---- +### 82/190 [`./test/index/orderby/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_5.test) + +_Mimic sqlite_ +#### ★ Ran 10,051 tests as _sqlite_ + +* 100% was OK + +`sqlite 10051 OK: ./test/index/orderby/10/slt_good_5.test` + +Time: 26292.692ms + +---- ---- ---- ---- ---- ---- ---- +### 83/190 [`./test/index/orderby/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_6.test) + +_Mimic sqlite_ +#### ★ Ran 10,048 tests as _sqlite_ + +* 100% was OK + +`sqlite 10048 OK: ./test/index/orderby/10/slt_good_6.test` + +Time: 36412.945ms + +---- ---- ---- ---- ---- ---- ---- +### 84/190 [`./test/index/orderby/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_7.test) + +_Mimic sqlite_ +#### ★ Ran 10,052 tests as _sqlite_ + +* 100% was OK + +`sqlite 10052 OK: ./test/index/orderby/10/slt_good_7.test` + +Time: 29283.819ms + +---- ---- ---- ---- ---- ---- ---- +### 85/190 [`./test/index/orderby/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_8.test) + +_Mimic sqlite_ +#### ★ Ran 10,051 tests as _sqlite_ + +* 100% was OK + +`sqlite 10051 OK: ./test/index/orderby/10/slt_good_8.test` + +Time: 31363.532ms + +---- ---- ---- ---- ---- ---- ---- +### 86/190 [`./test/index/orderby/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_9.test) + +_Mimic sqlite_ +#### ★ Ran 10,050 tests as _sqlite_ + +* 100% was OK + +`sqlite 10050 OK: ./test/index/orderby/10/slt_good_9.test` + +Time: 32556.695ms + +---- ---- ---- ---- ---- ---- ---- +### 87/190 [`./test/index/orderby/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 10,141 tests as _sqlite_ + +* 100% was OK + +`sqlite 10141 OK: ./test/index/orderby/100/slt_good_0.test` + +Time: 41530.481ms + +---- ---- ---- ---- ---- ---- ---- +### 88/190 [`./test/index/orderby/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_1.test) + +_Mimic sqlite_ +#### ★ Ran 10,140 tests as _sqlite_ + +* 100% was OK + +`sqlite 10140 OK: ./test/index/orderby/100/slt_good_1.test` + +Time: 39834.188ms + +---- ---- ---- ---- ---- ---- ---- +### 89/190 [`./test/index/orderby/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_2.test) + +_Mimic sqlite_ +#### ★ Ran 10,142 tests as _sqlite_ + +* 100% was OK + +`sqlite 10142 OK: ./test/index/orderby/100/slt_good_2.test` + +Time: 44163.074ms + +---- ---- ---- ---- ---- ---- ---- +### 90/190 [`./test/index/orderby/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((col1 IN (SELECT col4 FROM tab0 WHERE (col3 IN (SELECT col0 FROM tab0 WHERE col1 > 474.87)) AND col3 > 159))) ORDER BY 1 DESC + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 10,140 tests as _sqlite_ + +* 60 failed +* 99% was OK + +Time: 38576.807ms + +---- ---- ---- ---- ---- ---- ---- +### 91/190 [`./test/index/orderby/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/1000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk FROM tab0 WHERE ((((col1 <= 7103.46 AND col0 > 2211 AND col0 > 4703 AND col3 <= 2105 AND col4 > 1731.51 OR (col0 > 3287) AND col3 <= 5111 AND col4 >= 8249.41 AND ((col3 <= 6788) AND ((col4 IS NULL) OR col0 >= 4782 OR col0 IN (SELECT col3 FROM tab0 WHERE col1 IN (SELECT col4 FROM tab0 WHER… + +Unable to get property '0' of undefined or null reference +``` + +#### ☓ Ran 11,043 tests as _sqlite_ + +* 60 failed +* 99% was OK + +Time: 341568.036ms + +---- ---- ---- ---- ---- ---- ---- +### 92/190 [`./test/index/orderby_nosort/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 10,053 tests as _sqlite_ + +* 100% was OK + +`sqlite 10053 OK: ./test/index/orderby_nosort/10/slt_good_0.test` + +Time: 38136.684ms + +---- ---- ---- ---- ---- ---- ---- +### 93/190 [`./test/index/orderby_nosort/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_1.test) + +_Mimic sqlite_ +#### ★ Ran 10,051 tests as _sqlite_ + +* 100% was OK + +`sqlite 10051 OK: ./test/index/orderby_nosort/10/slt_good_1.test` + +Time: 37647.758ms + +---- ---- ---- ---- ---- ---- ---- +### 94/190 [`./test/index/orderby_nosort/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_2.test) + +_Mimic sqlite_ +#### ★ Ran 10,052 tests as _sqlite_ + +* 100% was OK + +`sqlite 10052 OK: ./test/index/orderby_nosort/10/slt_good_2.test` + +Time: 32935.958ms + +---- ---- ---- ---- ---- ---- ---- +### 95/190 [`./test/index/orderby_nosort/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_3.test) + +_Mimic sqlite_ +#### ★ Ran 10,051 tests as _sqlite_ + +* 100% was OK + +`sqlite 10051 OK: ./test/index/orderby_nosort/10/slt_good_3.test` + +Time: 33299.450ms + +---- ---- ---- ---- ---- ---- ---- +### 96/190 [`./test/index/orderby_nosort/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_4.test) + +_Mimic sqlite_ +#### ★ Ran 10,053 tests as _sqlite_ + +* 100% was OK + +`sqlite 10053 OK: ./test/index/orderby_nosort/10/slt_good_4.test` + +Time: 39484.355ms + +---- ---- ---- ---- ---- ---- ---- +### 97/190 [`./test/index/orderby_nosort/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_5.test) + +_Mimic sqlite_ +#### ★ Ran 10,052 tests as _sqlite_ + +* 100% was OK + +`sqlite 10052 OK: ./test/index/orderby_nosort/10/slt_good_5.test` + +Time: 34818.935ms + +---- ---- ---- ---- ---- ---- ---- +### 98/190 [`./test/index/orderby_nosort/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_6.test) + +_Mimic sqlite_ +#### ★ Ran 10,053 tests as _sqlite_ + +* 100% was OK + +`sqlite 10053 OK: ./test/index/orderby_nosort/10/slt_good_6.test` + +Time: 26119.670ms + +---- ---- ---- ---- ---- ---- ---- +### 99/190 [`./test/index/orderby_nosort/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_7.test) + +_Mimic sqlite_ +#### ★ Ran 10,052 tests as _sqlite_ + +* 100% was OK + +`sqlite 10052 OK: ./test/index/orderby_nosort/10/slt_good_7.test` + +Time: 29430.535ms + +---- ---- ---- ---- ---- ---- ---- +### 100/190 [`./test/index/orderby_nosort/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_8.test) + +_Mimic sqlite_ +#### ★ Ran 10,054 tests as _sqlite_ + +* 100% was OK + +`sqlite 10054 OK: ./test/index/orderby_nosort/10/slt_good_8.test` + +Time: 36301.054ms + +---- ---- ---- ---- ---- ---- ---- +### 101/190 [`./test/index/orderby_nosort/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_9.test) + +_Mimic sqlite_ +#### ★ Ran 10,055 tests as _sqlite_ + +* 100% was OK + +`sqlite 10055 OK: ./test/index/orderby_nosort/10/slt_good_9.test` + +Time: 35346.103ms + +---- ---- ---- ---- ---- ---- ---- +### 102/190 [`./test/index/orderby_nosort/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 10,149 tests as _sqlite_ + +* 100% was OK + +`sqlite 10149 OK: ./test/index/orderby_nosort/100/slt_good_0.test` + +Time: 46306.024ms + +---- ---- ---- ---- ---- ---- ---- +### 103/190 [`./test/index/orderby_nosort/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_1.test) + +_Mimic sqlite_ +#### ★ Ran 10,141 tests as _sqlite_ + +* 100% was OK + +`sqlite 10141 OK: ./test/index/orderby_nosort/100/slt_good_1.test` + +Time: 40954.530ms + +---- ---- ---- ---- ---- ---- ---- +### 104/190 [`./test/index/orderby_nosort/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_2.test) + +_Mimic sqlite_ +#### ★ Ran 10,142 tests as _sqlite_ + +* 100% was OK + +`sqlite 10142 OK: ./test/index/orderby_nosort/100/slt_good_2.test` + +Time: 40825.399ms + +---- ---- ---- ---- ---- ---- ---- +### 105/190 [`./test/index/orderby_nosort/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_3.test) + +_Mimic sqlite_ +#### ★ Ran 10,143 tests as _sqlite_ + +* 100% was OK + +`sqlite 10143 OK: ./test/index/orderby_nosort/100/slt_good_3.test` + +Time: 36216.023ms + +---- ---- ---- ---- ---- ---- ---- +### 106/190 [`./test/index/orderby_nosort/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_4.test) + +_Mimic sqlite_ +#### ★ Ran 10,141 tests as _sqlite_ + +* 100% was OK + +`sqlite 10141 OK: ./test/index/orderby_nosort/100/slt_good_4.test` + +Time: 37257.174ms + +---- ---- ---- ---- ---- ---- ---- +### 107/190 [`./test/index/orderby_nosort/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_5.test) + +_Mimic sqlite_ +#### ★ Ran 10,142 tests as _sqlite_ + +* 100% was OK + +`sqlite 10142 OK: ./test/index/orderby_nosort/100/slt_good_5.test` + +Time: 36340.043ms + +---- ---- ---- ---- ---- ---- ---- +### 108/190 [`./test/index/orderby_nosort/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_6.test) + +_Mimic sqlite_ +#### ★ Ran 10,144 tests as _sqlite_ + +* 100% was OK + +`sqlite 10144 OK: ./test/index/orderby_nosort/100/slt_good_6.test` + +Time: 41133.277ms + +---- ---- ---- ---- ---- ---- ---- +### 109/190 [`./test/index/orderby_nosort/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_0.test) + +_Mimic sqlite_ +#### ★ Ran 11,040 tests as _sqlite_ + +* 100% was OK + +`sqlite 11040 OK: ./test/index/orderby_nosort/1000/slt_good_0.test` + +Time: 374500.172ms + +---- ---- ---- ---- ---- ---- ---- +### 110/190 [`./test/index/orderby_nosort/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_1.test) + +_Mimic sqlite_ +#### ★ Ran 11,043 tests as _sqlite_ + +* 100% was OK + +`sqlite 11043 OK: ./test/index/orderby_nosort/1000/slt_good_1.test` + +Time: 212505.288ms + +---- ---- ---- ---- ---- ---- ---- +### 111/190 [`./test/index/random/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT + col2 FROM tab0 AS cor0 WHERE col3 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + + ( - - COUNT ( * ) ) FROM tab0 cor0 WHERE NULL <> col1 + +Expected: ["0"] but got ["10"] +``` + + +```sql +SELECT + col0 AS col0 FROM tab0 WHERE NOT + col0 IN ( - 67 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL AVG ( ALL col3 ) FROM tab0 WHERE ( NULL ) NOT IN ( - 87 * + 98 ) + +Expected: ["NULL"] but got ["411.800"] +``` + + +```sql +SELECT * FROM tab0 WHERE - - CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT 62 - - + CAST ( COUNT ( ALL col1 ) AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL + +'g' is undefined +``` + + +```sql +SELECT col2 AS col4 FROM tab0 WHERE - col1 > - 75 + +Expected: ["0"] but got ["ijika"] +``` + + +```sql +SELECT + MIN ( ALL 65 ), + CAST ( NULL AS INTEGER ) AS col4 FROM tab0 WHERE NULL IS NOT NULL + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT - 49 + + MIN ( - col0 ) FROM tab0 WHERE NOT ( NOT + 99 NOT BETWEEN ( - + ( + col1 ) ) AND - col4 * - 99 * - col3 ) + +Expected: ["-953"] but got ["NULL"] +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 790 failed +* 92% was OK + +Time: 20835.565ms + +---- ---- ---- ---- ---- ---- ---- +### 112/190 [`./test/index/random/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT col2 col5 FROM tab0 WHERE NOT + col1 * col0 - - 45 = + 75 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - 42 AS col2 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, + COUNT ( * ) * + 7 col2 FROM tab0 AS cor0 WHERE NULL IS NULL + +Expected: ["NULL","70"] but got ["0","70"] +``` + + +```sql +SELECT 11 AS col0 FROM tab0 AS cor0 WHERE ( + 22 ) = ( CAST ( + col0 AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT ( 92 ) AS col5, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col3 ) > ( NULL ) + +Expected: ["92","0"] but got ["92","10"] +``` + + +```sql +SELECT ALL CAST ( SUM ( ALL + col3 ) AS INTEGER ) FROM tab0 WHERE + - 4 > - col1 + +'g' is undefined +``` + + +```sql +SELECT ALL + col2 FROM tab0 WHERE NOT - - 10 <= - + col4 - - col3 + +Expected: ["0","0","0","0"] but got ["hzanm","lktfw","mguub","mwyzu"] +``` + + +```sql +SELECT - 43 * MAX ( ALL - 96 * + col3 ) FROM tab0 WHERE NOT ( - col1 ) IN ( + ( 36 ) ) + +Expected: ["445824"] but got ["NULL"] +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 730 failed +* 92% was OK + +Time: 20400.926ms + +---- ---- ---- ---- ---- ---- ---- +### 113/190 [`./test/index/random/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT - col3 col3 FROM tab0 WHERE NOT - CAST ( - + col3 AS INTEGER ) BETWEEN NULL AND col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + COUNT ( * ) * 11 AS col3 FROM tab0 AS cor0 WHERE NOT NULL > NULL + +Expected: ["0"] but got ["110"] +``` + + +```sql +SELECT ALL col5 FROM tab0 AS cor0 WHERE NOT col1 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + 31 + - MIN ( - 42 ) FROM tab0 cor0 WHERE NOT - col3 * + col3 * + + col0 + + col4 BETWEEN col1 AND NULL + +Expected: ["73"] but got ["NULL"] +``` + + +```sql +SELECT col5 FROM tab0 WHERE - ( - col1 ) <= + col0 + +Expected: ["0","0","0","0","0","0"] but got ["bqisj","gtdhg","mylwf","tlesg","vrkrw","ylzxx"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col4 > + + col1 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT + CAST ( - SUM ( - col3 ) AS INTEGER ) col3 FROM tab0 WHERE + ( col3 ) NOT IN ( - 44 + col1 * + + col4, 39 ) + +'g' is undefined +``` + + +```sql +SELECT - 45 FROM tab0 AS cor0 WHERE NOT + col1 * 41 / + + 82 BETWEEN - col3 AND ( - + ( - 64 ) ) + +10 results returned but expected 9 +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) col4 FROM tab2 cor0 WHERE NULL IS NULL + +Correct amount of values returned but hash was different than expected. +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 910 failed +* 90% was OK + +Time: 19708.115ms + +---- ---- ---- ---- ---- ---- ---- +### 114/190 [`./test/index/random/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col5 FROM tab0 AS cor0 WHERE + col4 * + col4 * + 24 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT - COUNT ( * ) * 9 FROM tab0 WHERE NOT NULL <= ( + col1 ) + +Expected: ["0"] but got ["-90"] +``` + + +```sql +SELECT + col3 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 25 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + col2 AS col1 FROM tab0 WHERE NOT col1 <= col4 + +Expected: ["0","0","0","0","0"] but got ["ayfdf","iiegz","kaetk","reayu","unszc"] +``` + + +```sql +SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) + - 63 AS col0 FROM tab0 WHERE NULL NOT IN ( 71 ) + +'g' is undefined +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT - 89 IS NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT col5 col1 FROM tab0 AS cor0 WHERE NOT col0 < + col1 + +Expected: ["0","0"] but got ["hkqiq","wjfwi"] +``` + + +```sql +SELECT ALL - COUNT ( + CAST ( col3 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL + +Expected: ["0"] but got ["-10"] +``` + + +```sql +SELECT DISTINCT 83 * - 92 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col3, - CAST ( NULL AS INTEGER ) / col4 * + 52 AS col5 FROM tab0 AS cor0 WHERE col3 <= 81 + +Expected: ["NULL","NULL"] but got ["-7636","0"] +``` + + +```sql +SELECT - MIN ( DISTINCT col0 ) + 54 FROM tab0 WHERE NOT ( col1 + + col3 * + col0 ) IN ( col0 ) + +Expected: ["-130"] but got ["NULL"] +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 680 failed +* 93% was OK + +Time: 26237.726ms + +---- ---- ---- ---- ---- ---- ---- +### 115/190 [`./test/index/random/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + col5 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), ( + COUNT ( * ) ) FROM tab0 WHERE NOT + 26 IS NULL + +Expected: ["NULL","10"] but got ["0","10"] +``` + + +```sql +SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( - 12 ) <= NULL + +Expected: ["0"] but got ["10"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT - col3 - ( - ( - col1 ) ) NOT IN ( - 78 + - 95 * CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col4 FROM tab0 cor0 WHERE col0 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 WHERE ( NOT col0 NOT BETWEEN + col4 AND + + col1 ) + +'g' is undefined +``` + + +```sql +SELECT DISTINCT + MAX ( + col3 ) FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - + col3 + col3 AND + col0 + +Expected: ["922"] but got ["NULL"] +``` + +#### ☓ Ran 10,033 tests as _sqlite_ + +* 735 failed +* 92% was OK + +Time: 20773.163ms + +---- ---- ---- ---- ---- ---- ---- +### 116/190 [`./test/index/random/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT + col2 AS col5 FROM tab0 WHERE NOT ( col0 ) * - - col4 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - 81 FROM tab0 WHERE NOT col0 IN ( - 9 + + 10 * - + 68, col4 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ( - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 72 + - + col4 + col3 ) AND - ( CAST ( NULL AS REAL ) ) + +Wrong conversion type +``` + + +```sql +SELECT + - COUNT ( * ) AS col4 FROM tab0 AS cor0 WHERE 64 / col0 NOT BETWEEN - col1 AND + + CAST ( NULL AS INTEGER ) + +Expected: ["0"] but got ["-10"] +``` + + +```sql +SELECT + col2 col5 FROM tab0 AS cor0 WHERE ( col4 ) BETWEEN col0 AND - 96 * - col3 + +Expected: ["0","0","0"] but got ["amwpr","ehefd","uxbns"] +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 735 failed +* 92% was OK + +Time: 19320.303ms + +---- ---- ---- ---- ---- ---- ---- +### 117/190 [`./test/index/random/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT SUM ( DISTINCT + + 90 ) AS col3 FROM tab0 AS cor0 WHERE NULL IS NOT NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT + col3 - col3 col5 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL col2 AS col2 FROM tab0 WHERE 80 * 48 - - 91 > - col4 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT 36 / COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL + +Expected: ["3"] but got ["3.600"] +``` + + +```sql +SELECT ALL ( - col0 ) - 31 - - 80 FROM tab0 AS cor0 WHERE NOT col4 / 6 IN ( + col1 / - + col0 * - col1 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT ( col4 ) <= NULL + +'g' is undefined +``` + + +```sql +SELECT + col2 FROM tab0 WHERE ( 60 + + col3 ) < ( + col0 ) + +Expected: ["0","0","0","0","0"] but got ["gvttq","qvahk","tgsmz","zfxgo","zkoew"] +``` + + +```sql +SELECT col2 FROM tab0 WHERE + col0 * + col0 + - col4 * col3 <= ( + col1 + col4 * - 0 ) OR ( + 57 * + col0 ) = NULL + +Expected: ["0","0"] but got ["naijw","wodwv"] +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 780 failed +* 92% was OK + +Time: 19193.130ms + +---- ---- ---- ---- ---- ---- ---- +### 118/190 [`./test/index/random/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE ( ( CAST ( NULL AS INTEGER ) ) ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - MIN ( ALL + + 73 ) AS col4 FROM tab0 cor0 WHERE NOT 35 >= NULL + +Expected: ["NULL"] but got ["-73"] +``` + + +```sql +SELECT + COUNT ( * ) col3 FROM tab0 AS cor0 WHERE col4 * + col1 <> NULL + +Expected: ["0"] but got ["10"] +``` + + +```sql +SELECT DISTINCT - COUNT ( * ) / + CAST ( NULL AS REAL ) AS col5 FROM tab0 WHERE NOT col0 + CAST ( col3 AS INTEGER ) <> 62 * - ( col1 * - col4 ) + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + - MAX ( DISTINCT + col3 ) AS col2, + ( + COUNT ( * ) ) + + 71 FROM tab0 WHERE NOT + 13 * CAST ( NULL AS INTEGER ) IS NOT NULL + +Expected: ["-972","81"] but got ["NULL","71"] +``` + + +```sql +SELECT ALL col2 AS col5 FROM tab0 WHERE - + col3 BETWEEN - 72 AND 50 + + 78 + +Expected: ["0"] but got ["hmsci"] +``` + +#### ☓ Ran 10,031 tests as _sqlite_ + +* 675 failed +* 93% was OK + +Time: 19064.539ms + +---- ---- ---- ---- ---- ---- ---- +### 119/190 [`./test/index/random/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL AND 57 + col3 + + col0 * + 36 * col4 > NULL + +Wrong conversion type +``` + + +```sql +SELECT SUM ( col3 ) AS col4 FROM tab0 WHERE NOT - 85 + ( + CAST ( NULL AS INTEGER ) ) NOT IN ( col3 * 49 ) + +Expected: ["NULL"] but got ["5614"] +``` + + +```sql +SELECT ALL COUNT ( * ) AS col4 FROM tab0 WHERE NOT ( + - col1 ) BETWEEN col3 * + col0 + - - col3 AND ( - + col4 + + + col0 ) + +Expected: ["10"] but got ["0"] +``` + + +```sql +SELECT col5 FROM tab0 AS cor0 WHERE NOT ( col0 - col4 ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + col5 AS col5 FROM tab0 AS cor0 WHERE + col4 NOT BETWEEN NULL AND + col3 + +Expected: ["0","0","0"] but got ["apjmo","dubev","ithfo","ktnfz","swsmt","texha","ttvlt","vzeio","ylxxs","zwzyz"] +``` + + +```sql +SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 75 * - 78 * + - ( ( - + 46 ) ) IS NULL + +'g' is undefined +``` + + +```sql +SELECT - col0 col3 FROM tab0 WHERE NOT - col3 IN ( + col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - MAX ( ALL + + 78 ) FROM tab0 AS cor0 WHERE NOT + 18 BETWEEN col1 + - ( col1 ) + + ( col1 ) * - - col1 AND 17 * + col0 + +Expected: ["-78"] but got ["NULL"] +``` + + +```sql +SELECT col5 AS col1 FROM tab0 AS cor0 WHERE col4 NOT BETWEEN - ( - 32 ) AND - CAST ( - col1 AS INTEGER ) + +Expected: ["0","0","0","0","0"] but got ["apjmo","dubev","ithfo","ktnfz","vzeio"] +``` + +#### ☓ Ran 10,032 tests as _sqlite_ + +* 745 failed +* 92% was OK + +Time: 19382.379ms + +---- ---- ---- ---- ---- ---- ---- +### 120/190 [`./test/index/random/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + + 86 + - col3 AS col0 FROM tab0 cor0 WHERE NOT + 70 * - - 75 - - 75 BETWEEN - col3 + - col4 AND + + col3 * - + col3 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col2 col3 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT 66 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS REAL ) * - 13, 98 ) + +Wrong conversion type +``` + + +```sql +SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 76 AS col3 FROM tab0 AS cor0 WHERE NOT - ( col0 ) + - col0 IS NOT NULL + +Expected: ["NULL"] but got ["-76"] +``` + + +```sql +SELECT ALL 55 / ( COUNT ( * ) ) FROM tab0 cor0 WHERE col5 IS NOT NULL + +Expected: ["5"] but got ["5.500"] +``` + + +```sql +SELECT - + CAST ( - SUM ( DISTINCT - - CAST ( + 91 AS INTEGER ) ) AS INTEGER ), - 51 AS col0 FROM tab0 WHERE NOT NULL <= 60 + +'g' is undefined +``` + + +```sql +SELECT col5 AS col1 FROM tab0 AS cor0 WHERE + 80 + col4 > - - col1 + col3 + +Expected: ["0","0"] but got ["axwip","klkhp"] +``` + +#### ☓ Ran 10,031 tests as _sqlite_ + +* 740 failed +* 92% was OK + +Time: 23744.535ms + +---- ---- ---- ---- ---- ---- ---- +### 121/190 [`./test/index/random/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + 52 / + 95 FROM tab0 WHERE + col4 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - + COUNT ( * ) AS col3 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + col4, col0 + col3 * - 24 ) + +Expected: ["0"] but got ["-100"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE col4 * + col1 + - col3 + - 64 + - col4 BETWEEN col1 + + - CAST ( + - col4 AS REAL ) AND - - CAST ( NULL AS INTEGER ) + +Wrong conversion type +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col3 FROM tab0 AS cor0 WHERE NOT - col3 IN ( + - 29 * 82 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - + COUNT ( * ) * + + 51 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> - col0 + +Expected: ["0","NULL"] but got ["-5100","0"] +``` + + +```sql +SELECT ALL + CAST ( COUNT ( ALL col0 ) AS INTEGER ) col3 FROM tab0 WHERE NULL IS NULL + +'g' is undefined +``` + + +```sql +SELECT col2 AS col0 FROM tab0 WHERE NOT - - col0 >= 54 + 23 + +Expected: ["0"] but got ["qckcw"] +``` + + +```sql +SELECT col0 * + - 7 FROM tab0 WHERE CAST ( col0 AS INTEGER ) NOT BETWEEN NULL AND + col3 + +100 results returned but expected 55 +``` + +#### ☓ Ran 10,123 tests as _sqlite_ + +* 715 failed +* 92% was OK + +Time: 34941.372ms + +---- ---- ---- ---- ---- ---- ---- +### 122/190 [`./test/index/random/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT + col5 AS col1 FROM tab0 AS cor0 WHERE ( - 0 ) BETWEEN 6 * - col4 AND ( + col0 * - - col1 - 48 ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + + 77 AS col2, - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col4 AND NULL + +Expected: ["77","0"] but got ["77","-100"] +``` + + +```sql +SELECT + 92 * + - 75 FROM tab0 AS cor0 WHERE NOT + ( + - col0 ) IN ( - + ( + + 81 ) + + col3 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + - MAX ( DISTINCT + col3 ) AS col2, + ( + COUNT ( * ) ) + + 71 FROM tab0 WHERE NOT + 13 * CAST ( NULL AS INTEGER ) IS NOT NULL + +Expected: ["-9951","171"] but got ["NULL","71"] +``` + + +```sql +SELECT - COUNT ( * ) * AVG ( DISTINCT + col3 ) AS col3 FROM tab0 WHERE NOT NULL <= + + col3 + +Expected: ["NULL"] but got ["-531399"] +``` + + +```sql +SELECT col5 col5 FROM tab0 WHERE NOT ( ( col1 ) ) >= + ( - 80 ) * - 31 - col0 + +Expected: ["0","0","0","0"] but got ["kjkvp","rrlwc","uhpvq","ydhme"] +``` + + +```sql +SELECT + col5 AS col5 FROM tab0 AS cor0 WHERE + col4 NOT BETWEEN NULL AND + col3 + +100 results returned but expected 42 +``` + + +```sql +SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 75 * - 78 * + - ( ( - + 46 ) ) IS NULL + +'g' is undefined +``` + +#### ☓ Ran 10,123 tests as _sqlite_ + +* 655 failed +* 93% was OK + +Time: 39469.096ms + +---- ---- ---- ---- ---- ---- ---- +### 123/190 [`./test/index/random/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab0 AS cor0 WHERE col4 * + col1 + - col3 + - 64 + - col4 BETWEEN col1 + + - CAST ( + - col4 AS REAL ) AND - - CAST ( NULL AS INTEGER ) + +Wrong conversion type +``` + + +```sql +SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col5 FROM tab0 WHERE - 72 NOT BETWEEN 37 AND NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL > col4 + +Expected: ["0"] but got ["-1000"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) AS col3 FROM tab0 AS cor0 WHERE NOT - col3 IN ( + - 29 * 82 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - + COUNT ( * ) * + + 51 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> - col0 + +Expected: ["0","NULL"] but got ["-51000","0"] +``` + +#### ☓ Ran 2,067 tests as _sqlite_ + +* 70 failed +* 96% was OK + +Time: 17113.460ms + +---- ---- ---- ---- ---- ---- ---- +### 124/190 [`./test/index/random/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL <> + col4 / CAST ( - col0 AS REAL ) ) + +Wrong conversion type +``` + +#### ☓ Ran 1,056 tests as _sqlite_ + +* 5 failed +* 99% was OK + +Time: 1909.971ms + +---- ---- ---- ---- ---- ---- ---- +### 125/190 [`./test/index/random/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_2.test) + +_Mimic sqlite_ +#### ★ Ran 1,027 tests as _sqlite_ + +* 100% was OK + +`sqlite 1027 OK: ./test/index/random/1000/slt_good_2.test` + +Time: 1804.337ms + +---- ---- ---- ---- ---- ---- ---- +### 126/190 [`./test/index/random/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_3.test) + +_Mimic sqlite_ +#### ★ Ran 1,033 tests as _sqlite_ + +* 100% was OK + +`sqlite 1033 OK: ./test/index/random/1000/slt_good_3.test` + +Time: 1494.542ms + +---- ---- ---- ---- ---- ---- ---- +### 127/190 [`./test/index/random/1000/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( - CAST ( NULL AS REAL ) + + col0 NOT IN ( - - col0 * - col3 ) ) ) + +Wrong conversion type +``` + +#### ☓ Ran 1,032 tests as _sqlite_ + +* 5 failed +* 99% was OK + +Time: 1846.082ms + +---- ---- ---- ---- ---- ---- ---- +### 128/190 [`./test/index/random/1000/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT + COUNT ( * ) AS col5 FROM tab0 WHERE NOT - ( 3 ) + col4 NOT BETWEEN NULL AND col0 + +Expected: ["0"] but got ["1000"] +``` + + +```sql +SELECT ALL 72 FROM tab0 WHERE + - col1 * - - ( - col0 ) / + col4 - + col3 + + col0 + + 62 * CAST ( NULL AS INTEGER ) * col0 * - col4 + + 91 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 42 * - col4 AS col3 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT 15 FROM tab0 cor0 WHERE ( 92 ) <= col0 / + + CAST ( NULL AS REAL ) + 77 + +Wrong conversion type +``` + + +```sql +SELECT ALL + CAST ( COUNT ( ALL col0 ) AS INTEGER ) col3 FROM tab0 WHERE NULL IS NULL + +'g' is undefined +``` + +#### ☓ Ran 4,333 tests as _sqlite_ + +* 265 failed +* 93% was OK + +Time: 46355.742ms + +---- ---- ---- ---- ---- ---- ---- +### 129/190 [`./test/index/random/1000/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col1 - 9 * + ( + + CAST ( NULL AS INTEGER ) ) * - 41 * + + 35 FROM tab0 WHERE NOT - 70 IS NULL + +Expected: ["NULL"] but got ["1001.490","101.350","1023.170","1029.400","1040.530","1041.320","105.910","1052.610","1055.210","1061.720","1077.130","1088.150","1134.630","1136.530","1141.510","1142.310","1145.470","1184.360","1189.950","119.510","1195.480","1196.280","1202.190","121.600","1210.330",… +``` + + +```sql +SELECT ALL - 42 + + col0 AS col1, 66 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( 78 AS INTEGER ) * 42 * + 24 IS NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL + + col2 FROM tab0 WHERE col0 <= + + col4 * - + CAST ( NULL AS REAL ) + + 67 + +Wrong conversion type +``` + + +```sql +SELECT + 89 FROM tab0 WHERE + - col0 NOT BETWEEN + + 45 + - + col4 AND NULL + +1000 results returned but expected 491 +``` + + +```sql +SELECT - MIN ( + col4 ) AS col3 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL + +Expected: ["-61"] but got ["-61.500"] +``` + + +```sql +SELECT - 74 * 61 FROM tab0 AS cor0 WHERE NOT 1 IN ( 78 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL * FROM tab0 AS cor0 WHERE ( col3 ) IN ( + col0 ) + +Expected: ["750","79","2150","0","79","1716","0"] but got ["750","79","2150.540","kuzlf","79","1716.500","wqnrb"] +``` + +#### ☓ Ran 11,021 tests as _sqlite_ + +* 725 failed +* 93% was OK + +Time: 126773.164ms + +---- ---- ---- ---- ---- ---- ---- +### 130/190 [`./test/index/random/1000/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT MAX ( col4 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL + +Expected: ["NULL"] but got ["9994.100"] +``` + + +```sql +SELECT ALL + ( - - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col5 FROM tab0 WHERE NOT NULL IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT + col5 FROM tab0 WHERE NOT NULL IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - COUNT ( 41 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 41 AND - 82 + +Expected: ["0"] but got ["-1000"] +``` + + +```sql +SELECT 36 FROM tab0 WHERE - col3 + col0 NOT BETWEEN NULL AND ( + - col0 ) + +1000 results returned but expected 762 +``` + + +```sql +SELECT DISTINCT + 42 / + COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT ALL col2 FROM tab0 WHERE - + col3 BETWEEN - 72 AND 50 + + 78 + +Expected: ["0","0","0","0","0"] but got ["ernxs","orpfh","pirjf","tbpkm","zphbq"] +``` + +#### ☓ Ran 11,022 tests as _sqlite_ + +* 780 failed +* 92% was OK + +Time: 120344.569ms + +---- ---- ---- ---- ---- ---- ---- +### 131/190 [`./test/index/random/1000/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col0 / - - col3 + + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL + +1000 results returned but expected 967 +``` + + +```sql +SELECT ALL ( + + col0 ) FROM tab0 AS cor0 WHERE NOT col4 IN ( + - col1 * - + 58, + col4 * - col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + ( - MAX ( - 10 ) ) * + + 59 AS col3 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL ) + +Expected: ["NULL"] but got ["590"] +``` + + +```sql +SELECT col3 AS col1 FROM tab0 WHERE NOT 2 * + col0 + + CAST ( NULL AS REAL ) + - 93 >= + 40 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col4 * + + col3 + + - col0 + - + col4 + +Expected: ["0"] but got ["1000"] +``` + + +```sql +SELECT ALL + CAST ( col3 AS INTEGER ) * col3 + - ( + col0 ) / - col3 AS col2 FROM tab0 WHERE ( NULL ) IS NULL + +Correct amount of values returned but hash was different than expected. +``` + +#### ☓ Ran 4,841 tests as _sqlite_ + +* 310 failed +* 93% was OK + +Time: 45046.080ms + +---- ---- ---- ---- ---- ---- ---- +### 132/190 [`./test/index/view/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_0.test) + +_Mimic sqlite_ +Time: 5.813ms + +---- ---- ---- ---- ---- ---- ---- +### 133/190 [`./test/index/view/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_2_tab0_153 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_154 UNION SELECT pk, col0 FROM view_2_tab0_154 + +10 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_154 + +Expected: ["1","4","5","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_155 + +Expected: ["6","0"] but got ["NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_157 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE ((col0 IS NULL) OR col3 > 5 OR col3 <= 50 OR col1 < 83.11))) OR col0 > 75 + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 8,137 tests as _sqlite_ + +* 7,698 skipped +* 91 failed +* 4% was OK + +Time: 2322.982ms + +---- ---- ---- ---- ---- ---- ---- +### 134/190 [`./test/index/view/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_302 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_302 + +Expected: ["4","11","7","70"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_302 UNION SELECT pk, col0 FROM view_2_tab0_302 + +4 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_302 + +Expected: ["0","1","2","3","5","6","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_305 + +Expected: ["6","56","7","70","8","75"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_305 + +Expected: ["0","1","2","3","4","5","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_306 + +Expected: ["4","11"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_308 + +Expected: ["2","3","5","8","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_316 + +Expected: ["6","7","8"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_322 + +Expected: ["6"] but got ["NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_367 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL OR (((col0 < 64 AND (col0 BETWEEN 25 AND 41) AND (col4 >= 33.34) OR (col4 < 22.72 AND (col0 >= 61)) AND (col0 > 4) OR col0 >= 0 OR col0 >= 45 AND col3 IN (SELECT col0 FROM tab0 WHERE col3 > 42) AND col3 IS NULL AND col3 <= … + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,465 tests as _sqlite_ + +* 1,028 skipped +* 1,361 failed +* 67% was OK + +Time: 12891.310ms + +---- ---- ---- ---- ---- ---- ---- +### 135/190 [`./test/index/view/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_376 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_376 UNION SELECT pk, col0 FROM view_2_tab0_376 + +2 results returned but expected 20 +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_377 + +Expected: ["1","72","5","85","8","94","9","95"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_377 + +Expected: ["1","5","8","9"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_378 + +Expected: ["2","52"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_378 + +Expected: ["2"] but got ["NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_385 + +Expected: ["0","2","3","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_387 + +Expected: ["0","60","1","72","9","95"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_387 + +Expected: ["2","3","4","5","6","7","8"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_405 + +Expected: ["2","6","7"] but got ["NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_408 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL AND (((((col1 < 63.79))) OR col0 >= 35 AND col4 > 76.20 AND col0 = 84 OR col0 <= 76 AND col3 IN (SELECT col0 FROM tab0 WHERE col4 = 39.20 AND col3 <= 5))) + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,271 tests as _sqlite_ + +* 4,133 skipped +* 716 failed +* 33% was OK + +Time: 6842.870ms + +---- ---- ---- ---- ---- ---- ---- +### 136/190 [`./test/index/view/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_444 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_444 + +Expected: ["1","65","5","67"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_444 UNION SELECT pk, col0 FROM view_2_tab0_444 + +4 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_444 + +Expected: ["0","2","3","4","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_446 + +Expected: ["1","65"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_447 + +Expected: ["3"] but got ["NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_448 + +Expected: ["2","3","4","8","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_462 + +Expected: ["3","6","7","52","8","29"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_462 + +Expected: ["3","7","8"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_463 + +Expected: ["0","1","2","5","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_519 AS SELECT pk, col0 FROM tab0 WHERE (((col0 >= 39) OR (col1 < 88.77) AND (((col1 <= 79.45) AND col0 IN (83,70,92,44,74) AND col4 < 94.64 OR col0 > 49 AND (col3 >= 51 OR col0 > 38)) OR col0 < 10 OR col1 > 79.73 AND col3 > 53 AND col1 BETWEEN 24.95 AND 9.14 AND col3 < 51 OR… + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,563 tests as _sqlite_ + +* 223 skipped +* 1,526 failed +* 76% was OK + +Time: 20901.082ms + +---- ---- ---- ---- ---- ---- ---- +### 137/190 [`./test/index/view/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_660 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_660 + +Expected: ["2","85","3","93"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_660 UNION SELECT pk, col0 FROM view_2_tab0_660 + +4 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_660 + +Expected: ["0","1","4","5","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_661 + +Expected: ["0","48","2","85","3","93"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_661 + +Expected: ["0","2","3"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_662 + +Expected: ["2","3"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_677 + +Expected: ["0","2","3","4","5","7","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_687 + +Expected: ["8"] but got ["NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_726 AS SELECT pk, col0 FROM tab0 WHERE col0 > 84 AND col4 <= 74.98 AND col1 IN (SELECT col4 FROM tab0 WHERE (col4 > 35.62) AND ((col3 > 33) AND (((((col3 > 1))) AND (col0 = 21 OR (((col3 > 79))) AND (col1 < 18.85) AND ((col3 > 26)) OR ((col3 > 73) AND col3 <= 84)))) OR ((((c… + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,384 tests as _sqlite_ + +* 1,143 skipped +* 1,371 failed +* 65% was OK + +Time: 12777.943ms + +---- ---- ---- ---- ---- ---- ---- +### 138/190 [`./test/index/view/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_946 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_946 UNION SELECT pk, col0 FROM view_2_tab0_946 + +10 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_946 + +Expected: ["1","2","5","6","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_948 + +Expected: ["7","71"] but got ["NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_952 + +Expected: ["1","35","3","18","7","71","9","0"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_952 + +Expected: ["0","2","4","5","6","8"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_961 + +Expected: ["0","1","2","4","5","6","7"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_963 + +Expected: ["8"] but got ["NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_970 + +Expected: ["0","87","3","18"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_975 + +Expected: ["3","7","9"] but got ["NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_984 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 42) AND ((col1 IS NULL)) OR ((((col3 > 72)))) OR (((col3 <= 90) AND ((col0 > 68)) AND (col0 IN (45,3,50,1) OR col4 < 9.99 OR col3 IN (76,97,24) AND col1 > 8.58 AND (col0 = 3) AND (col0 >= 50 AND col0 IN (SELECT col3 FROM tab0 WH… + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 6,492 tests as _sqlite_ + +* 2,753 skipped +* 806 failed +* 45% was OK + +Time: 8446.967ms + +---- ---- ---- ---- ---- ---- ---- +### 139/190 [`./test/index/view/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM view_1_tab0_1009 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_1009 + +Expected: ["0","71","5","97"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_1009 UNION SELECT pk, col0 FROM view_2_tab0_1009 + +4 results returned but expected 20 +``` + + +```sql +SELECT * FROM view_3_tab0_1009 + +Expected: ["1","2","3","4","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_1013 + +Expected: ["2","89","4","92","5","97"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_1013 + +Expected: ["0","1","3","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_1023 + +Expected: ["3","5"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_1027 + +Expected: ["6"] but got ["NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_1031 + +Expected: ["1","3","6","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_1035 + +Expected: ["3","7","8"] but got ["NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_1042 AS SELECT pk, col0 FROM tab0 WHERE ((col0 > 16 OR ((col0 < 9 OR col3 IN (SELECT col0 FROM tab0 WHERE (col0 < 94) AND col0 <= 61))) AND col3 = 18 OR col3 < 55 AND col3 IN (76,76) OR col3 >= 86 AND ((((((col0 < 9)))) AND col0 = 70 OR col1 IS NULL) AND (col3 IN (31,92,0)))… + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,533 tests as _sqlite_ + +* 4,593 skipped +* 646 failed +* 30% was OK + +Time: 6895.550ms + +---- ---- ---- ---- ---- ---- ---- +### 140/190 [`./test/index/view/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_77 UNION SELECT pk, col0 FROM view_2_tab0_77 + +150 results returned but expected 200 +``` + + +```sql +SELECT * FROM view_3_tab0_84 + +Expected: ["1","26","29","4","81","94"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_93 AS SELECT pk, col0 FROM tab0 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 8,623 tests as _sqlite_ + +* 6,893 skipped +* 677 failed +* 12% was OK + +Time: 7352.486ms + +---- ---- ---- ---- ---- ---- ---- +### 141/190 [`./test/index/view/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_226 UNION SELECT pk, col0 FROM view_2_tab0_226 + +112 results returned but expected 200 +``` + + +```sql +SELECT pk, col0 FROM view_2_tab0_229 + +Expected: ["30","84","86","184"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_232 + +Expected: ["19","869","81","978","83","803"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_232 + +Expected: ["19","81","83"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_250 + +Expected: ["18","24"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_271 + +Expected: ["93"] but got ["NULL"] +``` + +#### ☓ Ran 7,122 tests as _sqlite_ + +* 2,876 failed +* 59% was OK + +Time: 28378.992ms + +---- ---- ---- ---- ---- ---- ---- +### 142/190 [`./test/index/view/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_523 UNION SELECT pk, col0 FROM view_2_tab0_523 + +64 results returned but expected 200 +``` + + +```sql +CREATE VIEW view_1_tab0_534 AS SELECT pk, col0 FROM tab0 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR… + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 8,235 tests as _sqlite_ + +* 7,008 skipped +* 457 failed +* 9% was OK + +Time: 5084.758ms + +---- ---- ---- ---- ---- ---- ---- +### 143/190 [`./test/index/view/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_597 + +Expected: ["69","996"] but got ["NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_597 UNION SELECT pk, col0 FROM view_2_tab0_597 + +198 results returned but expected 200 +``` + + +```sql +SELECT * FROM view_3_tab0_597 + +Expected: ["69"] but got ["NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_602 AS SELECT pk, col0 FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE col0 >= 795) OR col3 >= 543 OR col3 > 991 AND (((col3 < 927 OR (col3 < 430)) AND (col0 > 590) OR (col0 >= 449 AND col4 > 729.35 OR (((col3 >= 745 AND col0 IN (376,260))) AND col0 = 742 OR ((col3 < 40… + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,174 tests as _sqlite_ + +* 6,548 skipped +* 207 failed +* 5% was OK + +Time: 3306.168ms + +---- ---- ---- ---- ---- ---- ---- +### 144/190 [`./test/index/view/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_799 UNION SELECT pk, col0 FROM view_2_tab0_799 + +36 results returned but expected 200 +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_804 + +Expected: ["11","576","47","71"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_804 + +Expected: ["11","47"] but got ["NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_813 + +Expected: ["49"] but got ["NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_817 + +Expected: ["23","34","36","67","68","8","91"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_837 + +Expected: ["54","65","74","76","96"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_869 AS SELECT pk, col0 FROM tab0 WHERE (((col0 > 796 OR ((((col0 < 642)) AND (((((col1 < 435.47 AND col0 = 220)) AND (col0 > 695) AND col3 > 66 AND (col4 > 262.50))) OR col0 > 828 AND ((col0 >= 606 AND col1 <= 821.18)) OR (col0 > 561) AND col4 < 21.23 OR col0 <= 506 AND col3… + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 6,935 tests as _sqlite_ + +* 108 skipped +* 2,712 failed +* 59% was OK + +Time: 24071.922ms + +---- ---- ---- ---- ---- ---- ---- +### 145/190 [`./test/index/view/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_870 UNION SELECT pk, col0 FROM view_2_tab0_870 + +16 results returned but expected 200 +``` + + +```sql +SELECT * FROM view_3_tab0_876 + +Expected: ["2","27","51","57","6","64","75"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_879 + +Expected: ["29","638","43","152","46","772","51","862"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT * FROM view_3_tab0_879 + +Expected: ["29","43","46","51"] but got ["NULL","NULL","NULL","NULL"] +``` + + +```sql +CREATE VIEW view_1_tab0_901 AS SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= … + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,949 tests as _sqlite_ + +* 4,823 skipped +* 1,217 failed +* 24% was OK + +Time: 13009.342ms + +---- ---- ---- ---- ---- ---- ---- +### 146/190 [`./test/index/view/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/1000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_739 UNION SELECT pk, col0 FROM view_2_tab0_739 + +1824 results returned but expected 2000 +``` + + +```sql +CREATE VIEW view_1_tab0_742 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) + +Unable to get property 'columns' of undefined or null reference +``` + +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,630 tests as _sqlite_ + +* 6,203 skipped +* 167 failed +* 16% was OK + +Time: 23627.937ms + +---- ---- ---- ---- ---- ---- ---- +### 147/190 [`./test/index/view/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10000/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT pk, col0 FROM tab0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT pk, col0 FROM view_1_tab0_1 UNION SELECT pk, col0 FROM view_2_tab0_1 + +6920 results returned but expected 20000 +``` + +#### ☓ Ran 10,622 tests as _sqlite_ + +* 271 failed +* 97% was OK + +Time: 3477844.363ms + +---- ---- ---- ---- ---- ---- ---- +### 148/190 [`./test/random/aggregates/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 20 / - 97 FROM tab0 + +Expected: ["0"] but got ["-0.206"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 0 col0 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT MIN ( DISTINCT col1 ) * - + AVG ( DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) ) AS col2, COUNT ( ALL - col0 ) AS col2 FROM tab2 AS cor0 + +Expected: ["NULL","3"] but got ["3"] +``` + + +```sql +SELECT DISTINCT - col1 AS col2, col2 AS col2 FROM tab1 WHERE - - CAST ( + - col1 AS REAL ) NOT BETWEEN - col0 AND NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT + CAST ( ( + SUM ( - 14 ) ) AS INTEGER ) AS col0 FROM tab1 + +'g' is undefined +``` + + +```sql +SELECT ALL + col0 AS col1, + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0 + +Expected: ["15","NULL","87","NULL","97","NULL"] but got ["15","47","87","10","97","99"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + col1 * CAST ( NULL AS INTEGER ) + + 67 AS col2 FROM tab2 WHERE ( + + col2 ) <= ( 42 ) + +Expected: ["NULL","NULL"] but got ["67","67"] +``` + + +```sql +SELECT + MIN ( - 82 ) AS col0 FROM tab2 WHERE - + 5 * + col1 / - CAST ( NULL AS INTEGER ) IS NULL + +Expected: ["-82"] but got ["NULL"] +``` + + +```sql +SELECT ALL MIN ( ALL + 80 ) AS col2, 27 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + 95 + + 63 AND + 0 + +Expected: ["NULL","27"] but got ["27","NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 JOIN tab2 cor1 ON + ( 90 ) IS NOT NULL, tab0 AS cor2 + +Parse error on line 1: +...+ ( 90 ) IS NOT NULL, tab0 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT col2 + + 76 / - ( - + col1 ) AS col1, 71 + col0 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 + +Expected: ["24","NULL","40","NULL","59","NULL"] but got ["24.490","NULL","40.987","NULL","59.134","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,588 failed +* 84% was OK + +Time: 23222.128ms + +---- ---- ---- ---- ---- ---- ---- +### 149/190 [`./test/random/aggregates/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col1, + col2 col1 FROM tab2 + +Expected: ["51","23","67","58","77","40"] but got ["23","23","40","40","58","58"] +``` + + +```sql +SELECT + ( CAST ( NULL AS REAL ) ) - col0 AS col1 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL - 19 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * 44 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT - - CAST ( MAX ( ALL + col1 ) AS INTEGER ) FROM tab2 AS cor0 + +'g' is undefined +``` + + +```sql +SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT 16 AS col0 FROM tab0 WHERE NOT + 71 * + + CAST ( NULL AS INTEGER ) * - 24 + - ( - col2 ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL MAX ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT - 85 * col0 + col0 BETWEEN - 82 AND NULL + +Expected: ["99"] but got ["NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + 36 / + - 21 AS col1, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 + +Expected: ["NULL","NULL"] but got ["0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,374 failed +* 86% was OK + +Time: 22532.842ms + +---- ---- ---- ---- ---- ---- ---- +### 150/190 [`./test/random/aggregates/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT CAST ( + SUM ( ALL - 37 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 + +'g' is undefined +``` + + +```sql +SELECT DISTINCT + - SUM ( + CAST ( NULL AS INTEGER ) ) + - 23 AS col1 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-23"] +``` + + +```sql +SELECT + - 40 / + + col2 AS col2 FROM tab2 AS cor0 + +Expected: ["-1","-1","0"] but got ["-0.690","-1","-1.739"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + + + col1 IN ( 37 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - + CAST ( NULL AS INTEGER ) + 77 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["77","77","77"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS REAL ) * - 52 * - col1 * + 92 AS col1 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL IS NULL ) + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + + 45 IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * ( - SUM ( col2 ) ) FROM tab1 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,508 failed +* 84% was OK + +Time: 22883.825ms + +---- ---- ---- ---- ---- ---- ---- +### 151/190 [`./test/random/aggregates/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT ALL 57 - + CAST ( NULL AS INTEGER ) + - + col2 AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-42","10","47"] +``` + + +```sql +SELECT ALL + 54 / 64 AS col0 FROM tab1 AS cor0 + +Expected: ["0","0","0"] but got ["0.844","0.844","0.844"] +``` + + +```sql +SELECT ALL - CAST ( + MAX ( DISTINCT - col2 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 / + col1 / - - 59 * 70 / col0 ) + +'g' is undefined +``` + + +```sql +SELECT DISTINCT COUNT ( * ) * + - CAST ( NULL AS REAL ) AS col0 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT + col2 + + col1, col2 * + - 52 * - col1 AS col0, - - ( + 43 ) / - ( + col2 ) + col0 - + col1 + + col0 * 87 AS col1 FROM tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL 73 * + SUM ( - 22 ) * + 80 AS col0, + 1 + + + 83 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["-385440","NULL"] but got ["-385440","1"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NOT - 57 + + 29 NOT BETWEEN + 93 AND + ( + col2 ) ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT 55 / + CAST ( NULL AS INTEGER ), col2 * 46 + col1 + + CAST ( NULL AS INTEGER ) + - col2 * - col0 AS col0 FROM tab2 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","2167","NULL","4477","NULL","7085"] +``` + + +```sql +SELECT ALL - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 + +Expected: ["1"] but got ["NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col2, col1 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","51","0","67","0","77"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,666 failed +* 83% was OK + +Time: 23973.451ms + +---- ---- ---- ---- ---- ---- ---- +### 152/190 [`./test/random/aggregates/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT 63 / col1 AS col2 FROM tab2 + +Expected: ["0","1"] but got ["0.818","0.940","1.235"] +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, col0 - + 58 FROM tab2 AS cor0 + +Expected: ["NULL","-12","NULL","17","NULL","6"] but got ["0","-12","0","17","0","6"] +``` + + +```sql +SELECT - - col2 * col0 + + - 40, CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - CAST ( + COUNT ( DISTINCT + - col2 ) AS INTEGER ) FROM tab1 + +'g' is undefined +``` + + +```sql +SELECT ALL + col2 FROM tab2 WHERE NOT - col0 + col0 BETWEEN - col0 AND ( - col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT MIN ( 38 ) AS col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL ) + +Expected: ["NULL"] but got ["38"] +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE 46 IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + + COUNT ( * ) AS col1, MIN ( - - 79 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL + +Expected: ["0","NULL"] but got ["NULL"] +``` + + +```sql +SELECT ALL - - col1 / - - col2 FROM tab2 AS cor0 + +Expected: ["1","1","2"] but got ["1.155","1.925","2.217"] +``` + + +```sql +SELECT ALL + + CAST ( NULL AS INTEGER ), ( - col2 ) * + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` + + +```sql +SELECT DISTINCT col1 AS col1, + 34 / + CAST ( NULL AS INTEGER ) + col2 * - - col1 * + 65 col1 FROM tab2 + +Expected: ["51","NULL","67","NULL","77","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL - MAX ( ALL - - col1 ) AS col0 FROM tab2 WHERE NOT ( col0 ) + 87 IN ( - + 12, - 20, - - col0 ) + +Expected: ["-77"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,688 failed +* 83% was OK + +Time: 27035.690ms + +---- ---- ---- ---- ---- ---- ---- +### 153/190 [`./test/random/aggregates/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT + COUNT ( * ) + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT col2, 95 AS col2 FROM tab0 + +Expected: ["10","95","47","95","99","95"] but got ["95","95","95","95","95","95"] +``` + + +```sql +SELECT ALL - col0 * + 64 * - CAST ( NULL AS INTEGER ) FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT - CAST ( + col1 AS REAL ) * col2 + CAST ( NULL AS INTEGER ), 92 AS col2 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT - CAST ( AVG ( + col0 ) AS INTEGER ) FROM tab0 AS cor0 + +'g' is undefined +``` + + +```sql +SELECT col0 * - + 59 * - - col1 col1, col0 * - col2 * 90 AS col2, ( - col1 ) AS col2 FROM tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - - col2 AS col2 FROM tab0 WHERE NOT - + ( col1 ) IN ( col1 * - + 99 + + col1, + 70 / 67, col1 * - col2, + - col2 + + col1 - + + col1, - col0, col2 + + + 94, - + 28 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL, tab1 AS cor2 + +Parse error on line 1: +...NOT NULL IS NOT NULL, tab1 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + + +```sql +SELECT - MIN ( + col1 ) AS col0, 84 FROM tab1 AS cor0 WHERE NOT ( - 48 ) IS NOT NULL + +Expected: ["NULL","84"] but got ["84","NULL"] +``` + + +```sql +SELECT DISTINCT + + MAX ( col2 ) FROM tab0 AS cor0 WHERE NOT 38 BETWEEN NULL AND + col1 + +Expected: ["99"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT DISTINCT + 20 / 18 FROM tab1 + +Expected: ["1"] but got ["1.111"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,632 failed +* 83% was OK + +Time: 22319.778ms + +---- ---- ---- ---- ---- ---- ---- +### 154/190 [`./test/random/aggregates/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT COUNT ( * ) / + 45 AS col1, 95 FROM tab0 + +Expected: ["0","95"] but got ["95","0.067"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 - + - col1 + ( col0 ) + CAST ( NULL AS INTEGER ) * 18 ) IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 + +Expected: ["NULL"] but got ["3"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) * 8 AS col1 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ( + CAST ( COUNT ( * ) AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) / - - 78 FROM tab0 + +'g' is undefined +``` + + +```sql +SELECT ALL - CAST ( NULL AS REAL ) - + + 63 - + 61 + + 36 + - col0 - 18 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 33 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT ( - 38 ) / + col2 AS col0, col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 + +Expected: ["-3","NULL","0","NULL"] but got ["-0.384","0","-0.809","0","-3.800","0"] +``` + + +```sql +SELECT DISTINCT MAX ( ALL - 6 ) FROM tab2 WHERE NOT - col1 BETWEEN 33 + - 90 AND NULL + +Expected: ["-6"] but got ["NULL"] +``` + + +```sql +SELECT * FROM tab1 cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL < ( NULL ) + +54 results returned but expected 18 +``` + + +```sql +SELECT DISTINCT 9 + COUNT ( * ) AS col2, AVG ( DISTINCT + + col2 ) col2, - MAX ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL + +Expected: ["9","NULL","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,649 failed +* 83% was OK + +Time: 22486.823ms + +---- ---- ---- ---- ---- ---- ---- +### 155/190 [`./test/random/aggregates/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - + col2 + col1 / - + 86 AS col1 FROM tab1 AS cor0 + +Expected: ["-59","-68","-96"] but got ["-59.058","-68.547","-96.163"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + col1 + - 68 + col0 * + col2 AS col2 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["1041","2569","4349"] +``` + + +```sql +SELECT col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 88 * - col1 AND - col2 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT * FROM tab2 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT - + 94 = NULL + +54 results returned but expected 18 +``` + + +```sql +SELECT ALL - 11 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( + 58 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE - 70 IS NOT NULL + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + CAST ( + MAX ( - 43 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - col1 ) + col2 + +'g' is undefined +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 87 < - - 14 + + 1 * col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col0 + - - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","15","0","87","0","97"] +``` + + +```sql +SELECT - 34 + + COUNT ( * ) * 2 - - COUNT ( * ) AS col1, MAX ( + 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL + +Expected: ["-34","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + + SUM ( DISTINCT col0 ) / + - CAST ( - COUNT ( * ) AS INTEGER ) + - 82 + - + COUNT ( * ) FROM tab1 AS cor0 + +Expected: ["-10"] but got ["NULL"] +``` + + +```sql +SELECT - + COUNT ( * ) * - + 68 - + SUM ( DISTINCT col0 ) col2, + MAX ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 cor1 ON NOT 86 IS NOT NULL, tab0 AS cor2 + +Parse error on line 1: +...N NOT 86 IS NOT NULL, tab0 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,634 failed +* 83% was OK + +Time: 21986.239ms + +---- ---- ---- ---- ---- ---- ---- +### 156/190 [`./test/random/aggregates/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - CAST ( - col0 AS INTEGER ) IN ( col2, + col2 ) + +Expected: ["-3"] but got ["0"] +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 BETWEEN NULL AND - + col1 + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - 25 * + CAST ( + + COUNT ( ALL - 61 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 + +'g' is undefined +``` + + +```sql +SELECT ALL + ( - AVG ( - CAST ( NULL AS INTEGER ) ) ) + - ( - 23 ) FROM tab0 + +Expected: ["NULL"] but got ["23"] +``` + + +```sql +SELECT ALL CAST ( - - col1 AS INTEGER ) / col1 + + col0 + - + CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab0 + +Expected: ["NULL","NULL","NULL"] but got ["16","88","98"] +``` + + +```sql +SELECT COUNT ( * ) / - 3, - 4 / CAST ( + + AVG ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 + +Expected: ["-1","0"] but got ["-1","NULL"] +``` + + +```sql +SELECT DISTINCT col2 + col2 AS col1 FROM tab2 WHERE NOT - 89 * CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 36 ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) + - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + + col2 - - CAST ( NULL AS INTEGER ) + + 20, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 + +Expected: ["NULL","NULL"] but got ["119","0","30","0","67","0"] +``` + + +```sql +SELECT DISTINCT + 6 * - 31 + col1 AS col1, + 34 / - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 + +Expected: ["-139","NULL","-172","NULL","-181","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT col0 AS col1, col2 + col2 + + - 44 col1 FROM tab0 AS cor0 + +Expected: ["15","50","87","-24","97","154"] but got ["-24","-24","154","154","50","50"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,634 failed +* 83% was OK + +Time: 22160.964ms + +---- ---- ---- ---- ---- ---- ---- +### 157/190 [`./test/random/aggregates/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS REAL ) IS NOT NULL ) + +Wrong conversion type +``` + + +```sql +SELECT ALL - + 1 * - col0 + - - 96 * ( + + 92 ) - 81 / - - ( + col0 ) AS col0 FROM tab0 AS cor0 + +Expected: ["8842","8919","8929"] but got ["8841.600","8918.069","8928.165"] +``` + + +```sql +SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + MIN ( ALL - 45 ) AS col1 FROM tab0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL + - col0 AS col0, CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0 + +Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["-15","0","-87","0","-97","0"] +``` + + +```sql +SELECT DISTINCT - + 86 + - - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 + +'g' is undefined +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT col2 IN ( - ( col1 ) ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL - 14 AS col2, 94 AS col2, col2 FROM tab0 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT - + CAST ( NULL AS INTEGER ) + 3 AS col0 FROM tab2 WHERE + + col2 - - - ( + col1 ) - - col2 <> col0 + + - col1 + +Expected: ["NULL","NULL"] but got ["3","3"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,565 failed +* 84% was OK + +Time: 27038.201ms + +---- ---- ---- ---- ---- ---- ---- +### 158/190 [`./test/random/expr/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT 20 / - - 96 + CAST ( 90 AS INTEGER ) AS col2 + +Expected: ["90"] but got ["90.208"] +``` + + +```sql +SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT 67 * + 85 * - CAST ( - SUM ( - 52 ) AS INTEGER ) col2 + +'g' is undefined +``` + + +```sql +SELECT ALL 25 * + COUNT ( * ) + - 0 - + - 6 + + - ( + + CASE + CAST ( + + 38 AS REAL ) WHEN 3 THEN NULL WHEN + 42 THEN NULL WHEN - 80 THEN NULL ELSE 14 END ) AS col1, - 31 AS col0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2, + 77 / 37 + + + 90, + CASE - - MAX ( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM ( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST ( 16 AS INTEGER ) WH… + +Expected: ["2","92","NULL"] but got ["NULL","92.081"] +``` + + +```sql +SELECT - 37 AS col0, + MAX ( + - 74 ) * + - 55 / CAST ( - COUNT ( * ) AS INTEGER ) + 48 - - 10 + + 31 * - 27 * - 89 * - + 35 + +Expected: ["-37","-2611267"] but got ["-37","NULL"] +``` + + +```sql +SELECT SUM ( + 73 ) * - CASE WHEN NOT ( NOT 27 BETWEEN 15 AND - NULLIF ( - 63, - 28 + + 76 ) ) THEN NULL ELSE + 77 * + 69 END / - CAST ( - 69 AS INTEGER ) AS col0 + +Unable to get property 'toString' of undefined or null reference +``` + + +```sql +SELECT ALL CAST ( - - CASE + 81 WHEN - 91 THEN + 37 END AS INTEGER ), + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT - 80 + - CASE - CASE + COUNT ( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST ( NULL AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["NULL","0"] +``` + + +```sql +SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2 + +Expected: ["-46","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,839 failed +* 81% was OK + +Time: 23693.858ms + +---- ---- ---- ---- ---- ---- ---- +### 159/190 [`./test/random/expr/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT ALL COUNT ( * ) AS col0, - 83 AS col0 + +Expected: ["1","-83"] but got ["-83"] +``` + + +```sql +SELECT CAST ( - COUNT ( ALL 73 ) AS INTEGER ) + +'g' is undefined +``` + + +```sql +SELECT - CASE WHEN NOT NULL BETWEEN NULL AND NULL THEN 17 ELSE NULL END + + 12 + +Unable to get property 'toString' of undefined or null reference +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","-15"] +``` + + +```sql +SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) ) + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 + +Expected: ["67","63"] but got ["67","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,175 failed +* 88% was OK + +Time: 15551.098ms + +---- ---- ---- ---- ---- ---- ---- +### 160/190 [`./test/random/expr/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT + 62 / + SUM ( - 80 ) * + + 23 + + 38 + CAST ( + 31 AS INTEGER ) * + COUNT ( DISTINCT - 54 ) * + ( + 88 + - CAST ( 95 - COUNT ( * ) * 18 AS INTEGER ) ) + +Expected: ["379"] but got ["2765.966"] +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ), - 9 AS col0 + +Expected: ["NULL","-9"] but got ["0","-9"] +``` + + +```sql +SELECT - ( - CAST ( + - SUM ( DISTINCT - - 53 ) AS INTEGER ) ) + +'g' is undefined +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) + +Wrong conversion type +``` + + +```sql +SELECT + CASE + COUNT ( * ) WHEN + COALESCE ( + MAX ( DISTINCT - 17 ), 72 - + - 86 + + ( - CASE WHEN ( + CASE - 8 WHEN - 7 THEN NULL WHEN - 70 * + 18 THEN NULL ELSE 82 * + ( - - MIN ( + 47 ) ) + - SUM ( DISTINCT 97 ) END ) BETWEEN - 13 * + 57 AND - COUNT ( * ) * - 74 THEN 89 WHEN NOT - 12 >= NULL T… + +Unable to get property 'toString' of undefined or null reference +``` + + +```sql +SELECT ALL - 76 / + ( - - 64 ), - ( - COUNT ( * ) ) + + CASE - 49 WHEN - 8 THEN + + ( + COALESCE ( - 57, + 78, + 48 ) ) * + - CAST ( 44 AS INTEGER ) + - + 5 END col1 + +Expected: ["-1","NULL"] but got ["-1.188","NULL"] +``` + + +```sql +SELECT DISTINCT CASE WHEN NOT COUNT ( * ) IN ( + 75 ) THEN ( 79 ) WHEN + 9 IS NOT NULL THEN NULL END + +Expected: ["79"] but got ["NULL"] +``` + + +```sql +SELECT + + 14 * 93 + + CAST ( NULL AS INTEGER ) * + 60 col0, CASE - 49 WHEN + NULLIF ( + - 64, ( + 20 ) ) * + 13 / COUNT ( * ) THEN 85 / - - COUNT ( DISTINCT - 96 ) + - 38 ELSE NULL END + +Expected: ["NULL","NULL"] but got ["1302","NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","-15"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,481 failed +* 85% was OK + +Time: 19946.173ms + +---- ---- ---- ---- ---- ---- ---- +### 161/190 [`./test/random/expr/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT 0 AS col2, 27 AS col2 + +Expected: ["0","27"] but got ["27","27"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) * 60 AS col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT DISTINCT - - COUNT ( * ), 43 + CAST ( NULL AS REAL ) AS col0 + +Wrong conversion type +``` + + +```sql +SELECT + 29 * - NULLIF ( + 80, + CAST ( + NULLIF ( + - 4, - + COUNT ( * ) ) AS INTEGER ) * - 44 * - ( COALESCE ( 0, + 36 * 1 ) ) ) AS col1 + +'g' is undefined +``` + + +```sql +SELECT 30 / COALESCE ( - COALESCE ( + + CAST ( NULL AS INTEGER ), 86 + + 46 ), - - 46 ) + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT 6 * - 8 * CASE - MAX ( ALL - + 82 ) WHEN + COUNT ( * ) THEN + CASE WHEN NOT COUNT ( * ) BETWEEN 77 AND ( ( + COUNT ( - 48 ) ) ) THEN NULL WHEN NULL IS NULL THEN NULL ELSE - 98 END * 3 WHEN + 75 * COUNT ( * ) THEN NULL END * 62 + +Unable to get property 'toString' of undefined or null reference +``` + + +```sql +SELECT 24 - - - CASE - + 7 WHEN - COUNT ( * ) THEN + SUM ( DISTINCT 34 ) WHEN + + 14 THEN + 3 / + 91 END col2, 1 * - CAST ( NULL AS INTEGER ) / - + 66, 61 col1 + +Expected: ["NULL","NULL","61"] but got ["NULL","0","61"] +``` + + +```sql +SELECT - + 55 / + - 69, + 81 * 68 + + - ( CASE + 72 WHEN - 90 * + 85 + - COALESCE ( 84, - + ( + COUNT ( * ) ) + 60, + 25 / 41 ) THEN + - 72 * 22 - - 36 - - + 93 WHEN 15 THEN - 38 END ) * 22 AS col0 + +Expected: ["0","NULL"] but got ["0.797","NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ), ( + CAST ( NULL AS INTEGER ) ) + + 79, - - 10 AS col1 + +Expected: ["NULL","NULL","10"] but got ["0","79","10"] +``` + + +```sql +SELECT ALL COUNT ( * ) / + - 95 + +Expected: ["0"] but got ["-0.011"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,064 failed +* 79% was OK + +Time: 24610.529ms + +---- ---- ---- ---- ---- ---- ---- +### 162/190 [`./test/random/expr/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT + ( - ( - 91 ) ) / - 94 * + - 88 AS col1 + +Expected: ["0"] but got ["0.011"] +``` + + +```sql +SELECT + - 87 / - - 47 + + 6 + - CAST ( + COUNT ( * ) AS INTEGER ) + +'g' is undefined +``` + + +```sql +SELECT + + 43 + - CAST ( NULL AS INTEGER ) AS col0 + +Expected: ["NULL"] but got ["43"] +``` + + +```sql +SELECT DISTINCT COALESCE ( + 51, + COUNT ( * ) / CASE WHEN NOT NULL NOT IN ( 95, 16, - CASE - 72 WHEN - 83 THEN - 70 * + + CAST ( NULL AS REAL ) / + + 81 WHEN CAST ( + COUNT ( * ) AS REAL ) THEN + - 13 ELSE NULL END * + 74 * + COUNT ( * ) ) THEN 69 END + 27 ) AS col0 + +Wrong conversion type +``` + + +```sql +SELECT - CASE WHEN NOT + CASE + AVG ( ALL + + 26 ) WHEN ( + 47 ) + CAST ( + 26 AS INTEGER ) - - COUNT ( * ) * - COALESCE ( - - 44, + ( 80 ) ) + + + 47 THEN - 2 ELSE NULL END BETWEEN NULL AND - COUNT ( * ) THEN + + 25 WHEN 92 + + + COUNT ( * ) <= ( + ( + 40 ) + 67 ) THEN NULL END * - 82 + 89 + +Unable to get property 'toString' of undefined or null reference +``` + + +```sql +SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ), - 10 + - + SUM ( DISTINCT + 37 ) + - CAST ( NULL AS INTEGER ) + 89 * 62 AS col0 + +Expected: ["NULL","NULL"] but got ["0","5471"] +``` + + +```sql +SELECT ALL 38 * - COALESCE ( 52, - + 49 / - 55 * + + 18, NULLIF ( + + 67, - + 39 ) ) / ( + COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) AS col0 + +Expected: ["-1976"] but got ["NULL"] +``` + + +```sql +SELECT ALL - 55 AS col1, - MAX ( ALL - 3 ) / MIN ( ALL + 53 ) * + CASE - - 47 WHEN - + 13 THEN AVG ( ALL - NULLIF ( 1, + + NULLIF ( - 69, 37 + 95 + - 77 ) ) ) ELSE NULL END * - 92 - 65 + - 51 * - 61 * 37 - COUNT ( * ) col1 + +Expected: ["-55","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col1, CASE + COUNT ( * ) WHEN - - 5 THEN + - 71 * + 32 / - 55 END / + 90 * - - 55 * - + NULLIF ( + - SUM ( ALL + 39 ), - 42 ) + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,064 failed +* 79% was OK + +Time: 28853.797ms + +---- ---- ---- ---- ---- ---- ---- +### 163/190 [`./test/random/expr/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT 89 * + CASE 39 WHEN + - 14 THEN NULL ELSE - + ( - COUNT ( * ) ) - - - 28 END * - - CAST ( - 86 AS INTEGER ) - - CASE + AVG ( + 89 ) WHEN - CAST ( - 27 AS REAL ) THEN - 76 + + CAST ( NULL AS INTEGER ) + + - 31 + 22 * - 82 * + + COUNT ( - + ( + - ( 29 ) ) ) ELSE - 0 END + 94 + +Wrong conversion type +``` + + +```sql +SELECT - 79 / 44 + + + 90 col1 + +Expected: ["89"] but got ["88.205"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 9 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL CASE + - 88 WHEN - COALESCE ( - CAST ( - 37 AS INTEGER ), + 62 ) - + COUNT ( * ) / 56 THEN - 58 WHEN 41 THEN NULL END, 82 / 81 AS col0 + +Expected: ["NULL","1"] but got ["NULL","1.012"] +``` + + +```sql +SELECT ALL - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0 + +'g' is undefined +``` + + +```sql +SELECT + CAST ( - + CASE WHEN NOT 4 NOT BETWEEN COUNT ( * ) AND NULL THEN + 22 END AS REAL ) * 73 * - 59 / - MAX ( DISTINCT - 71 ) + +Unable to get property 'toString' of undefined or null reference +``` + + +```sql +SELECT DISTINCT + MAX ( + - ( + 1 ) ) * 34 + + - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( DISTINCT - 24 ) / 41 + 68 * - CASE + 74 + - 34 * 20 WHEN 67 THEN NULL WHEN MIN ( + 97 ) + CAST ( - 84 - + 15 AS INTEGER ) * 27 THEN 56 ELSE NULL END + +Expected: ["NULL","NULL"] but got ["-34","NULL"] +``` + + +```sql +SELECT ( - 91 ) AS col0, - NULLIF ( + COUNT ( * ), ( + 67 ) * - CASE ( + COUNT ( * ) ) WHEN CASE + 85 WHEN + - 28 * - 66 THEN NULL WHEN + 94 THEN + 62 END + - 95 + CASE + + COALESCE ( - COALESCE ( 49, - ( - + ( + 72 ) ) / - + SUM ( 25 ), + 65, 15 * + NULLIF ( + - 36, + NULLIF ( NULLIF ( - COALESCE … + +Expected: ["-91","-1"] but got ["-91","NULL"] +``` + + +```sql +SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), ( - 87 ) / + COUNT ( * ) * - 62 * - 63 / + + 33 ) * 38, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + 52, + CAST ( NULL AS INTEGER ) + - NULLIF ( SUM ( ALL - - 73 ), + 53 - + 93 * - 72 + NULLIF ( - 49, + CAST ( NULL AS INTEGER ) ) + 30 ) col2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","-73"] +``` + + +```sql +SELECT CASE ( - CASE - + ( + 60 ) WHEN - COALESCE ( - 43, + 42 ) + - - 23 THEN + - COUNT ( * ) ELSE - 44 * + 52 END ) WHEN - 44 THEN - 73 END + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * + 82 AS col0 + +Expected: ["NULL","NULL"] but got ["0"] +``` + + +```sql +SELECT - - 2 / - 75 * - 50 + - + 18 + - 63 + +Expected: ["-81"] but got ["-80.999"] +``` + + +```sql +SELECT ALL + 65 AS col1, CASE + + 3 WHEN + + 8 THEN 69 ELSE NULL END col1 + +Expected: ["65","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,085 failed +* 79% was OK + +Time: 23867.975ms + +---- ---- ---- ---- ---- ---- ---- +### 164/190 [`./test/random/expr/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + 77 + - 25 + COALESCE ( 17, COUNT ( * ), - NULLIF ( + 14, + - ( - 78 ) * - COUNT ( * ) ) ) + CAST ( NULL AS REAL ) AS col2 + +Wrong conversion type +``` + + +```sql +SELECT 64 / - - 90 + + 22 * + ( - 0 ) AS col1 + +Expected: ["0"] but got ["0.711"] +``` + + +```sql +SELECT 64 - + - CASE + 33 WHEN + 80 * 8 * - - 62 + + 88 + - + 5 * 63 / 11 THEN - + COALESCE ( - 93, - 63 ) ELSE NULL END + - - 51 - + + 99 AS col1, 79 AS col1 + +Expected: ["NULL","79"] but got ["79","79"] +``` + + +```sql +SELECT + + 92 * NULLIF ( COALESCE ( + - 44, 60 * + 41 ), - - 77 ) * 82 * CAST ( NULLIF ( COUNT ( * ), - 7 * - 79 + + + 35 ) AS INTEGER ) + + + 48 + +'g' is undefined +``` + + +```sql +SELECT 6 + - + 0 * + 51 / + ( CASE WHEN + 76 BETWEEN - 93 * + + CAST ( - - 7 AS INTEGER ) * 71 * + + 10 - + AVG ( DISTINCT - 95 ) AND - 61 THEN - - 39 WHEN 73 BETWEEN 8 AND - ( 25 ) + 86 THEN + COUNT ( * ) * AVG ( 33 ) END ) * 89 AS col1 + +Unable to get property 'toString' of undefined or null reference +``` + + +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, CASE - 45 WHEN 29 THEN + - COUNT ( * ) WHEN + 74 THEN NULL END AS col1 + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT - 44 / - 97 - + + 36 + + 0 * 40 + + 15 * - MIN ( - 42 ) * + + 25 AS col1, - CASE - + 73 WHEN COALESCE ( - MAX ( ALL - - 70 ), + 94 * + COALESCE ( - 20, - 90 * - 32 + - 35 + - + 4, + 62 + - NULLIF ( + + ( 95 ), + 65 ), 26 ) * - 49 + + NULLIF ( 43, - 91 ) ) THEN - 62 * + 4 * + AVG ( 92 ) - - 7… + +Expected: ["15714","NULL"] but got ["15714.454","NULL"] +``` + + +```sql +SELECT + COALESCE ( - MAX ( + - 18 ), - - ( + COALESCE ( 15, - SUM ( ALL - + 6 ) ) ) ) / - - ( CAST ( + + MIN ( ALL - 30 ) AS INTEGER ) ) + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - 69 + + CAST ( NULL AS INTEGER ) AS col1, - 40 - - 10 * + 5 AS col0, + SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 74 + +Expected: ["NULL","10","NULL"] but got ["-69","10","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,043 failed +* 79% was OK + +Time: 22757.199ms + +---- ---- ---- ---- ---- ---- ---- +### 165/190 [`./test/random/expr/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - 83 / - 36 AS col1 + +Expected: ["2"] but got ["2.306"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) * - + 40 col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - MIN ( + - 66 ) * + + 86 + + - SUM ( + 97 ) - - + 4 * ( + MAX ( - 8 ) ) * CASE 6 WHEN CAST ( + + 22 AS REAL ) THEN - 82 WHEN - 14 THEN NULL END AS col0 + +Wrong conversion type +``` + + +```sql +SELECT - 33 AS col0, 3 / + COUNT ( * ) + - CASE - 63 WHEN + + 43 * + COUNT ( * ) THEN + 77 * + ( 69 ) WHEN - + ( + 24 ) + + 83 * - - 92 THEN + 91 END + - - 12 * + 64 col0 + +Expected: ["-33","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT CASE WHEN NOT NULLIF ( 11, - 27 ) BETWEEN - 40 + + 42 AND - CASE CAST ( + 34 AS INTEGER ) WHEN ( 22 ) + + 40 THEN - 15 * 68 ELSE - 4 * 78 END THEN 72 END / COALESCE ( + 58, + MIN ( - 44 ) ) AS col2 + +Unable to get property 'toString' of undefined or null reference +``` + + +```sql +SELECT DISTINCT 27 col1, - CASE - + 30 WHEN + 37 THEN NULL WHEN + 0 + 2 * - 60 THEN + ( 95 ) / COALESCE ( - 40, 57 / - 17 ) WHEN - 64 - - 98 THEN NULL ELSE NULL END AS col1 + +Expected: ["27","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL + 99 * + CAST ( - + COUNT ( ALL - 18 ) AS INTEGER ) AS col2 + +'g' is undefined +``` + + +```sql +SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ), 33 * + CAST ( - 13 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) / + + 12 * - 39 + +Expected: ["NULL","NULL"] but got ["-1","0"] +``` + + +```sql +SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0, 32 + + 91 + - 95 + - NULLIF ( + CASE + 52 WHEN - + 61 + - + 37 THEN + - 27 - + - 74 / MAX ( ALL + 70 ) WHEN - 37 THEN NULL WHEN + 66 THEN NULL WHEN + ( + MIN ( DISTINCT 35 ) ) + + 29 * - 72 THEN - MIN ( DISTINCT + - ( - 20 ) ) * - + 53… + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,097 failed +* 79% was OK + +Time: 24103.519ms + +---- ---- ---- ---- ---- ---- ---- +### 166/190 [`./test/random/expr/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT 48 / + + 76 + + - 81 + - 78 + + - 92 + +Expected: ["-251"] but got ["-250.368"] +``` + + +```sql +SELECT ALL - ( - - CAST ( COUNT ( * ) AS INTEGER ) ) + 92 + +'g' is undefined +``` + + +```sql +SELECT ALL - 85 * - CAST ( NULL AS INTEGER ) AS col2, 26 + +Expected: ["NULL","26"] but got ["0","26"] +``` + + +```sql +SELECT DISTINCT - 58 + + CAST ( NULL AS REAL ) - - 6 + + COUNT ( DISTINCT - 58 ) * + 23 * - COUNT ( * ) + 11 AS col2 + +Wrong conversion type +``` + + +```sql +SELECT COALESCE ( 8, - 90 ) * + 74, + CASE - COUNT ( * ) WHEN + - CASE WHEN - 50 NOT BETWEEN + ( - 5 ) + 1 * - 15 AND COUNT ( * ) THEN - 87 * + 60 END THEN NULL WHEN + 17 THEN 0 * CAST ( - CAST ( 8 AS INTEGER ) AS INTEGER ) END / 82 + - 48 * - 21 AS col1 + +Unable to get property 'toString' of undefined or null reference +``` + + +```sql +SELECT DISTINCT COUNT ( * ) / - COALESCE ( + + CAST ( NULL AS INTEGER ), + - 93 + - + 11 * + 76 ), 24 / ( 29 ) + +Expected: ["0","0"] but got ["NULL","0.828"] +``` + + +```sql +SELECT DISTINCT - CASE 14 WHEN 17 + 74 THEN NULL ELSE CASE 63 WHEN + 61 THEN 95 * - - COUNT ( * ) * COUNT ( * ) - + 76 ELSE NULL END + - + 2 + 90 - 20 - - 39 / + 45 * - 43 END col2, 38 + +Expected: ["NULL","38"] but got ["38","NULL"] +``` + + +```sql +SELECT 57 + + CASE + COUNT ( * ) WHEN - 80 THEN + + 58 END - - 44 * + + 74 / - 67 + ( - COUNT ( * ) ) * + 48, CAST ( NULL AS INTEGER ) + - 20 AS col1 + +Expected: ["NULL","NULL"] but got ["NULL","-20"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + 7 + - CAST ( - 45 AS INTEGER ) - - - 61 + - - 1 - 74, + AVG ( - - CAST ( NULL AS INTEGER ) ) + 63 AS col2 + +Expected: ["NULL","NULL"] but got ["-82","63"] +``` + + +```sql +SELECT ALL + 2 col0, ( 32 ) + - 3 + CASE - 81 WHEN - - 81 THEN 21 END + + 27 + + 93 AS col0 + +Expected: ["2","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,139 failed +* 78% was OK + +Time: 22828.629ms + +---- ---- ---- ---- ---- ---- ---- +### 167/190 [`./test/random/expr/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT - NULLIF ( 52, 73 ) / - 38 AS col1 + +Expected: ["1"] but got ["1.368"] +``` + + +```sql +SELECT ALL 8 + - CAST ( NULL AS INTEGER ) * ( - 85 ) AS col0 + +Expected: ["NULL"] but got ["8"] +``` + + +```sql +SELECT 22 col1, 35 * + CASE 28 WHEN 4 THEN NULL WHEN - 57 THEN 46 END * + 57 / - 91 AS col1 + +Expected: ["22","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL - 53, 56 * ( + ( + ( - CAST ( NULL AS REAL ) ) ) ) + - + 68 - - - MIN ( - - ( - 69 ) ) * - 98 + + MAX ( + 97 ) * CASE - 4 WHEN - 23 * 97 + COUNT ( DISTINCT 40 ) THEN 80 WHEN 54 * 2 THEN - 96 ELSE - MAX ( 94 ) END AS col1 + +Wrong conversion type +``` + + +```sql +SELECT ALL + CAST ( + ( COUNT ( * ) ) AS INTEGER ) + +'g' is undefined +``` + + +```sql +SELECT ALL + COUNT ( * ) AS col1, 53 / CASE - 61 WHEN 73 + COUNT ( * ) THEN COUNT ( * ) * - 10 + - - 16 + + + 38 / COUNT ( DISTINCT 78 ) + + 15 + 1 WHEN - + 91 THEN + COUNT ( * ) + 49 END + 14 / 6 col1 + +Expected: ["1","NULL"] but got ["NULL"] +``` + + +```sql +SELECT CASE - COALESCE ( + 2, - CAST ( NULL AS INTEGER ) ) WHEN + + 11 * - + 93 * 31 THEN 1 + + 71 WHEN - 72 THEN NULL END - - CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN - 33 BETWEEN ( NULL ) AND - 14 THEN + 27 END - + 30 / - COALESCE ( 26, - NULLIF ( - 59, - COUNT ( * ) ) + + COUNT ( * ) + + 41… + +Unable to get property 'toString' of undefined or null reference +``` + + +```sql +SELECT + + 74 col0, CASE WHEN NOT NULL >= ( NULL ) THEN NULL ELSE 80 END * - 68 + +Expected: ["74","-5440"] but got ["74","NULL"] +``` + + +```sql +SELECT - 12 * + ( - CAST ( NULL AS INTEGER ) ) AS col0, + CASE MAX ( - 48 ) WHEN 20 * - 45 THEN COUNT ( * ) WHEN - 8 THEN 60 ELSE NULL END AS col0 + +Expected: ["NULL","NULL"] but got ["NULL"] +``` + + +```sql +SELECT + ( + + 12 ) + - + 36 + - 83 * - 12 * ( - 71 ) * + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + ( + 21 ) ) * 16 + - 97, CAST ( NULL AS INTEGER ) * - 90 AS col2 + +Expected: ["NULL","NULL"] but got ["-121","0"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,046 failed +* 79% was OK + +Time: 26831.721ms + +---- ---- ---- ---- ---- ---- ---- +### 168/190 [`./test/random/groupby/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT - tab1.col0 * 84 + + 38 AS col2 FROM tab1 GROUP BY tab1.col0 + +Expected: ["-1810","-2314","-6850"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - + cor0.col1 FROM tab0, tab0 cor0 GROUP BY cor0.col1 + +Expected: ["-81","0"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1 + +Expected: ["41","59","61"] but got ["NULL"] +``` + + +```sql +SELECT ALL 59 / 26 FROM tab2 AS cor0 GROUP BY cor0.col0 + +Expected: ["2","2","2"] but got ["2.269","2.269","2.269"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 GROUP BY tab0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2 cor0 GROUP BY cor0.col1 + +Wrong conversion type +``` + + +```sql +SELECT ALL cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT ( cor0.col1 ) IS NULL + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,287 failed +* 57% was OK + +Time: 24811.594ms + +---- ---- ---- ---- ---- ---- ---- +### 169/190 [`./test/random/groupby/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT 47 / + cor0.col1 FROM tab1 AS cor0 GROUP BY col1 + +Expected: ["0","1","7"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col0 + +Expected: ["0","81"] but got ["NULL"] +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 GROUP BY col0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL + cor0.col1 + + ( col1 ) AS col1 FROM tab0 AS cor0 GROUP BY col1 + +Expected: ["0","162"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - NULLIF ( + cor0.col2 * cor0.col1, - cor0.col1 ) + - 31 * cor0.col2 - - col1 col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2 + +Expected: ["-2607","NULL"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY col0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 GROUP BY cor1.col1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT 2 / + 19 FROM tab1 AS cor0 GROUP BY col0 + +Expected: ["0"] but got ["0.105"] +``` + + +```sql +SELECT + cor1.col0 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0, cor0.col2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT ALL - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT ( cor0.col1 ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT + + CAST ( NULL AS INTEGER ) * 11 FROM tab0, tab2 AS cor0 GROUP BY tab0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL 86 + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor1.col0 + +Expected: ["112","112","129","129","169","169"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL CASE - cor0.col1 WHEN cor0.col1 THEN NULL ELSE cor0.col1 END FROM tab0 cor0 GROUP BY cor0.col1 + +Expected: ["81","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT cor1.col0 - + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0, cor1.col0 + +1 results returned but expected 9 +``` + + +```sql +SELECT NULLIF ( cor0.col1, cor0.col1 * 4 + - col1 ) * + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col1 + +Expected: ["3483","NULL","NULL"] but got ["NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,144 failed +* 58% was OK + +Time: 20921.777ms + +---- ---- ---- ---- ---- ---- ---- +### 170/190 [`./test/random/groupby/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - ( 50 ) + tab1.col2 AS col1 FROM tab1 GROUP BY col2 + +Expected: ["-42","-5","21"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1 + +Expected: ["41","59","61"] but got ["NULL"] +``` + + +```sql +SELECT - 66 + cor0.col1 FROM tab0 AS cor0 GROUP BY col1 + +Expected: ["-66","15"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - 70 / - 15 + col1 AS col2 FROM tab0 GROUP BY tab0.col1 + +Expected: ["4","85"] but got ["4.667","85.667"] +``` + + +```sql +SELECT NULLIF ( + col1, cor0.col1 * - ( cor0.col1 ) ) AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0 + +Expected: ["81","NULL","NULL"] but got ["0","0","81"] +``` + + +```sql +SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab0 cor0 GROUP BY cor0.col1 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 GROUP BY cor0.col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL + cor0.col2 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor0.col2, cor1.col1 + +Expected: ["58","58","79","79","87","87"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2, cor0.col1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - tab2.col2 FROM tab2 GROUP BY tab2.col2 HAVING + col2 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - cor0.col2 * - cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor0.col2, cor1.col0 + +1 results returned but expected 9 +``` + + +```sql +SELECT + cor0.col1 - + NULLIF ( cor0.col1, COALESCE ( - cor0.col1, - cor0.col0, cor0.col1 + 52 ) ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0 + +Expected: ["0","NULL","NULL"] but got ["NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,198 failed +* 58% was OK + +Time: 19115.911ms + +---- ---- ---- ---- ---- ---- ---- +### 171/190 [`./test/random/groupby/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT 49 - - col2 * cor0.col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col2 + +Expected: ["1993","49","49"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + tab1.col2 AS col1 FROM tab1 GROUP BY col2 + +Expected: ["45","71","8"] but got ["NULL"] +``` + + +```sql +SELECT 82 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["0","6642"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + 82 / 87 FROM tab0 GROUP BY tab0.col2 + +Expected: ["0","0","0"] but got ["0.943","0.943","0.943"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 92 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0 + +Expected: ["NULL"] but got ["92"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) FROM tab1 GROUP BY col1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT CASE cor0.col0 WHEN cor0.col2 * + cor0.col2 THEN cor0.col2 WHEN - 42 / cor0.col2 + cor0.col0 THEN + ( - cor0.col0 ) WHEN - col2 + - cor0.col0 THEN NULL END + NULLIF ( + cor0.col2, + cor0.col0 ) FROM tab0 cor0 GROUP BY cor0.col0, col2 + +Expected: ["53","NULL","NULL"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL - cor1.col1 + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1, cor0.col0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2 + +Wrong conversion type +``` + + +```sql +SELECT tab1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 GROUP BY tab1.col2 HAVING NOT tab1.col2 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT cor1.col1 + - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor1.col1 + +Expected: ["-41","-59","-61","20","22","40"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,465 failed +* 55% was OK + +Time: 18111.457ms + +---- ---- ---- ---- ---- ---- ---- +### 172/190 [`./test/random/groupby/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT ALL - - ( - tab0.col0 ) FROM tab0 GROUP BY tab0.col0 + +Expected: ["-26","-43","-83"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) + - 35 FROM tab1 AS cor0 GROUP BY cor0.col0 + +Expected: ["NULL","NULL","NULL"] but got ["-35","-35","-35"] +``` + + +```sql +SELECT DISTINCT - cor0.col0 * - cor0.col0 AS col1 FROM tab1 cor0 GROUP BY col0 + +Expected: ["484","6724","784"] but got ["NULL"] +``` + + +```sql +SELECT ALL cor0.col1 + col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1 + +Expected: ["0","162"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor0.col2, cor1.col1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT 12 / 68 FROM tab2 GROUP BY tab2.col2 + +Expected: ["0","0","0"] but got ["0.176","0.176","0.176"] +``` + + +```sql +SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 GROUP BY tab0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT NULLIF ( + 79, + cor0.col2 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1 + +Expected: ["79","79","NULL"] but got ["79","79","79"] +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY col1 + +Wrong conversion type +``` + + +```sql +SELECT + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2, cor1.col1 + +Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1 HAVING NOT ( tab1.col1 ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - tab1.col2 * + 46 FROM tab1 GROUP BY tab1.col2 + +Expected: ["-2070","-3266","-368"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL - + NULLIF ( tab0.col1, + 29 / - 88 ) AS col0 FROM tab0 GROUP BY tab0.col1 + +Expected: ["-81","NULL"] but got ["NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,369 failed +* 56% was OK + +Time: 19390.337ms + +---- ---- ---- ---- ---- ---- ---- +### 173/190 [`./test/random/groupby/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + tab2.col1 col2 FROM tab2 GROUP BY col1 + +Expected: ["41","59","61"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, col1 + +Expected: ["0","81"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - 0 / - cor0.col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2 + +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY col1, cor0.col1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT 3 / + 5 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0 + +Expected: ["0","0","0"] but got ["0.600","0.600","0.600"] +``` + + +```sql +SELECT - - CAST ( NULL AS REAL ) AS col2 FROM tab1 GROUP BY tab1.col2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 GROUP BY tab0.col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT - col1 * - CAST ( NULL AS INTEGER ) + - 97 FROM tab0 GROUP BY tab0.col1 + +Expected: ["NULL","NULL"] but got ["-97","-97"] +``` + + +```sql +SELECT ALL - 90 / - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor1.col0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1 HAVING NOT + tab0.col1 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT ALL + cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 + +Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL + cor0.col2 * NULLIF ( - cor0.col1, cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1 + +Expected: ["-1944","NULL","NULL"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT cor0.col1 * + CASE cor0.col0 / + cor0.col2 WHEN + cor0.col0 / cor0.col0 THEN cor0.col1 * + cor0.col1 WHEN cor0.col0 / - cor0.col0 THEN NULL END FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2 + +Expected: ["205379","68921","NULL"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT NULLIF ( cor0.col1, + cor0.col1 + + cor0.col1 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["81","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,488 failed +* 55% was OK + +Time: 22982.409ms + +---- ---- ---- ---- ---- ---- ---- +### 174/190 [`./test/random/groupby/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT col0 * - cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0 + +Expected: ["-1806","-650","-6806"] but got ["NULL"] +``` + + +```sql +SELECT ALL - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col1, cor0.col1 + +Expected: ["-41","-59","-61"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL + cor0.col1 * - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1 + +Expected: ["-6561","0"] but got ["NULL","NULL"] +``` + + +```sql +SELECT + 92 / + 53 FROM tab2 GROUP BY tab2.col2 + +Expected: ["1","1","1"] but got ["1.736","1.736","1.736"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0 GROUP BY cor0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 + +Wrong conversion type +``` + + +```sql +SELECT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2, cor0.col0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + tab1.col1 FROM tab1 GROUP BY tab1.col1 HAVING tab1.col1 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT - cor0.col0 col1 FROM tab2 AS cor0 GROUP BY cor0.col0 + +Expected: ["-15","-91","-92"] but got ["NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,625 failed +* 53% was OK + +Time: 20379.562ms + +---- ---- ---- ---- ---- ---- ---- +### 175/190 [`./test/random/groupby/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + col2 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2 + +Expected: ["-1944","0","0"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT - cor0.col1 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["-81","0"] but got ["NULL","NULL"] +``` + + +```sql +SELECT DISTINCT cor0.col2 + - cor0.col2 + + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2 + +Expected: ["41","59","61"] but got ["NULL"] +``` + + +```sql +SELECT - ( + cor0.col1 * CAST ( NULL AS REAL ) ) + + 69 * col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2 + +Wrong conversion type +``` + + +```sql +SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 AS cor0 GROUP BY cor0.col0, col2, cor0.col1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) * - 66 FROM tab0 AS cor0 GROUP BY cor0.col2 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT CAST ( - cor0.col1 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1 + +Expected: ["-44","-57","-6"] but got ["0","0","0"] +``` + + +```sql +SELECT + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 + +Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT + NULLIF ( - COALESCE ( - cor0.col2, cor0.col1 ), 79 ) / cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1 + +Expected: ["1","1","NULL"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL tab0.col0 FROM tab0 GROUP BY tab0.col0 HAVING NOT tab0.col0 IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - + tab0.col0 * 87 + - tab0.col0 FROM tab0 GROUP BY tab0.col0 + +Expected: ["-2288","-3784","-7304"] but got ["NULL"] +``` + + +```sql +SELECT NULLIF ( cor0.col1, - cor0.col1 ) * - col1 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["-6561","NULL"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL - tab1.col2 * + 25 FROM tab1 GROUP BY tab1.col2 + +Expected: ["-1125","-1775","-200"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT ALL + COALESCE ( cor0.col2, cor0.col2 ) + 9 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2 + +Expected: ["17","54","80"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT - NULLIF ( + cor0.col1, cor0.col1 / - 16 ) FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["-81","NULL"] but got ["NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,547 failed +* 54% was OK + +Time: 20363.849ms + +---- ---- ---- ---- ---- ---- ---- +### 176/190 [`./test/random/groupby/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT - tab2.col2 / - tab2.col2 AS col1 FROM tab2 GROUP BY col2 + +Expected: ["1","1","1"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT DISTINCT + col1 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["0","6561"] but got ["NULL"] +``` + + +```sql +SELECT - cor0.col1 * - cor0.col1 FROM tab0 AS cor0 GROUP BY col1 + +Expected: ["0","6561"] but got ["NULL","NULL"] +``` + + +```sql +SELECT - NULLIF ( cor0.col0, + 26 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0 + +Expected: ["-43","-83","NULL"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT + - CAST ( NULL AS REAL ) * + tab0.col2 AS col0 FROM tab0 GROUP BY tab0.col2 + +Wrong conversion type +``` + + +```sql +SELECT 65 / 40 AS col1 FROM tab1 GROUP BY tab1.col0 + +Expected: ["1","1","1"] but got ["1.625","1.625","1.625"] +``` + + +```sql +SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 GROUP BY tab1.col1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT tab2.col2 FROM tab2 GROUP BY tab2.col2 HAVING NOT ( tab2.col2 ) IS NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * 22 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT ALL cor0.col2 + - 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor1.col2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT cor0.col2 * - ( + cor0.col2 ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 + +Expected: ["-3364","-3364","-6241","-6241","-7569","-7569"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` + + +```sql +SELECT - cor0.col0 FROM tab2 AS cor0 GROUP BY col1, cor0.col0 + +Expected: ["-15","-91","-92"] but got ["NULL","NULL","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,975 failed +* 70% was OK + +Time: 19611.428ms + +---- ---- ---- ---- ---- ---- ---- +### 177/190 [`./test/random/groupby/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT col1 AS col1 FROM tab1 GROUP BY col1 HAVING col1 IS NOT NULL + +Query was expected to return results (but did not) +``` + + +```sql +SELECT col0, - col0 AS col0 FROM tab0 AS cor0 GROUP BY col0, col2 + +Expected: ["26","-26","43","-43","83","-83"] but got ["26","43","83"] +``` + + +```sql +SELECT DISTINCT + cor0.col0 * 74 FROM tab0 AS cor0 GROUP BY cor0.col0 + +Expected: ["1924","3182","6142"] but got ["NULL"] +``` + + +```sql +SELECT + cor0.col2 * 38 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2 + +Expected: ["1444","3002","912"] but got ["NULL","NULL","NULL"] +``` + + +```sql +SELECT 67 + 43 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["3550","67"] but got ["NULL","NULL"] +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1 + +Expected: ["NULL","NULL"] but got ["0","0"] +``` + + +```sql +SELECT * FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) * 93 FROM tab1 AS cor0 GROUP BY cor0.col1 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) * ( + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0 + +Wrong conversion type +``` + + +```sql +SELECT ALL col2 AS col1, - AVG ( - col2 ) AS col1, - col2 AS col1 FROM tab0 AS cor0 GROUP BY col2 + +3 results returned but expected 9 +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 503 failed +* 94% was OK + +Time: 21048.040ms + +---- ---- ---- ---- ---- ---- ---- +### 178/190 [`./test/random/select/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_0.test) + +_Mimic sqlite_ + +```sql +SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 cor0 + +18 results returned but expected 54 +``` + + +```sql +SELECT - col2 / - col0 - + 69 AS col0 FROM tab1 AS cor0 + +Expected: ["-51","-68","-69"] but got ["-51","-67.800","-68.109"] +``` + + +```sql +SELECT DISTINCT + col0 + col1 / CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT + 63 - 48 * col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0 + +Expected: ["NULL"] but got ["63"] +``` + + +```sql +SELECT * FROM tab0 WHERE NOT ( - col2 * + col0 ) IN ( - col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,572 failed +* 84% was OK + +Time: 26506.236ms + +---- ---- ---- ---- ---- ---- ---- +### 179/190 [`./test/random/select/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_1.test) + +_Mimic sqlite_ + +```sql +SELECT ALL col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT - col2 + + ( 69 ) / - col2 FROM tab1 AS cor0 + +Expected: ["-55","-58","-96"] but got ["-55.278","-58.211","-96.719"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1 + +27 results returned but expected 243 +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT * FROM tab0, tab1, tab2 AS cor0, tab2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT col0 FROM tab1 WHERE NOT ( col0 ) IN ( + col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,338 failed +* 86% was OK + +Time: 27165.607ms + +---- ---- ---- ---- ---- ---- ---- +### 180/190 [`./test/random/select/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_2.test) + +_Mimic sqlite_ + +```sql +SELECT DISTINCT + col2 * + tab0.col1 + - col0 / - col1 FROM tab0 + +Expected: ["2838","7462","97"] but got ["2838.279","7462.978","97.361"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 + col0 AS col1 FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["171","36","57"] +``` + + +```sql +SELECT CAST ( col1 AS REAL ) + - tab1.col0 FROM tab1 + +Wrong conversion type +``` + + +```sql +SELECT * FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL 86 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT * FROM tab1 WHERE NOT ( col1 ) IN ( col2 + col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,291 failed +* 87% was OK + +Time: 25282.330ms + +---- ---- ---- ---- ---- ---- ---- +### 181/190 [`./test/random/select/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_3.test) + +_Mimic sqlite_ + +```sql +SELECT 40 + ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["40","40","40"] +``` + + +```sql +SELECT ALL cor0.col0 + 94 / col2 FROM tab1 AS cor0 + +Expected: ["4","65","80"] but got ["4.741","65.649","80.979"] +``` + + +```sql +SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - ( + col2 ) * col2 + ( col1 * - col1 ) FROM tab0 AS cor0 + +Expected: ["NULL"] but got ["-7396","-8281","-9409"] +``` + + +```sql +SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IN ( col0 + col0 * col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,258 failed +* 87% was OK + +Time: 19722.004ms + +---- ---- ---- ---- ---- ---- ---- +### 182/190 [`./test/random/select/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_4.test) + +_Mimic sqlite_ + +```sql +SELECT ALL + - CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT ALL + 60 / ( tab0.col0 + 64 ) FROM tab0 + +Expected: ["0","0","0"] but got ["0.392","0.606","0.682"] +``` + + +```sql +SELECT ALL * FROM tab1, tab1 cor0, tab2 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + col2 * + CAST ( col0 AS REAL ) + + col1 AS col0 FROM tab1 cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 + +Expected: ["NULL"] but got ["0"] +``` + + +```sql +SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 + +18 results returned but expected 54 +``` + + +```sql +SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN + col1 / - col2 AND col2 + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,011 tests as _sqlite_ + +* 1,317 failed +* 86% was OK + +Time: 28077.927ms + +---- ---- ---- ---- ---- ---- ---- +### 183/190 [`./test/random/select/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_5.test) + +_Mimic sqlite_ + +```sql +SELECT ALL * FROM tab0, tab0 cor0, tab2 cor1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + col1 / - 99 AS col1 FROM tab0 + +Expected: ["0"] but got ["-0.869","-0.919","-0.980"] +``` + + +```sql +SELECT CAST ( 24 + - col2 AS REAL ) AS col0 FROM tab2 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 cor1 + +18 results returned but expected 54 +``` + + +```sql +SELECT + col1 - - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 * col1 / 84 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["18.262","7.690","9.964"] +``` + + +```sql +SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT ALL - col0 * + col1 AS col2 FROM tab2 WHERE NOT - col1 * tab2.col1 IN ( col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,323 failed +* 86% was OK + +Time: 23863.282ms + +---- ---- ---- ---- ---- ---- ---- +### 184/190 [`./test/random/select/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_6.test) + +_Mimic sqlite_ + +```sql +SELECT + col0 / - col1 + - ( - col2 ) col0 FROM tab2 AS cor0 + +Expected: ["25","27","34"] but got ["24.678","26.774","33.353"] +``` + + +```sql +SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT + CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` + + +```sql +SELECT col2 + + col2 / + CAST ( NULL AS REAL ) FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT ALL 43 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3 + +Parse error on line 1: +...cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2 + +45 results returned but expected 3645 +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) + 35 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["35"] +``` + + +```sql +SELECT ALL tab2.col1 * tab2.col0 FROM tab2 WHERE NOT ( + col0 ) IN ( col1 + + col2 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,345 failed +* 86% was OK + +Time: 20874.445ms + +---- ---- ---- ---- ---- ---- ---- +### 185/190 [`./test/random/select/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_7.test) + +_Mimic sqlite_ + +```sql +SELECT * FROM tab2 AS cor0 WHERE NOT col2 * cor0.col0 * col0 IN ( cor0.col0 ) + +Query was expected to return results (but did not) +``` + + +```sql +SELECT DISTINCT - col0 / col2 FROM tab0 AS cor0 + +Expected: ["-1","-35","0"] but got ["-0.727","-1.085","-35"] +``` + + +```sql +SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab0 AS cor0 + +Expected: ["NULL","NULL","NULL"] but got ["1","33","82"] +``` + + +```sql +SELECT - + cor0.col1 / CAST ( - col1 AS REAL ) FROM tab2 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) / col0 FROM tab0 cor0 + +Expected: ["NULL"] but got ["24","35","89"] +``` + + +```sql +SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab1 AS cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,283 failed +* 87% was OK + +Time: 20793.025ms + +---- ---- ---- ---- ---- ---- ---- +### 186/190 [`./test/random/select/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_8.test) + +_Mimic sqlite_ + +```sql +SELECT col0 / col2 AS col1 FROM tab0 + +Expected: ["0","1","35"] but got ["0.727","1.085","35"] +``` + + +```sql +SELECT ALL * FROM tab0, tab1 AS cor0, tab0 cor1, tab2 cor2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT - 77 + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 + +Expected: ["NULL","NULL","NULL"] but got ["-77","-77","-77"] +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1 + +36 results returned but expected 972 +``` + + +```sql +SELECT - 46 col1 FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1, tab2 cor2 + +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 cor1, tab2 co +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +``` + + +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col0 FROM tab0 + +Expected: ["NULL"] but got ["-24","-35","-89"] +``` + + +```sql +SELECT ALL + CAST ( - col0 AS REAL ) * col2 * ( col0 ) col0 FROM tab0 + +Wrong conversion type +``` + + +```sql +SELECT - col2 + col0 + - col1 * + col2 FROM tab2 WHERE NOT col2 + - col1 + + col0 BETWEEN col2 + + col2 AND ( - col1 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,322 failed +* 86% was OK + +Time: 22905.358ms + +---- ---- ---- ---- ---- ---- ---- +### 187/190 [`./test/random/select/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_9.test) + +_Mimic sqlite_ + +```sql +SELECT + ( - col0 ) + - col2 * CAST ( - 77 AS REAL ) FROM tab1 AS cor0 + +Wrong conversion type +``` + + +```sql +SELECT + col0 / col2 + + col1 FROM tab0 cor0 + +Expected: ["132","86","92"] but got ["132","86.727","92.085"] +``` + + +```sql +SELECT ALL * FROM tab0, tab2, tab1 cor0, tab1 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 91 * + cor0.col1 * - 95 FROM tab2 AS cor0 + +Expected: ["NULL"] but got ["-146965","-267995","-510055"] +``` + + +```sql +SELECT - cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 + +Expected: ["NULL","NULL","NULL"] but got ["-24","-35","-89"] +``` + + +```sql +SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1 + +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +``` + + +```sql +SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2 AS cor2 + +36 results returned but expected 972 +``` + + +```sql +SELECT * FROM tab1 WHERE NOT - col2 * col2 + - col1 IN ( col0 ) + +Query was expected to return results (but did not) +``` + +#### ☓ Ran 10,010 tests as _sqlite_ + +* 1,295 failed +* 87% was OK + +Time: 24193.564ms + +---- ---- ---- ---- ---- ---- ---- +### 188/190 [`./test/select1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select1.test) + +_Mimic sqlite_ +#### ★ Ran 1,031 tests as _sqlite_ + +* 100% was OK + +`sqlite 1031 OK: ./test/select1.test` + +Time: 18860.292ms + +---- ---- ---- ---- ---- ---- ---- +### 189/190 [`./test/select2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select2.test) + +_Mimic sqlite_ + +```sql +SELECT a, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, b FROM t1 + +Correct amount of values returned but hash was different than expected. +``` + +#### ☓ Ran 1,031 tests as _sqlite_ + +* 104 failed +* 89% was OK + +Time: 10306.645ms + +---- ---- ---- ---- ---- ---- ---- +### 190/190 [`./test/select3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select3.test) + +_Mimic sqlite_ + +```sql +SELECT d-e, c-d, (a+b+c+d+e)/5 FROM t1 WHERE d NOT BETWEEN 110 AND 150 OR e+d BETWEEN a+b-10 AND c+130 OR b>c + +81 results returned but expected 72 +``` + + +```sql +SELECT (SELECT count(*) FROM t1 AS x WHERE x.b=d+2) OR c BETWEEN b-2 AND d+2 + +Correct amount of values returned but hash was different than expected. +``` + + +```sql +SELECT e FROM t1 WHERE b>c AND d NOT BETWEEN 110 AND 150 AND a>b + +Expected: ["197","227","230"] but got ["157","165","197","227","230","NULL"] +``` + + +```sql +SELECT c FROM t1 WHERE (a>b-2 AND a Date: Thu, 3 Mar 2016 16:20:36 +0100 Subject: [PATCH 50/54] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d66b5eb23..14eb79d0c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ * Changed: Better support for phonegap, cordova and browserify * Changed: SELECT * FROM ? GROUP BY a works as FIRST(*) -### 0.2.3 "Spetses" (02.01.2016) +### 0.2.3 "Spetses" (01.02.2016) * Changed: New fast way to calculate aggregators (some parameters changed) * Added: User defined aggregators * Fixed: Remove empty Last line in TXT and XLSX From 92d8cc7e8e9716188fa1aa2d040d8dd87ce2b82f Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Thu, 3 Mar 2016 16:32:03 +0100 Subject: [PATCH 51/54] Update CHANGELOG.md --- CHANGELOG.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14eb79d0c7..a65123b1be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,14 @@ # Changelog * Check https://trello.com/b/qxz65pVi/alasql-roadmap for roadmap -### 0.2.4 "Exogi" (xx.xx.2016) +### _0.2.4 "Exogi" (xx.xx.2016)_ * Added: Central enviroment detection -* Changed: Better support for phonegap, cordova and browserify -* Changed: SELECT * FROM ? GROUP BY a works as FIRST(*) +* Added: SELECT * FROM ? GROUP BY a works as FIRST(*) +* Added: Better detection for browserify, phonegap and cordova +* Fix: CONCAT without space +* Fix: IE11: Reading Excel File +* Fix: Date handeling (in)dependent from locale + ### 0.2.3 "Spetses" (01.02.2016) * Changed: New fast way to calculate aggregators (some parameters changed) From a8614701e8aa6fc3d8898b81f7fa7d55f22d72a8 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Thu, 3 Mar 2016 19:10:02 +0100 Subject: [PATCH 52/54] Update test results --- test/!testlog/SQLlogic.md | 33460 +++--------------------------------- 1 file changed, 2151 insertions(+), 31309 deletions(-) diff --git a/test/!testlog/SQLlogic.md b/test/!testlog/SQLlogic.md index e7af42a0c8..c35c45cc93 100644 --- a/test/!testlog/SQLlogic.md +++ b/test/!testlog/SQLlogic.md @@ -1,12 +1,12 @@ # SQLlogictest results for AlaSQL -`2016-02-27T07:24:14.883Z target: alasql@0.2.3-develop-1210` +`2016-03-02T22:42:10.170Z target: alasql@0.2.3-develop-1206` This is a subset of the total 622 tests. -Results from 620 test files: +Results from 190 test files: ---- ---- ---- ---- ---- ---- ---- -### 1/620 [`./test/evidence/in1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/in1.test) +### 1/190 [`./test/evidence/in1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/in1.test) _Mimic sqlite_ @@ -31,10 +31,10 @@ _Fail found for statement setting up data so skipping rest of tests_ * 19 failed * 22% was OK -Time: 187.665ms +Time: 374.918ms ---- ---- ---- ---- ---- ---- ---- -### 2/620 [`./test/evidence/in2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/in2.test) +### 2/190 [`./test/evidence/in2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/in2.test) _Mimic sqlite_ @@ -49,10 +49,10 @@ Expected to get an error but did not * 4 failed * 92% was OK -Time: 109.357ms +Time: 410.068ms ---- ---- ---- ---- ---- ---- ---- -### 3/620 [`./test/evidence/slt_lang_aggfunc.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_aggfunc.test) +### 3/190 [`./test/evidence/slt_lang_aggfunc.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_aggfunc.test) _Mimic sqlite_ @@ -109,10 +109,10 @@ Expected: ["NULL"] but got ["0"] * 37 failed * 53% was OK -Time: 173.514ms +Time: 323.993ms ---- ---- ---- ---- ---- ---- ---- -### 4/620 [`./test/evidence/slt_lang_createtrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createtrigger.test) +### 4/190 [`./test/evidence/slt_lang_createtrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createtrigger.test) _Mimic sqlite_ @@ -137,10 +137,10 @@ _Fail found for statement setting up data so skipping rest of tests_ * 2 failed * 57% was OK -Time: 41.364ms +Time: 76.481ms ---- ---- ---- ---- ---- ---- ---- -### 5/620 [`./test/evidence/slt_lang_createview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createview.test) +### 5/190 [`./test/evidence/slt_lang_createview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_createview.test) _Mimic sqlite_ @@ -162,10 +162,10 @@ Expected to get an error but did not * 8 failed * 65% was OK -Time: 39.095ms +Time: 72.627ms ---- ---- ---- ---- ---- ---- ---- -### 6/620 [`./test/evidence/slt_lang_dropindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropindex.test) +### 6/190 [`./test/evidence/slt_lang_dropindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropindex.test) _Mimic sqlite_ @@ -180,10 +180,10 @@ Expected to get an error but did not * 2 failed * 75% was OK -Time: 9.138ms +Time: 35.251ms ---- ---- ---- ---- ---- ---- ---- -### 7/620 [`./test/evidence/slt_lang_droptable.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptable.test) +### 7/190 [`./test/evidence/slt_lang_droptable.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptable.test) _Mimic sqlite_ @@ -198,10 +198,10 @@ Expected to get an error but did not * 1 failed * 91% was OK -Time: 18.653ms +Time: 43.566ms ---- ---- ---- ---- ---- ---- ---- -### 8/620 [`./test/evidence/slt_lang_droptrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptrigger.test) +### 8/190 [`./test/evidence/slt_lang_droptrigger.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_droptrigger.test) _Mimic sqlite_ @@ -219,10 +219,10 @@ _Fail found for statement setting up data so skipping rest of tests_ * 1 failed * 50% was OK -Time: 14.684ms +Time: 43.149ms ---- ---- ---- ---- ---- ---- ---- -### 9/620 [`./test/evidence/slt_lang_dropview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropview.test) +### 9/190 [`./test/evidence/slt_lang_dropview.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_dropview.test) _Mimic sqlite_ @@ -237,24 +237,24 @@ Expected: ["0"] but got ["NULL"] * 1 failed * 92% was OK -Time: 27.652ms +Time: 74.767ms ---- ---- ---- ---- ---- ---- ---- -### 10/620 [`./test/evidence/slt_lang_reindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_reindex.test) +### 10/190 [`./test/evidence/slt_lang_reindex.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_reindex.test) #### ★ Assuming all 7 tests still passes as _sqlite_ -Time: 0.396ms +Time: 0.712ms ---- ---- ---- ---- ---- ---- ---- -### 11/620 [`./test/evidence/slt_lang_replace.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_replace.test) +### 11/190 [`./test/evidence/slt_lang_replace.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_replace.test) #### ★ Assuming all 14 tests still passes as _sqlite_ -Time: 0.537ms +Time: 2.216ms ---- ---- ---- ---- ---- ---- ---- -### 12/620 [`./test/evidence/slt_lang_update.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_update.test) +### 12/190 [`./test/evidence/slt_lang_update.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/evidence/slt_lang_update.test) _Mimic sqlite_ @@ -269,10 +269,10 @@ Expected to get an error but did not * 2 failed * 92% was OK -Time: 55.898ms +Time: 129.408ms ---- ---- ---- ---- ---- ---- ---- -### 13/620 [`./test/index/between/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1/slt_good_0.test) +### 13/190 [`./test/index/between/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1/slt_good_0.test) _Mimic sqlite_ @@ -287,17 +287,17 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 73309.016ms +Time: 167923.376ms ---- ---- ---- ---- ---- ---- ---- -### 14/620 [`./test/index/between/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_0.test) +### 14/190 [`./test/index/between/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_0.test) #### ★ Assuming all 10,033 tests still passes as _sqlite_ -Time: 0.546ms +Time: 0.683ms ---- ---- ---- ---- ---- ---- ---- -### 15/620 [`./test/index/between/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_1.test) +### 15/190 [`./test/index/between/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_1.test) _Mimic sqlite_ @@ -312,10 +312,10 @@ Cannot read property '0' of undefined * 40 failed * 99% was OK -Time: 76099.241ms +Time: 134590.828ms ---- ---- ---- ---- ---- ---- ---- -### 16/620 [`./test/index/between/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_2.test) +### 16/190 [`./test/index/between/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_2.test) _Mimic sqlite_ @@ -330,24 +330,24 @@ Cannot read property '0' of undefined * 40 failed * 99% was OK -Time: 79000.914ms +Time: 149871.154ms ---- ---- ---- ---- ---- ---- ---- -### 17/620 [`./test/index/between/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_3.test) +### 17/190 [`./test/index/between/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_3.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.360ms +Time: 0.804ms ---- ---- ---- ---- ---- ---- ---- -### 18/620 [`./test/index/between/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_4.test) +### 18/190 [`./test/index/between/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_4.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.342ms +Time: 0.539ms ---- ---- ---- ---- ---- ---- ---- -### 19/620 [`./test/index/between/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_5.test) +### 19/190 [`./test/index/between/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/10/slt_good_5.test) _Mimic sqlite_ @@ -362,17 +362,17 @@ Cannot read property '0' of undefined * 50 failed * 99% was OK -Time: 80199.144ms +Time: 155861.705ms ---- ---- ---- ---- ---- ---- ---- -### 20/620 [`./test/index/between/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_0.test) +### 20/190 [`./test/index/between/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_0.test) #### ★ Assuming all 10,123 tests still passes as _sqlite_ -Time: 0.499ms +Time: 0.490ms ---- ---- ---- ---- ---- ---- ---- -### 21/620 [`./test/index/between/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_1.test) +### 21/190 [`./test/index/between/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_1.test) _Mimic sqlite_ @@ -387,10 +387,10 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 99210.697ms +Time: 151890.105ms ---- ---- ---- ---- ---- ---- ---- -### 22/620 [`./test/index/between/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_2.test) +### 22/190 [`./test/index/between/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_2.test) _Mimic sqlite_ @@ -405,10 +405,10 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 98315.648ms +Time: 126129.676ms ---- ---- ---- ---- ---- ---- ---- -### 23/620 [`./test/index/between/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_3.test) +### 23/190 [`./test/index/between/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_3.test) _Mimic sqlite_ @@ -423,10 +423,10 @@ Cannot read property '0' of undefined * 40 failed * 99% was OK -Time: 91529.833ms +Time: 122345.323ms ---- ---- ---- ---- ---- ---- ---- -### 24/620 [`./test/index/between/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_4.test) +### 24/190 [`./test/index/between/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/100/slt_good_4.test) _Mimic sqlite_ @@ -441,10 +441,10 @@ Cannot read property '1' of undefined * 50 failed * 99% was OK -Time: 98940.147ms +Time: 132924.637ms ---- ---- ---- ---- ---- ---- ---- -### 25/620 [`./test/index/between/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1000/slt_good_0.test) +### 25/190 [`./test/index/between/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/between/1000/slt_good_0.test) _Mimic sqlite_ @@ -459,10 +459,10 @@ Cannot read property '0' of undefined * 11 failed * 99% was OK -Time: 138487.007ms +Time: 178928.434ms ---- ---- ---- ---- ---- ---- ---- -### 26/620 [`./test/index/commute/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_0.test) +### 26/190 [`./test/index/commute/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_0.test) _Mimic sqlite_ @@ -477,301 +477,38 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 29538.263ms +Time: 43058.518ms ---- ---- ---- ---- ---- ---- ---- -### 27/620 [`./test/index/commute/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_1.test) +### 27/190 [`./test/index/commute/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_1.test) #### ★ Assuming all 10,030 tests still passes as _sqlite_ -Time: 1.016ms - ----- ---- ---- ---- ---- ---- ---- -### 28/620 [`./test/index/commute/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_10.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col3 >= 18 AND ((col4 > 53.9)) OR col3 IN (SELECT col0 FROM tab0 WHERE (col0 < 49 AND col1 > 94.70 AND col0 IN (SELECT col3 FROM tab0 WHERE col0 >= 91) AND (col3 BETWEEN 85 AND 24 OR col0 >= 69))) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 4,261 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 14345.798ms - ----- ---- ---- ---- ---- ---- ---- -### 29/620 [`./test/index/commute/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_11.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.661ms - ----- ---- ---- ---- ---- ---- ---- -### 30/620 [`./test/index/commute/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_12.test) - -#### ★ Assuming all 10,031 tests still passes as _sqlite_ - -Time: 0.973ms - ----- ---- ---- ---- ---- ---- ---- -### 31/620 [`./test/index/commute/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_13.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE col0 IN (42,31,88,70,42,7) AND col1 <= 23.6 OR (col3 > 8 OR col3 IS NULL))) AND (col0 > 99) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 30 failed -* 99% was OK - -Time: 61560.756ms - ----- ---- ---- ---- ---- ---- ---- -### 32/620 [`./test/index/commute/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_14.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col4 IN (SELECT col1 FROM tab0 WHERE ((col3 >= 17 AND col3 > 34 AND ((((col1 < 73.21))) AND (col3 >= 34) AND col0 IN (SELECT col3 FROM tab0 WHERE col1 > 9.76) OR col1 >= 9.67) OR col0 < 84 AND ((col4 > 67.64)) OR ((col3 IS NULL AND col1 < 8.67)) AND (col3 = 91 AND col0 > 7… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 46095.230ms - ----- ---- ---- ---- ---- ---- ---- -### 33/620 [`./test/index/commute/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_15.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col0 > 15 OR (col3 IN (SELECT col0 FROM tab0 WHERE col0 > 84 AND (col0 = 88) AND col3 = 71 AND col3 > 13 AND col1 < 21.44 AND col0 <= 5 AND col3 IN (15,13) OR (col4 IN (SELECT col1 FROM tab0 WHERE col0 <= 59) AND (((((col0 >= 13))) AND col4 >= 25.56 AND ((col4 <= 29.73 AND… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,030 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 42455.635ms - ----- ---- ---- ---- ---- ---- ---- -### 34/620 [`./test/index/commute/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_16.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.949ms - ----- ---- ---- ---- ---- ---- ---- -### 35/620 [`./test/index/commute/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_17.test) - -#### ★ Assuming all 10,031 tests still passes as _sqlite_ - -Time: 5.559ms - ----- ---- ---- ---- ---- ---- ---- -### 36/620 [`./test/index/commute/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_18.test) - -#### ★ Assuming all 10,034 tests still passes as _sqlite_ - -Time: 0.618ms - ----- ---- ---- ---- ---- ---- ---- -### 37/620 [`./test/index/commute/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_19.test) - -#### ★ Assuming all 10,031 tests still passes as _sqlite_ - -Time: 2.676ms +Time: 0.630ms ---- ---- ---- ---- ---- ---- ---- -### 38/620 [`./test/index/commute/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_2.test) +### 28/190 [`./test/index/commute/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_2.test) #### ★ Assuming all 10,037 tests still passes as _sqlite_ -Time: 6.319ms - ----- ---- ---- ---- ---- ---- ---- -### 39/620 [`./test/index/commute/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_20.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col4 <= 98.22) OR col4 < 79.66 OR col4 <= 22.62) AND (col3 >= 32) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 61376.843ms - ----- ---- ---- ---- ---- ---- ---- -### 40/620 [`./test/index/commute/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_21.test) - -#### ★ Assuming all 10,030 tests still passes as _sqlite_ - -Time: 0.722ms - ----- ---- ---- ---- ---- ---- ---- -### 41/620 [`./test/index/commute/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_22.test) - -#### ★ Assuming all 10,033 tests still passes as _sqlite_ - -Time: 0.569ms - ----- ---- ---- ---- ---- ---- ---- -### 42/620 [`./test/index/commute/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_23.test) - -#### ★ Assuming all 10,033 tests still passes as _sqlite_ - -Time: 0.569ms - ----- ---- ---- ---- ---- ---- ---- -### 43/620 [`./test/index/commute/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_24.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col1 IN (SELECT col4 FROM tab0 WHERE col0 IS NULL OR col3 IN (SELECT col0 FROM tab0 WHERE col3 > 99 AND (col3 > 89 AND col0 > 36))) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,033 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 45464.359ms - ----- ---- ---- ---- ---- ---- ---- -### 44/620 [`./test/index/commute/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_25.test) - -#### ★ Assuming all 10,030 tests still passes as _sqlite_ - -Time: 0.474ms - ----- ---- ---- ---- ---- ---- ---- -### 45/620 [`./test/index/commute/10/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_26.test) - -#### ★ Assuming all 10,031 tests still passes as _sqlite_ - -Time: 0.398ms - ----- ---- ---- ---- ---- ---- ---- -### 46/620 [`./test/index/commute/10/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_27.test) - -#### ★ Assuming all 10,033 tests still passes as _sqlite_ - -Time: 0.397ms - ----- ---- ---- ---- ---- ---- ---- -### 47/620 [`./test/index/commute/10/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_28.test) - -#### ★ Assuming all 10,033 tests still passes as _sqlite_ - -Time: 0.406ms - ----- ---- ---- ---- ---- ---- ---- -### 48/620 [`./test/index/commute/10/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_29.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE ((col3 < 0)) OR col3 < 68 AND (col3 = 11) OR col4 IN (SELECT col1 FROM tab0 WHERE col1 IN (SELECT col4 FROM tab0 WHERE (col1 = 28.45))) AND col0 > 89 OR col4 > 99.5 AND col0 < 4 AND col3 <= 46 - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 56278.121ms - ----- ---- ---- ---- ---- ---- ---- -### 49/620 [`./test/index/commute/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_3.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.405ms - ----- ---- ---- ---- ---- ---- ---- -### 50/620 [`./test/index/commute/10/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_30.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col0 = 27 OR (col4 <= 97.74 OR col3 <= 1 AND col0 > 6 OR col0 IN (40,62,6,92,71) OR col1 >= 60.26) AND col3 IN (SELECT col0 FROM tab0 WHERE col1 > 79.94 AND (col3 IS NULL)) OR (((col0 > 29 OR ((col0 > 17)) AND col0 >= 66))) OR col0 > 10… - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 41857.384ms - ----- ---- ---- ---- ---- ---- ---- -### 51/620 [`./test/index/commute/10/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_31.test) - -#### ★ Assuming all 10,033 tests still passes as _sqlite_ - -Time: 0.483ms - ----- ---- ---- ---- ---- ---- ---- -### 52/620 [`./test/index/commute/10/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_32.test) - -#### ★ Assuming all 10,032 tests still passes as _sqlite_ - -Time: 0.487ms - ----- ---- ---- ---- ---- ---- ---- -### 53/620 [`./test/index/commute/10/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_33.test) - -#### ★ Assuming all 10,034 tests still passes as _sqlite_ - -Time: 0.418ms +Time: 0.454ms ---- ---- ---- ---- ---- ---- ---- -### 54/620 [`./test/index/commute/10/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_34.test) +### 29/190 [`./test/index/commute/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_3.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.441ms +Time: 0.591ms ---- ---- ---- ---- ---- ---- ---- -### 55/620 [`./test/index/commute/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_4.test) +### 30/190 [`./test/index/commute/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_4.test) #### ★ Assuming all 10,030 tests still passes as _sqlite_ -Time: 0.428ms +Time: 0.507ms ---- ---- ---- ---- ---- ---- ---- -### 56/620 [`./test/index/commute/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_5.test) +### 31/190 [`./test/index/commute/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_5.test) _Mimic sqlite_ @@ -786,10 +523,10 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 48223.595ms +Time: 42261.598ms ---- ---- ---- ---- ---- ---- ---- -### 57/620 [`./test/index/commute/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_6.test) +### 32/190 [`./test/index/commute/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_6.test) _Mimic sqlite_ @@ -804,10 +541,10 @@ Cannot read property '0' of undefined * 20 failed * 99% was OK -Time: 51176.863ms +Time: 54077.228ms ---- ---- ---- ---- ---- ---- ---- -### 58/620 [`./test/index/commute/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_7.test) +### 33/190 [`./test/index/commute/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_7.test) _Mimic sqlite_ @@ -822,17 +559,17 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 40695.784ms +Time: 49686.498ms ---- ---- ---- ---- ---- ---- ---- -### 59/620 [`./test/index/commute/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_8.test) +### 34/190 [`./test/index/commute/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_8.test) #### ★ Assuming all 10,032 tests still passes as _sqlite_ -Time: 0.478ms +Time: 0.564ms ---- ---- ---- ---- ---- ---- ---- -### 60/620 [`./test/index/commute/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_9.test) +### 35/190 [`./test/index/commute/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/10/slt_good_9.test) _Mimic sqlite_ @@ -847,10 +584,10 @@ Cannot read property '0' of undefined * 20 failed * 99% was OK -Time: 54969.513ms +Time: 54926.741ms ---- ---- ---- ---- ---- ---- ---- -### 61/620 [`./test/index/commute/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_0.test) +### 36/190 [`./test/index/commute/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_0.test) _Mimic sqlite_ @@ -865,67 +602,24 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 72474.690ms +Time: 52875.294ms ---- ---- ---- ---- ---- ---- ---- -### 62/620 [`./test/index/commute/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_1.test) +### 37/190 [`./test/index/commute/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_1.test) #### ★ Assuming all 10,120 tests still passes as _sqlite_ -Time: 2.264ms - ----- ---- ---- ---- ---- ---- ---- -### 63/620 [`./test/index/commute/100/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_10.test) - -#### ★ Assuming all 10,124 tests still passes as _sqlite_ - -Time: 0.613ms - ----- ---- ---- ---- ---- ---- ---- -### 64/620 [`./test/index/commute/100/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_11.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col1 > 934.79 OR (col0 <= 122) AND col3 IN (572,775,935,506) OR (col1 <= 126.68) OR col3 IN (SELECT col0 FROM tab0 WHERE ((col3 IN (SELECT col0 FROM tab0 WHERE (col0 <= 963) AND col4 < 611.64 AND ((col4 > 507.11))) OR ((col1 > 59.38 AND (col4 >= 918.90)))))) AND col3 <= 93 - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,123 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 56481.464ms - ----- ---- ---- ---- ---- ---- ---- -### 65/620 [`./test/index/commute/100/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_12.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE col0 BETWEEN 408 AND 366 OR (col3 IN (SELECT col0 FROM tab0 WHERE col3 IN (SELECT col0 FROM tab0 WHERE col0 <= 560)) OR col3 > 127) - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,123 tests as _sqlite_ - -* 10 failed -* 99% was OK - -Time: 48855.551ms +Time: 0.585ms ---- ---- ---- ---- ---- ---- ---- -### 66/620 [`./test/index/commute/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_2.test) +### 38/190 [`./test/index/commute/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_2.test) #### ★ Assuming all 10,123 tests still passes as _sqlite_ -Time: 2.534ms +Time: 0.503ms ---- ---- ---- ---- ---- ---- ---- -### 67/620 [`./test/index/commute/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_3.test) +### 39/190 [`./test/index/commute/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_3.test) _Mimic sqlite_ @@ -940,10 +634,10 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 75190.133ms +Time: 49706.702ms ---- ---- ---- ---- ---- ---- ---- -### 68/620 [`./test/index/commute/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_4.test) +### 40/190 [`./test/index/commute/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_4.test) _Mimic sqlite_ @@ -958,17 +652,17 @@ Cannot read property '0' of undefined * 30 failed * 99% was OK -Time: 71705.852ms +Time: 49337.578ms ---- ---- ---- ---- ---- ---- ---- -### 69/620 [`./test/index/commute/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_5.test) +### 41/190 [`./test/index/commute/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_5.test) #### ★ Assuming all 10,121 tests still passes as _sqlite_ -Time: 2.727ms +Time: 0.708ms ---- ---- ---- ---- ---- ---- ---- -### 70/620 [`./test/index/commute/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_6.test) +### 42/190 [`./test/index/commute/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_6.test) _Mimic sqlite_ @@ -983,17 +677,17 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 39673.210ms +Time: 48630.094ms ---- ---- ---- ---- ---- ---- ---- -### 71/620 [`./test/index/commute/100/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_7.test) +### 43/190 [`./test/index/commute/100/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_7.test) #### ★ Assuming all 10,123 tests still passes as _sqlite_ -Time: 0.728ms +Time: 0.671ms ---- ---- ---- ---- ---- ---- ---- -### 72/620 [`./test/index/commute/100/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_8.test) +### 44/190 [`./test/index/commute/100/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_8.test) _Mimic sqlite_ @@ -1008,24 +702,24 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 42451.350ms +Time: 46535.595ms ---- ---- ---- ---- ---- ---- ---- -### 73/620 [`./test/index/commute/100/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_9.test) +### 45/190 [`./test/index/commute/100/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/100/slt_good_9.test) #### ★ Assuming all 10,123 tests still passes as _sqlite_ -Time: 0.404ms +Time: 0.926ms ---- ---- ---- ---- ---- ---- ---- -### 74/620 [`./test/index/commute/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_0.test) +### 46/190 [`./test/index/commute/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_0.test) #### ★ Assuming all 4,741 tests still passes as _sqlite_ -Time: 0.341ms +Time: 0.621ms ---- ---- ---- ---- ---- ---- ---- -### 75/620 [`./test/index/commute/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_1.test) +### 47/190 [`./test/index/commute/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_1.test) _Mimic sqlite_ @@ -1040,10 +734,10 @@ Cannot read property '0' of undefined * 20 failed * 99% was OK -Time: 212045.138ms +Time: 210970.311ms ---- ---- ---- ---- ---- ---- ---- -### 76/620 [`./test/index/commute/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_2.test) +### 48/190 [`./test/index/commute/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_2.test) _Mimic sqlite_ @@ -1058,115 +752,115 @@ Cannot read property '0' of undefined * 10 failed * 99% was OK -Time: 307662.244ms +Time: 241341.138ms ---- ---- ---- ---- ---- ---- ---- -### 77/620 [`./test/index/commute/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_3.test) +### 49/190 [`./test/index/commute/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/commute/1000/slt_good_3.test) #### ★ Assuming all 11,025 tests still passes as _sqlite_ -Time: 0.624ms +Time: 0.636ms ---- ---- ---- ---- ---- ---- ---- -### 78/620 [`./test/index/delete/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1/slt_good_0.test) +### 50/190 [`./test/index/delete/1/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1/slt_good_0.test) #### ★ Assuming all 10,907 tests still passes as _sqlite_ -Time: 0.481ms +Time: 0.508ms ---- ---- ---- ---- ---- ---- ---- -### 79/620 [`./test/index/delete/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_0.test) +### 51/190 [`./test/index/delete/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_0.test) #### ★ Assuming all 10,730 tests still passes as _sqlite_ -Time: 0.534ms +Time: 0.561ms ---- ---- ---- ---- ---- ---- ---- -### 80/620 [`./test/index/delete/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_1.test) +### 52/190 [`./test/index/delete/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_1.test) #### ★ Assuming all 10,774 tests still passes as _sqlite_ -Time: 0.800ms +Time: 0.771ms ---- ---- ---- ---- ---- ---- ---- -### 81/620 [`./test/index/delete/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_2.test) +### 53/190 [`./test/index/delete/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_2.test) #### ★ Assuming all 9,390 tests still passes as _sqlite_ -Time: 0.577ms +Time: 0.683ms ---- ---- ---- ---- ---- ---- ---- -### 82/620 [`./test/index/delete/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_3.test) +### 54/190 [`./test/index/delete/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_3.test) #### ★ Assuming all 10,065 tests still passes as _sqlite_ -Time: 1.326ms +Time: 0.573ms ---- ---- ---- ---- ---- ---- ---- -### 83/620 [`./test/index/delete/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_4.test) +### 55/190 [`./test/index/delete/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_4.test) #### ★ Assuming all 10,599 tests still passes as _sqlite_ -Time: 0.616ms +Time: 0.532ms ---- ---- ---- ---- ---- ---- ---- -### 84/620 [`./test/index/delete/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_5.test) +### 56/190 [`./test/index/delete/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10/slt_good_5.test) #### ★ Assuming all 10,353 tests still passes as _sqlite_ -Time: 0.553ms +Time: 0.531ms ---- ---- ---- ---- ---- ---- ---- -### 85/620 [`./test/index/delete/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_0.test) +### 57/190 [`./test/index/delete/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_0.test) #### ★ Assuming all 11,145 tests still passes as _sqlite_ -Time: 0.566ms +Time: 0.526ms ---- ---- ---- ---- ---- ---- ---- -### 86/620 [`./test/index/delete/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_1.test) +### 58/190 [`./test/index/delete/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_1.test) #### ★ Assuming all 10,895 tests still passes as _sqlite_ -Time: 0.527ms +Time: 0.522ms ---- ---- ---- ---- ---- ---- ---- -### 87/620 [`./test/index/delete/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_2.test) +### 59/190 [`./test/index/delete/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_2.test) #### ★ Assuming all 11,033 tests still passes as _sqlite_ -Time: 0.573ms +Time: 0.531ms ---- ---- ---- ---- ---- ---- ---- -### 88/620 [`./test/index/delete/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_3.test) +### 60/190 [`./test/index/delete/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/100/slt_good_3.test) #### ★ Assuming all 10,942 tests still passes as _sqlite_ -Time: 4.355ms +Time: 0.489ms ---- ---- ---- ---- ---- ---- ---- -### 89/620 [`./test/index/delete/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_0.test) +### 61/190 [`./test/index/delete/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_0.test) #### ★ Assuming all 11,924 tests still passes as _sqlite_ -Time: 0.547ms +Time: 0.497ms ---- ---- ---- ---- ---- ---- ---- -### 90/620 [`./test/index/delete/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_1.test) +### 62/190 [`./test/index/delete/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/1000/slt_good_1.test) #### ★ Assuming all 11,838 tests still passes as _sqlite_ -Time: 0.606ms +Time: 0.502ms ---- ---- ---- ---- ---- ---- ---- -### 91/620 [`./test/index/delete/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10000/slt_good_0.test) +### 63/190 [`./test/index/delete/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/delete/10000/slt_good_0.test) #### ★ Assuming all 20,347 tests still passes as _sqlite_ -Time: 0.543ms +Time: 0.505ms ---- ---- ---- ---- ---- ---- ---- -### 92/620 [`./test/index/in/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_0.test) +### 64/190 [`./test/index/in/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_0.test) _Mimic sqlite_ @@ -1181,10 +875,10 @@ Cannot read property '0' of undefined * 30 failed * 99% was OK -Time: 164124.546ms +Time: 144440.940ms ---- ---- ---- ---- ---- ---- ---- -### 93/620 [`./test/index/in/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_1.test) +### 65/190 [`./test/index/in/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_1.test) _Mimic sqlite_ @@ -1199,24 +893,24 @@ Cannot read property '0' of undefined * 30 failed * 99% was OK -Time: 191676.558ms +Time: 152115.194ms ---- ---- ---- ---- ---- ---- ---- -### 94/620 [`./test/index/in/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_2.test) +### 66/190 [`./test/index/in/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_2.test) #### ★ Assuming all 10,035 tests still passes as _sqlite_ -Time: 0.948ms +Time: 2.670ms ---- ---- ---- ---- ---- ---- ---- -### 95/620 [`./test/index/in/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_3.test) +### 67/190 [`./test/index/in/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_3.test) #### ★ Assuming all 10,037 tests still passes as _sqlite_ -Time: 0.942ms +Time: 0.496ms ---- ---- ---- ---- ---- ---- ---- -### 96/620 [`./test/index/in/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_4.test) +### 68/190 [`./test/index/in/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_4.test) _Mimic sqlite_ @@ -1231,10 +925,10 @@ Cannot read property '0' of undefined * 30 failed * 99% was OK -Time: 158706.301ms +Time: 166027.555ms ---- ---- ---- ---- ---- ---- ---- -### 97/620 [`./test/index/in/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_5.test) +### 69/190 [`./test/index/in/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/10/slt_good_5.test) _Mimic sqlite_ @@ -1249,10 +943,10 @@ Cannot read property '0' of undefined * 15 failed * 99% was OK -Time: 189836.512ms +Time: 141128.858ms ---- ---- ---- ---- ---- ---- ---- -### 98/620 [`./test/index/in/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_0.test) +### 70/190 [`./test/index/in/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_0.test) _Mimic sqlite_ @@ -1267,10 +961,10 @@ Cannot read property '0' of undefined * 30 failed * 99% was OK -Time: 274321.205ms +Time: 140060.862ms ---- ---- ---- ---- ---- ---- ---- -### 99/620 [`./test/index/in/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_1.test) +### 71/190 [`./test/index/in/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_1.test) _Mimic sqlite_ @@ -1285,10 +979,10 @@ Cannot read property '1' of undefined * 15 failed * 99% was OK -Time: 155171.409ms +Time: 158119.052ms ---- ---- ---- ---- ---- ---- ---- -### 100/620 [`./test/index/in/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_2.test) +### 72/190 [`./test/index/in/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_2.test) _Mimic sqlite_ @@ -1303,10 +997,10 @@ Cannot read property '1' of undefined * 15 failed * 99% was OK -Time: 132079.789ms +Time: 141331.968ms ---- ---- ---- ---- ---- ---- ---- -### 101/620 [`./test/index/in/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_3.test) +### 73/190 [`./test/index/in/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_3.test) _Mimic sqlite_ @@ -1321,10 +1015,10 @@ Cannot read property '0' of undefined * 15 failed * 99% was OK -Time: 131436.468ms +Time: 137484.701ms ---- ---- ---- ---- ---- ---- ---- -### 102/620 [`./test/index/in/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_4.test) +### 74/190 [`./test/index/in/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/100/slt_good_4.test) _Mimic sqlite_ @@ -1339,10 +1033,10 @@ Cannot read property '1' of undefined * 15 failed * 99% was OK -Time: 158774.712ms +Time: 148817.868ms ---- ---- ---- ---- ---- ---- ---- -### 103/620 [`./test/index/in/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_0.test) +### 75/190 [`./test/index/in/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_0.test) _Mimic sqlite_ @@ -1357,231 +1051,108 @@ Cannot read property '0' of undefined * 60 failed * 99% was OK -Time: 628724.056ms +Time: 590981.883ms ---- ---- ---- ---- ---- ---- ---- -### 104/620 [`./test/index/in/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_1.test) +### 76/190 [`./test/index/in/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/in/1000/slt_good_1.test) #### ★ Assuming all 11,024 tests still passes as _sqlite_ -Time: 1.388ms +Time: 0.442ms ---- ---- ---- ---- ---- ---- ---- -### 105/620 [`./test/index/orderby/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_0.test) +### 77/190 [`./test/index/orderby/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_0.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.435ms +Time: 0.376ms ---- ---- ---- ---- ---- ---- ---- -### 106/620 [`./test/index/orderby/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_1.test) +### 78/190 [`./test/index/orderby/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_1.test) #### ★ Assuming all 10,054 tests still passes as _sqlite_ -Time: 0.367ms +Time: 0.472ms ---- ---- ---- ---- ---- ---- ---- -### 107/620 [`./test/index/orderby/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_10.test) +### 79/190 [`./test/index/orderby/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_2.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.414ms +Time: 0.475ms ---- ---- ---- ---- ---- ---- ---- -### 108/620 [`./test/index/orderby/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_11.test) +### 80/190 [`./test/index/orderby/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_3.test) -#### ★ Assuming all 10,053 tests still passes as _sqlite_ +#### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 1.415ms +Time: 0.475ms ---- ---- ---- ---- ---- ---- ---- -### 109/620 [`./test/index/orderby/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_12.test) +### 81/190 [`./test/index/orderby/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_4.test) -#### ★ Assuming all 10,053 tests still passes as _sqlite_ +#### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 0.453ms +Time: 0.483ms ---- ---- ---- ---- ---- ---- ---- -### 110/620 [`./test/index/orderby/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_13.test) +### 82/190 [`./test/index/orderby/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_5.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 1.654ms +Time: 0.483ms ---- ---- ---- ---- ---- ---- ---- -### 111/620 [`./test/index/orderby/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_14.test) +### 83/190 [`./test/index/orderby/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_6.test) -#### ★ Assuming all 10,053 tests still passes as _sqlite_ +#### ★ Assuming all 10,048 tests still passes as _sqlite_ -Time: 0.491ms +Time: 0.494ms ---- ---- ---- ---- ---- ---- ---- -### 112/620 [`./test/index/orderby/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_15.test) +### 84/190 [`./test/index/orderby/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_7.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 2.526ms +Time: 0.542ms ---- ---- ---- ---- ---- ---- ---- -### 113/620 [`./test/index/orderby/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_16.test) +### 85/190 [`./test/index/orderby/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_8.test) -#### ★ Assuming all 10,050 tests still passes as _sqlite_ +#### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.493ms +Time: 0.490ms ---- ---- ---- ---- ---- ---- ---- -### 114/620 [`./test/index/orderby/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_17.test) +### 86/190 [`./test/index/orderby/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_9.test) -#### ★ Assuming all 10,054 tests still passes as _sqlite_ +#### ★ Assuming all 10,050 tests still passes as _sqlite_ -Time: 1.271ms +Time: 0.551ms ---- ---- ---- ---- ---- ---- ---- -### 115/620 [`./test/index/orderby/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_18.test) +### 87/190 [`./test/index/orderby/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_0.test) -#### ★ Assuming all 10,053 tests still passes as _sqlite_ +#### ★ Assuming all 10,141 tests still passes as _sqlite_ -Time: 0.528ms - ----- ---- ---- ---- ---- ---- ---- -### 116/620 [`./test/index/orderby/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_19.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 1.019ms - ----- ---- ---- ---- ---- ---- ---- -### 117/620 [`./test/index/orderby/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_2.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.491ms - ----- ---- ---- ---- ---- ---- ---- -### 118/620 [`./test/index/orderby/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_20.test) - -_Mimic sqlite_ - -```sql -SELECT pk FROM tab0 WHERE (col4 < 384.93 OR col1 < 239.78 OR col4 = 233.10 OR (col3 IN (SELECT col0 FROM tab0 WHERE (col0 > 428) OR col3 > 471 AND col3 IN (SELECT col0 FROM tab0 WHERE col0 < 986 AND (col3 < 892)) OR col0 = 201 AND col1 >= 908.84))) OR col4 = 925.62 OR col3 >= 628 AND col1 > 669.11 … - -Cannot read property '0' of undefined -``` - -#### ☓ Ran 10,052 tests as _sqlite_ - -* 60 failed -* 99% was OK - -Time: 45654.161ms - ----- ---- ---- ---- ---- ---- ---- -### 119/620 [`./test/index/orderby/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_21.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.500ms - ----- ---- ---- ---- ---- ---- ---- -### 120/620 [`./test/index/orderby/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_22.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.466ms - ----- ---- ---- ---- ---- ---- ---- -### 121/620 [`./test/index/orderby/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_23.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 1.518ms - ----- ---- ---- ---- ---- ---- ---- -### 122/620 [`./test/index/orderby/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_24.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.440ms - ----- ---- ---- ---- ---- ---- ---- -### 123/620 [`./test/index/orderby/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_25.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.443ms - ----- ---- ---- ---- ---- ---- ---- -### 124/620 [`./test/index/orderby/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_3.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.544ms - ----- ---- ---- ---- ---- ---- ---- -### 125/620 [`./test/index/orderby/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_4.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.465ms - ----- ---- ---- ---- ---- ---- ---- -### 126/620 [`./test/index/orderby/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_5.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.538ms - ----- ---- ---- ---- ---- ---- ---- -### 127/620 [`./test/index/orderby/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_6.test) - -#### ★ Assuming all 10,048 tests still passes as _sqlite_ - -Time: 0.488ms - ----- ---- ---- ---- ---- ---- ---- -### 128/620 [`./test/index/orderby/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_7.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.455ms - ----- ---- ---- ---- ---- ---- ---- -### 129/620 [`./test/index/orderby/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_8.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.484ms - ----- ---- ---- ---- ---- ---- ---- -### 130/620 [`./test/index/orderby/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/10/slt_good_9.test) - -#### ★ Assuming all 10,050 tests still passes as _sqlite_ - -Time: 0.513ms - ----- ---- ---- ---- ---- ---- ---- -### 131/620 [`./test/index/orderby/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_0.test) - -#### ★ Assuming all 10,141 tests still passes as _sqlite_ - -Time: 0.576ms +Time: 0.526ms ---- ---- ---- ---- ---- ---- ---- -### 132/620 [`./test/index/orderby/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_1.test) +### 88/190 [`./test/index/orderby/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_1.test) #### ★ Assuming all 10,140 tests still passes as _sqlite_ -Time: 0.455ms +Time: 3.485ms ---- ---- ---- ---- ---- ---- ---- -### 133/620 [`./test/index/orderby/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_2.test) +### 89/190 [`./test/index/orderby/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_2.test) #### ★ Assuming all 10,142 tests still passes as _sqlite_ -Time: 0.460ms +Time: 0.509ms ---- ---- ---- ---- ---- ---- ---- -### 134/620 [`./test/index/orderby/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_3.test) +### 90/190 [`./test/index/orderby/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/100/slt_good_3.test) _Mimic sqlite_ @@ -1596,10 +1167,10 @@ Cannot read property '0' of undefined * 60 failed * 99% was OK -Time: 68456.074ms +Time: 58860.415ms ---- ---- ---- ---- ---- ---- ---- -### 135/620 [`./test/index/orderby/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/1000/slt_good_0.test) +### 91/190 [`./test/index/orderby/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby/1000/slt_good_0.test) _Mimic sqlite_ @@ -1614,353 +1185,143 @@ Cannot read property '0' of undefined * 60 failed * 99% was OK -Time: 681540.741ms - ----- ---- ---- ---- ---- ---- ---- -### 136/620 [`./test/index/orderby_nosort/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_0.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 2.599ms - ----- ---- ---- ---- ---- ---- ---- -### 137/620 [`./test/index/orderby_nosort/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_1.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.419ms - ----- ---- ---- ---- ---- ---- ---- -### 138/620 [`./test/index/orderby_nosort/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_10.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.526ms - ----- ---- ---- ---- ---- ---- ---- -### 139/620 [`./test/index/orderby_nosort/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_11.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.477ms - ----- ---- ---- ---- ---- ---- ---- -### 140/620 [`./test/index/orderby_nosort/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_12.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.485ms - ----- ---- ---- ---- ---- ---- ---- -### 141/620 [`./test/index/orderby_nosort/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_13.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.417ms - ----- ---- ---- ---- ---- ---- ---- -### 142/620 [`./test/index/orderby_nosort/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_14.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.727ms - ----- ---- ---- ---- ---- ---- ---- -### 143/620 [`./test/index/orderby_nosort/10/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_15.test) - -#### ★ Assuming all 10,054 tests still passes as _sqlite_ - -Time: 1.546ms - ----- ---- ---- ---- ---- ---- ---- -### 144/620 [`./test/index/orderby_nosort/10/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_16.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 0.463ms - ----- ---- ---- ---- ---- ---- ---- -### 145/620 [`./test/index/orderby_nosort/10/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_17.test) - -#### ★ Assuming all 10,050 tests still passes as _sqlite_ - -Time: 1.407ms - ----- ---- ---- ---- ---- ---- ---- -### 146/620 [`./test/index/orderby_nosort/10/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_18.test) - -#### ★ Assuming all 10,050 tests still passes as _sqlite_ - -Time: 0.507ms - ----- ---- ---- ---- ---- ---- ---- -### 147/620 [`./test/index/orderby_nosort/10/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_19.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 1.704ms - ----- ---- ---- ---- ---- ---- ---- -### 148/620 [`./test/index/orderby_nosort/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_2.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.491ms - ----- ---- ---- ---- ---- ---- ---- -### 149/620 [`./test/index/orderby_nosort/10/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_20.test) - -#### ★ Assuming all 10,053 tests still passes as _sqlite_ - -Time: 1.824ms - ----- ---- ---- ---- ---- ---- ---- -### 150/620 [`./test/index/orderby_nosort/10/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_21.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.467ms - ----- ---- ---- ---- ---- ---- ---- -### 151/620 [`./test/index/orderby_nosort/10/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_22.test) - -#### ★ Assuming all 10,054 tests still passes as _sqlite_ - -Time: 1.504ms - ----- ---- ---- ---- ---- ---- ---- -### 152/620 [`./test/index/orderby_nosort/10/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_23.test) - -#### ★ Assuming all 10,051 tests still passes as _sqlite_ - -Time: 0.486ms - ----- ---- ---- ---- ---- ---- ---- -### 153/620 [`./test/index/orderby_nosort/10/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_24.test) - -#### ★ Assuming all 10,054 tests still passes as _sqlite_ - -Time: 2.513ms - ----- ---- ---- ---- ---- ---- ---- -### 154/620 [`./test/index/orderby_nosort/10/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_25.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.514ms +Time: 395240.137ms ---- ---- ---- ---- ---- ---- ---- -### 155/620 [`./test/index/orderby_nosort/10/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_26.test) +### 92/190 [`./test/index/orderby_nosort/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_0.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 0.579ms +Time: 0.745ms ---- ---- ---- ---- ---- ---- ---- -### 156/620 [`./test/index/orderby_nosort/10/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_27.test) +### 93/190 [`./test/index/orderby_nosort/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_1.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 0.482ms +Time: 0.645ms ---- ---- ---- ---- ---- ---- ---- -### 157/620 [`./test/index/orderby_nosort/10/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_28.test) +### 94/190 [`./test/index/orderby_nosort/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_2.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 1.506ms - ----- ---- ---- ---- ---- ---- ---- -### 158/620 [`./test/index/orderby_nosort/10/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_29.test) - -#### ★ Assuming all 10,050 tests still passes as _sqlite_ - -Time: 0.492ms +Time: 0.623ms ---- ---- ---- ---- ---- ---- ---- -### 159/620 [`./test/index/orderby_nosort/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_3.test) +### 95/190 [`./test/index/orderby_nosort/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_3.test) #### ★ Assuming all 10,051 tests still passes as _sqlite_ -Time: 1.501ms +Time: 0.675ms ---- ---- ---- ---- ---- ---- ---- -### 160/620 [`./test/index/orderby_nosort/10/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_30.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.495ms - ----- ---- ---- ---- ---- ---- ---- -### 161/620 [`./test/index/orderby_nosort/10/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_31.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 1.516ms - ----- ---- ---- ---- ---- ---- ---- -### 162/620 [`./test/index/orderby_nosort/10/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_32.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.469ms - ----- ---- ---- ---- ---- ---- ---- -### 163/620 [`./test/index/orderby_nosort/10/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_33.test) - -#### ★ Assuming all 10,050 tests still passes as _sqlite_ - -Time: 2.224ms - ----- ---- ---- ---- ---- ---- ---- -### 164/620 [`./test/index/orderby_nosort/10/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_34.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.540ms - ----- ---- ---- ---- ---- ---- ---- -### 165/620 [`./test/index/orderby_nosort/10/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_35.test) - -#### ★ Assuming all 10,049 tests still passes as _sqlite_ - -Time: 1.680ms - ----- ---- ---- ---- ---- ---- ---- -### 166/620 [`./test/index/orderby_nosort/10/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_36.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.472ms - ----- ---- ---- ---- ---- ---- ---- -### 167/620 [`./test/index/orderby_nosort/10/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_37.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 2.877ms - ----- ---- ---- ---- ---- ---- ---- -### 168/620 [`./test/index/orderby_nosort/10/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_38.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 0.475ms - ----- ---- ---- ---- ---- ---- ---- -### 169/620 [`./test/index/orderby_nosort/10/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_39.test) - -#### ★ Assuming all 10,052 tests still passes as _sqlite_ - -Time: 1.706ms - ----- ---- ---- ---- ---- ---- ---- -### 170/620 [`./test/index/orderby_nosort/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_4.test) +### 96/190 [`./test/index/orderby_nosort/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_4.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 1.986ms +Time: 0.668ms ---- ---- ---- ---- ---- ---- ---- -### 171/620 [`./test/index/orderby_nosort/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_5.test) +### 97/190 [`./test/index/orderby_nosort/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_5.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 2.141ms +Time: 0.653ms ---- ---- ---- ---- ---- ---- ---- -### 172/620 [`./test/index/orderby_nosort/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_6.test) +### 98/190 [`./test/index/orderby_nosort/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_6.test) #### ★ Assuming all 10,053 tests still passes as _sqlite_ -Time: 1.579ms +Time: 0.681ms ---- ---- ---- ---- ---- ---- ---- -### 173/620 [`./test/index/orderby_nosort/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_7.test) +### 99/190 [`./test/index/orderby_nosort/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_7.test) #### ★ Assuming all 10,052 tests still passes as _sqlite_ -Time: 2.550ms +Time: 0.675ms ---- ---- ---- ---- ---- ---- ---- -### 174/620 [`./test/index/orderby_nosort/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_8.test) +### 100/190 [`./test/index/orderby_nosort/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_8.test) #### ★ Assuming all 10,054 tests still passes as _sqlite_ -Time: 2.364ms +Time: 0.658ms ---- ---- ---- ---- ---- ---- ---- -### 175/620 [`./test/index/orderby_nosort/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_9.test) +### 101/190 [`./test/index/orderby_nosort/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/10/slt_good_9.test) #### ★ Assuming all 10,055 tests still passes as _sqlite_ -Time: 1.382ms +Time: 0.653ms ---- ---- ---- ---- ---- ---- ---- -### 176/620 [`./test/index/orderby_nosort/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_0.test) +### 102/190 [`./test/index/orderby_nosort/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_0.test) #### ★ Assuming all 10,149 tests still passes as _sqlite_ -Time: 2.045ms +Time: 0.665ms ---- ---- ---- ---- ---- ---- ---- -### 177/620 [`./test/index/orderby_nosort/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_1.test) +### 103/190 [`./test/index/orderby_nosort/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_1.test) #### ★ Assuming all 10,141 tests still passes as _sqlite_ -Time: 1.565ms +Time: 0.685ms ---- ---- ---- ---- ---- ---- ---- -### 178/620 [`./test/index/orderby_nosort/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_2.test) +### 104/190 [`./test/index/orderby_nosort/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_2.test) #### ★ Assuming all 10,142 tests still passes as _sqlite_ -Time: 1.827ms +Time: 0.617ms ---- ---- ---- ---- ---- ---- ---- -### 179/620 [`./test/index/orderby_nosort/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_3.test) +### 105/190 [`./test/index/orderby_nosort/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_3.test) #### ★ Assuming all 10,143 tests still passes as _sqlite_ -Time: 1.823ms +Time: 0.618ms ---- ---- ---- ---- ---- ---- ---- -### 180/620 [`./test/index/orderby_nosort/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_4.test) +### 106/190 [`./test/index/orderby_nosort/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_4.test) #### ★ Assuming all 10,141 tests still passes as _sqlite_ -Time: 1.498ms +Time: 0.674ms ---- ---- ---- ---- ---- ---- ---- -### 181/620 [`./test/index/orderby_nosort/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_5.test) +### 107/190 [`./test/index/orderby_nosort/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_5.test) #### ★ Assuming all 10,142 tests still passes as _sqlite_ -Time: 0.590ms +Time: 5.408ms ---- ---- ---- ---- ---- ---- ---- -### 182/620 [`./test/index/orderby_nosort/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_6.test) +### 108/190 [`./test/index/orderby_nosort/100/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/100/slt_good_6.test) #### ★ Assuming all 10,144 tests still passes as _sqlite_ -Time: 1.387ms +Time: 0.669ms ---- ---- ---- ---- ---- ---- ---- -### 183/620 [`./test/index/orderby_nosort/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_0.test) +### 109/190 [`./test/index/orderby_nosort/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_0.test) #### ★ Assuming all 11,040 tests still passes as _sqlite_ -Time: 5.427ms +Time: 0.602ms ---- ---- ---- ---- ---- ---- ---- -### 184/620 [`./test/index/orderby_nosort/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_1.test) +### 110/190 [`./test/index/orderby_nosort/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/orderby_nosort/1000/slt_good_1.test) #### ★ Assuming all 11,043 tests still passes as _sqlite_ -Time: 2.255ms +Time: 0.659ms ---- ---- ---- ---- ---- ---- ---- -### 185/620 [`./test/index/random/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_0.test) +### 111/190 [`./test/index/random/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_0.test) _Mimic sqlite_ @@ -2031,10 +1392,10 @@ Expected: ["-953"] but got ["NULL"] * 790 failed * 92% was OK -Time: 38550.737ms +Time: 25958.462ms ---- ---- ---- ---- ---- ---- ---- -### 186/620 [`./test/index/random/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_1.test) +### 112/190 [`./test/index/random/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_1.test) _Mimic sqlite_ @@ -2098,33969 +1459,5450 @@ Expected: ["445824"] but got ["NULL"] * 730 failed * 92% was OK -Time: 30321.652ms +Time: 23774.490ms ---- ---- ---- ---- ---- ---- ---- -### 187/620 [`./test/index/random/10/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_10.test) +### 113/190 [`./test/index/random/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_2.test) _Mimic sqlite_ ```sql -SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL >= - col3 +SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL -Expected: ["0"] but got ["10"] +Wrong conversion type ``` ```sql -SELECT + col0 AS col1 FROM tab0 WHERE - CAST ( NULL AS REAL ) + - 89 BETWEEN NULL AND NULL +SELECT - col3 col3 FROM tab0 WHERE NOT - CAST ( - + col3 AS INTEGER ) BETWEEN NULL AND col1 -Wrong conversion type +Query was expected to return results (but did not) ``` ```sql -SELECT ALL + - ( + 76 ) FROM tab0 WHERE NOT + col4 * + + CAST ( NULL AS INTEGER ) IS NOT NULL +SELECT ALL + COUNT ( * ) * 11 AS col3 FROM tab0 AS cor0 WHERE NOT NULL > NULL -Query was expected to return results (but did not) +Expected: ["0"] but got ["110"] ``` ```sql -SELECT + - 39 + + + 57 AS col5, - col3 AS col5 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL +SELECT ALL col5 FROM tab0 AS cor0 WHERE NOT col1 IS NULL Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT col5 FROM tab0 WHERE ( 99 ) NOT BETWEEN ( NULL ) AND col1 +SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL -Expected: ["0"] but got ["eapur","fgqwx","igtci","oggnp","plcxd","qbrdd","qqeza","rywts","shkjt","zsgry"] +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT ALL + SUM ( DISTINCT - col0 ) FROM tab0 WHERE NOT col5 IS NOT NULL +SELECT + 31 + - MIN ( - 42 ) FROM tab0 cor0 WHERE NOT - col3 * + col3 * + + col0 + + col4 BETWEEN col1 AND NULL -Expected: ["NULL"] but got ["0"] +Expected: ["73"] but got ["NULL"] +``` + + +```sql +SELECT col5 FROM tab0 WHERE - ( - col1 ) <= + col0 + +Expected: ["0","0","0","0","0","0"] but got ["bqisj","gtdhg","mylwf","tlesg","vrkrw","ylzxx"] ``` ```sql -SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT ( + + col0 - + + col1 ) >= ( col1 ) +SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col4 > + + col1 -Expected: ["0","0","0","0","0","0"] but got ["gaven","qlgja","qnpgu","xobsl","youok","yqgcu"] +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] ``` ```sql -SELECT - 88 + + ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0 WHERE NULL IS NULL +SELECT + CAST ( - SUM ( - col3 ) AS INTEGER ) col3 FROM tab0 WHERE + ( col3 ) NOT IN ( - 44 + col1 * + + col4, 39 ) g is not defined ``` + +```sql +SELECT - 45 FROM tab0 AS cor0 WHERE NOT + col1 * 41 / + + 82 BETWEEN - col3 AND ( - + ( - 64 ) ) + +10 results returned but expected 9 +``` + #### ☓ Ran 10,034 tests as _sqlite_ -* 850 failed -* 91% was OK +* 910 failed +* 90% was OK -Time: 30884.063ms +Time: 30782.601ms ---- ---- ---- ---- ---- ---- ---- -### 188/620 [`./test/index/random/10/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_11.test) +### 114/190 [`./test/index/random/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_3.test) _Mimic sqlite_ ```sql -SELECT + col2 AS col2 FROM tab0 WHERE NOT + + col3 + col3 BETWEEN col3 AND - col1 +SELECT ALL col5 FROM tab0 AS cor0 WHERE + col4 * + col4 * + 24 IS NOT NULL -Query was expected to return results (but did not) +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT col5 FROM tab0 WHERE 75 NOT BETWEEN - col1 * - - 7 AND ( - col0 ) +SELECT DISTINCT - COUNT ( * ) * 9 FROM tab0 WHERE NOT NULL <= ( + col1 ) -Correct amount of values returned but hash was different than expected. +Expected: ["0"] but got ["-90"] +``` + + +```sql +SELECT + col3 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL + +Wrong conversion type +``` + + +```sql +SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 25 IS NOT NULL + +Query was expected to return results (but did not) ``` ```sql -SELECT 26 + CAST ( - 80 AS INTEGER ) AS col5 FROM tab0 WHERE - ( + - 42 ) + col3 NOT BETWEEN NULL AND col1 +SELECT + col2 AS col1 FROM tab0 WHERE NOT col1 <= col4 -Expected: ["-54","-54","-54","-54","-54","-54","-54"] but got ["-54","-54","-54","-54","-54","-54","-54","-54","-54","-54"] +Expected: ["0","0","0","0","0"] but got ["ayfdf","iiegz","kaetk","reayu","unszc"] ``` ```sql -SELECT - 6 FROM tab0 AS cor0 WHERE col0 <= - CAST ( NULL AS REAL ) +SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) + - 63 AS col0 FROM tab0 WHERE NULL NOT IN ( 71 ) -Wrong conversion type +g is not defined ``` ```sql -SELECT SUM ( ALL col4 ) FROM tab0 AS cor0 WHERE + col4 IS NULL +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT - 89 IS NULL Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT DISTINCT MAX ( DISTINCT col3 ) AS col0 FROM tab0 AS cor0 WHERE NOT 31 * + - col1 BETWEEN ( col4 + + col3 + - col4 ) AND + 34 * col1 +SELECT col5 col1 FROM tab0 AS cor0 WHERE NOT col0 < + col1 -Expected: ["938"] but got ["NULL"] +Expected: ["0","0"] but got ["hkqiq","wjfwi"] ``` ```sql -SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - 21 AS col1 FROM tab0 AS cor0 WHERE 43 * + - CAST ( NULL AS INTEGER ) IS NOT NULL +SELECT DISTINCT 83 * - 92 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col3, - CAST ( NULL AS INTEGER ) / col4 * + 52 AS col5 FROM tab0 AS cor0 WHERE col3 <= 81 -g is not defined +Expected: ["NULL","NULL"] but got ["-7636","0"] ``` -#### ☓ Ran 10,031 tests as _sqlite_ -* 790 failed -* 92% was OK +```sql +SELECT - MIN ( DISTINCT col0 ) + 54 FROM tab0 WHERE NOT ( col1 + + col3 * + col0 ) IN ( col0 ) + +Expected: ["-130"] but got ["NULL"] +``` + +#### ☓ Ran 10,034 tests as _sqlite_ + +* 680 failed +* 93% was OK -Time: 33027.434ms +Time: 34027.421ms ---- ---- ---- ---- ---- ---- ---- -### 189/620 [`./test/index/random/10/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_12.test) +### 115/190 [`./test/index/random/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_4.test) _Mimic sqlite_ ```sql -SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) - + - col3 BETWEEN - col1 AND NULL +SELECT ALL + col5 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL -Wrong conversion type +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT - + ( - col3 ) * - + col3 FROM tab0 AS cor0 WHERE NOT + 20 BETWEEN col4 * 57 AND - + col4 + col1 +SELECT CAST ( NULL AS INTEGER ), ( + COUNT ( * ) ) FROM tab0 WHERE NOT + 26 IS NULL -Query was expected to return results (but did not) +Expected: ["NULL","10"] but got ["0","10"] ``` ```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE col4 IS NOT NULL +SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( - 12 ) <= NULL -Correct amount of values returned but hash was different than expected. +Expected: ["0"] but got ["10"] ``` ```sql -SELECT ALL - COUNT ( ALL - col4 ) * - 71 + - 0 FROM tab0 AS cor0 WHERE NOT + 97 < NULL +SELECT * FROM tab0 AS cor0 WHERE NOT - col3 - ( - ( - col1 ) ) NOT IN ( - 78 + - 95 * CAST ( NULL AS REAL ) ) -Expected: ["0"] but got ["710"] +Wrong conversion type ``` ```sql -SELECT - MAX ( + 26 ) FROM tab0 AS cor0 WHERE NOT - col3 NOT BETWEEN + + col4 AND NULL +SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col4 FROM tab0 cor0 WHERE col0 IS NULL -Expected: ["NULL"] but got ["-26"] +Query was expected to return results (but did not) ``` ```sql -SELECT col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col3 < + 71 +SELECT - CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 WHERE ( NOT col0 NOT BETWEEN + col4 AND + + col1 ) -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0","0","0"] +g is not defined ``` ```sql -SELECT col5 AS col4 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN ( NULL ) AND ( + col1 ) +SELECT DISTINCT + MAX ( + col3 ) FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - + col3 + col3 AND + col0 -Expected: ["0","0","0","0","0","0"] but got ["akvhd","duptn","efltn","gwglv","nermp","qvevz","qxdmc","qywiw","ucstb","ukpjw"] +Expected: ["922"] but got ["NULL"] ``` #### ☓ Ran 10,033 tests as _sqlite_ -* 860 failed -* 91% was OK +* 735 failed +* 92% was OK -Time: 32928.724ms +Time: 30780.078ms ---- ---- ---- ---- ---- ---- ---- -### 190/620 [`./test/index/random/10/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_13.test) +### 116/190 [`./test/index/random/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_5.test) _Mimic sqlite_ ```sql -SELECT COUNT ( * ) AS col1, 28 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +SELECT + col2 AS col5 FROM tab0 WHERE NOT ( col0 ) * - - col4 IS NULL -Expected: ["0","28"] but got ["28","0"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT - - CAST ( NULL AS INTEGER ) + col0 * 46 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL +SELECT ALL - 81 FROM tab0 WHERE NOT col0 IN ( - 9 + + 10 * - + 68, col4 ) -Correct amount of values returned but hash was different than expected. +Query was expected to return results (but did not) ``` ```sql -SELECT + - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) AS col4 FROM tab0 WHERE NOT NULL NOT BETWEEN 96 * + 33 / - 1 + 95 AND NULL +SELECT ( - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < NULL -g is not defined +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT - 23 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) NOT BETWEEN NULL AND 69 +SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 72 + - + col4 + col3 ) AND - ( CAST ( NULL AS REAL ) ) Wrong conversion type ``` ```sql -SELECT DISTINCT + 4 * + 69 AS col3 FROM tab0 WHERE NOT col0 BETWEEN NULL AND - + ( col4 ) +SELECT + - COUNT ( * ) AS col4 FROM tab0 AS cor0 WHERE 64 / col0 NOT BETWEEN - col1 AND + + CAST ( NULL AS INTEGER ) -Query was expected to return results (but did not) +Expected: ["0"] but got ["-10"] +``` + + +```sql +SELECT + col2 col5 FROM tab0 AS cor0 WHERE ( col4 ) BETWEEN col0 AND - 96 * - col3 + +Expected: ["0","0","0"] but got ["amwpr","ehefd","uxbns"] ``` +#### ☓ Ran 10,034 tests as _sqlite_ + +* 735 failed +* 92% was OK + +Time: 26956.169ms + +---- ---- ---- ---- ---- ---- ---- +### 117/190 [`./test/index/random/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_6.test) + +_Mimic sqlite_ ```sql -SELECT + ( SUM ( DISTINCT + col3 ) ) AS col2 FROM tab0 AS cor0 WHERE 6 / + col3 * + - ( - + 47 ) IS NULL +SELECT SUM ( DISTINCT + + 90 ) AS col3 FROM tab0 AS cor0 WHERE NULL IS NOT NULL Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT + MAX ( ( col3 ) ) / - - 2 - - - 2 AS col5 FROM tab0 WHERE NOT + col0 IN ( - col1, col3 + 57 ) +SELECT DISTINCT + col3 - col3 col5 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NULL -Expected: ["458"] but got ["NULL"] +Wrong conversion type ``` ```sql -SELECT + col5 col3 FROM tab0 WHERE + col1 NOT BETWEEN - 96 AND col0 +SELECT ALL col2 AS col2 FROM tab0 WHERE 80 * 48 - - 91 > - col4 -Expected: ["0","0","0","0","0","0"] but got ["hbwys","kxrzu","qbdwp","vruch","xarlb","ybarm"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT col5 AS col3 FROM tab0 WHERE NOT ( ( + 45 ) BETWEEN NULL AND col1 ) +SELECT DISTINCT 36 / COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL -Expected: ["0"] but got ["hbwys","kxrzu","lkyfk","pavon","pfxqp","qbdwp","vruch","xarlb","ybarm","ziuqv"] +Expected: ["3"] but got ["3.600"] ``` ```sql -SELECT DISTINCT - ( - ( - + CAST ( NULL AS INTEGER ) ) ), CAST ( NULL AS INTEGER ) + + 80 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL +SELECT ALL ( - col0 ) - 31 - - 80 FROM tab0 AS cor0 WHERE NOT col4 / 6 IN ( + col1 / - + col0 * - col1 ) -Expected: ["NULL","NULL"] but got ["0","80"] +Query was expected to return results (but did not) ``` -#### ☓ Ran 10,032 tests as _sqlite_ -* 885 failed -* 91% was OK +```sql +SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT ( col4 ) <= NULL -Time: 29682.781ms +g is not defined +``` ----- ---- ---- ---- ---- ---- ---- -### 191/620 [`./test/index/random/10/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_14.test) -_Mimic sqlite_ +```sql +SELECT + col2 FROM tab0 WHERE ( 60 + + col3 ) < ( + col0 ) + +Expected: ["0","0","0","0","0"] but got ["gvttq","qvahk","tgsmz","zfxgo","zkoew"] +``` + ```sql -SELECT + col3 * + CAST ( + 1 AS REAL ) FROM tab0 AS cor0 WHERE NOT ( + - 75 ) * col3 / - - col1 * + + col4 * col4 < NULL +SELECT col2 FROM tab0 WHERE + col0 * + col0 + - col4 * col3 <= ( + col1 + col4 * - 0 ) OR ( + 57 * + col0 ) = NULL -Wrong conversion type +Expected: ["0","0"] but got ["naijw","wodwv"] ``` +#### ☓ Ran 10,034 tests as _sqlite_ + +* 780 failed +* 92% was OK + +Time: 32424.967ms + +---- ---- ---- ---- ---- ---- ---- +### 118/190 [`./test/index/random/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_7.test) + +_Mimic sqlite_ ```sql -SELECT - col3, + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + - 98 IS NOT NULL +SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( - - col1 - + - col3 IS NOT NULL ) +SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE ( ( CAST ( NULL AS INTEGER ) ) ) IS NULL -Expected: ["NULL"] but got ["0"] +Query was expected to return results (but did not) ``` ```sql -SELECT DISTINCT - + ( + ( - ( ( - COUNT ( * ) ) ) ) ) FROM tab0 AS cor0 WHERE NOT + col0 = NULL +SELECT ALL - MIN ( ALL + + 73 ) AS col4 FROM tab0 cor0 WHERE NOT 35 >= NULL -Expected: ["0"] but got ["-10"] +Expected: ["NULL"] but got ["-73"] ``` ```sql -SELECT + 10, + 54 FROM tab0 AS cor0 WHERE NOT 66 IN ( - ( + - col3 ) ) +SELECT + COUNT ( * ) col3 FROM tab0 AS cor0 WHERE col4 * + col1 <> NULL -Query was expected to return results (but did not) +Expected: ["0"] but got ["10"] ``` ```sql -SELECT DISTINCT - + col3 AS col5, 78 AS col5 FROM tab0 cor0 WHERE 35 + col0 IS NOT NULL +SELECT DISTINCT - COUNT ( * ) / + CAST ( NULL AS REAL ) AS col5 FROM tab0 WHERE NOT col0 + CAST ( col3 AS INTEGER ) <> 62 * - ( col1 * - col4 ) -2 results returned but expected 20 +Wrong conversion type ``` ```sql -SELECT ALL + col5 AS col3 FROM tab0 WHERE - + col1 NOT BETWEEN NULL AND - col3 +SELECT DISTINCT + - MAX ( DISTINCT + col3 ) AS col2, + ( + COUNT ( * ) ) + + 71 FROM tab0 WHERE NOT + 13 * CAST ( NULL AS INTEGER ) IS NOT NULL -Expected: ["0","0","0"] but got ["cnoua","dunwk","gxohz","jnwpl","kgygk","pfoxu","pgyvg","swdpn","tzczq","zdmee"] +Expected: ["-972","81"] but got ["NULL","71"] ``` ```sql -SELECT + ( - - MAX ( DISTINCT - col0 ) ) - - 76 AS col4, 30 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col3 ) +SELECT ALL col2 AS col5 FROM tab0 WHERE - + col3 BETWEEN - 72 AND 50 + + 78 -Expected: ["NULL","30"] but got ["30","NULL"] +Expected: ["0"] but got ["hmsci"] ``` #### ☓ Ran 10,031 tests as _sqlite_ -* 815 failed -* 91% was OK +* 675 failed +* 93% was OK -Time: 31564.108ms +Time: 44008.973ms ---- ---- ---- ---- ---- ---- ---- -### 192/620 [`./test/index/random/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_2.test) +### 119/190 [`./test/index/random/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_8.test) _Mimic sqlite_ ```sql -SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL +SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL AND 57 + col3 + + col0 * + 36 * col4 > NULL Wrong conversion type ``` ```sql -SELECT - col3 col3 FROM tab0 WHERE NOT - CAST ( - + col3 AS INTEGER ) BETWEEN NULL AND col1 +SELECT SUM ( col3 ) AS col4 FROM tab0 WHERE NOT - 85 + ( + CAST ( NULL AS INTEGER ) ) NOT IN ( col3 * 49 ) -Query was expected to return results (but did not) +Expected: ["NULL"] but got ["5614"] ``` ```sql -SELECT ALL + COUNT ( * ) * 11 AS col3 FROM tab0 AS cor0 WHERE NOT NULL > NULL +SELECT ALL COUNT ( * ) AS col4 FROM tab0 WHERE NOT ( + - col1 ) BETWEEN col3 * + col0 + - - col3 AND ( - + col4 + + + col0 ) -Expected: ["0"] but got ["110"] +Expected: ["10"] but got ["0"] ``` ```sql -SELECT ALL col5 FROM tab0 AS cor0 WHERE NOT col1 IS NULL +SELECT col5 FROM tab0 AS cor0 WHERE NOT ( col0 - col4 ) IS NULL Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + 31 + - MIN ( - 42 ) FROM tab0 cor0 WHERE NOT - col3 * + col3 * + + col0 + + col4 BETWEEN col1 AND NULL +SELECT + col5 AS col5 FROM tab0 AS cor0 WHERE + col4 NOT BETWEEN NULL AND + col3 -Expected: ["73"] but got ["NULL"] +Expected: ["0","0","0"] but got ["apjmo","dubev","ithfo","ktnfz","swsmt","texha","ttvlt","vzeio","ylxxs","zwzyz"] ``` ```sql -SELECT col5 FROM tab0 WHERE - ( - col1 ) <= + col0 +SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 75 * - 78 * + - ( ( - + 46 ) ) IS NULL -Expected: ["0","0","0","0","0","0"] but got ["bqisj","gtdhg","mylwf","tlesg","vrkrw","ylzxx"] +g is not defined ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col4 > + + col1 +SELECT - col0 col3 FROM tab0 WHERE NOT - col3 IN ( + col0 ) -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +Query was expected to return results (but did not) ``` ```sql -SELECT + CAST ( - SUM ( - col3 ) AS INTEGER ) col3 FROM tab0 WHERE + ( col3 ) NOT IN ( - 44 + col1 * + + col4, 39 ) +SELECT - MAX ( ALL + + 78 ) FROM tab0 AS cor0 WHERE NOT + 18 BETWEEN col1 + - ( col1 ) + + ( col1 ) * - - col1 AND 17 * + col0 -g is not defined +Expected: ["-78"] but got ["NULL"] ``` ```sql -SELECT - 45 FROM tab0 AS cor0 WHERE NOT + col1 * 41 / + + 82 BETWEEN - col3 AND ( - + ( - 64 ) ) +SELECT col5 AS col1 FROM tab0 AS cor0 WHERE col4 NOT BETWEEN - ( - 32 ) AND - CAST ( - col1 AS INTEGER ) -10 results returned but expected 9 +Expected: ["0","0","0","0","0"] but got ["apjmo","dubev","ithfo","ktnfz","vzeio"] ``` -#### ☓ Ran 10,034 tests as _sqlite_ +#### ☓ Ran 10,032 tests as _sqlite_ -* 910 failed -* 90% was OK +* 745 failed +* 92% was OK -Time: 29075.632ms +Time: 30956.048ms ---- ---- ---- ---- ---- ---- ---- -### 193/620 [`./test/index/random/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_3.test) +### 120/190 [`./test/index/random/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_9.test) _Mimic sqlite_ ```sql -SELECT ALL col5 FROM tab0 AS cor0 WHERE + col4 * + col4 * + 24 IS NOT NULL +SELECT DISTINCT + + 86 + - col3 AS col0 FROM tab0 cor0 WHERE NOT + 70 * - - 75 - - 75 BETWEEN - col3 + - col4 AND + + col3 * - + col3 -Correct amount of values returned but hash was different than expected. +Query was expected to return results (but did not) ``` ```sql -SELECT DISTINCT - COUNT ( * ) * 9 FROM tab0 WHERE NOT NULL <= ( + col1 ) +SELECT col2 col3 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL -Expected: ["0"] but got ["-90"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT + col3 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL +SELECT 66 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS REAL ) * - 13, 98 ) Wrong conversion type ``` ```sql -SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 25 IS NOT NULL +SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 76 AS col3 FROM tab0 AS cor0 WHERE NOT - ( col0 ) + - col0 IS NOT NULL -Query was expected to return results (but did not) +Expected: ["NULL"] but got ["-76"] ``` ```sql -SELECT + col2 AS col1 FROM tab0 WHERE NOT col1 <= col4 +SELECT ALL 55 / ( COUNT ( * ) ) FROM tab0 cor0 WHERE col5 IS NOT NULL -Expected: ["0","0","0","0","0"] but got ["ayfdf","iiegz","kaetk","reayu","unszc"] +Expected: ["5"] but got ["5.500"] ``` ```sql -SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) + - 63 AS col0 FROM tab0 WHERE NULL NOT IN ( 71 ) +SELECT - + CAST ( - SUM ( DISTINCT - - CAST ( + 91 AS INTEGER ) ) AS INTEGER ), - 51 AS col0 FROM tab0 WHERE NOT NULL <= 60 g is not defined ``` ```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT - 89 IS NULL +SELECT col5 AS col1 FROM tab0 AS cor0 WHERE + 80 + col4 > - - col1 + col3 -Expected: ["NULL"] but got ["0"] +Expected: ["0","0"] but got ["axwip","klkhp"] ``` +#### ☓ Ran 10,031 tests as _sqlite_ -```sql -SELECT col5 col1 FROM tab0 AS cor0 WHERE NOT col0 < + col1 +* 740 failed +* 92% was OK -Expected: ["0","0"] but got ["hkqiq","wjfwi"] -``` +Time: 26967.472ms + +---- ---- ---- ---- ---- ---- ---- +### 121/190 [`./test/index/random/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_0.test) +_Mimic sqlite_ ```sql -SELECT DISTINCT 83 * - 92 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col3, - CAST ( NULL AS INTEGER ) / col4 * + 52 AS col5 FROM tab0 AS cor0 WHERE col3 <= 81 +SELECT ALL + 52 / + 95 FROM tab0 WHERE + col4 IS NOT NULL -Expected: ["NULL","NULL"] but got ["-7636","0"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT - MIN ( DISTINCT col0 ) + 54 FROM tab0 WHERE NOT ( col1 + + col3 * + col0 ) IN ( col0 ) +SELECT - + COUNT ( * ) AS col3 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + col4, col0 + col3 * - 24 ) -Expected: ["-130"] but got ["NULL"] -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 680 failed -* 93% was OK - -Time: 28388.470ms - ----- ---- ---- ---- ---- ---- ---- -### 194/620 [`./test/index/random/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col5 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), ( + COUNT ( * ) ) FROM tab0 WHERE NOT + 26 IS NULL - -Expected: ["NULL","10"] but got ["0","10"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( - 12 ) <= NULL - -Expected: ["0"] but got ["10"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT - col3 - ( - ( - col1 ) ) NOT IN ( - 78 + - 95 * CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col4 FROM tab0 cor0 WHERE col0 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0 WHERE ( NOT col0 NOT BETWEEN + col4 AND + + col1 ) - -g is not defined -``` - - -```sql -SELECT DISTINCT + MAX ( + col3 ) FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - + col3 + col3 AND + col0 - -Expected: ["922"] but got ["NULL"] -``` - -#### ☓ Ran 10,033 tests as _sqlite_ - -* 735 failed -* 92% was OK - -Time: 25696.592ms - ----- ---- ---- ---- ---- ---- ---- -### 195/620 [`./test/index/random/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT + col2 AS col5 FROM tab0 WHERE NOT ( col0 ) * - - col4 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - 81 FROM tab0 WHERE NOT col0 IN ( - 9 + + 10 * - + 68, col4 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ( - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( 72 + - + col4 + col3 ) AND - ( CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT + - COUNT ( * ) AS col4 FROM tab0 AS cor0 WHERE 64 / col0 NOT BETWEEN - col1 AND + + CAST ( NULL AS INTEGER ) - -Expected: ["0"] but got ["-10"] -``` - - -```sql -SELECT + col2 col5 FROM tab0 AS cor0 WHERE ( col4 ) BETWEEN col0 AND - 96 * - col3 - -Expected: ["0","0","0"] but got ["amwpr","ehefd","uxbns"] -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 735 failed -* 92% was OK - -Time: 27470.526ms - ----- ---- ---- ---- ---- ---- ---- -### 196/620 [`./test/index/random/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT SUM ( DISTINCT + + 90 ) AS col3 FROM tab0 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + col3 - col3 col5 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL col2 AS col2 FROM tab0 WHERE 80 * 48 - - 91 > - col4 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT 36 / COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL - -Expected: ["3"] but got ["3.600"] -``` - - -```sql -SELECT ALL ( - col0 ) - 31 - - 80 FROM tab0 AS cor0 WHERE NOT col4 / 6 IN ( + col1 / - + col0 * - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT ( col4 ) <= NULL - -g is not defined -``` - - -```sql -SELECT + col2 FROM tab0 WHERE ( 60 + + col3 ) < ( + col0 ) - -Expected: ["0","0","0","0","0"] but got ["gvttq","qvahk","tgsmz","zfxgo","zkoew"] -``` - - -```sql -SELECT col2 FROM tab0 WHERE + col0 * + col0 + - col4 * col3 <= ( + col1 + col4 * - 0 ) OR ( + 57 * + col0 ) = NULL - -Expected: ["0","0"] but got ["naijw","wodwv"] -``` - -#### ☓ Ran 10,034 tests as _sqlite_ - -* 780 failed -* 92% was OK - -Time: 23854.751ms - ----- ---- ---- ---- ---- ---- ---- -### 197/620 [`./test/index/random/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE ( ( CAST ( NULL AS INTEGER ) ) ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - MIN ( ALL + + 73 ) AS col4 FROM tab0 cor0 WHERE NOT 35 >= NULL - -Expected: ["NULL"] but got ["-73"] -``` - - -```sql -SELECT + COUNT ( * ) col3 FROM tab0 AS cor0 WHERE col4 * + col1 <> NULL - -Expected: ["0"] but got ["10"] -``` - - -```sql -SELECT DISTINCT - COUNT ( * ) / + CAST ( NULL AS REAL ) AS col5 FROM tab0 WHERE NOT col0 + CAST ( col3 AS INTEGER ) <> 62 * - ( col1 * - col4 ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + - MAX ( DISTINCT + col3 ) AS col2, + ( + COUNT ( * ) ) + + 71 FROM tab0 WHERE NOT + 13 * CAST ( NULL AS INTEGER ) IS NOT NULL - -Expected: ["-972","81"] but got ["NULL","71"] -``` - - -```sql -SELECT ALL col2 AS col5 FROM tab0 WHERE - + col3 BETWEEN - 72 AND 50 + + 78 - -Expected: ["0"] but got ["hmsci"] -``` - -#### ☓ Ran 10,031 tests as _sqlite_ - -* 675 failed -* 93% was OK - -Time: 27071.134ms - ----- ---- ---- ---- ---- ---- ---- -### 198/620 [`./test/index/random/10/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL AND 57 + col3 + + col0 * + 36 * col4 > NULL - -Wrong conversion type -``` - - -```sql -SELECT SUM ( col3 ) AS col4 FROM tab0 WHERE NOT - 85 + ( + CAST ( NULL AS INTEGER ) ) NOT IN ( col3 * 49 ) - -Expected: ["NULL"] but got ["5614"] -``` - - -```sql -SELECT ALL COUNT ( * ) AS col4 FROM tab0 WHERE NOT ( + - col1 ) BETWEEN col3 * + col0 + - - col3 AND ( - + col4 + + + col0 ) - -Expected: ["10"] but got ["0"] -``` - - -```sql -SELECT col5 FROM tab0 AS cor0 WHERE NOT ( col0 - col4 ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + col5 AS col5 FROM tab0 AS cor0 WHERE + col4 NOT BETWEEN NULL AND + col3 - -Expected: ["0","0","0"] but got ["apjmo","dubev","ithfo","ktnfz","swsmt","texha","ttvlt","vzeio","ylxxs","zwzyz"] -``` - - -```sql -SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 75 * - 78 * + - ( ( - + 46 ) ) IS NULL - -g is not defined -``` - - -```sql -SELECT - col0 col3 FROM tab0 WHERE NOT - col3 IN ( + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - MAX ( ALL + + 78 ) FROM tab0 AS cor0 WHERE NOT + 18 BETWEEN col1 + - ( col1 ) + + ( col1 ) * - - col1 AND 17 * + col0 - -Expected: ["-78"] but got ["NULL"] -``` - - -```sql -SELECT col5 AS col1 FROM tab0 AS cor0 WHERE col4 NOT BETWEEN - ( - 32 ) AND - CAST ( - col1 AS INTEGER ) - -Expected: ["0","0","0","0","0"] but got ["apjmo","dubev","ithfo","ktnfz","vzeio"] -``` - -#### ☓ Ran 10,032 tests as _sqlite_ - -* 745 failed -* 92% was OK - -Time: 23615.220ms - ----- ---- ---- ---- ---- ---- ---- -### 199/620 [`./test/index/random/10/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/10/slt_good_9.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + + 86 + - col3 AS col0 FROM tab0 cor0 WHERE NOT + 70 * - - 75 - - 75 BETWEEN - col3 + - col4 AND + + col3 * - + col3 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col2 col3 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 66 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS REAL ) * - 13, 98 ) - -Wrong conversion type -``` - - -```sql -SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 76 AS col3 FROM tab0 AS cor0 WHERE NOT - ( col0 ) + - col0 IS NOT NULL - -Expected: ["NULL"] but got ["-76"] -``` - - -```sql -SELECT ALL 55 / ( COUNT ( * ) ) FROM tab0 cor0 WHERE col5 IS NOT NULL - -Expected: ["5"] but got ["5.500"] -``` - - -```sql -SELECT - + CAST ( - SUM ( DISTINCT - - CAST ( + 91 AS INTEGER ) ) AS INTEGER ), - 51 AS col0 FROM tab0 WHERE NOT NULL <= 60 - -g is not defined -``` - - -```sql -SELECT col5 AS col1 FROM tab0 AS cor0 WHERE + 80 + col4 > - - col1 + col3 - -Expected: ["0","0"] but got ["axwip","klkhp"] -``` - -#### ☓ Ran 10,031 tests as _sqlite_ - -* 740 failed -* 92% was OK - -Time: 22709.827ms - ----- ---- ---- ---- ---- ---- ---- -### 200/620 [`./test/index/random/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + 52 / + 95 FROM tab0 WHERE + col4 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - + COUNT ( * ) AS col3 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + col4, col0 + col3 * - 24 ) - -Expected: ["0"] but got ["-100"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE col4 * + col1 + - col3 + - 64 + - col4 BETWEEN col1 + + - CAST ( + - col4 AS REAL ) AND - - CAST ( NULL AS INTEGER ) - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col3 FROM tab0 AS cor0 WHERE NOT - col3 IN ( + - 29 * 82 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - + COUNT ( * ) * + + 51 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> - col0 - -Expected: ["0","NULL"] but got ["-5100","0"] -``` - - -```sql -SELECT ALL + CAST ( COUNT ( ALL col0 ) AS INTEGER ) col3 FROM tab0 WHERE NULL IS NULL - -g is not defined -``` - - -```sql -SELECT col2 AS col0 FROM tab0 WHERE NOT - - col0 >= 54 + 23 - -Expected: ["0"] but got ["qckcw"] -``` - - -```sql -SELECT col0 * + - 7 FROM tab0 WHERE CAST ( col0 AS INTEGER ) NOT BETWEEN NULL AND + col3 - -100 results returned but expected 55 -``` - -#### ☓ Ran 10,123 tests as _sqlite_ - -* 715 failed -* 92% was OK - -Time: 30728.445ms - ----- ---- ---- ---- ---- ---- ---- -### 201/620 [`./test/index/random/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT + col5 AS col1 FROM tab0 AS cor0 WHERE ( - 0 ) BETWEEN 6 * - col4 AND ( + col0 * - - col1 - 48 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + + 77 AS col2, - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col4 AND NULL - -Expected: ["77","0"] but got ["77","-100"] -``` - - -```sql -SELECT + 92 * + - 75 FROM tab0 AS cor0 WHERE NOT + ( + - col0 ) IN ( - + ( + + 81 ) + + col3 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + - MAX ( DISTINCT + col3 ) AS col2, + ( + COUNT ( * ) ) + + 71 FROM tab0 WHERE NOT + 13 * CAST ( NULL AS INTEGER ) IS NOT NULL - -Expected: ["-9951","171"] but got ["NULL","71"] -``` - - -```sql -SELECT - COUNT ( * ) * AVG ( DISTINCT + col3 ) AS col3 FROM tab0 WHERE NOT NULL <= + + col3 - -Expected: ["NULL"] but got ["-531399"] -``` - - -```sql -SELECT col5 col5 FROM tab0 WHERE NOT ( ( col1 ) ) >= + ( - 80 ) * - 31 - col0 - -Expected: ["0","0","0","0"] but got ["kjkvp","rrlwc","uhpvq","ydhme"] -``` - - -```sql -SELECT + col5 AS col5 FROM tab0 AS cor0 WHERE + col4 NOT BETWEEN NULL AND + col3 - -100 results returned but expected 42 -``` - - -```sql -SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 75 * - 78 * + - ( ( - + 46 ) ) IS NULL - -g is not defined -``` - -#### ☓ Ran 10,123 tests as _sqlite_ - -* 655 failed -* 93% was OK - -Time: 36392.076ms - ----- ---- ---- ---- ---- ---- ---- -### 202/620 [`./test/index/random/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 AS cor0 WHERE col4 * + col1 + - col3 + - 64 + - col4 BETWEEN col1 + + - CAST ( + - col4 AS REAL ) AND - - CAST ( NULL AS INTEGER ) - -Wrong conversion type -``` - - -```sql -SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col5 FROM tab0 WHERE - 72 NOT BETWEEN 37 AND NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL > col4 - -Expected: ["0"] but got ["-1000"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col3 FROM tab0 AS cor0 WHERE NOT - col3 IN ( + - 29 * 82 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - + COUNT ( * ) * + + 51 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> - col0 - -Expected: ["0","NULL"] but got ["-51000","0"] -``` - -#### ☓ Ran 2,067 tests as _sqlite_ - -* 70 failed -* 96% was OK - -Time: 19747.184ms - ----- ---- ---- ---- ---- ---- ---- -### 203/620 [`./test/index/random/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL <> + col4 / CAST ( - col0 AS REAL ) ) - -Wrong conversion type -``` - -#### ☓ Ran 1,056 tests as _sqlite_ - -* 5 failed -* 99% was OK - -Time: 2553.016ms - ----- ---- ---- ---- ---- ---- ---- -### 204/620 [`./test/index/random/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_2.test) - -#### ★ Assuming all 1,027 tests still passes as _sqlite_ - -Time: 0.658ms - ----- ---- ---- ---- ---- ---- ---- -### 205/620 [`./test/index/random/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_3.test) - -#### ★ Assuming all 1,033 tests still passes as _sqlite_ - -Time: 0.527ms - ----- ---- ---- ---- ---- ---- ---- -### 206/620 [`./test/index/random/1000/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( - CAST ( NULL AS REAL ) + + col0 NOT IN ( - - col0 * - col3 ) ) ) - -Wrong conversion type -``` - -#### ☓ Ran 1,032 tests as _sqlite_ - -* 5 failed -* 99% was OK - -Time: 2441.731ms - ----- ---- ---- ---- ---- ---- ---- -### 207/620 [`./test/index/random/1000/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT + COUNT ( * ) AS col5 FROM tab0 WHERE NOT - ( 3 ) + col4 NOT BETWEEN NULL AND col0 - -Expected: ["0"] but got ["1000"] -``` - - -```sql -SELECT ALL 72 FROM tab0 WHERE + - col1 * - - ( - col0 ) / + col4 - + col3 + + col0 + + 62 * CAST ( NULL AS INTEGER ) * col0 * - col4 + + 91 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 42 * - col4 AS col3 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 15 FROM tab0 cor0 WHERE ( 92 ) <= col0 / + + CAST ( NULL AS REAL ) + 77 - -Wrong conversion type -``` - - -```sql -SELECT ALL + CAST ( COUNT ( ALL col0 ) AS INTEGER ) col3 FROM tab0 WHERE NULL IS NULL - -g is not defined -``` - -#### ☓ Ran 4,333 tests as _sqlite_ - -* 265 failed -* 93% was OK - -Time: 50939.702ms - ----- ---- ---- ---- ---- ---- ---- -### 208/620 [`./test/index/random/1000/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col1 - 9 * + ( + + CAST ( NULL AS INTEGER ) ) * - 41 * + + 35 FROM tab0 WHERE NOT - 70 IS NULL - -Expected: ["NULL"] but got ["1001.490","101.350","1023.170","1029.400","1040.530","1041.320","105.910","1052.610","1055.210","1061.720","1077.130","1088.150","1134.630","1136.530","1141.510","1142.310","1145.470","1184.360","1189.950","119.510","1195.480","1196.280","1202.190","121.600","1210.330",… -``` - - -```sql -SELECT ALL - 42 + + col0 AS col1, 66 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( 78 AS INTEGER ) * 42 * + 24 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + + col2 FROM tab0 WHERE col0 <= + + col4 * - + CAST ( NULL AS REAL ) + + 67 - -Wrong conversion type -``` - - -```sql -SELECT + 89 FROM tab0 WHERE + - col0 NOT BETWEEN + + 45 + - + col4 AND NULL - -1000 results returned but expected 491 -``` - - -```sql -SELECT - MIN ( + col4 ) AS col3 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL - -Expected: ["-61"] but got ["-61.500"] -``` - - -```sql -SELECT - 74 * 61 FROM tab0 AS cor0 WHERE NOT 1 IN ( 78 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 WHERE ( col3 ) IN ( + col0 ) - -Expected: ["750","79","2150","0","79","1716","0"] but got ["750","79","2150.540","kuzlf","79","1716.500","wqnrb"] -``` - -#### ☓ Ran 11,021 tests as _sqlite_ - -* 725 failed -* 93% was OK - -Time: 89561.007ms - ----- ---- ---- ---- ---- ---- ---- -### 209/620 [`./test/index/random/1000/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT MAX ( col4 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL - -Expected: ["NULL"] but got ["9994.100"] -``` - - -```sql -SELECT ALL + ( - - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col5 FROM tab0 WHERE NOT NULL IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT + col5 FROM tab0 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - COUNT ( 41 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 41 AND - 82 - -Expected: ["0"] but got ["-1000"] -``` - - -```sql -SELECT 36 FROM tab0 WHERE - col3 + col0 NOT BETWEEN NULL AND ( + - col0 ) - -1000 results returned but expected 762 -``` - - -```sql -SELECT DISTINCT + 42 / + COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL col2 FROM tab0 WHERE - + col3 BETWEEN - 72 AND 50 + + 78 - -Expected: ["0","0","0","0","0"] but got ["ernxs","orpfh","pirjf","tbpkm","zphbq"] -``` - -#### ☓ Ran 11,022 tests as _sqlite_ - -* 780 failed -* 92% was OK - -Time: 84723.283ms - ----- ---- ---- ---- ---- ---- ---- -### 210/620 [`./test/index/random/1000/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 / - - col3 + + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -1000 results returned but expected 967 -``` - - -```sql -SELECT ALL ( + + col0 ) FROM tab0 AS cor0 WHERE NOT col4 IN ( + - col1 * - + 58, + col4 * - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + ( - MAX ( - 10 ) ) * + + 59 AS col3 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL ) - -Expected: ["NULL"] but got ["590"] -``` - - -```sql -SELECT col3 AS col1 FROM tab0 WHERE NOT 2 * + col0 + + CAST ( NULL AS REAL ) + - 93 >= + 40 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col4 * + + col3 + + - col0 + - + col4 - -Expected: ["0"] but got ["1000"] -``` - - -```sql -SELECT ALL + CAST ( col3 AS INTEGER ) * col3 + - ( + col0 ) / - col3 AS col2 FROM tab0 WHERE ( NULL ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - -#### ☓ Ran 4,841 tests as _sqlite_ - -* 310 failed -* 93% was OK - -Time: 32089.808ms - ----- ---- ---- ---- ---- ---- ---- -### 211/620 [`./test/index/view/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_0.test) - -_Mimic sqlite_ -Time: 5.254ms - ----- ---- ---- ---- ---- ---- ---- -### 212/620 [`./test/index/view/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_2_tab0_153 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_154 UNION SELECT pk, col0 FROM view_2_tab0_154 - -10 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_154 - -Expected: ["1","4","5","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_155 - -Expected: ["6","0"] but got ["NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_157 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE ((col0 IS NULL) OR col3 > 5 OR col3 <= 50 OR col1 < 83.11))) OR col0 > 75 - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 8,137 tests as _sqlite_ - -* 7,698 skipped -* 91 failed -* 4% was OK - -Time: 2705.934ms - ----- ---- ---- ---- ---- ---- ---- -### 213/620 [`./test/index/view/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_302 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_302 - -Expected: ["4","11","7","70"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_302 UNION SELECT pk, col0 FROM view_2_tab0_302 - -4 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_302 - -Expected: ["0","1","2","3","5","6","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_305 - -Expected: ["6","56","7","70","8","75"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_305 - -Expected: ["0","1","2","3","4","5","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_306 - -Expected: ["4","11"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_308 - -Expected: ["2","3","5","8","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_316 - -Expected: ["6","7","8"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_322 - -Expected: ["6"] but got ["NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_367 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL OR (((col0 < 64 AND (col0 BETWEEN 25 AND 41) AND (col4 >= 33.34) OR (col4 < 22.72 AND (col0 >= 61)) AND (col0 > 4) OR col0 >= 0 OR col0 >= 45 AND col3 IN (SELECT col0 FROM tab0 WHERE col3 > 42) AND col3 IS NULL AND col3 <= … - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,465 tests as _sqlite_ - -* 1,028 skipped -* 1,361 failed -* 67% was OK - -Time: 16880.573ms - ----- ---- ---- ---- ---- ---- ---- -### 214/620 [`./test/index/view/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_376 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_376 UNION SELECT pk, col0 FROM view_2_tab0_376 - -2 results returned but expected 20 -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_377 - -Expected: ["1","72","5","85","8","94","9","95"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_377 - -Expected: ["1","5","8","9"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_378 - -Expected: ["2","52"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_378 - -Expected: ["2"] but got ["NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_385 - -Expected: ["0","2","3","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_387 - -Expected: ["0","60","1","72","9","95"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_387 - -Expected: ["2","3","4","5","6","7","8"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_405 - -Expected: ["2","6","7"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab2_406 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -CREATE VIEW view_1_tab0_408 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL AND (((((col1 < 63.79))) OR col0 >= 35 AND col4 > 76.20 AND col0 = 84 OR col0 <= 76 AND col3 IN (SELECT col0 FROM tab0 WHERE col4 = 39.20 AND col3 <= 5))) - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,271 tests as _sqlite_ - -* 4,133 skipped -* 716 failed -* 33% was OK - -Time: 9007.515ms - ----- ---- ---- ---- ---- ---- ---- -### 215/620 [`./test/index/view/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_444 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_444 - -Expected: ["1","65","5","67"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_444 UNION SELECT pk, col0 FROM view_2_tab0_444 - -4 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_444 - -Expected: ["0","2","3","4","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_446 - -Expected: ["1","65"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_447 - -Expected: ["3"] but got ["NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_448 - -Expected: ["2","3","4","8","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_462 - -Expected: ["3","6","7","52","8","29"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_462 - -Expected: ["3","7","8"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_463 - -Expected: ["0","1","2","5","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_519 AS SELECT pk, col0 FROM tab0 WHERE (((col0 >= 39) OR (col1 < 88.77) AND (((col1 <= 79.45) AND col0 IN (83,70,92,44,74) AND col4 < 94.64 OR col0 > 49 AND (col3 >= 51 OR col0 > 38)) OR col0 < 10 OR col1 > 79.73 AND col3 > 53 AND col1 BETWEEN 24.95 AND 9.14 AND col3 < 51 OR… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,563 tests as _sqlite_ - -* 223 skipped -* 1,526 failed -* 76% was OK - -Time: 18936.083ms - ----- ---- ---- ---- ---- ---- ---- -### 216/620 [`./test/index/view/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_660 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_660 - -Expected: ["2","85","3","93"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_660 UNION SELECT pk, col0 FROM view_2_tab0_660 - -4 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_660 - -Expected: ["0","1","4","5","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_661 - -Expected: ["0","48","2","85","3","93"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_661 - -Expected: ["0","2","3"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_662 - -Expected: ["2","3"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_677 - -Expected: ["0","2","3","4","5","7","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_687 - -Expected: ["8"] but got ["NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_726 AS SELECT pk, col0 FROM tab0 WHERE col0 > 84 AND col4 <= 74.98 AND col1 IN (SELECT col4 FROM tab0 WHERE (col4 > 35.62) AND ((col3 > 33) AND (((((col3 > 1))) AND (col0 = 21 OR (((col3 > 79))) AND (col1 < 18.85) AND ((col3 > 26)) OR ((col3 > 73) AND col3 <= 84)))) OR ((((c… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,384 tests as _sqlite_ - -* 1,143 skipped -* 1,371 failed -* 65% was OK - -Time: 17323.168ms - ----- ---- ---- ---- ---- ---- ---- -### 217/620 [`./test/index/view/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_946 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_946 UNION SELECT pk, col0 FROM view_2_tab0_946 - -10 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_946 - -Expected: ["1","2","5","6","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_948 - -Expected: ["7","71"] but got ["NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_952 - -Expected: ["1","35","3","18","7","71","9","0"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_952 - -Expected: ["0","2","4","5","6","8"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_961 - -Expected: ["0","1","2","4","5","6","7"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_963 - -Expected: ["8"] but got ["NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_970 - -Expected: ["0","87","3","18"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_975 - -Expected: ["3","7","9"] but got ["NULL","NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_984 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 42) AND ((col1 IS NULL)) OR ((((col3 > 72)))) OR (((col3 <= 90) AND ((col0 > 68)) AND (col0 IN (45,3,50,1) OR col4 < 9.99 OR col3 IN (76,97,24) AND col1 > 8.58 AND (col0 = 3) AND (col0 >= 50 AND col0 IN (SELECT col3 FROM tab0 WH… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 6,492 tests as _sqlite_ - -* 2,753 skipped -* 806 failed -* 45% was OK - -Time: 12387.081ms - ----- ---- ---- ---- ---- ---- ---- -### 218/620 [`./test/index/view/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM view_1_tab0_1009 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_1009 - -Expected: ["0","71","5","97"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_1009 UNION SELECT pk, col0 FROM view_2_tab0_1009 - -4 results returned but expected 20 -``` - - -```sql -SELECT * FROM view_3_tab0_1009 - -Expected: ["1","2","3","4","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_1013 - -Expected: ["2","89","4","92","5","97"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_1013 - -Expected: ["0","1","3","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_1023 - -Expected: ["3","5"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_1027 - -Expected: ["6"] but got ["NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_1031 - -Expected: ["1","3","6","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_1035 - -Expected: ["3","7","8"] but got ["NULL","NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_1042 AS SELECT pk, col0 FROM tab0 WHERE ((col0 > 16 OR ((col0 < 9 OR col3 IN (SELECT col0 FROM tab0 WHERE (col0 < 94) AND col0 <= 61))) AND col3 = 18 OR col3 < 55 AND col3 IN (76,76) OR col3 >= 86 AND ((((((col0 < 9)))) AND col0 = 70 OR col1 IS NULL) AND (col3 IN (31,92,0)))… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,533 tests as _sqlite_ - -* 4,593 skipped -* 646 failed -* 30% was OK - -Time: 9631.912ms - ----- ---- ---- ---- ---- ---- ---- -### 219/620 [`./test/index/view/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_77 UNION SELECT pk, col0 FROM view_2_tab0_77 - -150 results returned but expected 200 -``` - - -```sql -SELECT * FROM view_3_tab0_84 - -Expected: ["1","26","29","4","81","94"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_93 AS SELECT pk, col0 FROM tab0 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 8,623 tests as _sqlite_ - -* 6,893 skipped -* 677 failed -* 12% was OK - -Time: 6704.087ms - ----- ---- ---- ---- ---- ---- ---- -### 220/620 [`./test/index/view/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_226 UNION SELECT pk, col0 FROM view_2_tab0_226 - -112 results returned but expected 200 -``` - - -```sql -SELECT pk, col0 FROM view_2_tab0_229 - -Expected: ["30","84","86","184"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_232 - -Expected: ["19","869","81","978","83","803"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_232 - -Expected: ["19","81","83"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_250 - -Expected: ["18","24"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_271 - -Expected: ["93"] but got ["NULL"] -``` - -#### ☓ Ran 7,122 tests as _sqlite_ - -* 2,876 failed -* 59% was OK - -Time: 26509.010ms - ----- ---- ---- ---- ---- ---- ---- -### 221/620 [`./test/index/view/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_523 UNION SELECT pk, col0 FROM view_2_tab0_523 - -64 results returned but expected 200 -``` - - -```sql -CREATE VIEW view_1_tab0_534 AS SELECT pk, col0 FROM tab0 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 8,235 tests as _sqlite_ - -* 7,008 skipped -* 457 failed -* 9% was OK - -Time: 5136.453ms - ----- ---- ---- ---- ---- ---- ---- -### 222/620 [`./test/index/view/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_597 - -Expected: ["69","996"] but got ["NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_597 UNION SELECT pk, col0 FROM view_2_tab0_597 - -198 results returned but expected 200 -``` - - -```sql -SELECT * FROM view_3_tab0_597 - -Expected: ["69"] but got ["NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_602 AS SELECT pk, col0 FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE col0 >= 795) OR col3 >= 543 OR col3 > 991 AND (((col3 < 927 OR (col3 < 430)) AND (col0 > 590) OR (col0 >= 449 AND col4 > 729.35 OR (((col3 >= 745 AND col0 IN (376,260))) AND col0 = 742 OR ((col3 < 40… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,174 tests as _sqlite_ - -* 6,548 skipped -* 207 failed -* 5% was OK - -Time: 3428.017ms - ----- ---- ---- ---- ---- ---- ---- -### 223/620 [`./test/index/view/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_799 UNION SELECT pk, col0 FROM view_2_tab0_799 - -36 results returned but expected 200 -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_804 - -Expected: ["11","576","47","71"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_804 - -Expected: ["11","47"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_813 - -Expected: ["49"] but got ["NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_817 - -Expected: ["23","34","36","67","68","8","91"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_837 - -Expected: ["54","65","74","76","96"] but got ["NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -CREATE VIEW view_1_tab0_869 AS SELECT pk, col0 FROM tab0 WHERE (((col0 > 796 OR ((((col0 < 642)) AND (((((col1 < 435.47 AND col0 = 220)) AND (col0 > 695) AND col3 > 66 AND (col4 > 262.50))) OR col0 > 828 AND ((col0 >= 606 AND col1 <= 821.18)) OR (col0 > 561) AND col4 < 21.23 OR col0 <= 506 AND col3… - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 6,935 tests as _sqlite_ - -* 108 skipped -* 2,712 failed -* 59% was OK - -Time: 38492.646ms - ----- ---- ---- ---- ---- ---- ---- -### 224/620 [`./test/index/view/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_870 UNION SELECT pk, col0 FROM view_2_tab0_870 - -16 results returned but expected 200 -``` - - -```sql -SELECT * FROM view_3_tab0_876 - -Expected: ["2","27","51","57","6","64","75"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_879 - -Expected: ["29","638","43","152","46","772","51","862"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM view_3_tab0_879 - -Expected: ["29","43","46","51"] but got ["NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT pk, col0 FROM tab1 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -CREATE VIEW view_1_tab0_901 AS SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= … - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,949 tests as _sqlite_ - -* 4,823 skipped -* 1,217 failed -* 24% was OK - -Time: 18256.543ms - ----- ---- ---- ---- ---- ---- ---- -### 225/620 [`./test/index/view/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/1000/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_739 UNION SELECT pk, col0 FROM view_2_tab0_739 - -1824 results returned but expected 2000 -``` - - -```sql -CREATE VIEW view_1_tab0_742 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) - -Cannot read property 'columns' of undefined -``` - -_Fail found for statement setting up data so skipping rest of tests_ - -#### ☓ Ran 7,630 tests as _sqlite_ - -* 6,203 skipped -* 167 failed -* 16% was OK - -Time: 15495.267ms - ----- ---- ---- ---- ---- ---- ---- -### 226/620 [`./test/index/view/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10000/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT pk, col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT pk, col0 FROM view_1_tab0_1 UNION SELECT pk, col0 FROM view_2_tab0_1 - -6920 results returned but expected 20000 -``` - -#### ☓ Ran 10,622 tests as _sqlite_ - -* 271 failed -* 97% was OK - -Time: 1179434.160ms - ----- ---- ---- ---- ---- ---- ---- -### 227/620 [`./test/random/aggregates/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 20 / - 97 FROM tab0 - -Expected: ["0"] but got ["-0.206"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 0 col0 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT MIN ( DISTINCT col1 ) * - + AVG ( DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) ) AS col2, COUNT ( ALL - col0 ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","3"] but got ["3"] -``` - - -```sql -SELECT DISTINCT - col1 AS col2, col2 AS col2 FROM tab1 WHERE - - CAST ( + - col1 AS REAL ) NOT BETWEEN - col0 AND NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + CAST ( ( + SUM ( - 14 ) ) AS INTEGER ) AS col0 FROM tab1 - -g is not defined -``` - - -```sql -SELECT ALL + col0 AS col1, + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0 - -Expected: ["15","NULL","87","NULL","97","NULL"] but got ["15","47","87","10","97","99"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + col1 * CAST ( NULL AS INTEGER ) + + 67 AS col2 FROM tab2 WHERE ( + + col2 ) <= ( 42 ) - -Expected: ["NULL","NULL"] but got ["67","67"] -``` - - -```sql -SELECT + MIN ( - 82 ) AS col0 FROM tab2 WHERE - + 5 * + col1 / - CAST ( NULL AS INTEGER ) IS NULL - -Expected: ["-82"] but got ["NULL"] -``` - - -```sql -SELECT ALL MIN ( ALL + 80 ) AS col2, 27 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + 95 + + 63 AND + 0 - -Expected: ["NULL","27"] but got ["27","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 JOIN tab2 cor1 ON + ( 90 ) IS NOT NULL, tab0 AS cor2 - -Parse error on line 1: -...+ ( 90 ) IS NOT NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT col2 + + 76 / - ( - + col1 ) AS col1, 71 + col0 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 - -Expected: ["24","NULL","40","NULL","59","NULL"] but got ["24.490","NULL","40.987","NULL","59.134","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,588 failed -* 84% was OK - -Time: 27695.248ms - ----- ---- ---- ---- ---- ---- ---- -### 228/620 [`./test/random/aggregates/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col1, + col2 col1 FROM tab2 - -Expected: ["51","23","67","58","77","40"] but got ["23","23","40","40","58","58"] -``` - - -```sql -SELECT + ( CAST ( NULL AS REAL ) ) - col0 AS col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 19 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * 44 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT - - CAST ( MAX ( ALL + col1 ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 16 AS col0 FROM tab0 WHERE NOT + 71 * + + CAST ( NULL AS INTEGER ) * - 24 + - ( - col2 ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL MAX ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT - 85 * col0 + col0 BETWEEN - 82 AND NULL - -Expected: ["99"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + 36 / + - 21 AS col1, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,374 failed -* 86% was OK - -Time: 20058.655ms - ----- ---- ---- ---- ---- ---- ---- -### 229/620 [`./test/random/aggregates/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_10.test) - -_Mimic sqlite_ - -```sql -SELECT - COUNT ( * ) / + 47 FROM tab2 WHERE NOT col2 NOT IN ( - 30 + + CAST ( col1 AS INTEGER ) * - CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + col2 / - + 26 FROM tab0 - -Expected: ["-1","-3","0"] but got ["-0.385","-1.808","-3.808"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) * - CAST ( - 49 AS INTEGER ) / col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col2 IN ( 35, + 27 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 30 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NOT NULL - -6 results returned but expected 18 -``` - - -```sql -SELECT DISTINCT + SUM ( DISTINCT + col2 ), - MAX ( DISTINCT + - 11 ) FROM tab2 WHERE NULL = - 61 + + col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - MAX ( - col1 ) FROM tab0 AS cor0 WHERE NOT - 24 - + 79 IN ( + 97, + CAST ( ( - + col2 ) AS INTEGER ) * - - col0 ) - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT - 55 * - col1 AS col0, col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["2805","NULL","3685","NULL","4235","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT - col2 / + + col1 col1, col2 / + + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["-99","NULL","0","NULL","0","NULL"] but got ["-0.476","NULL","-0.580","NULL","-99","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,656 failed -* 83% was OK - -Time: 25307.033ms - ----- ---- ---- ---- ---- ---- ---- -### 230/620 [`./test/random/aggregates/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_100.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - - 36 * - + col2 AS col2 FROM tab0 WHERE NOT + + col2 IN ( - - 41, - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ( - 34 ) + + 16 + + ( col2 ) / col0 / + 49 FROM tab0 - -Expected: ["-18","-18","-18"] but got ["-17.936","-17.979","-17.998"] -``` - - -```sql -SELECT ALL - + CAST ( - AVG ( col1 ) AS INTEGER ) * - 2 col0 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT ( - 31 ) + + CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL"] but got ["-31"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + ( + MIN ( - CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + col0 * + 42 AS col2, - col0 * col0 / 19 AS col2, - 68 AS col1 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + COUNT ( * ) / + - CAST ( - MIN ( ALL - 13 ) AS INTEGER ) FROM tab2 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ), - MAX ( + + 50 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT DISTINCT col2 AS col0, col0 / + - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1 - -Expected: ["59","NULL","68","NULL","96","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL, tab1 AS cor2 - -Parse error on line 1: -...cor1 ON NULL IS NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col0 >= - 17 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,635 failed -* 83% was OK - -Time: 19925.080ms - ----- ---- ---- ---- ---- ---- ---- -### 231/620 [`./test/random/aggregates/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_101.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 + - col0 / - col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0.531","1.338","1.441"] -``` - - -```sql -SELECT 8 AS col0, + col2 + - col0 * - 62 AS col0 FROM tab1 - -Expected: ["8","3258","8","5329","8","5710"] but got ["3258","3258","5329","5329","5710","5710"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT - ( + col1 ) * - CAST ( NULL AS REAL ) - - col1 + col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 20 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + col1 * + 98 - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IN ( - col1, + col2 * col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab0, tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT ( NULL IS NOT NULL ) ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - MIN ( - + col2 ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 87 BETWEEN NULL AND - col2 + - col1 - -Expected: ["297"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( NULL IS NOT NULL ) ) - -18 results returned but expected 54 -``` - - -```sql -SELECT - SUM ( + col0 ), SUM ( col1 ) FROM tab0 WHERE NOT ( + - col0 ) IS NOT NULL - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 * col0 col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-2601","-7225","-8281"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,677 failed -* 83% was OK - -Time: 19555.319ms - ----- ---- ---- ---- ---- ---- ---- -### 232/620 [`./test/random/aggregates/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_102.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) >= col0 - -Expected: ["0"] but got ["3"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + 65 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) col0 FROM tab1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + 8 - - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) * - - 54 / - MIN ( col1 ) col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2 WHERE col1 * - col1 / - col1 * + col2 * - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / CAST ( + MAX ( + col1 ) AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT + ( - - CAST ( + - COUNT ( * ) AS INTEGER ) ) FROM tab1 cor0 - -g is not defined -``` - - -```sql -SELECT ALL col1 * + col1 col1, - 53 * - + ( + + col2 ) AS col1, col1 + - col0 col2 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL ) - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ), - ( + col0 ) / - col2 AS col1 FROM tab0 - -Expected: ["NULL","0","NULL","8"] but got ["0","0.319","0","0.980","0","8.700"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,550 failed -* 84% was OK - -Time: 27024.050ms - ----- ---- ---- ---- ---- ---- ---- -### 233/620 [`./test/random/aggregates/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_103.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT ( + 87 ) * col0 AS col0 FROM tab1 WHERE NULL <= ( - CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col0 ) + 49 BETWEEN col0 AND col0 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT 55 * - SUM ( ALL 64 ) col0 FROM tab0 AS cor0 WHERE NOT + col1 - col0 IN ( col0 ) - -Expected: ["-10560"] but got ["0"] -``` - - -```sql -SELECT ALL + 45 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + CAST ( - + COUNT ( ALL - 16 ) AS INTEGER ) col2 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( - 43 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL 64 + MIN ( col0 ) * 42 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + CAST ( NULL AS INTEGER ) - + ( CAST ( NULL AS INTEGER ) + 66 ) IS NOT NULL - -Expected: ["1996"] but got ["NULL"] -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ), + ( + 66 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT - ( SUM ( - - col2 ) ) col0, SUM ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,568 failed -* 84% was OK - -Time: 31469.319ms - ----- ---- ---- ---- ---- ---- ---- -### 234/620 [`./test/random/aggregates/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_104.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 64 / + + col0 FROM tab1 - -Expected: ["0","1"] but got ["0.703","0.753","1.255"] -``` - - -```sql -SELECT + + SUM ( + - CAST ( NULL AS INTEGER ) ) / - 75 AS col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) ) + col1 FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL ) - -Expected: ["NULL","NULL","NULL"] but got ["14","47","5"] -``` - - -```sql -SELECT DISTINCT + - col1 + - + CAST ( NULL AS REAL ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( MIN ( ALL col0 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT * FROM tab2, tab2 AS cor0 WHERE NOT ( - 47 ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE 89 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT 4 - + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["4","0","4","0","4","0"] -``` - - -```sql -SELECT + + MAX ( - + col0 ) / 57 col2 FROM tab2 AS cor0 WHERE NOT + col1 * - ( - col1 ) + - col0 * - 56 + - + col0 BETWEEN + - ( + col2 ) + - col0 AND + - 51 * + col1 * + 53 * + 47 + + 27 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT - 14 * - ( - MAX ( ALL - ( - col1 ) ) ) AS col2, + 21 + - ( - SUM ( ALL - col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","21"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,607 failed -* 83% was OK - -Time: 27058.225ms - ----- ---- ---- ---- ---- ---- ---- -### 235/620 [`./test/random/aggregates/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_105.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - - col0 / - 47 AS col0 FROM tab0 AS cor0 - -Expected: ["-1","-2","0"] but got ["-0.319","-1.851","-2.064"] -``` - - -```sql -SELECT ALL + col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["59","NULL","68","NULL","96","NULL"] but got ["59","0","68","0","96","0"] -``` - - -```sql -SELECT COUNT ( * ) * 60 * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL col1 + - 18 FROM tab2 AS cor0 WHERE NOT col0 - + col2 NOT BETWEEN - CAST ( NULL AS REAL ) AND NULL - -Wrong conversion type -``` - - -```sql -SELECT CAST ( - - SUM ( + ( - col0 ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL + 71 AS col0, ( - - CAST ( - CAST ( + MIN ( ALL - col2 ) AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN - col2 + 71 AND + col2 / + + col0 / - ( col0 ) + + + 46 + + col1 - col0 + - col2 * col0 / - 8 - -3 results returned but expected 9 -``` - - -```sql -SELECT DISTINCT COUNT ( * ) * MIN ( ALL CAST ( + col0 AS INTEGER ) * + col0 ) FROM tab1 WHERE NOT + col2 * + ( - col1 ) IN ( col1 ) - -Expected: ["7803"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,667 failed -* 83% was OK - -Time: 41459.569ms - ----- ---- ---- ---- ---- ---- ---- -### 236/620 [`./test/random/aggregates/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_106.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 57 / 7 FROM tab0 - -Expected: ["8"] but got ["8.143"] -``` - - -```sql -SELECT DISTINCT 23 AS col1 FROM tab1 WHERE NOT + col1 IN ( col0 + - col2 * + - 43 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - 56 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["-56","NULL","-56","NULL","-56","NULL"] but got ["-56","0","-56","0","-56","0"] -``` - - -```sql -SELECT ALL + 34 * COUNT ( * ) - - 54 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["102"] -``` - - -```sql -SELECT DISTINCT col1 * - - col1 + - 78 / CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( - + SUM ( DISTINCT 71 ) AS INTEGER ) - - - 82 AS col2, - 84 AS col2 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT 77 / - - 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab1 ON NULL BETWEEN NULL AND ( NULL ) - -6 results returned but expected 18 -``` - - -```sql -SELECT ALL + COUNT ( * ) / ( + CAST ( + MAX ( col0 ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL IS NULL - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) col0, - col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-59","0","-68","0","-96"] -``` - - -```sql -SELECT DISTINCT + col0 / + col2 col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["0","NULL","8","NULL"] but got ["0.319","0","0.980","0","8.700","0"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT + - col1 ) * - - 14 * + + CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT + - col0 ) FROM tab1 - -Expected: ["NULL"] but got ["91"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,571 failed -* 84% was OK - -Time: 39570.886ms - ----- ---- ---- ---- ---- ---- ---- -### 237/620 [`./test/random/aggregates/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_107.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + + MIN ( ALL col2 ) / - - COUNT ( * ) AS col0 FROM tab0 AS cor0 - -Expected: ["3"] but got ["3.333"] -``` - - -```sql -SELECT ALL - CAST ( + - SUM ( - col1 ) AS INTEGER ) AS col2 FROM tab0 - -g is not defined -``` - - -```sql -SELECT - SUM ( 1 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 ) - -Expected: ["NULL"] but got ["-3"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) * + - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL 62 col0, col1, ( - col1 ) * - col2 * ( + ( + col2 ) ) AS col0 FROM tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT ( NOT - col1 * - + col2 * - col2 / col2 + + 61 NOT IN ( - - col1 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + 67 AS col2, ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 - -Expected: ["67","NULL","67","NULL","67","NULL"] but got ["67","0","67","0","67","0"] -``` - - -```sql -SELECT ALL - MAX ( ALL - 87 ) AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - - col2 * - - col0 / + - 2 IS NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) * + col0 + col0 * + 90 + - col2 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["1303","0","7820","0","8631","0"] -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN col0 + - col2 AND col1 + col1 - -3 results returned but expected 9 -``` - - -```sql -SELECT - COUNT ( * ) / - CAST ( + SUM ( ALL - col1 ) AS INTEGER ) + - 4 * + COUNT ( * ) FROM tab2 AS cor0 - -Expected: ["-12"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, + col1 + col0 + - - col0 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","111","NULL","195"] but got ["111","111","195","195"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,519 failed -* 84% was OK - -Time: 25715.806ms - ----- ---- ---- ---- ---- ---- ---- -### 238/620 [`./test/random/aggregates/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_108.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( * ) / - 35 AS col2 FROM tab1, tab1 cor0 - -Expected: ["0"] but got ["0.257"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT ( + - col1 ) IN ( + col2, col2 * col1 * ( + - 68 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - 88 + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL"] but got ["-88"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ), MAX ( + - col1 ) AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( - MAX ( DISTINCT + col2 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / col1 + + + col0 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["51","85","91"] -``` - - -```sql -SELECT ALL * FROM tab2, tab2 cor0 WHERE NOT - ( 34 ) = 73 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab1 cor0 WHERE NOT + col1 + + col1 * col1 BETWEEN col1 * + col1 - + col2 AND ( col1 ) - -3 results returned but expected 9 -``` - - -```sql -SELECT ALL + SUM ( ALL - - ( col0 ) ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( + col0 NOT BETWEEN + col1 AND NULL ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + + MAX ( DISTINCT - col2 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - 44 IS NULL - -Expected: ["-26"] but got ["NULL"] -``` - - -```sql -SELECT col1 * + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) - col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-46","0","-64","0","-75"] -``` - - -```sql -SELECT ALL - COUNT ( * ) AS col1, 6 + + + 15 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 - -Expected: ["-3","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 12 / + - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,643 failed -* 83% was OK - -Time: 24207.982ms - ----- ---- ---- ---- ---- ---- ---- -### 239/620 [`./test/random/aggregates/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_109.test) - -_Mimic sqlite_ - -```sql -SELECT - 37 / + 90 + + ( col1 ) FROM tab1 - -Expected: ["14","47","5"] but got ["13.589","4.589","46.589"] -``` - - -```sql -SELECT + SUM ( DISTINCT col1 ) FROM tab2 WHERE NOT - 80 IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - COUNT ( * ) + - COUNT ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","59","NULL","68","NULL","96"] but got ["0","59","0","68","0","96"] -``` - - -```sql -SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) * 24 * - ( ( - - 63 ) ) AS col2 FROM tab2 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE NOT + ( - 23 ) BETWEEN ( + col0 ) AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + MIN ( ALL - col0 ) AS col1 FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) + - CAST ( + 37 AS INTEGER ) + + + col0 IS NULL - -Expected: ["-91"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + col0 * - + col1 * CAST ( NULL AS INTEGER ) * - + ( + CAST ( NULL AS INTEGER ) ) / + - CAST ( col1 AS INTEGER ) + col2 AS col0, 60 * - - col0 * ( - CAST ( NULL AS INTEGER ) ) * + - col0 + 74 * col2 FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["59","4366","68","5032","96","7104"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON + 13 IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,629 failed -* 83% was OK - -Time: 24843.137ms - ----- ---- ---- ---- ---- ---- ---- -### 240/620 [`./test/random/aggregates/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_11.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab2 WHERE NOT - + col0 BETWEEN + col0 + + + col0 AND + 84 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + 30 * - CAST ( NULL AS INTEGER ) + - 69 + col1 AS col2, col2 AS col0 FROM tab1 - -Expected: ["NULL","59","NULL","68","NULL","96"] but got ["-22","68","-55","96","-64","59"] -``` - - -```sql -SELECT * FROM tab1 cor0 WHERE + CAST ( + col1 AS REAL ) * + 53 * - + col0 * - 27 * + + 24 BETWEEN 86 AND - - 1 / + + col1 - -Wrong conversion type -``` - - -```sql -SELECT - 18 / + 16 AS col0 FROM tab0 AS cor0 - -Expected: ["-1","-1","-1"] but got ["-1.125","-1.125","-1.125"] -``` - - -```sql -SELECT DISTINCT + 92 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["NULL"] but got ["92"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) col1 FROM tab0, tab0 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ( - 56 ), + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + col2 + - + col1 + + CAST ( NULL AS INTEGER ) + + col0 * 79 col2 FROM tab1 - -Expected: ["NULL","NULL"] but got ["0","4111","0","6769","0","7210"] -``` - - -```sql -SELECT DISTINCT + + ( MIN ( ALL + col0 ) ) + COUNT ( * ) FROM tab0 WHERE NOT + 63 * col1 + - + ( col0 ) BETWEEN + col2 AND + col1 - -Expected: ["18"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 AS cor1 ON + 93 IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,661 failed -* 83% was OK - -Time: 33249.907ms - ----- ---- ---- ---- ---- ---- ---- -### 241/620 [`./test/random/aggregates/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_110.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 8 + CAST ( NULL AS REAL ) + + + 30 AS col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT 92 + - 90 AS col1, + ( + COUNT ( * ) ) AS col1 FROM tab1 - -Expected: ["2","3"] but got ["3"] -``` - - -```sql -SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) - - 41 AS col0 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT - 53 AS col2, CAST ( NULL AS INTEGER ) * - ( col0 ) AS col1 FROM tab1 AS cor0 - -Expected: ["-53","NULL","-53","NULL","-53","NULL"] but got ["-53","0","-53","0","-53","0"] -``` - - -```sql -SELECT - 1 * - + MIN ( DISTINCT col0 ) col2 FROM tab0 cor0 WHERE NOT - 39 + 68 NOT IN ( - col1, col2 * + col2 * col2, - + col1 ) - -Expected: ["NULL"] but got ["15"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - - col1 AND ( 52 * 8 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT 37 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT ( - ( MAX ( DISTINCT + col1 ) ) ) AS col1 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL - -Expected: ["-47"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( + col0 ) / - CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL - COUNT ( - + 74 ) * - SUM ( DISTINCT - col1 ) + - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( ALL - - col1 ) * + 78 + + 33 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["-198","234"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,613 failed -* 83% was OK - -Time: 25697.965ms - ----- ---- ---- ---- ---- ---- ---- -### 242/620 [`./test/random/aggregates/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_111.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + + - ( - + col0 ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["51","85","91"] -``` - - -```sql -SELECT col0 col2 FROM tab1 WHERE - + ( - col2 ) NOT BETWEEN NULL AND ( ( col0 ) ) - -Expected: ["51"] but got ["51","85","91"] -``` - - -```sql -SELECT - MIN ( DISTINCT + col2 ) + 15 col0, COUNT ( * ) AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL - -Expected: ["NULL","0"] but got ["-8","3"] -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT NULL >= col0 + - col0 * - + CAST ( col2 AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT ALL + - col2 + 25 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col2 + col0 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( COUNT ( * ) AS INTEGER ) * - 4 FROM tab1 cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + + 59 / - CAST ( MAX ( + + 62 ) AS INTEGER ) * SUM ( DISTINCT - col0 ) + + + 45 + - 79 FROM tab2 AS cor0 - -Expected: ["-34"] but got ["NULL"] -``` - - -```sql -SELECT - 73 AS col0, 54 / + + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 - -Expected: ["-73","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + col1 AS col0, 7 AS col0, 68 - - 45 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + 92 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - MIN ( ALL col2 ) + + ( - MAX ( 47 ) ) / - - COUNT ( ALL col0 ), MAX ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["43.333","0"] -``` - - -```sql -SELECT + 90 + - col1 + ( 76 ) col2, + col2 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 - -Expected: ["145","NULL","165","NULL","85","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - - col0 AS col2, CAST ( NULL AS INTEGER ) * + + col2 + - 73 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-73","0","-73","0","-73"] -``` - - -```sql -SELECT 37 + ( + col0 ) * + 95 / - + col1 * - col2 * - CAST ( NULL AS INTEGER ) * - - col1 / - col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,651 failed -* 83% was OK - -Time: 24308.937ms - ----- ---- ---- ---- ---- ---- ---- -### 243/620 [`./test/random/aggregates/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_112.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col1 + CAST ( - + col0 AS INTEGER ) BETWEEN ( + col2 ) AND 47 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + 49 col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["49","49","49"] -``` - - -```sql -SELECT + + MIN ( + CAST ( NULL AS INTEGER ) ) / - CAST ( NULL AS REAL ) / - COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + col1 - + + CAST ( NULL AS INTEGER ) / + - col0 FROM tab0 cor0 - -Expected: ["NULL"] but got ["1","21","81"] -``` - - -```sql -SELECT DISTINCT + - 67 + 90 / + + col1 FROM tab0 AS cor0 - -Expected: ["-63","-66","23"] but got ["-62.714","-65.889","23"] -``` - - -```sql -SELECT + CAST ( + ( - + MAX ( ALL + col2 ) ) AS INTEGER ) col0 FROM tab1 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), - col1 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-1","0","-21","0","-81"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - 94 ) IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT MAX ( ALL + col0 ) AS col2 FROM tab2 cor0 WHERE NOT 1 + - col0 IN ( + + col0 ) - -Expected: ["75"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 46 + ( 60 ) ) = ( - 64 * + 55 ) - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,566 failed -* 84% was OK - -Time: 23867.862ms - ----- ---- ---- ---- ---- ---- ---- -### 244/620 [`./test/random/aggregates/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_113.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / 37 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL - 26 / + - 41 * col1 AS col2 FROM tab0 - -Expected: ["0","0","0"] but got ["0.008","0.030","0.634"] -``` - - -```sql -SELECT SUM ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * - col2 * + - 96 * - 74 / 1 + - col1 - -Expected: ["NULL"] but got ["121"] -``` - - -```sql -SELECT * FROM tab2 WHERE NOT ( 89 * - 71 - - col2 ) IN ( col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + ( - + CAST ( NULL AS REAL ) ) * + + ( + - col0 ) * + + col2 AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 56 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT MIN ( ALL - 53 ) AS col2 FROM tab2 WHERE NOT - ( - - col0 ) IN ( 1 * - col2 / + ( - col0 ) ) - -Expected: ["-53"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT ( - + col2 ) * - CAST ( NULL AS INTEGER ) + + CAST ( - - col2 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL"] but got ["10","0","47","0","99","0"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ), 74 - + - col2 + CAST ( NULL AS INTEGER ) * - col0 / - 46 AS col2 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","114","0","132","0","97"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,598 failed -* 84% was OK - -Time: 32473.129ms - ----- ---- ---- ---- ---- ---- ---- -### 245/620 [`./test/random/aggregates/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_114.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col1 / col2 - CAST ( 95 AS INTEGER ) FROM tab0 - -Expected: ["-93","-94","-95"] but got ["-92.900","-93.277","-94.990"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE + ( col0 ) * CAST ( NULL AS INTEGER ) + + col0 * - col1 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + ( CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) + + 34 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["34","34","34"] -``` - - -```sql -SELECT DISTINCT + - SUM ( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT NULL < col0 - -Expected: ["NULL"] but got ["66"] -``` - - -```sql -SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - col0 / - + CAST ( NULL AS REAL ) * + + 58 + - 69 AS col0, col0 AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col0 AS col0, - ( col1 ) + - col1 + + - 53 + + col0 - + col1 * + 70 - + 97, - col1 AS col0 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - MIN ( ALL - - ( col1 ) ) AS col1, 8 FROM tab2 AS cor0 WHERE - col0 BETWEEN ( + col0 ) AND col1 - -Expected: ["NULL","8"] but got ["8","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 86 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + MIN ( + - col2 ) * + 16 + + 45 AS col0 FROM tab0 WHERE + col0 + - col1 + - col0 + - col0 * - CAST ( - + 46 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) IS NULL - -Expected: ["-1539"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,582 failed -* 84% was OK - -Time: 27373.555ms - ----- ---- ---- ---- ---- ---- ---- -### 246/620 [`./test/random/aggregates/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_115.test) - -_Mimic sqlite_ - -```sql -SELECT - MAX ( ALL col2 ) + + 33 * MAX ( - + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 - -Expected: ["NULL"] but got ["-99"] -``` - - -```sql -SELECT + ( ( + + 81 ) ) * - col2 * + CAST ( NULL AS INTEGER ) - col0 * col0 * 8 AS col1 FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-16928","-32768","-45000"] -``` - - -```sql -SELECT DISTINCT CAST ( MIN ( DISTINCT + col0 ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT col2 AS col0, col0 AS col0 FROM tab0 - -Expected: ["10","87","47","15","99","97"] but got ["15","15","87","87","97","97"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN col2 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) + + 25 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - col2 / col0 + 58 FROM tab0 - -Expected: ["55","57","58"] but got ["54.867","56.979","57.885"] -``` - - -```sql -SELECT DISTINCT + - col0 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT - 98 BETWEEN + 3 - 22 AND col1 + - col0 - -6 results returned but expected 9 -``` - - -```sql -SELECT - 24 / - 32 AS col1 FROM tab2 AS cor0 - -Expected: ["0","0","0"] but got ["0.750","0.750","0.750"] -``` - - -```sql -SELECT + + MIN ( - col1 ) FROM tab0 WHERE NOT 52 BETWEEN col2 AND + + 60 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL NOT BETWEEN 35 AND NULL, tab2 AS cor2 - -Parse error on line 1: -... BETWEEN 35 AND NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,565 failed -* 84% was OK - -Time: 21724.444ms - ----- ---- ---- ---- ---- ---- ---- -### 247/620 [`./test/random/aggregates/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_116.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + 34 IN ( + 64 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col2 + col2 * col0 <> NULL - -Expected: ["0"] but got ["3"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + + + 59 AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["59","59","59"] -``` - - -```sql -SELECT + SUM ( DISTINCT - col1 ) AS col0 FROM tab2 cor0 WHERE + 57 IN ( - - col0 * 24 ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - + CAST ( MAX ( DISTINCT + + ( col0 ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT - col1 + 82 + CAST ( NULL AS REAL ) * col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT 37 * 50 AS col2, + col0 * + - 87 AS col0, + col1 AS col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE - 7 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT MAX ( ALL - - col1 ), SUM ( col2 ) * 5 AS col0 FROM tab2 WHERE NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT + 65 * - col1 AS col2, + col1 / 11 + - col2 / - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 - -Expected: ["-3055","NULL","-325","NULL","-910","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT MIN ( - - ( + + 10 ) ), MAX ( + - 39 ) AS col2 FROM tab0 WHERE NOT NULL <= + 43 / col2 - -Expected: ["NULL","NULL"] but got ["10","-39"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,618 failed -* 83% was OK - -Time: 25696.517ms - ----- ---- ---- ---- ---- ---- ---- -### 248/620 [`./test/random/aggregates/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_117.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 * 0 + col0 BETWEEN - 25 AND + 91 - -Expected: ["97","1","99"] but got ["15","81","47","87","21","10","97","1","99"] -``` - - -```sql -SELECT ALL + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 cor0 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col0, - col2 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","-10","NULL","-47","NULL","-99"] but got ["-10","-10","-47","-47","-99","-99"] -``` - - -```sql -SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + col0 + 75 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["75"] -``` - - -```sql -SELECT DISTINCT - col2 + + col0 FROM tab1 WHERE NOT - col0 BETWEEN ( 94 + + 87 ) AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + 64 / + + col2 col1 FROM tab0 - -Expected: ["0","1","6"] but got ["0.646","1.362","6.400"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 26 ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - col1 / col0, - col0 + + - 30 AS col2, col2 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT MAX ( - col0 ) + + COUNT ( ALL + col1 ) FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL - -Expected: ["-12"] but got ["NULL"] -``` - - -```sql -SELECT ALL col0 AS col1, col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 - -Expected: ["15","NULL","87","NULL","97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL - COUNT ( * ) * + + 3 * + CAST ( NULL AS INTEGER ) AS col2, + MIN ( 73 ) FROM tab0 AS cor0 WHERE NULL < col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,611 failed -* 83% was OK - -Time: 25998.322ms - ----- ---- ---- ---- ---- ---- ---- -### 249/620 [`./test/random/aggregates/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_118.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col2 / + + 65 AS col0 FROM tab0 - -Expected: ["0","1"] but got ["0.154","0.723","1.523"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + ( + 90 ) col0 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["90","90","90"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 - - col1 BETWEEN - - col0 * + 49 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT col1 + - + col2 + - 18 + col2 + - col2 * CAST ( NULL AS REAL ) + 77 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL 37 + - CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab1 cor0 - -g is not defined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 ) > col1 * + col1 - -Expected: ["NULL","NULL"] but got ["14","47"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / + CAST ( MIN ( 34 ) AS INTEGER ) AS col1 FROM tab0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT col2 + - CAST ( NULL AS INTEGER ) AS col2, - col2 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["10","0","47","0","99","0"] -``` - - -```sql -SELECT - col0 / + CAST ( NULL AS INTEGER ) * - 2 AS col1, CAST ( - col2 AS INTEGER ) / 20 FROM tab2 - -Expected: ["NULL","-1","NULL","-2","NULL","-2"] but got ["NULL","-1.150","NULL","-2","NULL","-2.900"] -``` - - -```sql -SELECT ALL - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * 18 AS col0, 20 FROM tab1 AS cor0 - -Expected: ["NULL","20"] but got ["20","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,508 failed -* 84% was OK - -Time: 35443.151ms - ----- ---- ---- ---- ---- ---- ---- -### 250/620 [`./test/random/aggregates/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_119.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + ( + - col2 ) + col0 * + - col0 + ( + CAST ( col1 AS INTEGER ) ) + + col2 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - col0 AS col1, col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["-51","NULL","-85","NULL","-91","NULL"] but got ["-51","0","-85","0","-91","0"] -``` - - -```sql -SELECT ALL 6 / + 28 * - col0 * + - 42 FROM tab2 - -Expected: ["0","0","0"] but got ["0.000","0.000","0.000"] -``` - - -```sql -SELECT * FROM tab2, tab2 cor0 WHERE + 10 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - COUNT ( * ) / + - CAST ( AVG ( + col1 ) AS INTEGER ) * - 93 + - MIN ( - col1 ) AS col1 FROM tab1 - -Expected: ["47"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), + col0 - - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","144","0","147","0","159"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab2 cor1 ON NOT NULL IS NULL, tab2 AS cor2 - -Parse error on line 1: -... ON NOT NULL IS NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,602 failed -* 83% was OK - -Time: 26870.835ms - ----- ---- ---- ---- ---- ---- ---- -### 251/620 [`./test/random/aggregates/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_12.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - col0 + + 64 AS col1, + 73 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL - -Expected: ["-11","73","0","73","18","73"] but got ["73","73"] -``` - - -```sql -SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) - + col2 FROM tab0 - -Expected: ["NULL"] but got ["-98","11","34"] -``` - - -```sql -SELECT col0, col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["51","NULL","85","NULL","91","NULL"] but got ["51","14","85","5","91","47"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 70 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + 15 - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 - -g is not defined -``` - - -```sql -SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT - col0 * - 45 NOT BETWEEN NULL AND - 92 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL MIN ( - 98 ) AS col2 FROM tab1 WHERE NOT - 12 IN ( - col0 * 89 - - ( 78 ) * col1 ) - -Expected: ["-98"] but got ["NULL"] -``` - - -```sql -SELECT + MAX ( DISTINCT - col1 ), ( + - MAX ( - - 97 ) ) col0 FROM tab0 WHERE NOT - 44 + - 76 > NULL - -Expected: ["NULL","NULL"] but got ["-1","-97"] -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ), col2 * - + 89 * + col1 * + - col0 * + CAST ( NULL AS INTEGER ) * - 89 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT + - COUNT ( * ) AS col0, + MAX ( - ( + 47 ) ) col0 FROM tab2 AS cor0 WHERE 93 * 75 * + + col0 IS NULL - -Expected: ["0","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,646 failed -* 83% was OK - -Time: 40546.174ms - ----- ---- ---- ---- ---- ---- ---- -### 252/620 [`./test/random/aggregates/slt_good_120.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_120.test) - -_Mimic sqlite_ - -```sql -SELECT - 78 + + col0 * + CAST ( NULL AS INTEGER ), col2 FROM tab0 - -Expected: ["NULL","10","NULL","47","NULL","99"] but got ["-78","10","-78","47","-78","99"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS REAL ) + COUNT ( DISTINCT + 72 ) * COUNT ( * ) FROM tab0 WHERE NOT 11 IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT - 15 + COUNT ( * ) / 76 FROM tab0 - -Expected: ["-15"] but got ["-14.961"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE ( + 27 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 5 BETWEEN + 62 * col1 AND + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 72 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT - COUNT ( * ) - - SUM ( - ( - 24 ) ) / - + CAST ( - + MIN ( + - col1 ) AS INTEGER ) FROM tab0 - -Expected: ["-3"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MAX ( + + col2 ), - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["-58","0"] -``` - - -```sql -SELECT - + SUM ( col2 ) AS col0, MIN ( DISTINCT - ( - 37 ) ) FROM tab2 AS cor0 WHERE NOT col0 * + col2 IS NOT NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL, tab0 AS cor2 - -Parse error on line 1: -... ON NOT NULL IS NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT 23 * + 15 * + - 99 AS col1, + MIN ( ALL col2 ) AS col1 FROM tab2 WHERE NOT ( - col0 ) <> + CAST ( - - col1 AS INTEGER ) * col1 * 50 - -Expected: ["-34155","NULL"] but got ["NULL"] -``` - - -```sql -SELECT col1 + CAST ( NULL AS INTEGER ) + - col1 * + - col0 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,601 failed -* 84% was OK - -Time: 35986.322ms - ----- ---- ---- ---- ---- ---- ---- -### 253/620 [`./test/random/aggregates/slt_good_121.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_121.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + ( + 25 ) / + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["-8"] but got ["-8.333"] -``` - - -```sql -SELECT ( CAST ( NULL AS INTEGER ) ) / - col2 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL COUNT ( * ) * - ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - COUNT ( * ) * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - + CAST ( NULL AS INTEGER ) + - 27 + - col1 * - 50 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + ( - - col2 ) / + + 51 AS col0, 80 * - + 98, col2 FROM tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - + 34 * + - col2 AS col2, - col2 * + + 23 + - col0 + + + CAST ( NULL AS REAL ) / col1 AS col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + CAST ( + - AVG ( DISTINCT - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT + MAX ( + 15 ) AS col1 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 - + CAST ( - col1 AS INTEGER ) IS NOT NULL - -Expected: ["15"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - AVG ( ALL + - 74 ) AS col2, 86 FROM tab0 WHERE 58 IS NULL - -Expected: ["NULL","86"] but got ["86","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 37 ) IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,582 failed -* 84% was OK - -Time: 40817.018ms - ----- ---- ---- ---- ---- ---- ---- -### 254/620 [`./test/random/aggregates/slt_good_122.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_122.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - SUM ( - col0 ) col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> CAST ( NULL AS INTEGER ) * CAST ( - 66 AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE col1 / + col0 + col2 NOT IN ( + 3 ) - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE - 35 + col2 / CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) - - + 51 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT 1 / + COUNT ( + + 84 ) FROM tab1 - -Expected: ["0"] but got ["0.333"] -``` - - -```sql -SELECT ALL CAST ( - COUNT ( DISTINCT 80 ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT + col0 / + col2 IS NULL - -g is not defined -``` - - -```sql -SELECT + + SUM ( - + col2 ), SUM ( - col0 ) FROM tab2 WHERE + 74 + - col0 + 96 * - ( + col2 ) > - + col1 + - CAST ( NULL AS INTEGER ) + + - 80 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 94 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - + 38 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 - -Wrong conversion type -``` - - -```sql -SELECT + 72 / - CAST ( NULL AS INTEGER ) + + + 25 AS col2, + col0 * + col1 + - ( + + ( ( + 81 ) ) ) / - col0 FROM tab1 cor0 - -Expected: ["NULL","425","NULL","4277","NULL","715"] but got ["NULL","425.953","NULL","4277.890","NULL","715.588"] -``` - - -```sql -SELECT ( + 30 ) / CAST ( - SUM ( DISTINCT + col1 ) AS INTEGER ) * - 34 + ( - MAX ( col1 ) ) * + 31 AS col2 FROM tab1 - -Expected: ["-1457"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,628 failed -* 83% was OK - -Time: 22608.324ms - ----- ---- ---- ---- ---- ---- ---- -### 255/620 [`./test/random/aggregates/slt_good_123.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_123.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT * FROM tab2 WHERE NOT - 71 IN ( + - 45 - - + col0, - 74, + col1, 80 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - COUNT ( * ) / 69 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = 25 - -Expected: ["0"] but got ["-0.043"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - col1 + + col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["1","21","81"] -``` - - -```sql -SELECT DISTINCT - CAST ( col1 AS REAL ) - - + CAST ( NULL AS REAL ) FROM tab0 cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - + ( + AVG ( - 17 ) ) AS col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL - -Expected: ["NULL"] but got ["17"] -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 1 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL COUNT ( * ) / CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - col0 + + 70 + 39 / + - 10 AS col2 FROM tab1 - -Expected: ["-18","-24","16"] but got ["-18.900","-24.900","15.100"] -``` - - -```sql -SELECT MAX ( + col1 ) AS col2, - SUM ( ALL - - col0 ) * + + 62 + - 56 * COUNT ( DISTINCT - + col1 ) - 55 FROM tab1 AS cor0 WHERE + col2 IS NULL - -Expected: ["NULL","NULL"] but got ["NULL","-55"] -``` - - -```sql -SELECT 48 + + - 47 + - MIN ( ALL 84 ) AS col1, 83 FROM tab1 WHERE + + col1 - + ( + - ( - + 30 ) ) IS NULL - -Expected: ["NULL","83"] but got ["83","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 90 IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,644 failed -* 83% was OK - -Time: 23805.014ms - ----- ---- ---- ---- ---- ---- ---- -### 256/620 [`./test/random/aggregates/slt_good_124.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_124.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - AVG ( DISTINCT + + 78 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * + + 20 / col1 + - 83 IS NULL - -Wrong conversion type -``` - - -```sql -SELECT + 70 / - col2 AS col1 FROM tab2 - -Expected: ["-1","-1","-3"] but got ["-1.207","-1.750","-3.043"] -``` - - -```sql -SELECT ALL + col2 * - - CAST ( NULL AS INTEGER ) * + col1 * + 18 + col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["46","64","75"] -``` - - -```sql -SELECT CAST ( MAX ( - 35 ) AS INTEGER ) FROM tab2 - -g is not defined -``` - - -```sql -SELECT DISTINCT + col1 - CAST ( NULL AS INTEGER ) / + - ( + col1 ) - col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-98","11","34"] -``` - - -```sql -SELECT + 71 / - col0 col0 FROM tab1 cor0 WHERE NOT - col0 + - 97 BETWEEN ( col2 ) AND - col2 * 62 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - 70 col1, - col2 * + col0 AS col1, 78 AS col2 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT col0, 19 * - col1 + + 85 col0, + 51 AS col0 FROM tab0 - -3 results returned but expected 9 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + + 81 * + ( - col2 ) * + col1 AS col0, - CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-249480","-77","-314766","-67","-95013","-51"] -``` - - -```sql -SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) AS col2, - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL - MIN ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 5 + + - 41 BETWEEN col1 AND NULL - -Expected: ["47"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,605 failed -* 83% was OK - -Time: 44945.492ms - ----- ---- ---- ---- ---- ---- ---- -### 257/620 [`./test/random/aggregates/slt_good_125.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_125.test) - -_Mimic sqlite_ - -```sql -SELECT - ( col1 ) - + ( 76 + + col2 ) / 40 FROM tab1 - -Expected: ["-18","-50","-8"] but got ["-18.300","-50.600","-8.375"] -``` - - -```sql -SELECT DISTINCT col0 FROM tab1 WHERE NOT + CAST ( col0 AS REAL ) - + col2 IS NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 22 + 48 / col1 ) IN ( 3 * col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) * 44 + col2 * + 18 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["1782","180","846"] -``` - - -```sql -SELECT COUNT ( * ) * - ( MAX ( ALL - CAST ( NULL AS INTEGER ) ) ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( + 72 * 65 IS NOT NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT CAST ( + ( + SUM ( ALL col1 ) ) AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE ( + ( 86 ) ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT col0 AS col2, col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 - -Expected: ["51","NULL","85","NULL","91","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,669 failed -* 83% was OK - -Time: 34958.692ms - ----- ---- ---- ---- ---- ---- ---- -### 258/620 [`./test/random/aggregates/slt_good_126.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_126.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( * ) / SUM ( + col2 ) FROM tab0 - -Expected: ["0"] but got ["-0.019"] -``` - - -```sql -SELECT - 36 - + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-36","-36","-36"] -``` - - -```sql -SELECT DISTINCT COUNT ( - col0 ) - + 16 FROM tab0 cor0 WHERE col1 NOT BETWEEN + CAST ( - ( - - 61 ) AS REAL ) AND 39 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - ( - CAST ( + - COUNT ( DISTINCT - 66 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT - - col0 FROM tab0 WHERE NOT col1 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + + + COUNT ( * ) col1, - MAX ( 64 ) * + 56 FROM tab0 - -Expected: ["NULL","-3584"] but got ["3","-3584"] -``` - - -```sql -SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - - 23 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + MIN ( - 84 ) FROM tab2 AS cor0 WHERE NOT + 79 + + ( - col1 ) IN ( + col0, + col0 * + - col2 ) - -Expected: ["-84"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 10 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL ( - CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) / col1 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT 1 IS NOT NULL, tab1 AS cor2 - -Parse error on line 1: -...ON NOT 1 IS NOT NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT + SUM ( + 26 ) * - + ( + 36 ) AS col1, - MIN ( - 68 ) FROM tab1 WHERE + - col2 IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,599 failed -* 84% was OK - -Time: 25766.036ms - ----- ---- ---- ---- ---- ---- ---- -### 259/620 [`./test/random/aggregates/slt_good_127.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_127.test) - -_Mimic sqlite_ - -```sql -SELECT col2, 14 AS col2 FROM tab1 - -Expected: ["59","14","68","14","96","14"] but got ["14","14","14","14","14","14"] -``` - - -```sql -SELECT ALL AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col2 * + col2, - CAST ( NULL AS REAL ) * + + col0 AS col1 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / - 46 AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT col1 AS col2, - col0 / - col1 + - col0 AS col2, - - 39 * 84 + col1 + + col1 * + 30 AS col0 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + + ( - 93 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1, + 18 * - col1 * 87 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * + 99 AS col1 FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - + ( COUNT ( * ) ) + + - COUNT ( * ) / CAST ( + + AVG ( DISTINCT - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["-3"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,629 failed -* 83% was OK - -Time: 31452.722ms - ----- ---- ---- ---- ---- ---- ---- -### 260/620 [`./test/random/aggregates/slt_good_128.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_128.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - SUM ( DISTINCT - - ( + 95 ) ) * 73 / + - SUM ( DISTINCT + 58 ) AS col0 FROM tab0 - -Expected: ["119"] but got ["119.569"] -``` - - -```sql -SELECT + CAST ( - 1 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) / 96 col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / - - 48 * 9 * col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - col1 FROM tab0 AS cor0 WHERE NOT col2 IN ( - - ( + col0 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT - - col1 / 8 + + 45, col0 AS col0, - col1 * - col2 AS col0 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 33 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) col1, CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - 63 AS col1 FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["-63"] -``` - - -```sql -SELECT - MAX ( + 68 ) AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL - -Expected: ["-68"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + col2 * + col1 + + CAST ( NULL AS INTEGER ) * - + col0 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","210","0","3807","0","99"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,645 failed -* 83% was OK - -Time: 41809.297ms - ----- ---- ---- ---- ---- ---- ---- -### 261/620 [`./test/random/aggregates/slt_good_129.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_129.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + - SUM ( 47 ) AS col1, + 39 * - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL - -Expected: ["NULL","0"] but got ["0"] -``` - - -```sql -SELECT - + 26 * - col1 * - 52 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT 50 / - col1 FROM tab1 - -Expected: ["-1","-10","-3"] but got ["-1.064","-10","-3.571"] -``` - - -```sql -SELECT - AVG ( ALL - col0 ) + - + CAST ( NULL AS REAL ) AS col2, - 48 col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT - - 96, + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["96","NULL","96","NULL","96","NULL"] but got ["96","0","96","0","96","0"] -``` - - -```sql -SELECT ALL + - CAST ( + + MAX ( ALL - + 61 ) AS INTEGER ) FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT - col2, + 38 AS col1, col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - MIN ( col2 ) FROM tab1 WHERE NOT col2 IN ( + col1 ) - -Expected: ["-59"] but got ["NULL"] -``` - - -```sql -SELECT ALL - 47 + - col2 * + CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM ( tab1 cor0 CROSS JOIN tab1 ) - -18 results returned but expected 54 -``` - -#### ☓ Ran 802 tests as _sqlite_ - -* 132 failed -* 83% was OK - -Time: 10693.856ms - ----- ---- ---- ---- ---- ---- ---- -### 262/620 [`./test/random/aggregates/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_13.test) - -_Mimic sqlite_ - -```sql -SELECT - ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ( + CAST ( + SUM ( + col2 ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT col1 - - - col0 + + col1 * - 69 col1, + col1 AS col1, + - 34 AS col1 FROM tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - 31 * - CAST ( - - ( - col1 ) AS INTEGER ) - - - col0 + col1 + + + CAST ( NULL AS INTEGER ) - + + col1 + - col2 AS col2 FROM tab2 cor0 - -Expected: ["NULL"] but got ["-1650","-2210","-2491"] -``` - - -```sql -SELECT DISTINCT - - ( + MIN ( DISTINCT - col0 ) ) / - ( + 4 ) AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0 - -Expected: ["24","3"] but got ["24.250","3"] -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( + 87 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT col0 * 27, ( + - CAST ( NULL AS INTEGER ) ) + col2 + + 64 AS col0 FROM tab2 AS cor0 - -Expected: ["1242","NULL","1728","NULL","2025","NULL"] but got ["1242","87","1728","104","2025","122"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( 30 AS INTEGER ) <= - 79 - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON + + 44 IS NOT NULL, tab0 AS cor2 - -Parse error on line 1: -...N + + 44 IS NOT NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - 95 / + CAST ( NULL AS INTEGER ) + + 82, - col0 + - + col1 * CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","-144","NULL","-147","NULL","-159"] -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ) * + col2 * - - col2 AS col1, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + + col0 + + col1 * col2 col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","1344","0","295","0","3196"] -``` - - -```sql -SELECT - COUNT ( + 59 ) / + CAST ( - COUNT ( DISTINCT col2 ) AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT ALL + col0 AS col1, 27 - 63 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["46","NULL","64","NULL","75","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,532 failed -* 84% was OK - -Time: 41207.932ms - ----- ---- ---- ---- ---- ---- ---- -### 263/620 [`./test/random/aggregates/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_14.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * + ( + 5 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 - -g is not defined -``` - - -```sql -SELECT ALL + 56 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["56","56","56"] -``` - - -```sql -SELECT DISTINCT - MIN ( + - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT 11 / - 57 FROM tab0 - -Expected: ["0","0","0"] but got ["-0.193","-0.193","-0.193"] -``` - - -```sql -SELECT + 56 AS col2, + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 - -Expected: ["56","NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab2 WHERE NOT ( col0 ) IN ( - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab0 cor0 JOIN tab0 AS cor1 ON NOT + 44 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + col2 / col1 * - 65 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["-6435","0","0"] but got ["-30.952","-37.716","-6435"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NULL BETWEEN - ( + + 34 ) AND - 8, tab2 AS cor2 - -Parse error on line 1: -...- ( + + 34 ) AND - 8, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT COUNT ( * ) AS col1, COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 - -Expected: ["3","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT MIN ( col2 ) FROM tab2 WHERE NOT col0 IN ( 71 ) - -Expected: ["23"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + AVG ( + col1 ) * + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,667 failed -* 83% was OK - -Time: 24709.612ms - ----- ---- ---- ---- ---- ---- ---- -### 264/620 [`./test/random/aggregates/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_15.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( * ) + - 77 / 37 FROM tab0 - -Expected: ["-5"] but got ["-5.081"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + + ( + - 29 ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-29","-29","-29"] -``` - - -```sql -SELECT DISTINCT col1 - + - col0 + - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 cor0 - -Expected: ["NULL"] but got ["138","65","90"] -``` - - -```sql -SELECT + col0 / col1 * col0 + + 52 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND + - 62 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( - + COUNT ( - - 0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 WHERE NOT - CAST ( - 47 AS REAL ) + - - col2 IS NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL + 84 / 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ), ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + 46 + + 38 / + CAST ( + COUNT ( * ) AS INTEGER ) - - COUNT ( - col0 ) AS col1 FROM tab0 - -Expected: ["61"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 13 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + + col2 AS col2, 95 / - CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab2 AS cor0 - -Expected: ["23","NULL","40","NULL","58","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - COUNT ( * ) AS col1, ( - MIN ( - + 95 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL <= ( 40 ) - -Expected: ["0","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,625 failed -* 83% was OK - -Time: 26978.999ms - ----- ---- ---- ---- ---- ---- ---- -### 265/620 [`./test/random/aggregates/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_16.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 WHERE NOT - - col0 BETWEEN + col1 / col2 AND + + 84 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - col2 + + col0 / + col2 FROM tab0 - -Expected: ["-2","-47","-99"] but got ["-1.300","-46.681","-98.020"] -``` - - -```sql -SELECT ALL + 20 / - col2 - + 54 AS col0, + 31, ( - - col2 ) AS col2 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + col1 AS col2 FROM tab0 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col2 + + ( + CAST ( - 36 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) * + 27 * + ( - col2 ) FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["23","32","60"] -``` - - -```sql -SELECT DISTINCT 33 * - + 4, CAST ( NULL AS REAL ) * 83 / - + col1 AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 13 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + - ( + - ( CAST ( + COUNT ( * ) AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ), + col1 + CAST ( NULL AS INTEGER ) - 37 + + - 62 + + col0 AS col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-34","0","-9","0","39"] -``` - - -```sql -SELECT DISTINCT 95 + - 46 * - + 36 AS col1, - 69 / - CAST ( NULL AS INTEGER ) * + col1 * + col2 AS col1 FROM tab1 - -Expected: ["1751","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) AS col1, + col1 / col2 * ( - - col1 ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","102","NULL","67","NULL","77"] but got ["NULL","113.087","NULL","148.225","NULL","77.397"] -``` - - -```sql -SELECT DISTINCT - 52 + + col2 * + CAST ( NULL AS INTEGER ) AS col0, ( CAST ( NULL AS INTEGER ) ) + - col0 * - col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["-52","1058","-52","2560","-52","4350"] -``` - - -```sql -SELECT DISTINCT - MAX ( + 71 ) * - + MIN ( DISTINCT col0 ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 WHERE 1 * - 83 > + col1 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT - COUNT ( * ) / + - COUNT ( * ) FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) / ( - col2 ) + + col2 * + + col0 IS NOT NULL - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT AVG ( + 22 ) AS col0, + 28 / + 78 FROM tab2 WHERE NOT - col1 IS NOT NULL - -Expected: ["NULL","0"] but got ["NULL","0.359"] -``` - - -```sql -SELECT DISTINCT col0 col0, 17 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["15","NULL","87","NULL","97","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,574 failed -* 84% was OK - -Time: 36529.991ms - ----- ---- ---- ---- ---- ---- ---- -### 266/620 [`./test/random/aggregates/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_17.test) - -_Mimic sqlite_ - -```sql -SELECT + 16 / col2 AS col2 FROM tab2 AS cor0 - -Expected: ["0","0","0"] but got ["0.276","0.400","0.696"] -``` - - -```sql -SELECT + MIN ( ALL col2 ) FROM tab1 WHERE NOT + 85 = NULL - -Expected: ["NULL"] but got ["59"] -``` - - -```sql -SELECT ALL - ( - col0 ) * + + CAST ( NULL AS INTEGER ) + - 31 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-31","-31","-31"] -``` - - -```sql -SELECT 72 + + CAST ( NULL AS REAL ) FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab1 cor0 WHERE NOT - 7 BETWEEN + 97 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NOT NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - CAST ( SUM ( DISTINCT - + col0 ) AS INTEGER ) AS col2, 20 FROM tab1 - -g is not defined -``` - - -```sql -SELECT + 31 / - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2, MIN ( 21 ) FROM tab1 - -Expected: ["-10","21"] but got ["NULL","21"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col2, MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT - 54 IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,565 failed -* 84% was OK - -Time: 35601.288ms - ----- ---- ---- ---- ---- ---- ---- -### 267/620 [`./test/random/aggregates/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_18.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab1 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT ALL + + col1 + col2 + + col2 + col2 / 47 col0 FROM tab0 cor0 - -Expected: ["176","201","41"] but got ["176","201.106","41.213"] -``` - - -```sql -SELECT ALL col2 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * - ( - CAST ( - ( - col2 ) AS INTEGER ) ) IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT 80 * - CAST ( NULL AS REAL ) FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL col0, 82 - - 37 AS col1, col0 * col2 AS col0 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + ( + ( - - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL, tab1 AS cor2 - -Parse error on line 1: -...cor1 ON NULL IS NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT DISTINCT col2 + - col0 + - + 74 * CAST ( NULL AS INTEGER ) * - 41 AS col1, - CAST ( NULL AS INTEGER ) * col2 FROM tab0 - -Expected: ["NULL","NULL"] but got ["-77","0","2","0","32","0"] -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT ( NOT - 68 * col0 NOT BETWEEN - 84 AND ( col2 - col0 ) ) - -6 results returned but expected 9 -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col0, - 15 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT - MIN ( - + 28 ) col1, 1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL - -Expected: ["NULL","1"] but got ["1","NULL"] -``` - - -```sql -SELECT + 50 AS col1, 83 / - 6 FROM tab2 AS cor0 - -Expected: ["50","-13","50","-13","50","-13"] but got ["50","-13.833","50","-13.833","50","-13.833"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,583 failed -* 84% was OK - -Time: 26036.439ms - ----- ---- ---- ---- ---- ---- ---- -### 268/620 [`./test/random/aggregates/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_19.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - + 63 * 33 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-2079"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 + + col1 + + 47 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["114","124","98"] -``` - - -```sql -SELECT ALL col1 * + CAST ( NULL AS REAL ) + 35 / 6 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT col2 AS col1 FROM tab1 WHERE ( - - col0 ) * - col1 + + col1 + + - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT col1 AS col2, col0 AS col2 FROM tab0 AS cor0 - -Expected: ["1","97","21","87","81","15"] but got ["15","15","87","87","97","97"] -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + MIN ( - + 19 ) + + 52 AS col2 FROM tab1 AS cor0 WHERE NOT col2 + + + 64 * - col1 BETWEEN col0 AND - col2 - -Expected: ["33"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NOT NULL - -6 results returned but expected 18 -``` - - -```sql -SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT + COUNT ( * ) AS col1, MIN ( - 68 ) AS col1 FROM tab2 WHERE NULL < + + ( - 12 ) - -Expected: ["0","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,643 failed -* 83% was OK - -Time: 29410.877ms - ----- ---- ---- ---- ---- ---- ---- -### 269/620 [`./test/random/aggregates/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( + SUM ( ALL - 37 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + - SUM ( + CAST ( NULL AS INTEGER ) ) + - 23 AS col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-23"] -``` - - -```sql -SELECT + - 40 / + + col2 AS col2 FROM tab2 AS cor0 - -Expected: ["-1","-1","0"] but got ["-0.690","-1","-1.739"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + + + col1 IN ( 37 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) + 77 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["77","77","77"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * - 52 * - col1 * + 92 AS col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL IS NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + + 45 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * ( - SUM ( col2 ) ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,508 failed -* 84% was OK - -Time: 25371.863ms - ----- ---- ---- ---- ---- ---- ---- -### 270/620 [`./test/random/aggregates/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_20.test) - -_Mimic sqlite_ - -```sql -SELECT ALL * FROM tab1 WHERE NOT ( - col2 * - col2 ) < ( - col2 * CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT ALL + col1 * - ( - col1 ) * col0 - - + CAST ( + + col2 AS INTEGER ) + - 37 / + col0 + + - col1 * + 12 AS col0, + ( - + 53 ) + - col0 FROM tab0 AS cor0 - -Expected: ["184","-150","38125","-140","97488","-68"] but got ["183.619","-150","38124.575","-140","97487.533","-68"] -``` - - -```sql -SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 - -Expected: ["NULL"] but got ["-10","-47","-99"] -``` - - -```sql -SELECT CAST ( - AVG ( ALL + CAST ( + ( col2 ) AS INTEGER ) ) AS INTEGER ) FROM tab2 - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - col1 / + + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * 80 + 9 / + - 32 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab0 cor0 WHERE ( NOT + 77 * 73 IN ( col0 * + col1 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 89 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - 5 - - CAST ( NULL AS INTEGER ), + MIN ( ALL col1 ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - + col1 ) - -Expected: ["NULL","NULL"] but got ["-5","3"] -``` - - -```sql -SELECT - AVG ( - ( 62 ) ) * + 46 AS col1, 60 * SUM ( - - col0 ) AS col0 FROM tab2 cor0 WHERE + 55 IS NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT MAX ( DISTINCT - col1 ) / - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 - -Expected: ["1"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,606 failed -* 83% was OK - -Time: 33583.098ms - ----- ---- ---- ---- ---- ---- ---- -### 271/620 [`./test/random/aggregates/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_21.test) - -_Mimic sqlite_ - -```sql -SELECT - 31 / - 67 * - + col1 + - - 67 FROM tab2 AS cor0 - -Expected: ["67","67","67"] but got ["66.991","66.993","66.994"] -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN + ( col0 ) AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 46 - - 29 IS NULL - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) NOT IN ( - 50 - col2 ) - -Wrong conversion type -``` - - -```sql -SELECT - col1 AS col0, col0 AS col0, - 44 col1 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + CAST ( AVG ( DISTINCT + col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 0 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT 2 * 20 + + - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["40","0","40","0","40","0"] -``` - - -```sql -SELECT DISTINCT + COUNT ( * ) / CAST ( CAST ( + - SUM ( DISTINCT - ( - ( - col1 ) ) ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 WHERE col1 >= ( + col2 ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,591 failed -* 84% was OK - -Time: 128667.925ms - ----- ---- ---- ---- ---- ---- ---- -### 272/620 [`./test/random/aggregates/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_22.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - - 18 / CAST ( + - 87 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT 50 AS col2 FROM tab0 WHERE NOT ( + col0 / col1 ) NOT BETWEEN col2 * + col0 * - col0 AND + + col1 + 90 + 61 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-14","-47","-5"] -``` - - -```sql -SELECT DISTINCT - - 35 + - - col2 + - col1 AS col2, + 45 + 25 / col0 AS col1 FROM tab0 AS cor0 - -Expected: ["1","46","133","45","24","45"] but got ["133","45.258","1","46.667","24","45.287"] -``` - - -```sql -SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) - CAST ( + + MIN ( + col0 ) AS INTEGER ) FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT MAX ( + CAST ( NULL AS REAL ) ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 32 + - ( CAST ( SUM ( - col1 ) AS INTEGER ) ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + col1 BETWEEN + - 47 + + + col2 AND - - col2 - -6 results returned but expected 9 -``` - - -```sql -SELECT COUNT ( * ) / + - CAST ( + SUM ( ALL + - 19 ) AS INTEGER ) + - 51 FROM tab2 AS cor0 - -Expected: ["-51"] but got ["NULL"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - + 74 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,661 failed -* 83% was OK - -Time: 193635.254ms - ----- ---- ---- ---- ---- ---- ---- -### 273/620 [`./test/random/aggregates/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_23.test) - -_Mimic sqlite_ - -```sql -SELECT ALL * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT - 15 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + CAST ( AVG ( - - col1 ) AS INTEGER ) + + 8 * 52 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT + ( - col0 ) * - - col1 * + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["-107916","-315392","-376875"] -``` - - -```sql -SELECT DISTINCT col0 / + 90 AS col1 FROM tab1 - -Expected: ["0","1"] but got ["0.567","0.944","1.011"] -``` - - -```sql -SELECT ALL + 51 * - + CAST ( NULL AS REAL ) col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL ( - - MIN ( - CAST ( NULL AS INTEGER ) ) ), + 95 col2 FROM tab1 - -Expected: ["NULL","95"] but got ["0","95"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) BETWEEN NULL AND - col2 / - col0 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + 46 * + ( CAST ( NULL AS INTEGER ) ) - COUNT ( + col2 ) + + - COUNT ( - 64 ) AS col0, + 42 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["-6","42"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( - + 84 ) * - 55 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT 79 + - MAX ( + col0 ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN - col2 + 77 - - col1 + + col2 * + + 82 AND NULL - -Expected: ["4"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 cor0 INNER JOIN tab1 AS cor1 ON NOT + 23 IS NULL, tab0 AS cor2 - -Parse error on line 1: -... ON NOT + 23 IS NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,601 failed -* 84% was OK - -Time: 23008.325ms - ----- ---- ---- ---- ---- ---- ---- -### 274/620 [`./test/random/aggregates/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_24.test) - -_Mimic sqlite_ - -```sql -SELECT - - COUNT ( DISTINCT + col2 ) + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT ALL ( - 67 ) + + CAST ( NULL AS REAL ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT - col0 AS col0, col1 col0 FROM tab1 AS cor0 - -Expected: ["-51","14","-85","5","-91","47"] but got ["14","14","47","47","5","5"] -``` - - -```sql -SELECT - col1 + col0 + + col1 - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - 99 * - - 94 + + - col2 IS NULL - -Expected: ["0","NULL","0","NULL","0","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT + CAST ( + + COUNT ( DISTINCT + col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL + 1 + - col0 FROM tab2 WHERE NOT - col1 IN ( col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2, + MAX ( + - col0 ) FROM tab0 AS cor0 WHERE + col1 = NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL IS NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT COUNT ( - 71 ) / COUNT ( * ) col1, + 5 / + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 26, 95 * + col2 ) - -Expected: ["1","1"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) + + ( - + COUNT ( * ) ), MAX ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 - -Expected: ["NULL","NULL"] but got ["-3","0"] -``` - - -```sql -SELECT - col0 / - ( + 8 ), - 88 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 - -Expected: ["10","NULL","11","NULL","6","NULL"] but got ["10.625","NULL","11.375","NULL","6.375","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,587 failed -* 84% was OK - -Time: 33849.167ms - ----- ---- ---- ---- ---- ---- ---- -### 275/620 [`./test/random/aggregates/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_25.test) - -_Mimic sqlite_ - -```sql -SELECT - COUNT ( * ) + COUNT ( * ) / + 46 FROM tab1 - -Expected: ["-3"] but got ["-2.935"] -``` - - -```sql -SELECT ALL - COUNT ( * ), CAST ( NULL AS INTEGER ) * - - 37 AS col1 FROM tab2 - -Expected: ["-3","NULL"] but got ["-3","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - 96 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-96","-96","-96"] -``` - - -```sql -SELECT + col0 AS col0, 25 FROM tab2 AS cor0 WHERE NOT - col1 * + - col2 / - CAST ( - - 24 AS REAL ) = 3 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( - COUNT ( * ) AS INTEGER ) - - ( + 23 ) * + 62 AS col0 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab0 WHERE NOT col2 + + col0 IN ( col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MAX ( + + col1 ), + MAX ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT 78 = NULL - -Expected: ["NULL","NULL"] but got ["-81","-15"] -``` - - -```sql -SELECT MAX ( + col0 ) FROM tab1 WHERE NOT ( + col1 ) IN ( col0 ) - -Expected: ["91"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT ( - - 78 ) / ( - 20 ) * - col2 / - CAST ( NULL AS INTEGER ) / + col2 AS col0, + ( col0 ) / + + col1 FROM tab2 AS cor0 - -Expected: ["NULL","0","NULL","1"] but got ["NULL","0.831","NULL","0.902","NULL","1.119"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,691 failed -* 83% was OK - -Time: 39066.739ms - ----- ---- ---- ---- ---- ---- ---- -### 276/620 [`./test/random/aggregates/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_26.test) - -_Mimic sqlite_ - -```sql -SELECT + - col2 / + col0 * - 41 + + + 81 FROM tab2 AS cor0 - -Expected: ["81","81","81"] but got ["81.012","81.015","81.019"] -``` - - -```sql -SELECT MIN ( - - 92 ) * CAST ( NULL AS INTEGER ) + 27 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL"] but got ["27"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 * - ( + col1 ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + CAST ( - col0 AS INTEGER ) * + - 75 + - col2 AS col1, + col0 / - CAST ( NULL AS REAL ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT - ( - 17 ) FROM tab1 AS cor0 WHERE NOT 13 * - col2 + 87 * 34 IN ( col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( COUNT ( col1 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 16 / + 48 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + - COUNT ( * ) - + - MIN ( ALL 97 ) AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL - -Expected: ["94"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ), - 26 + + - CAST ( NULL AS INTEGER ) * + col1 * + - col2 AS col2 FROM tab1 - -Expected: ["NULL","NULL"] but got ["0","-26"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT - 6 IS NOT NULL WHERE ( NULL ) IS NULL - -6 results returned but expected 18 -``` - - -```sql -SELECT DISTINCT col0 + + 53 + + + CAST ( NULL AS INTEGER ) * + - 61 + col0 + - col2 * - 53, col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["3350","NULL","3839","NULL","5243","NULL"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) + + 67 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","67","0","67","0","67"] -``` - - -```sql -SELECT 58 / + + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + - 10 AS col2 FROM tab0 cor0 WHERE col1 > - col2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","-10","NULL","-10","NULL","-10"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,613 failed -* 83% was OK - -Time: 30092.517ms - ----- ---- ---- ---- ---- ---- ---- -### 277/620 [`./test/random/aggregates/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_27.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 / + + 70 FROM tab0 - -Expected: ["0","1"] but got ["0.214","1.243","1.386"] -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 24 * + 22 IN ( + 97 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - col2 * col0 * - CAST ( NULL AS INTEGER ) AS col2, + ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + 19 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["19","19"] -``` - - -```sql -SELECT DISTINCT + col2 + + 34 + - 62 * 80 * col1 * col0 * - + 96 - + col2 + CAST ( NULL AS INTEGER ) / - - 11 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["202368034","2036536354","339978274"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + CAST ( COUNT ( DISTINCT - col1 ) AS INTEGER ) * - 24 FROM tab1 - -g is not defined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + - col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) - - col1, CAST ( NULL AS INTEGER ) col0 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["51","0","67","0","77","0"] -``` - - -```sql -SELECT ALL 85, CAST ( col1 AS INTEGER ) * + col0 AS col2, - - 22 AS col2 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) * - - 61 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT + MIN ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN - col2 AND ( + 42 + 98 ) - -Expected: ["10"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,634 failed -* 83% was OK - -Time: 27654.343ms - ----- ---- ---- ---- ---- ---- ---- -### 278/620 [`./test/random/aggregates/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_28.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + + 86 * - 61 * + ( + - MAX ( + + ( - + col1 ) ) ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL - -Expected: ["NULL"] but got ["-267546"] -``` - - -```sql -SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT + col1 + + CAST ( col1 AS INTEGER ) IN ( - col2 * + col0 * - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - - col1 AS col1, - col2 / + 98 FROM tab2 AS cor0 - -Expected: ["51","0","67","0","77","0"] but got ["51","-0.235","67","-0.592","77","-0.408"] -``` - - -```sql -SELECT ALL - col0 AS col1, + col0 AS col1, col1 + - col2 * - + col2 * - col0 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * - - col0 AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - 27 * + col1, + CAST ( NULL AS REAL ) AS col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( + + COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE 30 - - 54 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + col2 - + col2, - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-10","0","-47","0","-99","0"] -``` - - -```sql -SELECT MIN ( - col2 ) FROM tab1 AS cor0 WHERE NOT - 54 BETWEEN - ( - col2 ) + - col1 AND NULL - -Expected: ["-96"] but got ["NULL"] -``` - - -```sql -SELECT - ( + - col0 ) AS col1, - col2 AS col1 FROM tab1 AS cor0 - -Expected: ["51","-96","85","-59","91","-68"] but got ["-59","-59","-68","-68","-96","-96"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), 42 * + 65 * MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,659 failed -* 83% was OK - -Time: 55057.375ms - ----- ---- ---- ---- ---- ---- ---- -### 279/620 [`./test/random/aggregates/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_29.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab1 cor0 - -g is not defined -``` - - -```sql -SELECT ( + 23 ) / + col1 - 56 AS col0 FROM tab1 - -Expected: ["-52","-55","-56"] but got ["-51.400","-54.357","-55.511"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * - col0 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL - 4 * - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col0 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT + + 26 BETWEEN + col0 AND ( 91 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col1, col0 + - - 95, + col2 * - col0 AS col0 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT col1 / + 52, 41 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["0","NULL","1","NULL"] but got ["0.019","0","0.404","0","1.558","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,653 failed -* 83% was OK - -Time: 34488.560ms - ----- ---- ---- ---- ---- ---- ---- -### 280/620 [`./test/random/aggregates/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 57 - + CAST ( NULL AS INTEGER ) + - + col2 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-42","10","47"] -``` - - -```sql -SELECT ALL + 54 / 64 AS col0 FROM tab1 AS cor0 - -Expected: ["0","0","0"] but got ["0.844","0.844","0.844"] -``` - - -```sql -SELECT ALL - CAST ( + MAX ( DISTINCT - col2 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 / + col1 / - - 59 * 70 / col0 ) - -g is not defined -``` - - -```sql -SELECT DISTINCT COUNT ( * ) * + - CAST ( NULL AS REAL ) AS col0 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT + col2 + + col1, col2 * + - 52 * - col1 AS col0, - - ( + 43 ) / - ( + col2 ) + col0 - + col1 + + col0 * 87 AS col1 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL 73 * + SUM ( - 22 ) * + 80 AS col0, + 1 + + + 83 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["-385440","NULL"] but got ["-385440","1"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NOT - 57 + + 29 NOT BETWEEN + 93 AND + ( + col2 ) ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT 55 / + CAST ( NULL AS INTEGER ), col2 * 46 + col1 + + CAST ( NULL AS INTEGER ) + - col2 * - col0 AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","2167","NULL","4477","NULL","7085"] -``` - - -```sql -SELECT ALL - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col2, col1 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","51","0","67","0","77"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,666 failed -* 83% was OK - -Time: 29338.330ms - ----- ---- ---- ---- ---- ---- ---- -### 281/620 [`./test/random/aggregates/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_30.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 32 / + col2 - + - ( col1 ) + - 73 * col1 FROM tab2 cor0 - -Expected: ["-3671","-4824","-5544"] but got ["-3670.609","-4823.448","-5543.200"] -``` - - -```sql -SELECT + 45 / 23 FROM tab0 WHERE col0 + - + col1 + - 72 * ( CAST ( NULL AS INTEGER ) * 26 ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL 42 + + CAST ( NULL AS INTEGER ) * col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["42","42","42"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) + + col2 AS col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col1 IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 16 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL ( - MAX ( col2 ) ) * + 37 AS col0 FROM tab0 WHERE NOT ( + - col0 / col0 ) IN ( - ( - col0 ) - + ( - 36 ) ) - -Expected: ["-3663"] but got ["NULL"] -``` - - -```sql -SELECT + col1 col2, + col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["14","NULL","47","NULL","5","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 74 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - 58 + + MAX ( col0 ) AS col1, 39 FROM tab2 cor0 WHERE NOT col2 <> 26 - -Expected: ["NULL","39"] but got ["39","NULL"] -``` - - -```sql -SELECT ( - + CAST ( NULL AS INTEGER ) ) / + COUNT ( + + 72 ) col0, + ( - + 71 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["NULL","NULL"] but got ["0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,615 failed -* 83% was OK - -Time: 32415.721ms - ----- ---- ---- ---- ---- ---- ---- -### 282/620 [`./test/random/aggregates/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_31.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL col2 * - col1 + CAST ( NULL AS INTEGER ) / - 59 AS col1 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-1344","-295","-3196"] -``` - - -```sql -SELECT ALL - - 55 / - COUNT ( * ) FROM tab0 AS cor0 - -Expected: ["-18"] but got ["-18.333"] -``` - - -```sql -SELECT DISTINCT - + col2 * col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT 91 + - COUNT ( CAST ( + + col1 AS REAL ) ) FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( COUNT ( - col0 ) AS INTEGER ) FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + + col2 AS col1, - col0 AS col1, - + col0 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 92 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), - AVG ( ALL - col2 ) FROM tab1 WHERE + col1 IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL 83 + 86 / + MAX ( + 8 / - col2 + - col2 ) AS col0 FROM tab0 WHERE NOT ( 9 ) IN ( col1 ) - -Expected: ["75"] but got ["NULL"] -``` - - -```sql -SELECT - - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + MIN ( + 39 ), - SUM ( - col2 ) / + CAST ( + COUNT ( * ) AS INTEGER ) + - 10 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","64"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,691 failed -* 83% was OK - -Time: 37791.065ms - ----- ---- ---- ---- ---- ---- ---- -### 283/620 [`./test/random/aggregates/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_32.test) - -_Mimic sqlite_ - -```sql -SELECT ALL COUNT ( * ) / + 66 FROM tab0 AS cor0 - -Expected: ["0"] but got ["0.045"] -``` - - -```sql -SELECT ALL + col0 + + - col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["0","NULL","0","NULL","0","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT ALL - 4 + + col2 FROM tab2 AS cor0 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 12, col2 / - ( - - col2 ) * + CAST ( NULL AS REAL ) + col2 - col0 - + - 45 AS col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL + col1, col2 * - col1 * + + col2 AS col2, + col0 AS col2 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - 41 AS col1, CAST ( + MAX ( 9 ) AS INTEGER ) * + + 29 AS col2 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN col2 AND + 80 + + 9 / col1 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 61 AS col0 FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL, tab0 AS cor2 - -Parse error on line 1: -...NOT NULL IS NOT NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - - AVG ( ALL + col2 ) AS col2, 76 FROM tab2 WHERE NOT - 11 IS NOT NULL - -Expected: ["NULL","76"] but got ["76","NULL"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 99 IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,635 failed -* 83% was OK - -Time: 75161.621ms - ----- ---- ---- ---- ---- ---- ---- -### 284/620 [`./test/random/aggregates/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_33.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 13 * + + CAST ( NULL AS INTEGER ) * - 10 AS col1 FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + 92 * CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + col2 / + + col0 + + 17 FROM tab0 AS cor0 - -Expected: ["17","18","20"] but got ["17.115","18.021","20.133"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * - - col1 * - - col1 AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT + 97 + + col2 AS col0, col0, + - col1 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 cor0 WHERE NOT ( + 57 ) IN ( + col0 + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( + 61 AS INTEGER ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - + SUM ( 74 ) / + CAST ( - MAX ( ALL + col1 ) AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["2"] but got ["NULL"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 JOIN tab2 cor1 ON NOT NULL BETWEEN NULL AND NULL, tab1 AS cor2 - -Parse error on line 1: -...ETWEEN NULL AND NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - + col0 AS col2, ( + 72 ) / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 - -Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * 63 + 75 AS col2, CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["75","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,681 failed -* 83% was OK - -Time: 85545.943ms - ----- ---- ---- ---- ---- ---- ---- -### 285/620 [`./test/random/aggregates/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_34.test) - -_Mimic sqlite_ - -```sql -SELECT + 54 / col2 FROM tab1 AS cor0 - -Expected: ["0","0","0"] but got ["0.563","0.794","0.915"] -``` - - -```sql -SELECT col1 * + col0 + ( CAST ( NULL AS INTEGER ) ) FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["425","4277","714"] -``` - - -```sql -SELECT ALL + 80 - + CAST ( NULL AS REAL ) FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + + SUM ( + 29 ) FROM tab0 AS cor0 WHERE col1 * - col0 / col2 = NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) + 66 FROM tab2 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 WHERE NOT - col2 IN ( + - 56 * 52, - 45, + 52, - - 75 * - + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col1, - col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["14","NULL","47","NULL","5","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT - col0, col0 * - col2 + 10 col2, + col2 - 96 col2 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 61 + + 13 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 92 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["-92","0"] -``` - - -```sql -SELECT - ( COUNT ( * ) ) + + MIN ( DISTINCT - col0 ) AS col2 FROM tab2 cor0 WHERE NOT - col1 * - - col1 IN ( + - col1 ) - -Expected: ["-78"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,501 failed -* 85% was OK - -Time: 75826.504ms - ----- ---- ---- ---- ---- ---- ---- -### 286/620 [`./test/random/aggregates/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_35.test) - -_Mimic sqlite_ - -```sql -SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - col1 * 94 - - CAST ( NULL AS INTEGER ) NOT BETWEEN ( col0 ) AND + 86 - -Expected: ["0"] but got ["3"] -``` - - -```sql -SELECT ALL 93 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["93","NULL","93","NULL","93","NULL"] but got ["93","0","93","0","93","0"] -``` - - -```sql -SELECT - - CAST ( + COUNT ( ALL + col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + COUNT ( * ) AS col2, AVG ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 - -Expected: ["3","NULL"] but got ["3","0"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT + col1 / + col0 IN ( - 91 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL 99 * col0 + + + CAST ( NULL AS REAL ) AS col0 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * - 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - MAX ( - col1 ) / CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 - -Expected: ["-17"] but got ["NULL"] -``` - - -```sql -SELECT - 82 col2, AVG ( 76 ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL - -Expected: ["-82","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - col0 / + + col2, ( + - 79 ) / - + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 - -Expected: ["-1","NULL","-1","NULL","0","NULL"] but got ["-0.531","NULL","-1.338","NULL","-1.441","NULL"] -``` - - -```sql -SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,539 failed -* 84% was OK - -Time: 70711.446ms - ----- ---- ---- ---- ---- ---- ---- -### 287/620 [`./test/random/aggregates/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_36.test) - -_Mimic sqlite_ - -```sql -SELECT 89 / + col1 + - col2 FROM tab0 AS cor0 - -Expected: ["-10","-46","-6"] but got ["-10","-45.901","-5.762"] -``` - - -```sql -SELECT DISTINCT + 36 - + col1 + - CAST ( NULL AS REAL ) AS col0, col2 * - ( + 63 ) AS col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL - -g is not defined -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN + + ( - CAST ( + 19 AS INTEGER ) ) * + 26 AND ( + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) / + + 5 / - 48 * + - 22 + + + SUM ( col2 ) FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","156"] -``` - - -```sql -SELECT 39 + ( 30 + MAX ( ALL col2 ) ) FROM tab0 AS cor0 WHERE - col0 * CAST ( NULL AS INTEGER ) IS NULL AND ( 51 * 71 ) IS NOT NULL - -Expected: ["168"] but got ["NULL"] -``` - - -```sql -SELECT + 20 * 17 + + + 26 * + MIN ( DISTINCT - col0 ) col1, - 97 / - 70 FROM tab2 WHERE NULL <= + - col0 - -Expected: ["NULL","1"] but got ["NULL","1.386"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,546 failed -* 84% was OK - -Time: 69755.548ms - ----- ---- ---- ---- ---- ---- ---- -### 288/620 [`./test/random/aggregates/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_37.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - SUM ( ALL CAST ( NULL AS INTEGER ) ) * - SUM ( 89 ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + - col1 - - col2 AS col0, col0 AS col0 FROM tab2 AS cor0 - -Expected: ["-28","46","-37","64","-9","75"] but got ["46","46","64","64","75","75"] -``` - - -```sql -SELECT ALL 87 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["87","NULL","87","NULL","87","NULL"] but got ["87","0","87","0","87","0"] -``` - - -```sql -SELECT CAST ( - ( AVG ( col0 ) ) AS INTEGER ) AS col2 FROM tab0 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col2 BETWEEN ( NULL ) AND ( - 5 ) * + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - MAX ( col1 ) col0 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 84 + - col0 * + 20 ) - -Expected: ["-77"] but got ["NULL"] -``` - - -```sql -SELECT - ( - CAST ( NULL AS REAL ) ) + ( + + 39 ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - + col1 AS col0, col0 * + col0 + - + col0 AS col1, + - 18 AS col0 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON + 69 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT 56 + CAST ( NULL AS INTEGER ) col0, - ( + SUM ( col1 ) ) * - 43 - - 83 FROM tab1 WHERE NULL = - col0 + - + ( - 39 ) / - 22 - -Expected: ["NULL","NULL"] but got ["56","83"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,573 failed -* 84% was OK - -Time: 50625.688ms - ----- ---- ---- ---- ---- ---- ---- -### 289/620 [`./test/random/aggregates/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_38.test) - -_Mimic sqlite_ - -```sql -SELECT - col0 / + 92 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 AND - col2 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) = - col0 + + 49 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( COUNT ( + col0 ) AS INTEGER ) FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 * - 23 + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL - -Expected: ["NULL"] but got ["1416","1632","2304"] -``` - - -```sql -SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL > NULL - -Expected: ["0"] but got ["3"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - ( - + ( - + col0 ) ) * - 74 - col1 * - col1 + - + 7 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-6","434","6554"] -``` - - -```sql -SELECT - col1 - - 97 * - + col0 * col1 * CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT 20 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - MIN ( 32 ) AS col1 FROM tab1 WHERE NOT + - col2 + 72 + + ( + - col2 ) IN ( + 61 ) - -Expected: ["-32"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab2 cor1 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND col2 - -Expected: ["NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL - COUNT ( * ) AS col0, 85 + - - 20 / - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 45 AS col0 FROM tab1 - -Expected: ["-3","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + + SUM ( col0 ) AS col1, COUNT ( * ) * + - MIN ( ALL - - col1 ) + - 72 AS col2 FROM tab0 WHERE + col2 IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,565 failed -* 84% was OK - -Time: 48500.656ms - ----- ---- ---- ---- ---- ---- ---- -### 290/620 [`./test/random/aggregates/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_39.test) - -_Mimic sqlite_ - -```sql -SELECT COUNT ( * ) / + 71 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["0"] but got ["0.042"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 7 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + 9 * ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 WHERE NOT + col2 BETWEEN ( + col1 ) AND ( 99 / col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col0 + - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["46","64","75"] -``` - - -```sql -SELECT ALL + - col2 * col1 * - col1 - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + CAST ( - AVG ( DISTINCT + 98 ) AS INTEGER ) AS col2 FROM tab2 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT MIN ( + - ( col2 ) ) AS col0, SUM ( + col2 ) FROM tab1 cor0 WHERE col2 IS NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) AS col2, CAST ( NULL AS INTEGER ) - - - SUM ( + 86 ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","-258"] -``` - - -```sql -SELECT MIN ( ALL + 85 ) FROM tab2 WHERE NOT - col2 BETWEEN NULL AND ( col0 * - 64 ) - -Expected: ["85"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,597 failed -* 84% was OK - -Time: 24395.897ms - ----- ---- ---- ---- ---- ---- ---- -### 291/620 [`./test/random/aggregates/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 63 / col1 AS col2 FROM tab2 - -Expected: ["0","1"] but got ["0.818","0.940","1.235"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, col0 - + 58 FROM tab2 AS cor0 - -Expected: ["NULL","-12","NULL","17","NULL","6"] but got ["0","-12","0","17","0","6"] -``` - - -```sql -SELECT - - col2 * col0 + + - 40, CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( + COUNT ( DISTINCT + - col2 ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT ALL + col2 FROM tab2 WHERE NOT - col0 + col0 BETWEEN - col0 AND ( - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT MIN ( 38 ) AS col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL ) - -Expected: ["NULL"] but got ["38"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE 46 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + + COUNT ( * ) AS col1, MIN ( - - 79 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL - -Expected: ["0","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + + CAST ( NULL AS INTEGER ), ( - col2 ) * + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT col1 AS col1, + 34 / + CAST ( NULL AS INTEGER ) + col2 * - - col1 * + 65 col1 FROM tab2 - -Expected: ["51","NULL","67","NULL","77","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL - MAX ( ALL - - col1 ) AS col0 FROM tab2 WHERE NOT ( col0 ) + 87 IN ( - + 12, - 20, - - col0 ) - -Expected: ["-77"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,688 failed -* 83% was OK - -Time: 31042.253ms - ----- ---- ---- ---- ---- ---- ---- -### 292/620 [`./test/random/aggregates/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_40.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - ( - - col0 ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 cor0 - -Expected: ["-51","NULL","-85","NULL","-91","NULL"] but got ["-51","0","-85","0","-91","0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - 59 AS col1, ( + + CAST ( NULL AS REAL ) ) + + col0 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col0 / - - col2 + - 22 AS col0 FROM tab0 - -Expected: ["-14","-22"] but got ["-13.300","-21.020","-21.681"] -``` - - -```sql -SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT + + 83 IN ( - col1, - ( - 17 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + col1 * - + col0 * - col0 AS col1, col2 - - ( - - col1 ) AS col0, + - 63 AS col1 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL MIN ( DISTINCT - ( + col1 ) ) FROM tab1 WHERE NOT + col1 IN ( col2 ) - -Expected: ["-47"] but got ["NULL"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), SUM ( ALL - col0 ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL < NULL - -54 results returned but expected 18 -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) col1, - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,597 failed -* 84% was OK - -Time: 39714.892ms - ----- ---- ---- ---- ---- ---- ---- -### 293/620 [`./test/random/aggregates/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_41.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT COUNT ( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL - -Expected: ["0"] but got ["3"] -``` - - -```sql -SELECT ALL - - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 7 / col0 * - col2 AS col2 FROM tab2 WHERE NOT - 31 * + col0 / 20 IN ( + - col1, + col2, 96 * - - col2, - - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + 18 * ( ( 11 ) ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["198","198","198"] -``` - - -```sql -SELECT + CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT + 73 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( - 21 ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + + 38 / - col2, col2 + - col2 / - CAST ( NULL AS INTEGER ) + - col1 - + + ( - 37 ) + + col2 / - col1 + - 42 / + + col0 AS col2 FROM tab2 AS cor0 - -Expected: ["-1","NULL","0","NULL","0","NULL"] but got ["-0.655","NULL","-0.950","NULL","-1.652","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 61 <= 45 - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL + MIN ( - 81 ) * COUNT ( * ) AS col0, 70 FROM tab1 WHERE NOT + col0 IS NOT NULL - -Expected: ["NULL","70"] but got ["70","NULL"] -``` - - -```sql -SELECT COUNT ( * ) / + ( + CAST ( + COUNT ( - - col0 ) AS INTEGER ) ) col2 FROM tab0 - -Expected: ["1"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,464 failed -* 85% was OK - -Time: 63638.909ms - ----- ---- ---- ---- ---- ---- ---- -### 294/620 [`./test/random/aggregates/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_42.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col2 + CAST ( NULL AS INTEGER ) / + + col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["10","47","99"] -``` - - -```sql -SELECT DISTINCT COUNT ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT DISTINCT + col1 / - 82 FROM tab1 - -Expected: ["0"] but got ["-0.061","-0.171","-0.573"] -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 / col2 * + + col0 ) NOT BETWEEN ( 94 ) AND - - 69 * + 66 - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) / + - 50 * - - 32 AS col1, - CAST ( NULL AS INTEGER ) col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT - + 16 col0 FROM tab0 AS cor0 WHERE NOT - col0 IN ( + col1 + col1, col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col2 * - col0 * col1 * - - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) - - col0 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","46","0","64","0","75"] -``` - - -```sql -SELECT DISTINCT 82 / + - col1 * + CAST ( NULL AS INTEGER ) col0, col1 / + col0 AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","0","NULL","1"] but got ["NULL","0.893","NULL","1.109","NULL","1.203"] -``` - - -```sql -SELECT - SUM ( DISTINCT - 22 ) * - ( COUNT ( * ) ) AS col2, - 91 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 - -Expected: ["-66","NULL"] but got ["-66","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 14 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL MAX ( col2 ), COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) + + ( + CAST ( AVG ( col2 ) AS INTEGER ) ) * - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 0 AS col0, COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["NULL","NULL"] but got ["0","3"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,530 failed -* 84% was OK - -Time: 55585.265ms - ----- ---- ---- ---- ---- ---- ---- -### 295/620 [`./test/random/aggregates/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_43.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col1 / - - col2 + + + col1 + - - col2 + - + col2 * - col1 AS col0 FROM tab0 AS cor0 - -Expected: ["199","243","3936"] but got ["199.010","243.100","3936.723"] -``` - - -```sql -SELECT ALL - COUNT ( * ) + - - SUM ( DISTINCT + col1 ) AS col1 FROM tab1 WHERE ( ( NULL ) IS NOT NULL ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) * + col0 + - 62 + - col0 > NULL - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) * - col0 - + 80 IN ( + col1, col2 + - col2, + - 30 - + 24 * col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - ( CAST ( NULL AS INTEGER ) ) FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 92 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL CAST ( MIN ( + 74 ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE ( + 77 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + col2 / + - col0 AS col2, col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["-1","NULL","0","NULL","0","NULL"] but got ["-0.694","NULL","-0.747","NULL","-1.882","NULL"] -``` - - -```sql -SELECT DISTINCT + ( - col1 ) * - col1 + + ( - col0 ) + col2 AS col1, - 87 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 - -Expected: ["3","NULL","364","NULL","6593","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab2 WHERE NOT col2 * 43 IN ( + 38, ( + + col2 ), 92 + - + 76 ) - -Expected: ["46"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,572 failed -* 84% was OK - -Time: 29416.812ms - ----- ---- ---- ---- ---- ---- ---- -### 296/620 [`./test/random/aggregates/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_44.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 - col2 / + col1 AS col1 FROM tab0 - -Expected: ["-2","15","87"] but got ["-2","14.420","86.524"] -``` - - -```sql -SELECT - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-15","-87","-97"] -``` - - -```sql -SELECT ALL + COUNT ( + 5 ) + - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT ALL + col0 / - CAST ( NULL AS REAL ) FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1 WHERE NOT - 76 + + CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( + SUM ( ALL - 2 ) AS INTEGER ) AS col2, - ( - + CAST ( + - 99 AS INTEGER ) ), + 64 AS col1 FROM tab1 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - COUNT ( * ) / CAST ( + MIN ( - 49 ) AS INTEGER ) AS col0 FROM tab0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - + col2, CAST ( NULL AS INTEGER ) + - 19 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["-23","-19","-40","-19","-58","-19"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,597 failed -* 84% was OK - -Time: 37036.915ms - ----- ---- ---- ---- ---- ---- ---- -### 297/620 [`./test/random/aggregates/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_45.test) - -_Mimic sqlite_ - -```sql -SELECT + + 95 / 43 + - 1 FROM tab0 AS cor0 - -Expected: ["1","1","1"] but got ["1.209","1.209","1.209"] -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT col1 * - col1 BETWEEN - col2 AND ( col0 * - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 39 FROM tab1 - -g is not defined -``` - - -```sql -SELECT - ( CAST ( NULL AS INTEGER ) ) * + 78 col1 FROM tab1 cor0 CROSS JOIN tab2 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * col1 * + col0 AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) + 43 + - 55 AS col1, + 61 FROM tab1 - -Expected: ["NULL","61","NULL","61","NULL","61"] but got ["-12","61","-12","61","-12","61"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - col0 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) / + - COUNT ( * ), 38 * CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT - 46 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - COUNT ( * ) / COUNT ( col0 ) col0 FROM tab1 WHERE NOT - 25 BETWEEN ( 37 ) AND ( + col0 ) - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT MAX ( ALL col0 ), SUM ( + - 91 ) FROM tab0 WHERE NULL > col0 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,531 failed -* 84% was OK - -Time: 33947.287ms - ----- ---- ---- ---- ---- ---- ---- -### 298/620 [`./test/random/aggregates/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_46.test) - -_Mimic sqlite_ - -```sql -SELECT + COUNT ( * ) - - 85 + + 45 / SUM ( DISTINCT + 43 ) FROM tab1 AS cor0 - -Expected: ["89"] but got ["89.047"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - - - col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-10","-47","-99"] -``` - - -```sql -SELECT DISTINCT col0 + + CAST ( NULL AS REAL ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( + MAX ( - col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT 85 FROM tab1 AS cor0 WHERE NOT - 34 BETWEEN + + col0 AND CAST ( - + col2 AS INTEGER ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + ( + SUM ( CAST ( NULL AS INTEGER ) ) + + SUM ( ALL col0 ) ) AS col1 FROM tab1 WHERE NOT ( + 68 ) > 14 * col0 - -Expected: ["NULL"] but got ["227"] -``` - - -```sql -SELECT + - col2 + - col0 AS col2, + CAST ( - col0 AS INTEGER ), - col1 AS col2 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + MAX ( col1 ) * - 25 col2, 20 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT DISTINCT ( 69 ) / COUNT ( * ) - - 41 / - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 - -Expected: ["36"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + COUNT ( * ) + - 82 / - 77 FROM tab2 - -Expected: ["4"] but got ["4.065"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,606 failed -* 83% was OK - -Time: 43164.776ms - ----- ---- ---- ---- ---- ---- ---- -### 299/620 [`./test/random/aggregates/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_47.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - col2 + - 75 AS col0, + 42 * - col1 AS col0 FROM tab1 cor0 - -Expected: ["-134","-210","-143","-1974","-171","-588"] but got ["-1974","-1974","-210","-210","-588","-588"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * + + col2 + + + col2 * 61 * + + col0 - - + col0 / + col1 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) + - 90 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-90"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS REAL ) IS NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col1 * + - col2 AS col2, 75 AS col2, + ( - + CAST ( - - col1 AS INTEGER ) ) AS col2 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + CAST ( + + SUM ( DISTINCT col0 ) AS INTEGER ) + + 75 AS col1 FROM tab2 - -g is not defined -``` - - -```sql -SELECT ALL ( - 54 ) AS col0, 63 * + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab0 cor0 - -Expected: ["-54","-189"] but got ["-54","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL > NULL, tab2 AS cor2 - -Parse error on line 1: -... cor1 ON NULL > NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 77 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT col0 AS col1, + ( - col2 ) / + + ( + ( CAST ( NULL AS INTEGER ) ) ) + - 3 AS col1 FROM tab1 - -Expected: ["51","NULL","85","NULL","91","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT col1 / - CAST ( NULL AS INTEGER ) AS col2, 42 / col1 AS col1 FROM tab0 - -Expected: ["NULL","0","NULL","2","NULL","42"] but got ["NULL","0.519","NULL","2","NULL","42"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,605 failed -* 83% was OK - -Time: 47541.571ms - ----- ---- ---- ---- ---- ---- ---- -### 300/620 [`./test/random/aggregates/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_48.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + AVG ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT col2 / - col1 + col0 AS col1 FROM tab1 cor0 - -Expected: ["45","74","90"] but got ["44.143","73.200","89.553"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - - col2 AS col2 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT - CAST ( 14 AS INTEGER ) IN ( - - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + SUM ( - + col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ), - CAST ( NULL AS INTEGER ) col2 FROM tab2 - -g is not defined -``` - - -```sql -SELECT ALL 10 AS col0, - col2 * - - col1 * + - 85 AS col0, - col0 + - 51 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, - AVG ( DISTINCT ( + col1 ) ) AS col0 FROM tab0 WHERE NOT - - col0 NOT BETWEEN 4 * 53 / + col1 - - col2 AND - col2 - -Expected: ["NULL","NULL"] but got ["-34.333"] -``` - - -```sql -SELECT SUM ( ALL + - col0 ) AS col0, 79 + + - MAX ( ( 58 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,514 failed -* 84% was OK - -Time: 42903.790ms - ----- ---- ---- ---- ---- ---- ---- -### 301/620 [`./test/random/aggregates/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_49.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + COUNT ( col2 ) + + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col0 - - col2 BETWEEN + 54 AND NULL - -Expected: ["6"] but got ["0"] -``` - - -```sql -SELECT DISTINCT 91 FROM tab1 WHERE NOT col2 BETWEEN col2 + + 49 * + col0 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 cor0 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT ALL + 28 * ( - + 91 ) * + 68 * + - CAST ( NULL AS INTEGER ) + 23 * + + ( + col1 ) + + 26 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["1199","1567","1797"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) / + 49 FROM tab0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON ( NULL IS NULL ) - -18 results returned but expected 54 -``` - - -```sql -SELECT + ( - + 36 ) / 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT - + 69 / col2 AS col0 FROM tab2 AS cor0 - -Expected: ["-1","-3"] but got ["-1.190","-1.725","-3"] -``` - - -```sql -SELECT ALL + + col1 * + + col2 + + 60 + CAST ( NULL AS INTEGER ), col1 / 83 * + - 27 * - 57 + - - 3 - - col1 + + 80 - - col1 * CAST ( NULL AS INTEGER ) * + - col1 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["1404","356.590","3256","1001.482","355","180.711"] -``` - - -```sql -SELECT - COUNT ( - + 79 ) / - SUM ( ALL + ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( 76 AS INTEGER ) IN ( - col1 ) - -Expected: ["0"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,539 failed -* 84% was OK - -Time: 46048.803ms - ----- ---- ---- ---- ---- ---- ---- -### 302/620 [`./test/random/aggregates/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT + COUNT ( * ) + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col2, 95 AS col2 FROM tab0 - -Expected: ["10","95","47","95","99","95"] but got ["95","95","95","95","95","95"] -``` - - -```sql -SELECT ALL - col0 * + 64 * - CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT - CAST ( + col1 AS REAL ) * col2 + CAST ( NULL AS INTEGER ), 92 AS col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( AVG ( + col0 ) AS INTEGER ) FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT col0 * - + 59 * - - col1 col1, col0 * - col2 * 90 AS col2, ( - col1 ) AS col2 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - - col2 AS col2 FROM tab0 WHERE NOT - + ( col1 ) IN ( col1 * - + 99 + + col1, + 70 / 67, col1 * - col2, + - col2 + + col1 - + + col1, - col0, col2 + + + 94, - + 28 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL, tab1 AS cor2 - -Parse error on line 1: -...NOT NULL IS NOT NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - MIN ( + col1 ) AS col0, 84 FROM tab1 AS cor0 WHERE NOT ( - 48 ) IS NOT NULL - -Expected: ["NULL","84"] but got ["84","NULL"] -``` - - -```sql -SELECT DISTINCT + + MAX ( col2 ) FROM tab0 AS cor0 WHERE NOT 38 BETWEEN NULL AND + col1 - -Expected: ["99"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,632 failed -* 83% was OK - -Time: 46033.496ms - ----- ---- ---- ---- ---- ---- ---- -### 303/620 [`./test/random/aggregates/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_50.test) - -_Mimic sqlite_ - -```sql -SELECT - + CAST ( + MAX ( ALL 60 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - col1 / col0 / + col0 + - 60 AS col2 FROM tab1 AS cor0 - -Expected: ["-60"] but got ["-60.001","-60.005","-60.006"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 - - - 97 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["-148","-164","-174"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT + ( - 13 ) * 8 BETWEEN ( + + ( - - col1 ) ) AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + AVG ( col1 ) col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + 28 ) - -Expected: ["NULL"] but got ["65"] -``` - - -```sql -SELECT COUNT ( * ) * - 83 FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS REAL ) + col2 ) NOT IN ( col0 * - col2 ) - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + ( + 6 ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL COUNT ( * ) / + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - CAST ( 13 AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-13","0","-13","0","-13","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MAX ( CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( NULL AS INTEGER ) * - 46 FROM tab1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,543 failed -* 84% was OK - -Time: 42894.992ms - ----- ---- ---- ---- ---- ---- ---- -### 304/620 [`./test/random/aggregates/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_51.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 16 + - + col2 * - CAST ( NULL AS INTEGER ) + - col0 / + col1 col0 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["14.881","15.098","15.169"] -``` - - -```sql -SELECT - - CAST ( NULL AS INTEGER ) * + - 42 col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + - COUNT ( + col2 ) col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col0 < - col2 - -Expected: ["0"] but got ["-3"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT * FROM tab0, tab0 AS cor0 WHERE NOT + 87 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + 55 ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT * FROM tab1 WHERE NOT ( col2 ) IN ( col2 * col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - 66 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-66","-66","-66"] -``` - - -```sql -SELECT DISTINCT - + col1 / - + 40 - - CAST ( NULL AS INTEGER ) / + 96 AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0.025","0","0.525","0","2.025","0"] -``` - - -```sql -SELECT MAX ( DISTINCT - col2 ) + + - COUNT ( * ) FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col0 IS NULL - -Expected: ["-26"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT 46 - + 33 + - col1 AS col1, - col1 / - + CAST ( NULL AS INTEGER ) + col2 / + col2 AS col1 FROM tab0 - -Expected: ["-68","NULL","-8","NULL","12","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,585 failed -* 84% was OK - -Time: 29510.961ms - ----- ---- ---- ---- ---- ---- ---- -### 305/620 [`./test/random/aggregates/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_52.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 77 * - + 18 * + COUNT ( * ) - + COUNT ( * ) * - 9 AS col0, COUNT ( * ) * 67 - 21 / - MAX ( - 35 ) col1 FROM tab1 - -Expected: ["-4131","201"] but got ["-4131","200.400"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - 71 + col1 AS col0 FROM tab0 WHERE NOT - col1 BETWEEN - - 6 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT 54 + + + MAX ( CAST ( NULL AS INTEGER ) ) col2 FROM tab0 - -Expected: ["NULL"] but got ["54"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-59","-68","-96"] -``` - - -```sql -SELECT ALL CAST ( - MIN ( + 36 ) AS INTEGER ) FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + COUNT ( * ) + MIN ( ALL + col2 ) FROM tab1 WHERE NOT + 61 IN ( 4 - 58 ) - -Expected: ["62"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1, col1 + - ( + CAST ( NULL AS INTEGER ) ) + col0 * + + ( + col1 ) col1 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["2397","2397","5005","5005","5092","5092"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) col0 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT MAX ( - col0 ) AS col0, 94 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 11 AND + ( + ( + col0 ) ) * - col1 + - + col0 + - 30 - -Expected: ["NULL","94"] but got ["94","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,491 failed -* 85% was OK - -Time: 27170.077ms - ----- ---- ---- ---- ---- ---- ---- -### 306/620 [`./test/random/aggregates/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_53.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col2 AS col0, - col2 AS col0 FROM tab0 AS cor0 - -Expected: ["10","-10","47","-47","99","-99"] but got ["-10","-10","-47","-47","-99","-99"] -``` - - -```sql -SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -g is not defined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), col2 FROM tab2 - -Expected: ["NULL","23","NULL","40","NULL","58"] but got ["0","23","0","40","0","58"] -``` - - -```sql -SELECT + col1 * + CAST ( + - ( - CAST ( NULL AS INTEGER ) ) AS REAL ) - + 50 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT col2 * + col2 NOT BETWEEN + ( + - col2 ) - + + col1 AND 19 + col1 + + 50 * + 12 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab1 cor0 - -Expected: ["NULL"] but got ["-59","-68","-96"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + ( - COUNT ( * ) ) AS col1, 44 / - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 - -Expected: ["-3","14"] but got ["-3","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 60 * 8 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1, - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,596 failed -* 84% was OK - -Time: 35717.293ms - ----- ---- ---- ---- ---- ---- ---- -### 307/620 [`./test/random/aggregates/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_54.test) - -_Mimic sqlite_ - -```sql -SELECT MAX ( ALL - + col2 ) * CAST ( AVG ( DISTINCT - col2 ) AS INTEGER ) FROM tab0 cor0 - -Expected: ["520"] but got ["0"] -``` - - -```sql -SELECT - + CAST ( NULL AS REAL ) * + col1 + - col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - - 30 * + - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-90"] -``` - - -```sql -SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) / + + 21 * + + col1 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-10","-47","-99"] -``` - - -```sql -SELECT col0, + col0 * + col1 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["15","NULL","87","NULL","97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT + col2 * CAST ( col2 AS INTEGER ) IN ( - 43 + 9 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - CAST ( + - SUM ( + - col0 ) AS INTEGER ) AS col1 FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + 45 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MAX ( ALL - col1 ), 52 * + - MAX ( DISTINCT + 28 ) / 11 * COUNT ( * ) - - SUM ( col0 ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL - -Expected: ["NULL","NULL"] but got ["5","-170.091"] -``` - - -```sql -SELECT - COUNT ( 43 ) / - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) * 67 AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,558 failed -* 84% was OK - -Time: 33642.505ms - ----- ---- ---- ---- ---- ---- ---- -### 308/620 [`./test/random/aggregates/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_55.test) - -_Mimic sqlite_ - -```sql -SELECT - CAST ( + + col2 AS INTEGER ) + 68 / + + 67 FROM tab1 AS cor0 - -Expected: ["-58","-67","-95"] but got ["-57.985","-66.985","-94.985"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 67 AS col2 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL ) - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 AS col2, - 49 AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - 77 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL 62 * - col0 + - CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["-2852","-3968","-4650"] -``` - - -```sql -SELECT ALL ( CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 96, - CAST ( NULL AS INTEGER ) FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["-96","0"] -``` - - -```sql -SELECT + 70 - + MIN ( - col0 ) FROM tab0 AS cor0 WHERE NOT col0 IN ( ( col1 ) * 1 ) - -Expected: ["167"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,521 failed -* 84% was OK - -Time: 45977.324ms - ----- ---- ---- ---- ---- ---- ---- -### 309/620 [`./test/random/aggregates/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_56.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + col2 AS col1, 40 * - + col1 col1 FROM tab0 AS cor0 - -Expected: ["10","-840","47","-3240","99","-40"] but got ["-3240","-3240","-40","-40","-840","-840"] -``` - - -```sql -SELECT ALL - 67 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-67","-67","-67"] -``` - - -```sql -SELECT - + 87 / + CAST ( NULL AS REAL ) - - + col2 + + ( + col2 ) * + 10 * col0 / - col0 * - col2 FROM tab2 WHERE NOT NULL IS NOT NULL AND NULL IS NULL - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - - col1 * col0 + + ( + - 44 ) AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + + COUNT ( * ) / CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( COUNT ( DISTINCT 43 ) AS INTEGER ) FROM tab2 WHERE NOT 61 NOT IN ( CAST ( NULL AS INTEGER ) ) - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - COUNT ( * ) + + - ( + 12 ) / + CAST ( NULL AS INTEGER ) col0, COUNT ( DISTINCT - - col2 ) / 35 FROM tab1 - -Expected: ["NULL","0"] but got ["NULL","0.086"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,544 failed -* 84% was OK - -Time: 40321.754ms - ----- ---- ---- ---- ---- ---- ---- -### 310/620 [`./test/random/aggregates/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_57.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col1 / + 82 + + 32 AS col1 FROM tab2 AS cor0 - -Expected: ["32","32","32"] but got ["32.622","32.817","32.939"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-3"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - col2 + + - CAST ( NULL AS REAL ) IS NULL - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-10","-47","-99"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + 42 - - - 23 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - 13 - + CAST ( MAX ( + + 31 ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT ALL SUM ( + + col1 ) AS col2, ( 2 ) + MIN ( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL MIN ( + col2 ) AS col1 FROM tab1 cor0 WHERE NOT ( - col1 ) IN ( + col2 * ( ( col1 ) ) ) - -Expected: ["59"] but got ["NULL"] -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 61 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) / - 72 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT ( NULL ) IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,569 failed -* 84% was OK - -Time: 43019.640ms - ----- ---- ---- ---- ---- ---- ---- -### 311/620 [`./test/random/aggregates/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_58.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 12 FROM tab1 AS cor0 - -Expected: ["NULL","12"] but got ["0","12"] -``` - - -```sql -SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) + + - ( + + CAST ( + - 62 AS INTEGER ) ) FROM tab0 WHERE NULL NOT BETWEEN 79 + - col1 AND NULL - -Expected: ["62"] but got ["71"] -``` - - -```sql -SELECT 90 / col1 + col0 + - CAST ( NULL AS INTEGER ) + col1 * 11 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["198","322.286","907.111"] -``` - - -```sql -SELECT DISTINCT 86 AS col0, col1 + + + 34 AS col2, col2 AS col0 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( AVG ( + 82 ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL 8 AS col2, CAST ( NULL AS REAL ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL OR NOT + col1 IN ( - col1 / - col0, + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 26 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MAX ( ALL col1 ) FROM tab1 WHERE NOT ( 7 ) + col2 IN ( col2 ) - -Expected: ["-47"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + COUNT ( * ) AS col1, + MIN ( ALL col0 ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL - -Expected: ["0","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,477 failed -* 85% was OK - -Time: 45276.304ms - ----- ---- ---- ---- ---- ---- ---- -### 312/620 [`./test/random/aggregates/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_59.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 15 * CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 - -g is not defined -``` - - -```sql -SELECT ALL col2 / 22 / + col1 * + col0 col2 FROM tab1 - -Expected: ["0","0","0"] but got ["0.001","0.006","0.006"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) + + col1 * - 66, - 63 FROM tab1 WHERE NOT - 56 + - 7 / col0 * - col2 NOT IN ( + - col2 ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col2 + - - 93 + CAST ( NULL AS INTEGER ) + + - 14 FROM tab0 WHERE + col2 IS NOT NULL - -Expected: ["NULL"] but got ["126","178","89"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - - col0 + + col1 col2 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["138","65","90"] -``` - - -```sql -SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 39 * + 80 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col1 NOT IN ( 59, + col0 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - SUM ( - + col1 ) + + COUNT ( - col0 ) / - + CAST ( - AVG ( DISTINCT - ( + + col1 ) ) AS INTEGER ) AS col1 FROM tab2 - -Expected: ["195"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - + 71 / - - col0 AS col2, 78 + - - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0 - -Expected: ["-4","NULL","0","NULL"] but got ["-0.732","78","-0.816","78","-4.733","78"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 27 > 76 - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL * FROM tab1 cor0 JOIN tab0 cor1 ON NOT + + 44 IS NULL, tab2 AS cor2 - -Parse error on line 1: -...N NOT + + 44 IS NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,519 failed -* 84% was OK - -Time: 52198.890ms - ----- ---- ---- ---- ---- ---- ---- -### 313/620 [`./test/random/aggregates/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT COUNT ( * ) / + 45 AS col1, 95 FROM tab0 - -Expected: ["0","95"] but got ["95","0.067"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 - + - col1 + ( col0 ) + CAST ( NULL AS INTEGER ) * 18 ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 - -Expected: ["NULL"] but got ["3"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * 8 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ( + CAST ( COUNT ( * ) AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) / - - 78 FROM tab0 - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) - + + 63 - + 61 + + 36 + - col0 - 18 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 33 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT ( - 38 ) / + col2 AS col0, col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 - -Expected: ["-3","NULL","0","NULL"] but got ["-0.384","0","-0.809","0","-3.800","0"] -``` - - -```sql -SELECT DISTINCT MAX ( ALL - 6 ) FROM tab2 WHERE NOT - col1 BETWEEN 33 + - 90 AND NULL - -Expected: ["-6"] but got ["NULL"] -``` - - -```sql -SELECT * FROM tab1 cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL < ( NULL ) - -54 results returned but expected 18 -``` - - -```sql -SELECT DISTINCT - col2 / + col0 FROM tab2 AS cor0 WHERE - 73 IS NOT NULL - -Expected: ["0"] but got ["-0.500","-0.625","-0.773"] -``` - - -```sql -SELECT DISTINCT 9 + COUNT ( * ) AS col2, AVG ( DISTINCT + + col2 ) col2, - MAX ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL - -Expected: ["9","NULL","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,649 failed -* 83% was OK - -Time: 33952.649ms - ----- ---- ---- ---- ---- ---- ---- -### 314/620 [`./test/random/aggregates/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_60.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - COUNT ( * ) / - 90 AS col1 FROM tab2 AS cor0 - -Expected: ["0"] but got ["0.033"] -``` - - -```sql -SELECT - - CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","51","NULL","67","NULL","77"] but got ["0","51","0","67","0","77"] -``` - - -```sql -SELECT + col0 * - col1 + + 99, col2 AS col1, + 40 / - col1 + 44 AS col1 FROM tab0 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + col0 * 41 + - CAST ( NULL AS REAL ) / - col1 * col0 col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - + 30 * + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 cor0 WHERE NOT 99 + - 46 BETWEEN NULL AND + 30 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + 90 AS col0, - 56 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["90","NULL","90","NULL","90","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) * ( + + 55 ) * + - COUNT ( * ) - - MIN ( - 19 ) / - 66 - - + 26 AS col0 FROM tab1 AS cor0 WHERE + col1 BETWEEN + + 53 * - 30 AND NULL - -Expected: ["0","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, + col1 * - ( + + ( + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,610 failed -* 83% was OK - -Time: 29564.517ms - ----- ---- ---- ---- ---- ---- ---- -### 315/620 [`./test/random/aggregates/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_61.test) - -_Mimic sqlite_ - -```sql -SELECT + + col2 / col0 - + - 24 + - - col2 FROM tab1 AS cor0 - -Expected: ["121","83","92"] but got ["121.882","83.694","92.747"] -``` - - -```sql -SELECT ALL col2 - + col0 + CAST ( NULL AS INTEGER ) * + + ( col2 ) + 79 * - 80 * - - col0 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-549917","-613038","-94768"] -``` - - -```sql -SELECT CAST ( COUNT ( * ) AS INTEGER ) * + 58 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT + 34 * CAST ( NULL AS INTEGER ) + - col2 * col2 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT MIN ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * 86 FROM tab2 - -Expected: ["NULL"] but got ["-258"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * - CAST ( col2 AS REAL ) BETWEEN + 59 + - col2 AND NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL COUNT ( * ) / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), col2 * - 24 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-1128","0","-2376","0","-240"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT + 73 IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,533 failed -* 84% was OK - -Time: 42072.470ms - ----- ---- ---- ---- ---- ---- ---- -### 316/620 [`./test/random/aggregates/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_62.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - COUNT ( * ) col0, 81 FROM tab0 - -Expected: ["-3","81"] but got ["81","-3"] -``` - - -```sql -SELECT + CAST ( MIN ( - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT + 87 + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + COUNT ( 1 ) * ( - COUNT ( ALL + - col2 ) ) AS col2, - MIN ( + CAST ( NULL AS INTEGER ) ) - MIN ( DISTINCT + ( + ( - col2 ) ) ) FROM tab1 cor0 - -Expected: ["-9","NULL"] but got ["-9","96"] -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT 73 + 91 IN ( + ( 52 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + col0 - - + 21 + - - CAST ( NULL AS INTEGER ), 95 / - col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["106","0","112","0","72","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + MAX ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IN ( + + col1 ) - -Expected: ["58"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - - col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT - 94 + - MIN ( 22 ) AS col1, 24 FROM tab1 cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL","24"] but got ["24","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,496 failed -* 85% was OK - -Time: 34402.646ms - ----- ---- ---- ---- ---- ---- ---- -### 317/620 [`./test/random/aggregates/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_63.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col1 AS col1, - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["51","NULL","67","NULL","77","NULL"] but got ["51","0","67","0","77","0"] -``` - - -```sql -SELECT - + col1 col0, col2 col0 FROM tab0 AS cor0 - -Expected: ["-1","99","-21","10","-81","47"] but got ["10","10","47","47","99","99"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col1, + SUM ( ALL 18 ) FROM tab2 - -Expected: ["NULL","54"] but got ["0","54"] -``` - - -```sql -SELECT + 66 / 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( col2 * ( + ( + 85 ) ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 58 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + MIN ( ALL + 66 ) AS col1, 77 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 27 AND + col1 + + col0 - -Expected: ["NULL","77"] but got ["77","NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) - - 51 FROM tab0 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( - ( + - ( - 25 ) ) AS INTEGER ) / CAST ( + - col2 AS INTEGER ) col1, + CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["0","NULL","1","NULL"] but got ["0.431","0","0.625","0","1.087","0"] -``` - - -```sql -SELECT CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1, ( MIN ( ALL + col2 ) ) * - - 43 / CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 cor1 ON NULL IS NULL, tab1 AS cor2 - -Parse error on line 1: -...cor1 ON NULL IS NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT ALL + CAST ( - 8 AS INTEGER ) / - + CAST ( - COUNT ( * ) AS INTEGER ) + + + ( - - MIN ( ALL col0 ) ) AS col0 FROM tab1 AS cor0 - -Expected: ["49"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-14","0","-47","0","-5"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,467 failed -* 85% was OK - -Time: 40379.256ms - ----- ---- ---- ---- ---- ---- ---- -### 318/620 [`./test/random/aggregates/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_64.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 19 / 18 AS col0 FROM tab1 - -Expected: ["1"] but got ["1.056"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / - 93 + 37 * 6 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["222","222","222"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT 3 IN ( + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col2 * 62 / - CAST ( NULL AS REAL ) AS col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + CAST ( - COUNT ( 26 ) AS INTEGER ) FROM tab2 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT + 65 * + MAX ( ALL + col2 * col1 ) AS col1 FROM tab0 WHERE ( NOT - col2 BETWEEN ( + 57 / 60 + col0 ) AND NULL ) - -Expected: ["247455"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NOT + 53 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON NULL <> NULL, tab1 AS cor2 - -Parse error on line 1: -...cor1 ON NULL <> NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT 82 AS col2, + 40 + col1 + + + ( col2 ) / + + 44 * - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 - -Expected: ["82","NULL","82","NULL","82","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ( - CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) - MAX ( ALL + 37 ) AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","-37"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,567 failed -* 84% was OK - -Time: 46405.744ms - ----- ---- ---- ---- ---- ---- ---- -### 319/620 [`./test/random/aggregates/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_65.test) - -_Mimic sqlite_ - -```sql -SELECT - ( - col2 ) / 73 FROM tab0 AS cor0 - -Expected: ["0","0","1"] but got ["0.137","0.644","1.356"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + 60 / COUNT ( * ) AS col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - col0 * + col1 + col2 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) * - col0 + - 61 + + - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + 71 * - col2 * CAST ( NULL AS REAL ), col2 col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + - 96 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - CAST ( + SUM ( - col1 ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT ALL CAST ( SUM ( - + 82 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 50 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0, SUM ( - 14 ) col1 FROM tab0 WHERE col1 IS NULL - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT - MAX ( + 18 ) / - CAST ( MAX ( - + col0 ) AS INTEGER ) FROM tab0 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["51","0","67","0","77","0"] -``` - - -```sql -SELECT COUNT ( * ) col1 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL, tab0 AS cor2 - -Parse error on line 1: -... ON NOT NULL IS NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,558 failed -* 84% was OK - -Time: 34152.893ms - ----- ---- ---- ---- ---- ---- ---- -### 320/620 [`./test/random/aggregates/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_66.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 / - col1 NOT IN ( CAST ( - + col1 AS INTEGER ) ) - -Expected: ["0"] but got ["-3"] -``` - - -```sql -SELECT + CAST ( - COUNT ( + col2 ) AS INTEGER ) FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL - col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-51","-67","-77"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE NOT 66 + ( col2 ) + - ( - 62 ) * col0 BETWEEN - col2 AND - + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + 24 * COUNT ( * ) + + MAX ( DISTINCT - - col1 ) + - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL"] but got ["116"] -``` - - -```sql -SELECT DISTINCT ( - 83 ) FROM tab1 AS cor0 WHERE NOT + CAST ( col2 AS REAL ) <> + 8 * 59 + - 96 + - 61 + col1 * col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL + col2 * - ( + col1 ) AS col2, + col1 AS col2, - col2 + - - 78 - + col1 * - - 64 col2 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT col0 / - 40, + col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["-1","NULL","-2","NULL"] but got ["-1.275","0","-2.125","0","-2.275","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL MAX ( + + 21 ) * - 5 FROM tab1 WHERE NOT + col1 / - 50 IN ( col2 ) - -Expected: ["-105"] but got ["NULL"] -``` - - -```sql -SELECT + MAX ( 5 ) col1, - SUM ( DISTINCT - 43 ) + ( COUNT ( * ) ) AS col2 FROM tab0 cor0 WHERE NOT ( col1 ) IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,534 failed -* 84% was OK - -Time: 25955.969ms - ----- ---- ---- ---- ---- ---- ---- -### 321/620 [`./test/random/aggregates/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_67.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col2, + col0 * - ( 81 ) FROM tab0 - -Expected: ["NULL","-1215","NULL","-7047","NULL","-7857"] but got ["0","-1215","0","-7047","0","-7857"] -``` - - -```sql -SELECT 8 * + + COUNT ( * ) / + MIN ( + - ( - - col2 ) ) AS col0 FROM tab1 - -Expected: ["0"] but got ["-0.250"] -``` - - -```sql -SELECT + 96 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL"] but got ["96"] -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT ( 77 ) IN ( col1 + + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - MIN ( + 6 ) FROM tab1 WHERE NOT col0 * + - col1 + + 15 + - - 60 BETWEEN - + 74 * - col1 AND + col1 - -Expected: ["-6"] but got ["NULL"] -``` - - -```sql -SELECT - COUNT ( * ) + - + SUM ( DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - col1, + CAST ( 46 AS INTEGER ) AS col1, - col1 AS col1 FROM tab0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL ) - -18 results returned but expected 54 -``` - - -```sql -SELECT + - col0 col1, + col2 / + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 - -Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,602 failed -* 83% was OK - -Time: 38653.365ms - ----- ---- ---- ---- ---- ---- ---- -### 322/620 [`./test/random/aggregates/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_68.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - COUNT ( * ) * + COUNT ( * ), - 62 / 56 AS col0 FROM tab1 - -Expected: ["-9","-1"] but got ["-9","-1.107"] -``` - - -```sql -SELECT DISTINCT + 52 * + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + AVG ( - col1 ) FROM tab0 - -Expected: ["NULL"] but got ["-34.333"] -``` - - -```sql -SELECT col2 FROM tab1 AS cor0 WHERE ( - CAST ( - 17 AS INTEGER ) - - + CAST ( NULL AS REAL ) ) NOT BETWEEN NULL AND NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( MIN ( - col0 ) AS INTEGER ) + - 43 FROM tab2 WHERE NOT - col0 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + col0 * col0 + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["225","7569","9409"] -``` - - -```sql -SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * - - 37 FROM tab1 - -g is not defined -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - col0 * 14 * - col2 / + col2 + col0 + col1 * + col2 * - col1 + + 26 * - - CAST ( NULL AS INTEGER ) AS col2, col2 AS col2, + - 73 * - - 41 AS col2 FROM tab1 AS cor0 - -3 results returned but expected 9 -``` - - -```sql -SELECT + MAX ( ALL - ( - col0 ) ) FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN 68 AND NULL - -Expected: ["75"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) ) col1 FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT + col1 + + + col1 AS col0, + col1 / + ( col0 ) * + 1 * + CAST ( NULL AS INTEGER ) - + col0 col0 FROM tab1 - -Expected: ["10","NULL","28","NULL","94","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,543 failed -* 84% was OK - -Time: 35230.790ms - ----- ---- ---- ---- ---- ---- ---- -### 323/620 [`./test/random/aggregates/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_69.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( col0 + col1 * col1 ) BETWEEN NULL AND - col1 * ( + 84 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - COUNT ( * ) * 53 AS col0 FROM tab0 WHERE NOT - 33 NOT BETWEEN col2 + col0 AND col2 - -Expected: ["0"] but got ["-159"] -``` - - -```sql -SELECT COUNT ( * ) * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL 71 + 71 AS col1, - CAST ( - + AVG ( col2 ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT col0 - - 44 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["51","85","91"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS REAL ) * 24 FROM tab2 cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 26 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - MAX ( DISTINCT - ( col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + - 90 IN ( + col2 ) - -Expected: ["51"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + 78 * + CAST ( NULL AS INTEGER ), + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,505 failed -* 84% was OK - -Time: 29559.427ms - ----- ---- ---- ---- ---- ---- ---- -### 324/620 [`./test/random/aggregates/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - + col2 + col1 / - + 86 AS col1 FROM tab1 AS cor0 - -Expected: ["-59","-68","-96"] but got ["-59.058","-68.547","-96.163"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + col1 + - 68 + col0 * + col2 AS col2 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["1041","2569","4349"] -``` - - -```sql -SELECT col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 88 * - col1 AND - col2 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab2 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT - + 94 = NULL - -54 results returned but expected 18 -``` - - -```sql -SELECT ALL - 11 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( + 58 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE - 70 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( + MAX ( - 43 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - col1 ) + col2 - -g is not defined -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 87 < - - 14 + + 1 * col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col0 + - - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","15","0","87","0","97"] -``` - - -```sql -SELECT - 34 + + COUNT ( * ) * 2 - - COUNT ( * ) AS col1, MAX ( + 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL - -Expected: ["-34","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + + SUM ( DISTINCT col0 ) / + - CAST ( - COUNT ( * ) AS INTEGER ) + - 82 + - + COUNT ( * ) FROM tab1 AS cor0 - -Expected: ["-10"] but got ["NULL"] -``` - - -```sql -SELECT - + COUNT ( * ) * - + 68 - + SUM ( DISTINCT col0 ) col2, + MAX ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 cor1 ON NOT 86 IS NOT NULL, tab0 AS cor2 - -Parse error on line 1: -...N NOT 86 IS NOT NULL, tab0 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,634 failed -* 83% was OK - -Time: 33920.505ms - ----- ---- ---- ---- ---- ---- ---- -### 325/620 [`./test/random/aggregates/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_70.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CAST ( - AVG ( 48 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT col1 IN ( - 15, CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + SUM ( - + col2 ) AS col2 FROM tab1 WHERE NOT + col0 * - 96 + + - CAST ( NULL AS INTEGER ) + - 49 IS NULL - -Expected: ["NULL"] but got ["-223"] -``` - - -```sql -SELECT + + COUNT ( CAST ( + col2 AS INTEGER ) ) AS col0, + 53 + - 77 AS col0 FROM tab0 AS cor0 - -Expected: ["3","-24"] but got ["-24"] -``` - - -```sql -SELECT DISTINCT col2 AS col1, + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0 - -Expected: ["23","NULL","40","NULL","58","NULL"] but got ["23","0","40","0","58","0"] -``` - - -```sql -SELECT DISTINCT + col2 + col2 / - - col1 AS col1, + col1 * - 94 AS col2, + + col2 col0 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON + - ( + CAST ( NULL AS INTEGER ) ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + SUM ( - col0 ) / - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 - -Expected: ["75"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE - 83 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), AVG ( ALL - + col2 ) - AVG ( col2 ) + + AVG ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL = - 30 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,578 failed -* 84% was OK - -Time: 37933.921ms - ----- ---- ---- ---- ---- ---- ---- -### 326/620 [`./test/random/aggregates/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_71.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 3 AS col1, - 71 + CAST ( NULL AS INTEGER ) col0 FROM tab2 - -Expected: ["-3","NULL","-3","NULL","-3","NULL"] but got ["-3","-71","-3","-71","-3","-71"] -``` - - -```sql -SELECT 65 / - col0 FROM tab1 AS cor0 - -Expected: ["-1","0","0"] but got ["-0.714","-0.765","-1.275"] -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 WHERE NOT 93 * - + col1 / + 63 = CAST ( - + col0 AS REAL ) + + col1 - - + col2 - -Wrong conversion type -``` - - -```sql -SELECT + col2 + - col1 AS col0 FROM tab0 WHERE NOT + 96 + - col2 * + col2 BETWEEN NULL AND - 69 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL SUM ( DISTINCT + 48 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( col0 ) >= NULL ) ) - -Expected: ["NULL"] but got ["48"] -``` - - -```sql -SELECT + + 15 + 7 / - 41 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( ( - COUNT ( * ) ) AS INTEGER ) - - - 68 AS col0 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN ( 86 + + 27 ) AND + col2 * - 52 - -Expected: ["46"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - + CAST ( - col2 AS INTEGER ) * col1 + + 36 * - + 70, + ( + 25 ) + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["-2310","35","-2421","124","1287","72"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,566 failed -* 84% was OK - -Time: 35037.220ms - ----- ---- ---- ---- ---- ---- ---- -### 327/620 [`./test/random/aggregates/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_72.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 3 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL MAX ( ALL + - 64 ) * CAST ( + + SUM ( ALL - 96 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["18432"] but got ["0"] -``` - - -```sql -SELECT - 84 * - - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-1764","-6804","-84"] -``` - - -```sql -SELECT DISTINCT + - 7 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["-7","NULL"] but got ["-7","0"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IN ( - col0 - - 14 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + 19 / + col0 * col1 / + col1 * + - CAST ( NULL AS REAL ) / - CAST ( NULL AS INTEGER ) + - + col2 + - 15 AS col2 FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( - COUNT ( 89 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 < 64 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT + MIN ( - 66 ) AS col2 FROM tab2 WHERE NOT 19 + + col2 IN ( col2, - 29 ) - -Expected: ["-66"] but got ["NULL"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON - 83 = NULL, tab1 AS cor2 - -Parse error on line 1: -... cor1 ON - 83 = NULL, tab1 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( 8 ) IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,538 failed -* 84% was OK - -Time: 33858.746ms - ----- ---- ---- ---- ---- ---- ---- -### 328/620 [`./test/random/aggregates/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_73.test) - -_Mimic sqlite_ - -```sql -SELECT ALL MAX ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - - col2 - - ( - col0 ) AS col0, + col0 * + col0 AS col0 FROM tab1 AS cor0 - -Expected: ["-23","8281","-26","7225","45","2601"] but got ["2601","2601","7225","7225","8281","8281"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 62 * + CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / + - ( 69 ) FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + CAST ( MAX ( + col0 ) AS INTEGER ) FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab0 WHERE NOT + CAST ( 43 AS REAL ) NOT BETWEEN NULL AND - col0 - -Wrong conversion type -``` - - -```sql -SELECT col0 col0, - col0 AS col2, col2 AS col0 FROM tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 45 + COUNT ( - col2 ) * MAX ( + ( - ( - col1 ) ) ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( 59 ) - -Expected: ["288"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) col0, CAST ( NULL AS INTEGER ) + col1 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","14","0","47","0","5"] -``` - - -```sql -SELECT ALL + MAX ( ALL 34 ) - + CAST ( NULL AS INTEGER ), 65 - - COUNT ( * ) * - - COUNT ( 0 ) - - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + AVG ( - - col2 ) + 0 FROM tab2 cor0 WHERE + 91 IS NOT NULL - -Expected: ["NULL","NULL"] but got ["34","74"] -``` - - -```sql -SELECT - + col0 AS col2, - ( + - col2 ) * - 9 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["-51","NULL","-85","NULL","-91","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT 25 * + - MIN ( ALL 70 ) AS col2, 93 + + SUM ( ALL col0 ) AS col1 FROM tab2 cor0 WHERE - 33 IS NULL - -Expected: ["NULL","NULL"] but got ["NULL","93"] -``` - - -```sql -SELECT - + ( 1 ) - + + col2 / + 11, col2 + col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["-1","NULL","-10","NULL","-5","NULL"] but got ["-1.909","NULL","-10","NULL","-5.273","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,552 failed -* 84% was OK - -Time: 82349.284ms - ----- ---- ---- ---- ---- ---- ---- -### 329/620 [`./test/random/aggregates/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_74.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col2 / + + 55 FROM tab0 - -Expected: ["0","1"] but got ["0.182","0.855","1.800"] -``` - - -```sql -SELECT col0 AS col2, 31 AS col2, 50 / - col2 * - col1 - + ( + 27 ) FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["10","NULL","47","NULL","99","NULL"] but got ["10","0","47","0","99","0"] -``` - - -```sql -SELECT DISTINCT + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1 FROM tab0 - -Expected: ["3","NULL"] but got ["3","0"] -``` - - -```sql -SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 - -g is not defined -``` - - -```sql -SELECT - - ( col0 ) AS col2 FROM tab2 WHERE NULL = + - ( col0 ) * + 34 * + col1 + - + CAST ( NULL AS INTEGER ) - - + col2 - + CAST ( NULL AS REAL ) * 8 - -Wrong conversion type -``` - - -```sql -SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT MIN ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( - col0 - + ( + 32 ) * - col0 ) - -Expected: ["51"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 WHERE NOT ( + 5 ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) col0, 84 * AVG ( 61 ) FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,476 failed -* 85% was OK - -Time: 36913.221ms - ----- ---- ---- ---- ---- ---- ---- -### 330/620 [`./test/random/aggregates/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_75.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 * - col1 + col0 / + + col2 + + 47 + - col2 FROM tab0 - -Expected: ["NULL"] but got ["-395.300","-52.020","-6560.681"] -``` - - -```sql -SELECT DISTINCT col2 - + + col2 + col2 / + col0 FROM tab0 - -Expected: ["0","1","3"] but got ["0.115","1.021","3.133"] -``` - - -```sql -SELECT + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT 75 + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) = ( + 90 ) - -Wrong conversion type -``` - - -```sql -SELECT - 90 FROM tab1 AS cor0 WHERE NOT ( 75 ) * + col1 IN ( - 13 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM ( tab2 cor0 CROSS JOIN tab2 cor1 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MIN ( ALL - col2 ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 33 BETWEEN 92 AND + col0 - -Expected: ["-297"] but got ["NULL"] -``` - - -```sql -SELECT + - 88 col0, + 87 * + 68 col1, + MIN ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL ) - -Expected: ["-88","5916","NULL"] but got ["-88","NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ), AVG ( + CAST ( NULL AS INTEGER ) ) / - ( + - 89 ) / 99 * + ( - 60 ) / - 22 AS col0 FROM tab2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,603 failed -* 83% was OK - -Time: 40315.365ms - ----- ---- ---- ---- ---- ---- ---- -### 331/620 [`./test/random/aggregates/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_76.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + ( col2 ) / - col0 AS col2 FROM tab0 - -Expected: ["-1","-3","0"] but got ["-0.115","-1.021","-3.133"] -``` - - -```sql -SELECT ALL - col0 * 55 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * col0 - col2 * 97 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0 - -g is not defined -``` - - -```sql -SELECT ALL 89 + CAST ( NULL AS REAL ) FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT ( - 33 ) + + 83 + ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["50"] -``` - - -```sql -SELECT - - ( + - CAST ( NULL AS INTEGER ) ) + + 73 AS col1 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["73","73","73"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NOT + - 24 / + 7 IS NULL ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT * FROM tab0 WHERE - col1 <= col0 / - 72 - -6 results returned but expected 9 -``` - - -```sql -SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) col2, + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL COUNT ( * ) / + CAST ( - MIN ( - col1 ) AS INTEGER ) FROM tab0 - -Expected: ["0"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,567 failed -* 84% was OK - -Time: 37673.724ms - ----- ---- ---- ---- ---- ---- ---- -### 332/620 [`./test/random/aggregates/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_77.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT - 87 + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) * col1 IS NULL - -Wrong conversion type -``` - - -```sql -SELECT - 67 + + - col0 / col2 AS col1 FROM tab2 - -Expected: ["-68","-68","-69"] but got ["-68.293","-68.600","-69"] -``` - - -```sql -SELECT DISTINCT + + SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > col2 - -Expected: ["NULL"] but got ["-195"] -``` - - -```sql -SELECT * FROM tab0 cor0 WHERE ( NOT - CAST ( NULL AS INTEGER ) IS NOT NULL ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + + 60 + - + SUM ( + - col2 ), COUNT ( * ) * - + MIN ( 12 ) col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1 / + col1 - -Expected: ["NULL","NULL"] but got ["60","NULL"] -``` - - -```sql -SELECT ALL CAST ( + COUNT ( + col2 ) AS INTEGER ) FROM tab2 - -g is not defined -``` - - -```sql -SELECT + col1, 12 AS col0, - + col0 / + 99 + + 93 + - col1 * col1 - 73 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 95 / - 68 + - 21 AS col0, MAX ( - - col2 ) FROM tab1 WHERE NOT ( NOT - col0 > + col0 ) - -Expected: ["-22","NULL"] but got ["-22.397","NULL"] -``` - - -```sql -SELECT - SUM ( + + col0 ), AVG ( ALL 69 ) AS col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN - - 97 * + ( col2 ) AND - - col1 - -Expected: ["NULL","NULL"] but got ["-227","69"] -``` - - -```sql -SELECT ALL + MIN ( ALL - 85 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN col0 AND ( 55 - + col1 * + col0 ) - -Expected: ["-85"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL IS NOT NULL ) - -18 results returned but expected 54 -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / - col1 col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,557 failed -* 84% was OK - -Time: 26762.464ms - ----- ---- ---- ---- ---- ---- ---- -### 333/620 [`./test/random/aggregates/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_78.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + - col1 / col2 AS col2 FROM tab0 AS cor0 - -Expected: ["-1","-2","0"] but got ["-0.010","-1.723","-2.100"] -``` - - -```sql -SELECT - + col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-23","-40","-58"] -``` - - -```sql -SELECT DISTINCT + col0 * - col0 - + CAST ( NULL AS INTEGER ) + 16 * 65 * - 91 col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-101865","-102921","-97241"] -``` - - -```sql -SELECT ALL ( + CAST ( NULL AS REAL ) ) * - col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CAST ( - MIN ( + col1 ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT * FROM tab1, tab1 cor0 WHERE NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT col0, - 5, - + 33 AS col0 FROM tab0 - -3 results returned but expected 9 -``` - - -```sql -SELECT + + col2 col0, + col0 + - 79 / + 27 * + CAST ( + col0 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * + ( - 41 ) AS col0 FROM tab2 cor0 - -Expected: ["23","NULL","40","NULL","58","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ( + COUNT ( * ) ) / + CAST ( + ( - + SUM ( + + 89 ) ) AS INTEGER ) * + + ( 17 ) FROM tab2 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL - SUM ( col0 ), + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE - 47 IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT DISTINCT + 95 / + 20 AS col2, - col1 * - 63 - col0 * + - col2 / - CAST ( NULL AS INTEGER ) + + + ( - col0 ) * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["4","NULL"] but got ["4.750","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,678 failed -* 83% was OK - -Time: 32625.075ms - ----- ---- ---- ---- ---- ---- ---- -### 334/620 [`./test/random/aggregates/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_79.test) - -_Mimic sqlite_ - -```sql -SELECT + + COUNT ( * ) / 14 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 - -Expected: ["0"] but got ["0.643"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT 82 col0, col0 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 - -Expected: ["82","NULL","82","NULL","82","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ) / - MAX ( - + col2 ) + 83 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["83"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - 98 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["-98","-98","-98"] -``` - - -```sql -SELECT 29 AS col1, CAST ( + COUNT ( ALL ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * col2 IN ( - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) + col2 AS col1, col2 * CAST ( NULL AS INTEGER ) / - 65 * - - col1 * + + ( - col1 ) AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT + 9 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) + - + col0 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","-46","0","-64","0","-75"] -``` - - -```sql -SELECT + + 86 / + MAX ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0 - -Expected: ["-1"] but got ["-1.458"] -``` - - -```sql -SELECT ALL COUNT ( * ) / + CAST ( + + SUM ( col1 ) AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["0"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,536 failed -* 84% was OK - -Time: 55143.074ms - ----- ---- ---- ---- ---- ---- ---- -### 335/620 [`./test/random/aggregates/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - CAST ( - col0 AS INTEGER ) IN ( col2, + col2 ) - -Expected: ["-3"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 BETWEEN NULL AND - + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - 25 * + CAST ( + + COUNT ( ALL - 61 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL + ( - AVG ( - CAST ( NULL AS INTEGER ) ) ) + - ( - 23 ) FROM tab0 - -Expected: ["NULL"] but got ["23"] -``` - - -```sql -SELECT ALL CAST ( - - col1 AS INTEGER ) / col1 + + col0 + - + CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["16","88","98"] -``` - - -```sql -SELECT COUNT ( * ) / - 3, - 4 / CAST ( + + AVG ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 - -Expected: ["-1","0"] but got ["-1","NULL"] -``` - - -```sql -SELECT DISTINCT col2 + col2 AS col1 FROM tab2 WHERE NOT - 89 * CAST ( NULL AS REAL ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 36 ) IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + + col2 - - CAST ( NULL AS INTEGER ) + + 20, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["119","0","30","0","67","0"] -``` - - -```sql -SELECT DISTINCT + 6 * - 31 + col1 AS col1, + 34 / - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 - -Expected: ["-139","NULL","-172","NULL","-181","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,634 failed -* 83% was OK - -Time: 42273.954ms - ----- ---- ---- ---- ---- ---- ---- -### 336/620 [`./test/random/aggregates/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_80.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - col0 + CAST ( NULL AS INTEGER ), + col2 FROM tab0 AS cor0 - -Expected: ["NULL","10","NULL","47","NULL","99"] but got ["-15","47","-87","10","-97","99"] -``` - - -```sql -SELECT - col0 / + + 79 + + col0 FROM tab0 AS cor0 - -Expected: ["15","86","96"] but got ["14.810","85.899","95.772"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) * - 59 * 55 / CAST ( + 3 AS INTEGER ) - + AVG ( DISTINCT + 5 ) AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( + MAX ( - col1 ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND + + 40 - -g is not defined -``` - - -```sql -SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON - 73 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT MIN ( ALL - col2 ) AS col0 FROM tab1 WHERE NOT - 64 NOT IN ( 90 + 53 ) - -Expected: ["NULL"] but got ["-96"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) BETWEEN 90 AND ( + + CAST ( 85 AS REAL ) / - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + MIN ( ALL - col1 ) col1, + MIN ( col2 ) * ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE - 44 + col2 * - CAST ( - 90 AS INTEGER ) IS NULL - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - MIN ( - CAST ( NULL AS INTEGER ) ) + + - 72 AS col0, COUNT ( * ) col2, CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","3","NULL"] but got ["-72","3","0"] -``` - - -```sql -SELECT MIN ( ( col1 ) ) + - COUNT ( CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT - 68 * - col2 * + col0 IN ( - - col2 * + col2 + + + 73 ) - -Expected: ["2"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,568 failed -* 84% was OK - -Time: 55329.225ms - ----- ---- ---- ---- ---- ---- ---- -### 337/620 [`./test/random/aggregates/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_81.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( NULL ) - -Expected: ["0"] but got ["-3"] -``` - - -```sql -SELECT ALL 5 / - col0 + + - CAST ( NULL AS INTEGER ) + 22 * - col0 * col2 + 88 AS col1 FROM tab1 WHERE NOT + col2 <= + - col0 * 55 - -Expected: ["NULL","NULL","NULL"] but got ["-107624.098","-110242.059","-136048.055"] -``` - - -```sql -SELECT DISTINCT + ( + col0 ) + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) / + MAX ( - ( + 24 ) ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - 44 * CAST ( + COUNT ( 89 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab1 - -g is not defined -``` - - -```sql -SELECT + ( - 79 ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + col1 * - 60 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) + + + 40 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + MIN ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 57 / 57 IN ( + col1 ) - -Expected: ["10"] but got ["NULL"] -``` - - -```sql -SELECT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL NOT BETWEEN NULL AND NULL, tab2 AS cor2 - -Parse error on line 1: -...ETWEEN NULL AND NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT ALL + 27 + + col2 + - CAST ( NULL AS INTEGER ) + + col2 + - 47 * - - 95 / - col0 + - 73 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["103.766","0","129.533","0","97.065","0"] -``` - - -```sql -SELECT ALL + MIN ( - col1 ) AS col1, - CAST ( NULL AS INTEGER ) * + 98 AS col2 FROM tab1 WHERE NOT NULL <= + - col1 - -Expected: ["NULL","NULL"] but got ["-47","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,563 failed -* 84% was OK - -Time: 40651.343ms - ----- ---- ---- ---- ---- ---- ---- -### 338/620 [`./test/random/aggregates/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_82.test) - -_Mimic sqlite_ - -```sql -SELECT + AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL 55 / - MIN ( ALL - col0 ) col0 FROM tab1 AS cor0 - -Expected: ["0"] but got ["0.604"] -``` - - -```sql -SELECT col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["46","NULL","64","NULL","75","NULL"] but got ["46","0","64","0","75","0"] -``` - - -```sql -SELECT ALL CAST ( ( - + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT CAST ( + col1 AS REAL ) * 74 FROM tab2 WHERE NOT NULL >= NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT - col0 + + 26 IN ( col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col2, + CAST ( NULL AS INTEGER ), - + col0 AS col0 FROM tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE + col1 + - col2 NOT IN ( col1 ) - -g is not defined -``` - - -```sql -SELECT ALL - SUM ( DISTINCT - col2 ), MIN ( - + 65 ) / + + COUNT ( * ) * + ( - COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT - 75 IS NOT NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT SUM ( DISTINCT col1 ) * MIN ( DISTINCT col2 - col1 ) AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) * col2 / - 59 + + col2 IS NULL - -Expected: ["1386"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,621 failed -* 83% was OK - -Time: 32320.935ms - ----- ---- ---- ---- ---- ---- ---- -### 339/620 [`./test/random/aggregates/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_83.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + col2 * 31 / + - 6 AS col2 FROM tab2 cor0 - -Expected: ["-118","-206","-299"] but got ["-118.833","-206.667","-299.667"] -``` - - -```sql -SELECT - - CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab2 AS cor0 - -Expected: ["NULL","51","NULL","67","NULL","77"] but got ["0","51","0","67","0","77"] -``` - - -```sql -SELECT DISTINCT 31 + - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( CAST ( + 21 AS REAL ) AS INTEGER ) FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL col0 col0 FROM tab2 cor0 WHERE NOT - 65 * - - 39 BETWEEN - 81 * - + col0 + + 77 AND + col2 * col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 46 NOT IN ( 9 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT + 47 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + AVG ( + - col1 ) AS col0, - SUM ( DISTINCT 76 ) FROM tab0 WHERE 38 + - - col1 IS NULL AND NOT NULL IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT DISTINCT - MIN ( + 88 ) - - 85 AS col2, MAX ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = col2 - -Expected: ["NULL","NULL"] but got ["-3","-23"] -``` - - -```sql -SELECT DISTINCT MAX ( ALL col1 ) col1 FROM tab1 WHERE NOT ( + col1 ) BETWEEN + col0 AND NULL - -Expected: ["47"] but got ["NULL"] -``` - - -```sql -SELECT ALL col1 / - - ( + CAST ( NULL AS INTEGER ) ) col0, 39 + + + CAST ( NULL AS INTEGER ) + + - 10 + col1 / - col0 AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","27.797","NULL","27.891","NULL","28.107"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,614 failed -* 83% was OK - -Time: 38760.941ms - ----- ---- ---- ---- ---- ---- ---- -### 340/620 [`./test/random/aggregates/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_84.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) / - - ( - col2 ) + - + 74 AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-74","-74","-74"] -``` - - -```sql -SELECT DISTINCT col0 AS col1, - col2 / + 74 AS col2 FROM tab1 - -Expected: ["51","-1","85","0","91","0"] but got ["51","-1.297","85","-0.797","91","-0.919"] -``` - - -```sql -SELECT * FROM tab2 WHERE + col0 + CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - 70 * - 14 + ( - + SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 WHERE col1 / + 6 IS NOT NULL - -Expected: ["NULL"] but got ["980"] -``` - - -```sql -SELECT - 79 * - + CAST ( NULL AS REAL ), 6 + + ( - col0 ) / + - col1 AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( MAX ( - ( + col2 ) ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 18 ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - - 44 AS col2, - col0 / + ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0 - -Expected: ["44","NULL","44","NULL","44","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT COUNT ( * ) * + COUNT ( * ) / - - CAST ( + CAST ( + COUNT ( - col1 ) AS INTEGER ) AS INTEGER ) - - 54 FROM tab1 - -Expected: ["57"] but got ["NULL"] -``` - - -```sql -SELECT - + SUM ( DISTINCT col0 ) AS col1, - AVG ( ALL 44 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 1 / - ( - 11 ) IS NOT NULL - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - - col2 / - - 62 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["0","NULL","1","NULL"] but got ["0.161","0","0.758","0","1.597","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,621 failed -* 83% was OK - -Time: 30091.612ms - ----- ---- ---- ---- ---- ---- ---- -### 341/620 [`./test/random/aggregates/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_85.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + 57 AS col2 FROM tab2 cor0 - -Expected: ["NULL"] but got ["54"] -``` - - -```sql -SELECT - 60 AS col0, COUNT ( - - 95 ) AS col0 FROM tab0 - -Expected: ["-60","3"] but got ["3"] -``` - - -```sql -SELECT - 38 + + CAST ( NULL AS INTEGER ) * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-38","-38","-38"] -``` - - -```sql -SELECT + 90 * + CAST ( NULL AS INTEGER ) + - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab2 WHERE NOT 39 IN ( col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 11 + 15 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT - col1 / col0 * - + 61 AS col2, 18 - + + ( - 68 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["0","NULL","61","NULL"] but got ["54.493","18","67.630","18","73.391","18"] -``` - - -```sql -SELECT - COUNT ( * ) / CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 - -Expected: ["1"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,517 failed -* 84% was OK - -Time: 29545.303ms - ----- ---- ---- ---- ---- ---- ---- -### 342/620 [`./test/random/aggregates/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_86.test) - -_Mimic sqlite_ - -```sql -SELECT 42 / col0 - col2 FROM tab0 - -Expected: ["-10","-45","-99"] but got ["-44.200","-9.517","-98.567"] -``` - - -```sql -SELECT ALL col0 AS col2 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - ( COUNT ( + 46 ) ) FROM tab2 cor0 WHERE NOT col0 * col0 + - CAST ( NULL AS REAL ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + SUM ( + 49 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE 70 IS NOT NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT MIN ( DISTINCT col0 ) * - COUNT ( * ) FROM tab2 WHERE NOT ( + 64 + - col2 * + 67 ) IN ( col2 * ( 27 ) ) - -Expected: ["-138"] but got ["NULL"] -``` - - -```sql -SELECT - MIN ( DISTINCT + - col1 ) AS col1, 8 FROM tab0 AS cor0 WHERE NULL <> NULL - -Expected: ["NULL","8"] but got ["8","NULL"] -``` - - -```sql -SELECT - SUM ( DISTINCT - col0 ) AS col2, MAX ( ALL - - col2 ) FROM tab0 WHERE NOT NULL IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL col1, 5 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 - -Expected: ["14","NULL","47","NULL","5","NULL"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL CAST ( + MAX ( col2 ) AS INTEGER ), 80 - COUNT ( * ) + - 75 + CAST ( NULL AS INTEGER ) + 15 AS col1 FROM tab1 AS cor0 WHERE NULL <= NULL - -Expected: ["NULL","NULL"] but got ["0","20"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,532 failed -* 84% was OK - -Time: 59042.119ms - ----- ---- ---- ---- ---- ---- ---- -### 343/620 [`./test/random/aggregates/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_87.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - COUNT ( * ) * SUM ( ALL 48 ) / 60 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Expected: ["-64"] but got ["-64.800"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST ( + 60 AS REAL ) * - col2 ) IS NOT NULL - -Wrong conversion type -``` - - -```sql -SELECT ALL 6 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["6","6","6"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT - + col1 IN ( + col1 + col2 + - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + - MIN ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT - 49 + + col1 NOT BETWEEN - 59 AND NULL - -Expected: ["NULL"] but got ["-59"] -``` - - -```sql -SELECT DISTINCT + 46 / + + col0 AS col2, 46 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["0","NULL","1","NULL"] but got ["46","46"] -``` - - -```sql -SELECT ALL CAST ( + MAX ( - 36 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT ALL 81 AS col2, + col0 AS col1, col1 + - 51 + - 87 * - + col2 AS col1 FROM tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL + ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col2, - SUM ( DISTINCT + + 85 ) * MIN ( + 88 ) AS col1 FROM tab1 WHERE col0 IN ( + + col1 * - col1 + + col2, - col2 ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) - + + col2 * + - 74 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","3478","0","7326","0","740"] -``` - - -```sql -SELECT + COUNT ( * ) / + - CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 - -Expected: ["-1"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,620 failed -* 83% was OK - -Time: 69254.017ms - ----- ---- ---- ---- ---- ---- ---- -### 344/620 [`./test/random/aggregates/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_88.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT ( + col1 ) / + 70 AS col0 FROM tab2 - -Expected: ["0","1"] but got ["0.729","0.957","1.100"] -``` - - -```sql -SELECT 95, COUNT ( * ) * + ( + - CAST ( NULL AS INTEGER ) ) * + MAX ( 21 ) + 4 * 97 AS col2 FROM tab0 - -Expected: ["95","NULL"] but got ["95","388"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col1 IN ( - col1 * col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col1 * - CAST ( NULL AS REAL ) - col0 AS col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT + - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) / + col1, col2 FROM tab2 AS cor0 - -Expected: ["NULL","23","NULL","40","NULL","58"] but got ["0","23","0","40","0","58"] -``` - - -```sql -SELECT - ( + 38 ) + + COUNT ( * ) / - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 - -Expected: ["-39"] but got ["NULL"] -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 8 <> - + 26 + 50 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE - 51 NOT IN ( + 92 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), - ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT ALL SUM ( DISTINCT - col2 ) AS col0, CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL AND NULL > ( NULL ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,625 failed -* 83% was OK - -Time: 100006.447ms - ----- ---- ---- ---- ---- ---- ---- -### 345/620 [`./test/random/aggregates/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_89.test) - -_Mimic sqlite_ - -```sql -SELECT + + col2 + 58 * - - col1 + + col0 - - col0 / - + 76 FROM tab2 AS cor0 - -Expected: ["3027","4019","4570"] but got ["3026.395","4018.013","4569.158"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 80 + - + COUNT ( * ) + COUNT ( * ) + - - 0 * + 24 * ( + 20 ) AS col0 FROM tab0 - -Expected: ["NULL"] but got ["80"] -``` - - -```sql -SELECT ALL - col0 - + col0 + - col0 + + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-261","-291","-45"] -``` - - -```sql -SELECT col0 - CAST ( NULL AS REAL ) + + ( - - col0 ) FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT + 40 FROM tab1 WHERE NOT - ( + - col0 ) BETWEEN NULL AND - col0 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( + COUNT ( col2 ) AS INTEGER ) FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT 64 / - CAST ( - - MAX ( + col2 ) AS INTEGER ) - 81 * + - COUNT ( * ) FROM tab0 - -Expected: ["243"] but got ["NULL"] -``` - - -```sql -SELECT ALL col1 * - CAST ( NULL AS INTEGER ) + - + 25 - 31 * + - col1 AS col2, col0 * - CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["2486","0","6","0","626","0"] -``` - - -```sql -SELECT - - 58 / - 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - MIN ( ALL + col0 ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT 98 AS col1, + AVG ( DISTINCT 53 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL - -Expected: ["98","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + + 56 * 8 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["448"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,601 failed -* 84% was OK - -Time: 76192.381ms - ----- ---- ---- ---- ---- ---- ---- -### 346/620 [`./test/random/aggregates/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_9.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS REAL ) IS NOT NULL ) - -Wrong conversion type -``` - - -```sql -SELECT ALL - + 1 * - col0 + - - 96 * ( + + 92 ) - 81 / - - ( + col0 ) AS col0 FROM tab0 AS cor0 - -Expected: ["8842","8919","8929"] but got ["8841.600","8918.069","8928.165"] -``` - - -```sql -SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + MIN ( ALL - 45 ) AS col1 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + - col0 AS col0, CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0 - -Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["-15","0","-87","0","-97","0"] -``` - - -```sql -SELECT DISTINCT - + 86 + - - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 - -g is not defined -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT col2 IN ( - ( col1 ) ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - 14 AS col2, 94 AS col2, col2 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ) + 3 AS col0 FROM tab2 WHERE + + col2 - - - ( + col1 ) - - col2 <> col0 + + - col1 - -Expected: ["NULL","NULL"] but got ["3","3"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,565 failed -* 84% was OK - -Time: 34904.978ms - ----- ---- ---- ---- ---- ---- ---- -### 347/620 [`./test/random/aggregates/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_90.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1, - COUNT ( * ) col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT - + 25 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - COUNT ( DISTINCT col1 ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-3"] -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["15","87","97"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 WHERE NOT 19 IN ( - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - col0 + + 34 + + col2 / col1 AS col2 FROM tab1 - -Expected: ["-11","-40","-56"] but got ["-10.143","-39.200","-55.553"] -``` - - -```sql -SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) * - 32 FROM tab1 - -g is not defined -``` - - -```sql -SELECT + 48 + + + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","NULL","0","NULL","0","NULL"] -``` - - -```sql -SELECT + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) IN ( ( - col2 ) + col1 ) - -Expected: ["46"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,643 failed -* 83% was OK - -Time: 51764.114ms - ----- ---- ---- ---- ---- ---- ---- -### 348/620 [`./test/random/aggregates/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_91.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab2 AS cor0 WHERE CAST ( - col0 AS REAL ) >= ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + CAST ( NULL AS INTEGER ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - - col1 * - CAST ( NULL AS INTEGER ) * + - 93 - col0 * col1 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-1215","-1827","-97"] -``` - - -```sql -SELECT + + col0 / 71 col2 FROM tab0 cor0 - -Expected: ["0","1","1"] but got ["0.211","1.225","1.366"] -``` - - -```sql -SELECT - 84 * - - col0 + - col0 + - - 33 - - - CAST ( NULL AS INTEGER ) - + col2 / + 72 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-3877.319","-5407.556","-6342.806"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT col1 + - col2 / col0 IN ( col0, col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - 71, CAST ( NULL AS INTEGER ) * - + CAST ( + + COUNT ( * ) AS REAL ) AS col2 FROM tab2 - -g is not defined -``` - - -```sql -SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 1 IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - MIN ( - col2 ) AS col0, ( + AVG ( col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL <> + col0 - -Expected: ["NULL","NULL"] but got ["40.333"] -``` - - -```sql -SELECT MIN ( ALL + + CAST ( - col0 AS INTEGER ) ) FROM tab2 cor0 WHERE NOT + col1 BETWEEN NULL AND + 62 - -Expected: ["-75"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE + 57 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) * 63 / COUNT ( * ) FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - 92 AS col1, 26 * - + ( + MIN ( - 77 ) ) AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL - -Expected: ["-92","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,630 failed -* 83% was OK - -Time: 84781.545ms - ----- ---- ---- ---- ---- ---- ---- -### 349/620 [`./test/random/aggregates/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_92.test) - -_Mimic sqlite_ - -```sql -SELECT ( - col2 ) / 98 AS col0 FROM tab0 AS cor0 - -Expected: ["-1","0","0"] but got ["-0.102","-0.480","-1.010"] -``` - - -```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - + col2 * - - ( - col2 ) col1 FROM tab0 AS cor0 WHERE NOT ( NOT + + ( + col1 ) NOT BETWEEN + + col0 + + CAST ( NULL AS REAL ) + + col1 * ( + col0 ) AND NULL ) - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT - ( - col1 ) * col0 IN ( - col1 * 73 + + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT CAST ( - COUNT ( * ) AS INTEGER ) / + 74 AS col1 FROM tab2 cor0 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - col1 AS col0, - col1 * col1 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-1","0","-441","0","-6561"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON ( NULL ) IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT - MIN ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN + col1 AND - 21 - -Expected: ["-46"] but got ["NULL"] -``` - - -```sql -SELECT ALL - - CAST ( NULL AS INTEGER ), - SUM ( - 4 ) FROM tab2 AS cor0 WHERE + 88 NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL - -Expected: ["NULL","NULL"] but got ["0","12"] -``` - - -```sql -SELECT SUM ( - col0 ) + + AVG ( ALL - - 30 ) AS col0, 17 FROM tab1 AS cor0 WHERE ( NOT ( - col1 * + 45 * + col0 < + + 1 ) ) - -Expected: ["NULL","17"] but got ["17","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,607 failed -* 83% was OK - -Time: 34826.807ms - ----- ---- ---- ---- ---- ---- ---- -### 350/620 [`./test/random/aggregates/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_93.test) - -_Mimic sqlite_ - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col2, col0 * + + col0 + - + 22 / - col1 AS col2 FROM tab1 cor0 - -Expected: ["NULL","2602","NULL","7229","NULL","8281"] but got ["2602.571","2602.571","7229.400","7229.400","8281.468","8281.468"] -``` - - -```sql -SELECT - - col0 / + + col1 + col0 * + 1 + ( - 50 ) AS col0 FROM tab0 cor0 - -Expected: ["-35","144","41"] but got ["-34.815","144","41.143"] -``` - - -```sql -SELECT ALL MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 37 IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL col2 - 54 * - - col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IN ( - col2 + + 23, col0 * - col1, + 17 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - 4 * - SUM ( DISTINCT CAST ( NULL AS REAL ) ) - COUNT ( * ) FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( + - MAX ( - 99 ) AS INTEGER ) AS col2, - 92 FROM tab2 cor0 - -g is not defined -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ), + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + + MIN ( DISTINCT - - 14 ) AS col1, - SUM ( DISTINCT 74 ) col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - COUNT ( ALL ( - - col2 ) ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL"] but got ["-3"] -``` - - -```sql -SELECT DISTINCT + + MAX ( - + col0 ) AS col1 FROM tab2 WHERE NOT - ( + col1 ) BETWEEN + 48 - + ( + col1 ) + - 28 * + - col2 AND + col2 - -Expected: ["-46"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,581 failed -* 84% was OK - -Time: 65193.079ms - ----- ---- ---- ---- ---- ---- ---- -### 351/620 [`./test/random/aggregates/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_94.test) - -_Mimic sqlite_ - -```sql -SELECT 75 / - 30 FROM tab2 - -Expected: ["-2","-2","-2"] but got ["-2.500","-2.500","-2.500"] -``` - - -```sql -SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + col2 AND - CAST ( + - 22 AS INTEGER ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col1 AS col1, - col0 - - - 57 AS col2, + + CAST ( NULL AS INTEGER ) * - - col2 + - + col0 AS col1 FROM tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - col1 + - - CAST ( NULL AS REAL ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - col0 * - CAST ( NULL AS INTEGER ) - + 47 + + 37 AS col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-10","-10","-10"] -``` - - -```sql -SELECT ALL 33 * - CAST ( - + COUNT ( * ) AS INTEGER ) - + - 33 FROM tab1 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 13 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL - + MIN ( + col2 ) FROM tab1 WHERE NOT + col1 BETWEEN + col1 * 81 + - - 97 AND - 92 - -Expected: ["-59"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + - + ( col2 ) col1 FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","-23","0","-40","0","-58"] -``` - - -```sql -SELECT DISTINCT + MIN ( + 24 ) / - ( - CAST ( NULL AS INTEGER ) ) AS col1, 47 FROM tab0 - -Expected: ["NULL","47"] but got ["47","NULL"] -``` - - -```sql -SELECT ALL - 8 / - 73 FROM tab2 - -Expected: ["0","0","0"] but got ["0.110","0.110","0.110"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL, tab2 AS cor2 - -Parse error on line 1: -... ON NULL IS NOT NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - COUNT ( * ) + MIN ( + col1 ) - - AVG ( col0 ) * + COUNT ( - col1 ) col0, - SUM ( + col1 ) col2 FROM tab1 AS cor0 WHERE - col1 <= NULL - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT DISTINCT - 42 / + + ( - col2 ) - 44, ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 - -Expected: ["-40","NULL","-44","NULL"] but got ["-39.800","0","-43.106","0","-43.576","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,578 failed -* 84% was OK - -Time: 29132.312ms - ----- ---- ---- ---- ---- ---- ---- -### 352/620 [`./test/random/aggregates/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_95.test) - -_Mimic sqlite_ - -```sql -SELECT - ( + - CAST ( NULL AS INTEGER ) ) * - col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + col0 / - + col1 + col2 * + + col1 * - + ( - ( - + ( col2 ) ) ) * 80 AS col0 FROM tab2 AS cor0 - -Expected: ["-18031041","-2158320","-9856000"] but got ["-18031041.119","-2158320.902","-9856000.831"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 56 * + + CAST ( NULL AS INTEGER ) IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( + ( COUNT ( * ) ) AS INTEGER ) FROM tab2 - -g is not defined -``` - - -```sql -SELECT ( + 25 ) * + AVG ( ALL - col1 ) * - CAST ( NULL AS INTEGER ) / - 82 FROM tab2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( - col0 AS REAL ) > col2 + col1 + col0 + ( col1 ) - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - 6 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - SUM ( ALL - 29 ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + + 0 * CAST ( NULL AS INTEGER ) * - col2 * + col2 + - 27 <> NULL - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT 37 AS col2, - col2 * - + col0 + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 - -Expected: ["37","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT 3 + + MAX ( DISTINCT - 62 ) AS col0 FROM tab2 WHERE NOT ( - col2 ) BETWEEN col1 * - 9 + + 93 AND - col1 - -Expected: ["-59"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / - + ( - col1 ) AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,586 failed -* 84% was OK - -Time: 30723.574ms - ----- ---- ---- ---- ---- ---- ---- -### 353/620 [`./test/random/aggregates/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_96.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( - MIN ( 74 ) AS INTEGER ) FROM tab0 - -g is not defined -``` - - -```sql -SELECT col2 * - + CAST ( NULL AS INTEGER ) - + col1 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-14","-47","-5"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 WHERE - + col2 * - CAST ( NULL AS INTEGER ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + COUNT ( * ) + 53 AS col0 FROM tab2 WHERE NOT ( + 25 ) BETWEEN col0 + + col1 * 80 AND + col2 AND NOT ( NULL ) IS NOT NULL - -Expected: ["56"] but got ["53"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - 88 IS NOT NULL - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS REAL ) AS col1, COUNT ( * ) AS col2 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ( 93 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + ( + col2 ) / - CAST ( NULL AS INTEGER ), 5 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","0","NULL","0","NULL","0"] -``` - - -```sql -SELECT MIN ( col1 ) / CAST ( - + COUNT ( * ) AS INTEGER ) AS col2, - COUNT ( * ) FROM tab1 - -Expected: ["-1","-3"] but got ["NULL","-3"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NOT NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + 79 + + CAST ( NULL AS INTEGER ) * + AVG ( ALL + ( - 69 ) ), + 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 - -Expected: ["NULL","44"] but got ["79","44"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + 25 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT 85 AS col2, - MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL - -Expected: ["85","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,549 failed -* 84% was OK - -Time: 34334.210ms - ----- ---- ---- ---- ---- ---- ---- -### 354/620 [`./test/random/aggregates/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_97.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col0, + COUNT ( * ) col0 FROM tab2 - -Expected: ["-46","3"] but got ["3"] -``` - - -```sql -SELECT * FROM tab2 cor0 WHERE NOT 35 IN ( - - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * + col2 + - col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-23","-40","-58"] -``` - - -```sql -SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 - -g is not defined -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 17 * + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + - col0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) - -18 results returned but expected 54 -``` - - -```sql -SELECT - - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + SUM ( + 51 ) / - COUNT ( * ) + 37 + MIN ( + + 78 ) + - 31 - + - 82 / - - CAST ( MAX ( ALL + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["34"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + 82 / + + col0 + col1 AS col1, col1 AS col1 FROM tab1 - -Expected: ["15","14","47","47","5","5"] but got ["14","14","47","47","5","5"] -``` - - -```sql -SELECT - SUM ( ALL col0 ) - + - COUNT ( * ) AS col0, - 52 + + AVG ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT + 47 + + 58 * + - col0 * + + col2 * + 94 + + col1 + - col0 IS NOT NULL ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col1, 91 + - col0 + + + 24 * CAST ( NULL AS INTEGER ) * 61 + + col0 AS col0 FROM tab1 - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","91","0","91","0","91"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,633 failed -* 83% was OK - -Time: 30020.496ms - ----- ---- ---- ---- ---- ---- ---- -### 355/620 [`./test/random/aggregates/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_98.test) - -_Mimic sqlite_ - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - 75 * + COUNT ( * ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-225"] -``` - - -```sql -SELECT ALL 48 / + + col1 + - - col1 FROM tab2 AS cor0 - -Expected: ["51","67","77"] but got ["51.941","67.716","77.623"] -``` - - -```sql -SELECT - 88 * - CAST ( NULL AS INTEGER ) - col2 + - - 97 * + + ( + col2 ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["5664","6528","9216"] -``` - - -```sql -SELECT DISTINCT - - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 - -g is not defined -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) + + + col0 AS col0 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2 WHERE NOT - - col2 BETWEEN - ( + + col0 ) AND - + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + ( - + col2 ) / 27 AS col2, CAST ( NULL AS INTEGER ) * + col2 FROM tab1 - -Expected: ["-2","NULL","-3","NULL"] but got ["-2.185","0","-2.519","0","-3.556","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - - 31 + - - 88 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 58 IS NULL - -18 results returned but expected 54 -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL, tab2 AS cor2 - -Parse error on line 1: -...NOT NULL IS NOT NULL, tab2 AS cor2 ------------------------^ -Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… -``` - - -```sql -SELECT - 58 AS col0, AVG ( ALL + 42 ) col0 FROM tab2 AS cor0 WHERE - col2 = 66 - -Expected: ["-58","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + + COUNT ( * ) / + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT - - COUNT ( * ) * - - 52 + - SUM ( - + col0 ) * - + 77, MIN ( DISTINCT 44 ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,644 failed -* 83% was OK - -Time: 58268.615ms - ----- ---- ---- ---- ---- ---- ---- -### 356/620 [`./test/random/aggregates/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_99.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - ( + 47 ) * + - COUNT ( * ) * - MAX ( + col1 ) + - CAST ( + MIN ( - col1 ) AS INTEGER ) + 75 AS col1 FROM tab1 AS cor0 - -Expected: ["-6505"] but got ["-6552"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * col2 * + + col1 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + + 98 / COUNT ( DISTINCT - - col0 ) AS col1, + CAST ( NULL AS INTEGER ) * 60 FROM tab1 AS cor0 - -Expected: ["32","NULL"] but got ["32.667","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 4 ) < 66 - -18 results returned but expected 54 -``` - - -```sql -SELECT COUNT ( DISTINCT col0 ) * - COUNT ( * ) / - CAST ( COUNT ( * ) AS INTEGER ) - + - CAST ( NULL AS REAL ) * + ( - - ( ( + COUNT ( * ) ) ) ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT + 60 BETWEEN NULL AND + 3 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col0, col2 + - 81 + col1 AS col0, - + col2 AS col0 FROM tab1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 - -g is not defined -``` - - -```sql -SELECT - AVG ( DISTINCT - - col1 ) AS col2, 4 FROM tab2 WHERE NULL BETWEEN NULL AND - col2 * 43 - -Expected: ["NULL","4"] but got ["4","NULL"] -``` - - -```sql -SELECT DISTINCT + 9 * - CAST ( NULL AS INTEGER ) + - ( - col1 ) * + col1 AS col2, + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 - -Expected: ["NULL","NULL"] but got ["196","0","2209","0","25","0"] -``` - - -```sql -SELECT DISTINCT - MAX ( DISTINCT 49 ) * COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col1 IN ( + ( col0 ) + + col0 * col0 ) - -Expected: ["-147"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,573 failed -* 84% was OK - -Time: 32856.344ms - ----- ---- ---- ---- ---- ---- ---- -### 357/620 [`./test/random/expr/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT 20 / - - 96 + CAST ( 90 AS INTEGER ) AS col2 - -Expected: ["90"] but got ["90.208"] -``` - - -```sql -SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 67 * + 85 * - CAST ( - SUM ( - 52 ) AS INTEGER ) col2 - -g is not defined -``` - - -```sql -SELECT ALL 25 * + COUNT ( * ) + - 0 - + - 6 + + - ( + + CASE + CAST ( + + 38 AS REAL ) WHEN 3 THEN NULL WHEN + 42 THEN NULL WHEN - 80 THEN NULL ELSE 14 END ) AS col1, - 31 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2, + 77 / 37 + + + 90, + CASE - - MAX ( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM ( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST ( 16 AS INTEGER ) WH… - -Expected: ["2","92","NULL"] but got ["NULL","92.081"] -``` - - -```sql -SELECT - 37 AS col0, + MAX ( + - 74 ) * + - 55 / CAST ( - COUNT ( * ) AS INTEGER ) + 48 - - 10 + + 31 * - 27 * - 89 * - + 35 - -Expected: ["-37","-2611267"] but got ["-37","NULL"] -``` - - -```sql -SELECT SUM ( + 73 ) * - CASE WHEN NOT ( NOT 27 BETWEEN 15 AND - NULLIF ( - 63, - 28 + + 76 ) ) THEN NULL ELSE + 77 * + 69 END / - CAST ( - 69 AS INTEGER ) AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL CAST ( - - CASE + 81 WHEN - 91 THEN + 37 END AS INTEGER ), + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - 80 + - CASE - CASE + COUNT ( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2 - -Expected: ["-46","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,839 failed -* 81% was OK - -Time: 32281.398ms - ----- ---- ---- ---- ---- ---- ---- -### 358/620 [`./test/random/expr/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT ALL COUNT ( * ) AS col0, - 83 AS col0 - -Expected: ["1","-83"] but got ["-83"] -``` - - -```sql -SELECT CAST ( - COUNT ( ALL 73 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT - CASE WHEN NOT NULL BETWEEN NULL AND NULL THEN 17 ELSE NULL END + + 12 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","-15"] -``` - - -```sql -SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 - -Expected: ["67","63"] but got ["67","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,175 failed -* 88% was OK - -Time: 21211.982ms - ----- ---- ---- ---- ---- ---- ---- -### 359/620 [`./test/random/expr/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_10.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - 4 / - 44 * - 32 AS col1 - -Expected: ["0"] but got ["-0.003"] -``` - - -```sql -SELECT + CAST ( COALESCE ( - 1, + - 37, - 27 + - COUNT ( * ) ) AS INTEGER ) * - 41 * - 88 AS col1, 0 * + - CAST ( NULL AS REAL ) * 43 - -g is not defined -``` - - -```sql -SELECT 73 + - CAST ( NULL AS REAL ) * - COUNT ( * ) * + CASE + 61 WHEN COUNT ( * ) THEN - 50 * + - 4 * + + ( 3 ) + - COALESCE ( 19, 29 ) * - + ( 94 ) END * - + 4 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) / + + 67 AS col0, 24 + + CAST ( 35 AS INTEGER ) - -Expected: ["NULL","59"] but got ["0","59"] -``` - - -```sql -SELECT ALL 83 / - 45 + - CASE WHEN NOT - 30 NOT BETWEEN + ( + - 21 ) / + 34 + 87 + + + 87 AND + + 75 / ( 37 ) + + - 59 + + + ( - COALESCE ( - CASE + + COUNT ( * ) WHEN CASE WHEN - ( 56 ) IS NULL THEN + COUNT ( * ) * + + NULLIF ( - 83, + CAST ( NULL AS INTEGER ) / + 60 * + 45 + - + 82 ) * + - 4 * - … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 20 AS col0, 62 * - COALESCE ( 79, + - 65 - 55, CAST ( NULL AS INTEGER ) * 51 ) + + CASE ( 43 ) WHEN 13 THEN + - 72 END * 73 AS col0 - -Expected: ["20","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT 61 + - + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + 54 * - 0 + - 9 + + 37 AS col0, CAST ( NULL AS INTEGER ) * - 92 AS col2 - -Expected: ["NULL","NULL"] but got ["89","0"] -``` - - -```sql -SELECT CASE 71 WHEN + - 13 THEN + 1 END AS col1, COUNT ( * ) / CAST ( - - 55 AS INTEGER ) + - + 9 - -Expected: ["NULL","-9"] but got ["NULL","-8.982"] -``` - - -```sql -SELECT ALL - 73 AS col2, + CAST ( NULL AS INTEGER ) * + 26, + NULLIF ( - CASE + + 80 WHEN 1 THEN - 79 WHEN + 52 THEN + 33 * 45 ELSE NULL END, + COALESCE ( 28, COALESCE ( 24, CAST ( 85 AS INTEGER ), + 66 + 21 ) + 52, - ( - 88 ) + 46 ) * 3 - COUNT ( * ) ) * + 34 col2 - -Expected: ["-73","NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL - CASE WHEN + 36 NOT IN ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + NULLIF ( - ( - NULLIF ( ( - 57 ), COUNT ( * ) ) ), CASE 34 WHEN + 3 * + 9 THEN + 98 / 49 + 76 ELSE NULL END - 83 ) + - COALESCE ( - 80, - 31 ) END AS col2 - -Expected: ["-23"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,060 failed -* 79% was OK - -Time: 36165.298ms - ----- ---- ---- ---- ---- ---- ---- -### 360/620 [`./test/random/expr/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_100.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) * - 85 + - CAST ( + SUM ( + 31 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( + ( + 14 ), 51, + 33 ) + + COUNT ( * ) + 13 + + 15 * SUM ( - - 59 ) * - 56 * + 24 - -Expected: ["NULL"] but got ["-1189426"] -``` - - -```sql -SELECT + 17 / + + 99 col0 - -Expected: ["0"] but got ["0.172"] -``` - - -```sql -SELECT 74 - 83 * + CAST ( + + COUNT ( * ) AS INTEGER ) * - - ( + CAST ( NULL AS REAL ) ) + + 14 + + COUNT ( * ) + 3 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - - 51 * + 96 / + 44 + CASE - CASE 92 WHEN + 20 THEN + + 30 / ( + 26 ) + + 93 END WHEN NULLIF ( 16, + ( - + COUNT ( * ) ) ) THEN + 45 WHEN - COALESCE ( + - 30, - 29 * - 78, - 1 ) THEN NULL END AS col1, 25 - -Expected: ["NULL","25"] but got ["25","NULL"] -``` - - -```sql -SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + + + 27 AS col0, + 41 + CAST ( NULL AS INTEGER ) + ( NULLIF ( - 42, 62 ) ) - + + 93 + - - ( 68 ) AS col1 - -Expected: ["NULL","NULL"] but got ["27","-26"] -``` - - -```sql -SELECT DISTINCT CASE WHEN ( CAST ( NULL AS INTEGER ) ) IS NOT NULL THEN NULL ELSE MIN ( 57 ) / + 20 END AS col2 - -Expected: ["2"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 60 AS col2, - ( + CASE WHEN - 25 > + 91 THEN - COALESCE ( 74, - CAST ( 61 AS INTEGER ) + 31, - - 40 ) WHEN + 4 * + + 56 / 13 * - 15 + + CAST ( NULLIF ( - 81, 5 ) AS REAL ) NOT BETWEEN 58 + - 72 AND + COUNT ( * ) THEN NULL END ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - - 84 - + - CAST ( NULL AS INTEGER ), 29 / CASE + + 55 WHEN - COUNT ( * ) THEN NULL WHEN + SUM ( ALL - 87 ) THEN + 68 / + + ( 79 ) ELSE NULL END / - COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - 22 AS col0, CASE + - 63 WHEN + 6 * + 80 * - 2 * - - 81 + - 62 THEN + CASE + 82 WHEN + 45 + - 14 + - CAST ( NULL AS INTEGER ) * + 77 THEN 98 WHEN + + 85 - 90 / - 91 THEN NULL END END AS col0 - -Expected: ["-22","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,110 failed -* 78% was OK - -Time: 40671.064ms - ----- ---- ---- ---- ---- ---- ---- -### 361/620 [`./test/random/expr/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_101.test) - -_Mimic sqlite_ - -```sql -SELECT - COALESCE ( 14, 79 ) / + 3 AS col0 - -Expected: ["-4"] but got ["-4.667"] -``` - - -```sql -SELECT + + CASE ( - COALESCE ( 66, COALESCE ( 69, 12, 18 ) + 66, + 24 * 84 ) ) WHEN 26 THEN - 69 WHEN 64 THEN 17 ELSE NULL END * + CAST ( NULL AS REAL ) + - 25 - -Wrong conversion type -``` - - -```sql -SELECT 26 * + 61 * CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT - 74 AS col1, CASE + CAST ( NULL AS INTEGER ) WHEN - + COALESCE ( 56, + CAST ( NULL AS INTEGER ) ) THEN + COUNT ( + ( 2 ) ) END * ( + 93 ) AS col1 - -Expected: ["-74","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 61 * + CAST ( ( - COUNT ( * ) ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT - COALESCE ( - 10, + 97 ) / - CAST ( NULL AS INTEGER ) * - 13 AS col0, ( - + 36 ) * + - 36 + + - 6 - + 23 * - + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 - -Expected: ["NULL","NULL"] but got ["1290"] -``` - - -```sql -SELECT + CASE WHEN - COUNT ( * ) BETWEEN 4 * - 25 + - + COUNT ( * ) AND + 83 THEN - 50 END AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - CASE 38 WHEN - - 96 THEN + + 83 + - ( + + 77 ) + - - 43 END + + + 30 AS col1, 78 * + + 95 * - COUNT ( * ) * + 25 + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","-185250"] -``` - - -```sql -SELECT ALL + 52 * NULLIF ( - 20, ( CAST ( 26 AS INTEGER ) ) ) + - 43 - - 56 / - + 76 * + - CAST ( - + COUNT ( * ) AS INTEGER ) / COUNT ( DISTINCT 30 ) AS col0 - -Expected: ["-1083"] but got ["NULL"] -``` - - -```sql -SELECT - 9 + + 93 AS col2, CASE + 65 WHEN + 25 THEN + + 72 END * 44 + 17 * + 87 AS col2 - -Expected: ["84","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,061 failed -* 79% was OK - -Time: 41492.488ms - ----- ---- ---- ---- ---- ---- ---- -### 362/620 [`./test/random/expr/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_102.test) - -_Mimic sqlite_ - -```sql -SELECT + 84 / + 27 + + - 92 - - CAST ( + 86 AS INTEGER ) * + - 7 + 5 + - 53 + 63 * CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL"] but got ["-738.889"] -``` - - -```sql -SELECT + - 34 / - + 63 AS col2 - -Expected: ["0"] but got ["0.540"] -``` - - -```sql -SELECT ALL - 85 - CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT CAST ( - + COUNT ( * ) AS INTEGER ) * + 22 AS col1 - -g is not defined -``` - - -```sql -SELECT + CASE WHEN NOT CASE - 42 WHEN 25 - - + CAST ( NULL AS INTEGER ) THEN + + 61 + 87 END BETWEEN 37 AND - - COUNT ( * ) THEN + 37 END + - 0 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 0 + 95 + - ( 84 ) + + 38 / 64 * + - NULLIF ( - 12, - + 24 * - 85 ) AS col0, CASE - + 42 WHEN - ( - 38 ) THEN + 97 * + 23 END - -Expected: ["11","NULL"] but got ["18.125","NULL"] -``` - - -```sql -SELECT NULLIF ( + 33, 35 * - - 84 ) * COALESCE ( + COUNT ( * ), MAX ( ALL 17 ) * + 18, - 9 * - SUM ( DISTINCT - 17 ) ) / - CAST ( COUNT ( * ) AS INTEGER ), - 2 AS col0 - -Expected: ["-33","-2"] but got ["NULL","-2"] -``` - - -```sql -SELECT ALL 28 * + - 0 / + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT 13 * NULLIF ( + - 16, + 36 - - - COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 90 + 35 AS col2, + NULLIF ( - CASE - ( + 82 ) WHEN 48 * + - 16 * - 53 * + SUM ( ALL + 75 ) THEN NULL ELSE + SUM ( DISTINCT ( - + CAST ( NULL AS INTEGER ) ) ) END, + - CAST ( 10 AS INTEGER ) ) + - … - -Expected: ["NULL","NULL"] but got ["-263","52"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,190 failed -* 78% was OK - -Time: 49804.077ms - ----- ---- ---- ---- ---- ---- ---- -### 363/620 [`./test/random/expr/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_103.test) - -_Mimic sqlite_ - -```sql -SELECT - COUNT ( * ) * + - ( + 52 ) / + 77 + - 99 + ( - - NULLIF ( 86, + + COALESCE ( + - 84, - 91, + 76, - 48 ) ) ) - 79 * COALESCE ( MAX ( DISTINCT 26 ) + 36, - COUNT ( * ), 36 * 86 ) + 10 AS col2 - -Expected: ["-4901"] but got ["-4900.325"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col1, 28 * - 22 - -Expected: ["NULL","-616"] but got ["0","-616"] -``` - - -```sql -SELECT 80 * - CAST ( - COUNT ( * ) AS INTEGER ) + - 59 + - ( + 15 ) col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT + - CASE - + 86 WHEN - NULLIF ( - 75, - 4 + - COUNT ( * ) * 26 * + 43 / - COUNT ( * ) + - + 26 - - 82 ) THEN - + ( 49 ) * 6 END AS col0, + SUM ( ALL - + 60 ) * + 25 + 82 * CAST ( 65 * + 26 + - MAX ( ALL 24 ) AS INTEGER ) AS col1 - -Expected: ["NULL","135112"] but got ["NULL","-1500"] -``` - - -```sql -SELECT - 2 AS col2, + SUM ( ( + - CAST ( NULL AS REAL ) ) ) * 38 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT ( - COUNT ( * ) ) / - CAST ( + COUNT ( * ) AS INTEGER ) + 6 - -Expected: ["7"] but got ["NULL"] -``` - - -```sql -SELECT ALL 76 + - 52 AS col0, - CASE WHEN 36 NOT BETWEEN - + SUM ( - 71 ) - 64 * - 79 AND NULL THEN 42 WHEN ( NULL NOT BETWEEN - MIN ( + + 42 ) - 85 - - CAST ( NULL AS INTEGER ) AND NULL ) THEN - 10 END * - - 69 + + 90 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 57 * - CAST ( NULL AS INTEGER ) * 40 + - COALESCE ( 25, + - 8 ), - COUNT ( * ) * AVG ( - - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["-25","0"] -``` - - -```sql -SELECT ALL 35 / 8 * + + ( + 75 ) - -Expected: ["300"] but got ["328.125"] -``` - - -```sql -SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1, CASE + 90 WHEN + 34 THEN + - 77 ELSE NULL END / + COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,064 failed -* 79% was OK - -Time: 34394.847ms - ----- ---- ---- ---- ---- ---- ---- -### 364/620 [`./test/random/expr/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_104.test) - -_Mimic sqlite_ - -```sql -SELECT 83 + + - CAST ( - COALESCE ( 63, + AVG ( + 86 ) * - 86 / - - 48 ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT COUNT ( * ) * - + COUNT ( * ) AS col1, CAST ( NULL AS REAL ) col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL COALESCE ( - + ( + + 67 ), - 64 * + MAX ( 70 ) + - - 91 ) + + CAST ( NULL AS INTEGER ) * - CAST ( 52 AS INTEGER ) + 40 - -Expected: ["NULL"] but got ["-27"] -``` - - -```sql -SELECT 7 AS col2, - 33 - + 72 * + - 74 + - - 63 AS col2 - -Expected: ["7","5358"] but got ["5358","5358"] -``` - - -```sql -SELECT ALL - 81 AS col2, CASE + ( + 92 ) WHEN + 59 THEN + 79 * - 18 / + 24 + - 76 - + 10 ELSE NULL END * CAST ( - 81 AS INTEGER ) AS col2 - -Expected: ["-81","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + ( - 56 ) / NULLIF ( - CAST ( NULL AS INTEGER ), - 61 ) AS col0, 20 + - COUNT ( * ) AS col0, - + 94 * - NULLIF ( 39, + 26 ) / - 55 + CAST ( NULL AS INTEGER ) - + 48 - -Expected: ["NULL","19","NULL"] but got ["19","-114.655"] -``` - - -```sql -SELECT DISTINCT - - 4 col1, + COUNT ( * ) + - 18 - + 61 / - CAST ( + 93 AS INTEGER ) + - - 28 + 33 / + + ( + CASE 97 WHEN + ( - - 68 ) + - 9 THEN + 17 ELSE NULL END ) AS col1 - -Expected: ["4","NULL"] but got ["NULL"] -``` - - -```sql -SELECT CASE WHEN NOT NULL > 46 THEN - 60 WHEN - 9 NOT BETWEEN + 67 AND NULL THEN + 43 / - ( 55 ) + + 67 * - NULLIF ( - 10 * + 54, COUNT ( * ) ) END - - COUNT ( * ) * 50 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - 53 * + - ( - ( + + 3 ) ) / CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( * ) - -Expected: ["-158"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 72 + + - 9 col2, + CASE - + 13 WHEN + 67 + + - 10 THEN + 48 ELSE NULL END + 43 - CAST ( NULL AS INTEGER ) * 37 * + 53 AS col0 - -Expected: ["NULL","NULL"] but got ["-9","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,069 failed -* 79% was OK - -Time: 31386.907ms - ----- ---- ---- ---- ---- ---- ---- -### 365/620 [`./test/random/expr/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_105.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 15 + - + ( - CAST ( NULL AS INTEGER ) ) AS col2, - 16 / 74 - -Expected: ["NULL","0"] but got ["15","-0.216"] -``` - - -```sql -SELECT - 10 / - - 54 + + - ( - 15 ) - -Expected: ["15"] but got ["14.815"] -``` - - -```sql -SELECT DISTINCT + - 72 AS col1, - CAST ( + - COUNT ( * ) AS INTEGER ) + + 53 * - 3 - -g is not defined -``` - - -```sql -SELECT + 17 - + - 0 * - 58 * + - CAST ( NULL AS REAL ) / 17 + + 25 AS col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 44 + + 16 * + + CASE 32 WHEN - ( + COUNT ( * ) ) + 8 THEN NULL WHEN + 54 * - 22 - - 36 + - COUNT ( * ) + - 9 * - 58 + + 17 * - - 10 * 22 * - - NULLIF ( - 94, - - 10 ) THEN 33 * - + 79 END + + CASE WHEN NOT - 79 < NULL OR ( NULL ) NOT BETWEEN NULL AND + 19 THEN - ( ( 96 ) ) ELSE 99 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ( - CASE - - SUM ( ALL + 26 ) WHEN - - 75 - + 32 THEN - + 58 WHEN - 87 THEN + 87 * 64 WHEN COUNT ( * ) THEN NULL ELSE NULL END ) + CAST ( - 58 AS INTEGER ) AS col1, 38 - -Expected: ["NULL","38"] but got ["38","NULL"] -``` - - -```sql -SELECT ALL + 63 * + + AVG ( ALL CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) + - 73 AS col0 - -Expected: ["NULL","NULL"] but got ["0","-73"] -``` - - -```sql -SELECT + COUNT ( * ) / + CAST ( + AVG ( 90 ) AS INTEGER ) * - SUM ( - + 6 ) AS col0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL 75 col1, + CASE + - 5 WHEN + - 2 THEN + 19 / - 61 ELSE NULL END + - 1 AS col1, + MIN ( DISTINCT - 43 ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 - -Expected: ["75","NULL","NULL"] but got ["NULL","-43"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,007 failed -* 79% was OK - -Time: 34899.796ms - ----- ---- ---- ---- ---- ---- ---- -### 366/620 [`./test/random/expr/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_106.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 37 + + + CAST ( NULL AS INTEGER ) * + MIN ( ALL NULLIF ( - - 23, - 7 ) ) * 18 AS col0 - -Expected: ["NULL"] but got ["37"] -``` - - -```sql -SELECT + 54 * - 79 + 85 * - 47 AS col0, - COUNT ( * ) + + 80 col0 - -Expected: ["-8261","79"] but got ["79"] -``` - - -```sql -SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + - 23 * + 67 AS col0 - -g is not defined -``` - - -```sql -SELECT + 80 + - - CASE - 70 WHEN - 92 THEN + - 29 * 17 + - 59 / - 54 + - CASE WHEN NOT + 8 BETWEEN NULL AND 39 / - MAX ( ALL + 45 ) THEN 37 * + 18 * + 37 ELSE NULL END ELSE NULL END, 76 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - + NULLIF ( - - 48, NULLIF ( + COUNT ( * ), COUNT ( * ) + + 84 + + 59 + - CAST ( NULL AS INTEGER ) + 76 * + 85 + - - CASE + + NULLIF ( + COUNT ( * ), - ( - COUNT ( * ) ) * + CASE + 99 WHEN - + COUNT ( * ) THEN - 26 * CASE - NULLIF ( - + 23, COALESCE ( - 11, COALESCE ( ( - - 75 ), + 43, + - … - -Wrong conversion type -``` - - -```sql -SELECT + - CASE WHEN NOT NULL > NULL THEN NULL ELSE - 63 END AS col2 - -Expected: ["63"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col0, CASE ( - 10 ) WHEN - COALESCE ( + - COALESCE ( + COUNT ( * ), + - 0 ), ( 33 ) * + 25 + 41 + NULLIF ( + 99, + - 52 + + 68 ) ) THEN + - COALESCE ( - + 59, COUNT ( ALL + + 41 ) * COUNT ( 28 ), - 52 + 71 ) * - 2 END / + 87 AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT DISTINCT + CASE + 24 WHEN - COUNT ( * ) * + 20 * 5 * + 24 * + 16 THEN NULL WHEN + - 44 + - 33 THEN + 94 * + 64 * 84 ELSE NULL END, + 2 * - 80 / - 64 AS col1 - -Expected: ["NULL","2"] but got ["NULL","2.500"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 39 + ( SUM ( ALL + + 30 ) ) / + 37, + MAX ( - - CAST ( NULL AS INTEGER ) ) * - 73 - 92 + - 78 - -Expected: ["NULL","NULL"] but got ["0.811","-170"] -``` - - -```sql -SELECT ALL + 86 AS col2, - 72 + + CASE - + 43 WHEN - 44 THEN NULL WHEN + 15 * 85 + + ( - ( - 33 ) ) THEN + ( 60 ) END * + + 43 AS col2 - -Expected: ["86","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,066 failed -* 79% was OK - -Time: 57801.897ms - ----- ---- ---- ---- ---- ---- ---- -### 367/620 [`./test/random/expr/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_107.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 72 / 98 * - 98 / + 78 / - 57 AS col0 - -Expected: ["0"] but got ["-52.615"] -``` - - -```sql -SELECT COUNT ( * ) * COALESCE ( - COALESCE ( - 92, - 98 * COUNT ( * ) * + 48 / 65 * + COUNT ( * ) / - 81 * + 92 ), COUNT ( * ) ) * - 2 * - + 17 * COUNT ( * ) + - AVG ( + 92 ) / + + SUM ( ALL 84 ) - + 91 - + CAST ( NULL AS INTEGER ) + + 88 + - ( - - 54 ) * 74 * + 69 * 55 * + 70 / + AVG ( ALL 8 ) + -… - -Expected: ["NULL"] but got ["-132688968.095"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) * - + 48 + - 33 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + 57 * - 52 * - 40 / + CAST ( + COUNT ( * ) AS INTEGER ) - + COUNT ( * ) AS col2 - -Expected: ["118559"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 19 / - 40 * + COUNT ( * ) AS col1, 95 / + CASE + - COUNT ( * ) WHEN + 25 THEN NULL WHEN + 25 + + - 27 THEN + 46 END AS col0 - -Expected: ["0","NULL"] but got ["0.475","NULL"] -``` - - -```sql -SELECT CAST ( COUNT ( * ) AS INTEGER ) + - 6 - -g is not defined -``` - - -```sql -SELECT - CASE WHEN NOT ( 94 ) BETWEEN ( NULL ) AND AVG ( 22 ) THEN COUNT ( * ) ELSE 28 * - 6 END + + COUNT ( 84 ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT 56 col0, CASE - ( 53 ) WHEN - 5 THEN ( 25 ) / - + 51 END col0 - -Expected: ["56","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - CASE + 51 WHEN + 29 * - + 38 / + 41 THEN - - ( + 8 ) END, CAST ( NULL AS INTEGER ) * + + 19 * - COUNT ( * ) * + 18 * + + ( 60 ) AS col1 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,081 failed -* 79% was OK - -Time: 45887.679ms - ----- ---- ---- ---- ---- ---- ---- -### 368/620 [`./test/random/expr/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_108.test) - -_Mimic sqlite_ - -```sql -SELECT + COALESCE ( + + COUNT ( * ), + COUNT ( * ) * COUNT ( * ) * - + CASE 51 WHEN - 2 + 53 THEN NULL WHEN 54 / + 88 THEN + 93 * - - 96 * 31 * - 23 ELSE + - 7 + + + CAST ( NULL AS INTEGER ) / + + 2 END ) / - 4 AS col0 - -Expected: ["0"] but got ["-0.250"] -``` - - -```sql -SELECT - 43 / + - 11 * CAST ( NULL AS REAL ) + - - COUNT ( * ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), 98 ) AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( + NULLIF ( - 35, + AVG ( DISTINCT 75 ) ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - 91 + 37 AS col2, + CASE - 5 WHEN + + 63 THEN NULL WHEN - - MAX ( DISTINCT + + 7 ) THEN - COALESCE ( + - 46, - - 68 ) * + ( + NULLIF ( MIN ( 67 ), + - 51 ) ) END + 57 - -Expected: ["NULL","NULL"] but got ["37","NULL"] -``` - - -```sql -SELECT MIN ( - 39 ) AS col1, + CASE + 69 WHEN 14 + + + 25 THEN + ( COUNT ( * ) ) WHEN - - 33 THEN + SUM ( + - 74 ) END AS col1 - -Expected: ["-39","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 20 + + NULLIF ( + 37, + 37 + + NULLIF ( - 24, 2 + + ( 23 ) * + 16 ) * CAST ( NULL AS INTEGER ) ) - -Expected: ["57"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + - 62 + + 57 col1, - 11 + ( - CASE 76 WHEN - ( - 99 ) + + 72 THEN 21 * 40 ELSE NULL END ) * 24 AS col1 - -Expected: ["-5","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL + 97 - + 8 + + 67 + - CAST ( NULL AS INTEGER ), ( 57 ) + 1 + - CAST ( NULL AS INTEGER ) + + 45 - -Expected: ["NULL","NULL"] but got ["156","103"] -``` - - -```sql -SELECT + - ( - + MAX ( - - 88 ) ) + + CASE WHEN - 21 NOT BETWEEN ( NULL ) AND + 8 / + 42 / + 21 - - + 46 THEN 31 END + + - 38 + + 63 + 30 + ( ( - 84 ) + - SUM ( 35 ) * 22 ) * ( 97 ) * - NULLIF ( + ( - 83 ) * SUM ( DISTINCT 29 + 33 ) + + 0 * - 74, + 28 ) AS col1 - -Cannot read property 'toString' of undefined -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,030 failed -* 79% was OK - -Time: 49891.188ms - ----- ---- ---- ---- ---- ---- ---- -### 369/620 [`./test/random/expr/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_109.test) - -_Mimic sqlite_ - -```sql -SELECT + - CAST ( + - 69 AS REAL ) - + CAST ( NULL AS INTEGER ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 16 * + 36 + + + CAST ( NULL AS INTEGER ) / + 73 * + - 97 + 57 AS col0 - -Expected: ["NULL"] but got ["-519"] -``` - - -```sql -SELECT - 82 * - 57 - 88 / + COALESCE ( - + 96, + 22 ) AS col0 - -Expected: ["4674"] but got ["4674.917"] -``` - - -```sql -SELECT 9 * 82 - - + CAST ( + + COALESCE ( 48, + MAX ( ALL - - 35 ) + + 29 ) AS INTEGER ) + - 85 + - 43 AS col2, CAST ( NULL AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - AVG ( DISTINCT - 44 ) + CAST ( NULL AS INTEGER ) + + 24 + - 21 * COALESCE ( + 65, + 81, - CAST ( - - 95 AS INTEGER ) + MAX ( DISTINCT + 95 ) * + 74 * + 67 ) + - 2 AS col1, - CAST ( NULL AS INTEGER ) * - - 27 - -Expected: ["NULL","NULL"] but got ["-1299","0"] -``` - - -```sql -SELECT 84 + + NULLIF ( - CASE + - 45 WHEN + + COUNT ( * ) / - COUNT ( * ) THEN - 31 ELSE NULL END, 86 * 32 ) * - 7 * - 13 AS col1, + 71 + CASE + 48 WHEN + 79 THEN + + COALESCE ( - 5, - + COUNT ( * ) + + 58 ) / - COALESCE ( COUNT ( * ), + ( + - 33 ) - - - 32 - + + COUNT ( * ) - + + COUNT ( * ) + - 8… - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT NULLIF ( + 6, - COUNT ( * ) ) * - + 82 * + ( + + CASE + COUNT ( * ) WHEN - 18 / 37 THEN - 24 WHEN + 72 * - 70 * - - 4 * 26 + + 8 + ( - ( + + 54 ) ) THEN + 90 ELSE NULL END ) + + ( 77 ) AS col1, 73 - -Expected: ["NULL","73"] but got ["73","NULL"] -``` - - -```sql -SELECT - - CASE WHEN NULL NOT BETWEEN ( CASE - - 32 WHEN + COUNT ( 9 ) THEN + 48 WHEN - COUNT ( * ) * - 61 THEN NULL END ) AND ( - MIN ( 85 ) ) THEN 25 + ( - 45 + 61 / 16 ) ELSE - 37 * - 21 END + 28 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 40 / 5 / + - CASE WHEN NOT 45 <= NULL THEN NULL ELSE + 5 END - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT 27 AS col0, + 18 / - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["27","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,863 failed -* 81% was OK - -Time: 30920.069ms - ----- ---- ---- ---- ---- ---- ---- -### 370/620 [`./test/random/expr/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_11.test) - -_Mimic sqlite_ - -```sql -SELECT - 70 + - + COUNT ( * ) / - - 88 * 27 - -Expected: ["-70"] but got ["-70.000"] -``` - - -```sql -SELECT ALL - ( + + 47 ) + + CAST ( - COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT - + 63 + + CASE + CAST ( - 31 AS REAL ) WHEN - 92 / COALESCE ( + - COUNT ( * ), + + COALESCE ( - - 51, ( - + 59 ) ) + 19, + CAST ( NULL AS INTEGER ) ) * - - 54 THEN + COUNT ( * ) * + 30 * 92 * - + 95 + - - 4 END + 90 AS col1 - -Wrong conversion type -``` - - -```sql -SELECT - 58 col0, CAST ( NULL AS INTEGER ) / - 52 AS col0 - -Expected: ["-58","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + NULLIF ( + 76, - + 92 + - CASE + 82 WHEN 8 THEN 6 + 2 END * + ( - 74 ) + CASE WHEN NOT ( NULL ) NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND - COUNT ( * ) / + 24 THEN NULL WHEN 48 * 88 / - + 64 BETWEEN ( 64 ) AND ( - CASE + 30 WHEN 66 THEN NULL ELSE 19 + 67 / - 70 END ) THEN ( - 96 ) ELSE … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - - CASE + - 99 WHEN - 12 * 40 THEN NULL WHEN + 40 * COUNT ( * ) + - 19 - - CAST ( NULL AS INTEGER ) * 78 + + 11 THEN + 70 * - + 64 WHEN 66 THEN NULL ELSE NULL END + + 31 AS col0, 41 - -Expected: ["NULL","41"] but got ["41","NULL"] -``` - - -```sql -SELECT ALL + 61 * + ( - + CAST ( NULL AS INTEGER ) ) * + MAX ( 92 ) AS col0, 26 + + - CASE - 28 WHEN 32 THEN NULL WHEN + 84 + COALESCE ( 73, NULLIF ( - 3, COUNT ( * ) ), + NULLIF ( + + CAST ( NULL AS INTEGER ), + + 40 ) ) - + 65 / + 48 * 30 THEN + 91 * + + 12 / - 63 + - 74 ELSE NULL END + + + 74 AS… - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 1 + 60 - + CAST ( + - 29 AS INTEGER ) / - SUM ( ALL - 36 ) - + 21 * + + CAST ( - 82 AS INTEGER ) + + 8 * - CASE WHEN NULL NOT IN ( - 46, + 75 * NULLIF ( - 16, CAST ( NULL AS INTEGER ) ) + + 4 ) THEN NULL ELSE + + 51 END, - 73 col0 - -Expected: ["1375","-73"] but got ["NULL","-73"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + 63 + 78 col2, NULLIF ( CASE + CAST ( NULL AS INTEGER ) WHEN - - 55 + - 45 THEN NULL WHEN CAST ( COALESCE ( - 21, 52, + 95 ) AS INTEGER ) THEN NULL WHEN ( - - 57 ) - + 95 THEN CAST ( NULL AS INTEGER ) * 9 END, - + 66 ) col2 - -Expected: ["141","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,096 failed -* 79% was OK - -Time: 31594.582ms - ----- ---- ---- ---- ---- ---- ---- -### 371/620 [`./test/random/expr/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_110.test) - -_Mimic sqlite_ - -```sql -SELECT - COUNT ( * ) * + COALESCE ( - - 1, 75 ) * ( + CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL 88 / + 17 - -Expected: ["5"] but got ["5.176"] -``` - - -```sql -SELECT - CAST ( + - COALESCE ( - 15, + COUNT ( + + 58 ), - 58 + + ( 60 ) * 56, + SUM ( - 24 ) + - 42 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT + NULLIF ( ( - - 31 ), + + 84 ) / + - COUNT ( ALL CAST ( + 80 AS REAL ) ) + COALESCE ( - 5, - 56 ) - -Wrong conversion type -``` - - -```sql -SELECT ALL 50 AS col1, CASE + COUNT ( - 54 ) WHEN + - 47 THEN NULL WHEN - - 65 / - - 24 - 93 THEN 87 * - 61 WHEN + 77 THEN + 99 WHEN - 21 THEN NULL END AS col1 - -Expected: ["50","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 49 * + CASE WHEN NOT NULL BETWEEN + 62 AND + + 89 * ( - - 65 ) * 31 THEN - + 34 * - 46 / - - MIN ( ALL - 57 ) ELSE - + 81 * + - MIN ( - 90 ) + - 38 * + 98 + - 78 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + + COUNT ( DISTINCT - 76 ) * + CASE WHEN ( NULL ) NOT IN ( 95 ) THEN NULL WHEN NOT + 40 >= + 4 * 29 THEN + COUNT ( * ) - + ( 90 ) * - 46 ELSE NULL END AS col2 - -Expected: ["4141"] but got ["NULL"] -``` - - -```sql -SELECT 96 * CAST ( NULL AS INTEGER ), - COUNT ( * ) / CASE NULLIF ( + 95, - + 77 * + - 38 ) WHEN - 82 / - 26 / + + 17 THEN + 27 - + CAST ( NULL AS INTEGER ) WHEN 79 / + 70 THEN NULL ELSE NULL END * 2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 14 AS col0, + 0 + ( + + 14 ) + - 18 - - CASE - 2 WHEN - - 6 THEN NULL ELSE 47 END + 54 * + 26 * - 34 + + - 91 / + + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["14","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - AVG ( ALL CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) * + - 56 + 39 - -Expected: ["NULL","NULL"] but got ["0","39"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,056 failed -* 79% was OK - -Time: 40909.677ms - ----- ---- ---- ---- ---- ---- ---- -### 372/620 [`./test/random/expr/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_111.test) - -_Mimic sqlite_ - -```sql -SELECT - - 34 * + 25 * + MIN ( + 24 ) + - 42 / + 33 + + 39 * 52 / 44 + + + MIN ( + 2 ) + 29 * 4 - -Expected: ["20563"] but got ["20562.818"] -``` - - -```sql -SELECT 97 * + CASE WHEN NOT + 48 NOT IN ( 82 * CAST ( NULL AS INTEGER ) ) THEN - ( + 84 ) + + 46 * + + 28 WHEN 30 * - 10 IS NOT NULL THEN NULL END * 71 + ( - 92 ) - -Expected: ["NULL"] but got ["8291856"] -``` - - -```sql -SELECT CAST ( - CASE + - COUNT ( * ) WHEN 53 THEN - - MAX ( DISTINCT - + 59 ) * - COUNT ( - + 9 ) * - + 8 - CAST ( + - 6 AS INTEGER ) + - 32 ELSE 98 END AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) / - COALESCE ( 93, - + 30 * - 79 * - + ( - - 96 ) + + MAX ( 60 ), - MIN ( ALL - 28 ) + - NULLIF ( CAST ( NULL AS REAL ), - CASE + 56 WHEN ( + 22 ) * + 50 THEN NULL WHEN COUNT ( * ) THEN + 50 * + CASE - 54 WHEN + COUNT ( * ) + + 33 THEN + 48 WHEN + 40 THEN - 51 WH… - -Wrong conversion type -``` - - -```sql -SELECT - 72 * + 79 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) - 63, CASE + COUNT ( * ) WHEN + 4 THEN - 79 ELSE NULL END AS col1 - -Expected: ["NULL","NULL"] but got ["-63","NULL"] -``` - - -```sql -SELECT CASE WHEN NOT ( 84 ) BETWEEN - 57 + - 87 / - 1 AND + - 83 + - 25 THEN - 58 * + 42 - + 76 + - + 97 ELSE - 52 END + + - ( + - 61 ) * + 75 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 49 / 87, CAST ( NULL AS INTEGER ) + 22 + + - 81 + + CASE + ( 56 ) WHEN 0 + 30 THEN 58 * CAST ( NULL AS REAL ) ELSE NULL END * - 38 AS col2 - -Expected: ["0","NULL"] but got ["0.563","NULL"] -``` - - -```sql -SELECT - - ( + CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - + CAST ( 63 AS INTEGER ) * + - CASE - SUM ( + 1 ) WHEN + - COUNT ( * ) - 0 + - ( ( + COUNT ( + 9 ) ) ) / + SUM ( - 33 ) * + - 71 * - + 62 THEN + + 97 * COUNT ( * ) - + COUNT ( * ) WHEN + + 73 THEN + - 61 * + + 47 + - 72 ELSE NULL END + 57 + + - 55 AS col2 - -Expected: ["6050"] but got ["NULL"] -``` - - -```sql -SELECT + 99 AS col0, CASE - 92 WHEN - 82 THEN 58 END AS col0 - -Expected: ["99","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,043 failed -* 79% was OK - -Time: 36746.786ms - ----- ---- ---- ---- ---- ---- ---- -### 373/620 [`./test/random/expr/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_112.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 21 / + 50 + MAX ( ALL + 72 ) * - 78 + - NULLIF ( + 12, + 38 - + COUNT ( ALL 79 ) ) AS col0 - -Expected: ["-5628"] but got ["-5627.580"] -``` - - -```sql -SELECT ( - ( + - CAST ( NULL AS INTEGER ) ) ) * + 37 AS col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 5 + - 63 + + 83 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT CASE - COUNT ( * ) WHEN + + 13 + - - 83 THEN + + 30 END * - - CAST ( NULL AS REAL ) * + + 1 / 62 * 76 - -Wrong conversion type -``` - - -```sql -SELECT 26 col0, ( + 16 ) + - 57 * + CASE + 7 WHEN + 8 * + 74 * - 86 THEN - CASE + - COUNT ( * ) WHEN + - 40 * - 68 THEN + - 7 + 96 ELSE NULL END * - - 57 END AS col0 - -Expected: ["26","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 24 + - 23 / + CAST ( - SUM ( DISTINCT + - CAST ( + + 32 AS REAL ) ) AS INTEGER ) * - - 47 + - COUNT ( * ) AS col0 - -Expected: ["23"] but got ["NULL"] -``` - - -```sql -SELECT ALL CASE - 30 WHEN CAST ( - 12 AS INTEGER ) * + - 91 THEN - 44 / 28 + + ( - + 84 ) END AS col0, - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), - 38 + + + 6 + + 8 * - 22 * + 98 + + - CAST ( - CASE WHEN ( NULL ) BETWEEN + 71 AND NULL THEN + - 6 * - + 28 + 95 WHEN 26 IN ( + + 5, - 61, - 46, 76, + COUNT ( * ) * - - 91 ) THEN + 72 + + 3 END AS INTEGER ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + + 2 * + 67 * + COUNT ( * ), CAST ( NULL AS INTEGER ) + - + 4 + + CAST ( NULL AS INTEGER ) + 46 AS col2 - -Expected: ["NULL","NULL"] but got ["134","42"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,093 failed -* 79% was OK - -Time: 45000.868ms - ----- ---- ---- ---- ---- ---- ---- -### 374/620 [`./test/random/expr/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_113.test) - -_Mimic sqlite_ - -```sql -SELECT ( + CAST ( NULL AS REAL ) ), + ( - - 9 ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 10 * + 14 / - - CASE - - 27 WHEN + 26 + + 13 THEN NULL ELSE - - 0 + 99 * + 26 END - -Expected: ["0"] but got ["0.054"] -``` - - -```sql -SELECT + + ( - CAST ( NULL AS INTEGER ) ) + + 53 - -Expected: ["NULL"] but got ["53"] -``` - - -```sql -SELECT ALL + 3 * CAST ( + AVG ( DISTINCT 84 ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - - CASE + 88 WHEN + 7 / 22 THEN + - 35 * - MAX ( DISTINCT - CASE + 68 WHEN + + 62 / 57 THEN - 35 * + 62 END ) ELSE NULL END * - ( - - ( - 49 ) ) * 24 + - - 92 AS col2, + COUNT ( * ) / + 38 AS col1 - -Expected: ["NULL","0"] but got ["NULL","0.026"] -``` - - -```sql -SELECT ALL - CASE + CAST ( + CASE 22 WHEN + COUNT ( ALL - 14 ) THEN COUNT ( * ) END AS INTEGER ) WHEN 27 THEN SUM ( - CAST ( 4 AS INTEGER ) ) ELSE 88 + 29 END / CASE WHEN ( 31 / 40 ) < + 12 THEN NULL WHEN NULL NOT BETWEEN 0 * - 91 + - 5 AND COUNT ( * ) THEN MIN ( ALL + 20 ) ELSE AVG ( ALL 63 ) END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + 62 * - - 10 - - ( CAST ( + + ( 96 ) AS INTEGER ) ) + - 47 / + 76 AS col0, + NULLIF ( COUNT ( * ), - + 38 * + - 19 ) / - CAST ( + COUNT ( * ) AS INTEGER ) + - COALESCE ( + 45, - - 76, 36 + - 66 ) - -Expected: ["716","-46"] but got ["715.382","NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col1, CASE - 78 WHEN + + 51 + + 64 + - + ( + - 32 ) THEN - 67 END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * + 43 * + 9 * 24 + + ( 78 ) AS col2, - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0 - -Expected: ["NULL","NULL"] but got ["78","0"] -``` - - -```sql -SELECT ALL 66 col2, 54 * - CASE - - 57 WHEN - 29 THEN NULL WHEN - + 75 THEN 50 - CASE NULLIF ( - + 5, NULLIF ( - 17, 23 ) ) WHEN - 41 THEN NULL WHEN + 81 * + 53 THEN + + NULLIF ( - 15, - + 17 ) * - - 92 END END AS col2 - -Expected: ["66","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,035 failed -* 79% was OK - -Time: 71494.802ms - ----- ---- ---- ---- ---- ---- ---- -### 375/620 [`./test/random/expr/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_114.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - 48 * + 81 - - 56 * 28 - + CAST ( NULL AS INTEGER ), + 94 AS col1 - -Expected: ["NULL","94"] but got ["-2320","94"] -``` - - -```sql -SELECT ALL + ( ( + 87 ) ) AS col1, CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT + 7 / - 92 * - + 38 - -Expected: ["0"] but got ["0.002"] -``` - - -```sql -SELECT DISTINCT COALESCE ( ( - CAST ( - COUNT ( * ) AS INTEGER ) ), + 19, + 85 ) col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT AVG ( - - 39 ) / - CAST ( NULL AS INTEGER ) + 52 + + + COUNT ( * ) * + 61 AS col1, - COUNT ( * ) - - MAX ( + 97 ) + + - 83 / SUM ( + 45 ) - -Expected: ["NULL","95"] but got ["NULL","94.156"] -``` - - -```sql -SELECT ALL - CASE WHEN NOT COALESCE ( 33, 49, - 81, - 10 ) NOT IN ( + 94, - AVG ( DISTINCT 78 ) + - COUNT ( * ) ) THEN NULL ELSE + 12 / - - 20 END * + 63 + - COUNT ( * ) AS col2 - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + 97 AS col2, CASE - + 87 WHEN 11 THEN NULL WHEN + 44 + - 24 THEN 12 ELSE NULL END * + 68 col2 - -Expected: ["97","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - 98 * - 51 * - - 34 * + 64 * - CASE WHEN NULL BETWEEN NULL AND NULL THEN NULL ELSE + 23 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + NULLIF ( + 94, + 5 ) * + CAST ( NULL AS INTEGER ) + - 20 + 56 * - ( + ( - MIN ( DISTINCT 85 ) ) ) * - 40 AS col0 - -Expected: ["NULL","NULL"] but got ["-190420"] -``` - - -```sql -SELECT ALL 48 - + NULLIF ( + COUNT ( DISTINCT - 37 ), COUNT ( * ) ) + 67 - - ( + ( - COUNT ( * ) ) ) col2, MAX ( 21 ) + + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","21"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,088 failed -* 79% was OK - -Time: 38060.428ms - ----- ---- ---- ---- ---- ---- ---- -### 376/620 [`./test/random/expr/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_115.test) - -_Mimic sqlite_ - -```sql -SELECT + 98 / + 45 - -Expected: ["2"] but got ["2.178"] -``` - - -```sql -SELECT + + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) * + 37 + + - CAST ( NULL AS INTEGER ) * + + 71 - CAST ( 85 AS INTEGER ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT + 63 * - 53 - + 61 * COALESCE ( - + CAST ( + + 3 AS INTEGER ), + 63 * - 34 - - - AVG ( + 61 ) + - 58 ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 - -Expected: ["NULL"] but got ["-3339"] -``` - - -```sql -SELECT - 92 / - 91 AS col1, - 59 / - SUM ( - 54 ), - 42 - + 17 * CASE + - 63 WHEN + - 45 THEN NULL WHEN + 71 THEN + 3 END AS col0 - -Expected: ["1","-1","NULL"] but got ["1.011","-1.093","NULL"] -``` - - -```sql -SELECT + 7 + NULLIF ( CAST ( + 92 AS INTEGER ), - 24 * CASE 7 WHEN 77 * ( CASE WHEN NULL BETWEEN + 88 AND ( NULL ) THEN + 49 * + CASE 9 / - 39 WHEN + 45 THEN NULL WHEN 17 THEN 22 + 11 END + 5 ELSE + 73 END ) THEN + NULLIF ( 15, 86 ) END ) AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT CAST ( + MIN ( - + 14 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - 17 * - + CAST ( NULL AS INTEGER ) + + MAX ( - + 52 ) + + 63 * 1 AS col0, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["11","0"] -``` - - -```sql -SELECT - ( - + 7 ) - COUNT ( * ) + SUM ( + - 96 ) + - 49 + + + 42 / CASE COUNT ( * ) + 23 / - 92 WHEN + COUNT ( ALL 91 ) THEN + 90 END - -Expected: ["-139"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 33 + 37 + + ( CASE - - 43 WHEN + ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN - + 48 + - 4 WHEN - COUNT ( * ) THEN SUM ( DISTINCT + NULLIF ( - - 29, + 44 * 96 ) ) ELSE CASE 89 WHEN - 43 THEN + 86 WHEN - CAST ( NULL AS INTEGER ) + + 72 THEN… - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,096 failed -* 79% was OK - -Time: 47317.894ms - ----- ---- ---- ---- ---- ---- ---- -### 377/620 [`./test/random/expr/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_116.test) - -_Mimic sqlite_ - -```sql -SELECT 93 * - CASE COUNT ( CAST ( NULL AS REAL ) ) WHEN - 86 / 50 THEN - COUNT ( * ) WHEN - 18 - - 73 THEN NULL WHEN 17 * 31 + - 49 * 1 THEN NULL WHEN 57 THEN - COUNT ( * ) + 74 ELSE + 35 END - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 79 + CAST ( MIN ( ALL + 2 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL + 60 + + 11 * 72 / + ( - 60 ) AS col2 - -Expected: ["47"] but got ["46.800"] -``` - - -```sql -SELECT - - 16 + + - CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["16"] -``` - - -```sql -SELECT 82 AS col1, - 11 * COUNT ( * ) * CASE 29 WHEN + COUNT ( DISTINCT - - 8 ) THEN - 25 ELSE NULL END col1 - -Expected: ["82","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 14 + - 8 + MIN ( + 18 ) + 53 / CAST ( - 92 / - SUM ( 63 ) AS INTEGER ) - -Expected: ["49"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 0 + - COUNT ( * ) * + CASE WHEN NOT ( + 85 ) BETWEEN ( NULL ) AND ( MAX ( DISTINCT - 50 ) * - 30 + 20 ) THEN NULL ELSE - COALESCE ( CAST ( + 6 AS INTEGER ), - 16 ) / 87 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * + 36, CASE 59 WHEN + 9 THEN + + 65 WHEN - 71 + + 87 THEN NULL END + + CASE + 34 WHEN 78 + - 19 THEN - 17 * + 90 ELSE NULL END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,038 failed -* 79% was OK - -Time: 31461.182ms - ----- ---- ---- ---- ---- ---- ---- -### 378/620 [`./test/random/expr/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_117.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + COUNT ( * ) / - - 9 * - 85 + - 93 + - 71 AS col0 - -Expected: ["-164"] but got ["-164.001"] -``` - - -```sql -SELECT 69 * + NULLIF ( - 21, - - 89 ) + - 41 / - - COUNT ( * ) - MIN ( ALL CAST ( NULL AS INTEGER ) ) - + 2 - -Expected: ["NULL"] but got ["-1492"] -``` - - -```sql -SELECT CASE - + 55 WHEN - 17 - + - CAST ( NULL AS REAL ) * - - 0 * - 39 THEN NULL WHEN ( - 53 ) - + CAST ( NULL AS INTEGER ) THEN + - 62 * 34 ELSE ( + 1 ) END * COALESCE ( - 46 * COUNT ( * ), + COUNT ( DISTINCT 97 ) * - COUNT ( * ), 72 * 83, + 22 * + 83 + 2 ) - -Wrong conversion type -``` - - -```sql -SELECT CAST ( - - COUNT ( DISTINCT + 25 ) AS INTEGER ) AS col1 - -g is not defined -``` - - -```sql -SELECT ALL 76 / - 12 AS col2, - 72 * + - CASE - COUNT ( * ) WHEN + 22 THEN - 12 + COALESCE ( + 79, - 40, + 17 * ( 70 ) + - - 8 - + + COALESCE ( + 86, 13 ) - - 9 * + 27 * + 39 / - + CAST ( + NULLIF ( 1, - NULLIF ( - COUNT ( * ), - 7 * + + 31 + + - 33 ) ) AS INTEGER ) + 93 ) WHEN NULLIF ( - 51, 98 * … - -Expected: ["-6","NULL"] but got ["-6.333","NULL"] -``` - - -```sql -SELECT + 23 / - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT 28 ) * - 5 + - - COUNT ( * ) AS col0, - 39 AS col1 - -Expected: ["NULL","NULL","-39"] but got ["NULL","1","-39"] -``` - - -```sql -SELECT CASE WHEN NULL IS NOT NULL THEN + COUNT ( * ) WHEN NOT + COALESCE ( - 58, + 0, COUNT ( * ) ) BETWEEN - 84 AND COUNT ( * ) THEN + 70 ELSE NULL END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) + - 9 + - 77, + 53 * 58 + 35 AS col1 - -Expected: ["-85","3109"] but got ["NULL","3109"] -``` - - -```sql -SELECT DISTINCT + 76 + - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["76","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,964 failed -* 80% was OK - -Time: 32849.834ms - ----- ---- ---- ---- ---- ---- ---- -### 379/620 [`./test/random/expr/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_118.test) - -_Mimic sqlite_ - -```sql -SELECT - - 85 * - + CAST ( NULL AS INTEGER ) + 47 + + 32 AS col2, 89 AS col0 - -Expected: ["NULL","89"] but got ["79","89"] -``` - - -```sql -SELECT ( - + CAST ( + SUM ( - + 37 ) AS INTEGER ) ) - -g is not defined -``` - - -```sql -SELECT DISTINCT - + 68 / - MAX ( 45 ) - -Expected: ["1"] but got ["1.511"] -``` - - -```sql -SELECT 71 / + 45 AS col1, 88 - - - CASE + 88 WHEN 65 + 55 THEN + - 30 ELSE NULL END + 80 / + + 10 - -Expected: ["1","NULL"] but got ["1.578","NULL"] -``` - - -```sql -SELECT 77 + - NULLIF ( + 4, - - NULLIF ( ( + 45 ), - 81 ) ) + - CASE + 52 WHEN + 96 * - ( + 11 ) * + 36 * + 62 * - CAST ( NULL AS REAL ) - + ( - COUNT ( * ) ) * - 36 + 72 * 70 THEN - 6 ELSE NULL END - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col2, CASE COUNT ( * ) WHEN - - COUNT ( * ) * - 90 + + NULLIF ( - COALESCE ( + - 36, + 84 + - 29 + - - 78 * - 8 * - + 64 * - + 26 ), COALESCE ( - 45, 48 * 96 * + MAX ( ALL 21 ) ) ) + + 33 + - ( 38 + 34 ) THEN 82 * 5 WHEN 63 + 51 * 43 THEN NULL END * 18 + - 16 … - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + 6 * CASE WHEN + 19 NOT BETWEEN NULL AND - 6 THEN NULL ELSE - COUNT ( * ) END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 5 / - 54 - -Expected: ["0"] but got ["-0.093"] -``` - - -```sql -SELECT ALL - COUNT ( * ) / + NULLIF ( + CAST ( ( - COUNT ( * ) ) AS INTEGER ), - ( 56 ) * 94 ) AS col1 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT 27 + CAST ( NULL AS INTEGER ) * + COUNT ( * ), CAST ( - - 75 AS INTEGER ) + 48 * CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["27","75"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,093 failed -* 79% was OK - -Time: 45848.549ms - ----- ---- ---- ---- ---- ---- ---- -### 380/620 [`./test/random/expr/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_119.test) - -_Mimic sqlite_ - -```sql -SELECT + 57 / - - ( - ( + + 5 ) ) AS col2 - -Expected: ["-11"] but got ["-11.400"] -``` - - -```sql -SELECT 62 * 42 + - 66 + + 15 * + + CAST ( NULL AS INTEGER ) * 94 * - + 43 + + 91 * + COUNT ( * ) - -Expected: ["NULL"] but got ["2629"] -``` - - -```sql -SELECT 90 + CASE + + 47 WHEN + 41 THEN + COUNT ( * ) * - - NULLIF ( - 68, + SUM ( + 46 ) * + 29 ) WHEN - - NULLIF ( - COUNT ( DISTINCT - 11 ), - 21 ) THEN NULL END AS col2, + 32 * + 32 * + COUNT ( ALL 48 ) * - 16 + + + ( CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["NULL","-16384"] -``` - - -```sql -SELECT - 4 + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL 21 * CAST ( - + COUNT ( * ) AS INTEGER ) + 64 * 29 - -g is not defined -``` - - -```sql -SELECT ALL + 36 + CASE WHEN NOT + 82 = ( NULL ) THEN NULL ELSE + 86 * + COUNT ( - 7 ) + - 29 END * 67 col1 - -Expected: ["3855"] but got ["NULL"] -``` - - -```sql -SELECT + 74 / + - 52 AS col0, COUNT ( * ) * - 81 + - - 37 + 33 * + - 88 + CASE 46 WHEN - 71 THEN + + 18 END - -Expected: ["-1","NULL"] but got ["-1.423","NULL"] -``` - - -```sql -SELECT ALL 42 - - + 98 + + + 64, + 68 - + + CASE WHEN 89 BETWEEN - 80 + 5 AND 21 THEN 74 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + - 74 + 9 AS col0, CASE - 77 WHEN + - 95 THEN NULL WHEN 82 + + + 62 THEN - 13 - - COALESCE ( - 6, + 64 / - CASE + - 66 WHEN 9 + - CAST ( NULL AS INTEGER ) + - 50 * 82 THEN NULL ELSE 62 END, 92 ) END AS col0 - -Expected: ["-65","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 8,938 tests as _sqlite_ - -* 1,838 failed -* 79% was OK - -Time: 32394.964ms - ----- ---- ---- ---- ---- ---- ---- -### 381/620 [`./test/random/expr/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_12.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 80 * - COALESCE ( + - 45, - - COUNT ( * ) + + 62 + - MAX ( - + 32 ) * + 63 + + 55 ), + 37 / - 46 * + - MAX ( ALL - 32 ) * 83 AS col0 - -Expected: ["3600","0"] but got ["3600","-0.000"] -``` - - -```sql -SELECT ALL 72 * - + 52 + - 45 AS col2, CASE + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS REAL ) + 38 THEN - - 42 + - 28 WHEN - 62 * + 41 - - + 24 THEN + CAST ( - - 36 AS INTEGER ) WHEN - 64 * 56 + - MAX ( + 65 ) THEN - SUM ( 80 ) / 24 * COUNT ( * ) + + - 71 + + CASE - - COUNT ( * … - -Wrong conversion type -``` - - -```sql -SELECT + MAX ( DISTINCT - + 82 ) - - 80 - + CAST ( NULL AS INTEGER ), + 78 * - - 86 AS col1 - -Expected: ["NULL","6708"] but got ["-2","6708"] -``` - - -```sql -SELECT + + 74 / - CAST ( + ( + + MIN ( + 96 ) ) AS INTEGER ), 46 AS col0 - -g is not defined -``` - - -```sql -SELECT - - 96 * 11 * + CASE WHEN NOT + 84 NOT BETWEEN 27 / 0 AND COALESCE ( + 61, + AVG ( 81 ) / + 39 + COUNT ( * ) ) THEN - 69 WHEN NULL > ( - 15 ) THEN NULL ELSE NULL END AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 71 - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["-71","0"] -``` - - -```sql -SELECT NULLIF ( 8, 57 ) AS col0, + ( - 79 ) * 88 / - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["8","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL + + 33 * - + MAX ( DISTINCT - 89 ) * CASE + 99 WHEN - 93 THEN + 83 ELSE NULL END + - 11 AS col1, 35 - -Expected: ["NULL","35"] but got ["35","NULL"] -``` - - -```sql -SELECT - CASE - + 61 WHEN - + 3 * - 72 THEN NULL WHEN + 89 THEN + 82 ELSE + 88 END / - COALESCE ( + CAST ( NULL AS INTEGER ), + 63, + 81 ) + MAX ( 27 ) + + - 28 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT CASE + 67 WHEN - 70 * + 89 * + - 73 THEN - 87 END, 8 * + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,133 failed -* 78% was OK - -Time: 31875.794ms - ----- ---- ---- ---- ---- ---- ---- -### 382/620 [`./test/random/expr/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_13.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - ( - + 37 ) AS col1, - CAST ( NULL AS INTEGER ) - -Expected: ["37","NULL"] but got ["37","0"] -``` - - -```sql -SELECT ( + - 6 ) / + - 66 - + - COUNT ( * ) * + 17 - -Expected: ["17"] but got ["17.091"] -``` - - -```sql -SELECT ALL + COUNT ( * ) * + + 25 + 37 + + 81 / 68, CASE + - COUNT ( * ) WHEN - + 26 THEN NULL WHEN + - 56 / 13 + ( 54 ) + 72 + 31 - + - COUNT ( * ) * - 67 * + 0 + - 67 - - 76 * 76 * - 36 THEN - 20 + - + ( + 42 ) - + 67 END col0 - -Expected: ["63","NULL"] but got ["63.191","NULL"] -``` - - -```sql -SELECT + 59 + + + 4 + - + 95 + - + 98 AS col0, 77 + - + CASE WHEN - NULLIF ( + - 74, 92 ) BETWEEN 31 * + 52 * - + 84 + - 50 + - COUNT ( * ) AND - 76 * + 40 - ( + 34 ) THEN - 36 ELSE NULL END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 57 / + + CAST ( NULL AS INTEGER ) / + COALESCE ( - + COUNT ( * ), + + 46 + - CAST ( 57 AS REAL ) ) + + MIN ( - 70 ) AS col1, 79 + + 39 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT ALL - + 39 * - + 30 AS col1, CASE - 9 WHEN + 78 THEN + 39 WHEN - + 68 * ( + - 80 ) THEN + 32 + - - 84 ELSE NULL END col1 - -Expected: ["1170","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT CASE 75 WHEN - - 41 THEN 43 END AS col1, COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) / 87 - -Expected: ["NULL","NULL"] but got ["NULL","1"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - 22 + + 73 AS col0, + 17 + + + MIN ( + - CAST ( NULL AS INTEGER ) ) + + + 10 + + 88 * + 79 AS col2 - -Expected: ["NULL","NULL"] but got ["51","6979"] -``` - - -```sql -SELECT + COUNT ( * ) * + CASE WHEN NOT - COALESCE ( + 30, + ( + 65 ) + - COUNT ( * ) / + 0 + - + 45, + COUNT ( * ) / 80 ) < NULL THEN - 1 WHEN ( NULL ) NOT IN ( 71 ) THEN NULL ELSE - COUNT ( * ) - 85 END + - COUNT ( * ) / CAST ( 76 * COUNT ( * ) - 10 AS INTEGER ) - -Expected: ["-86"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,659 failed -* 83% was OK - -Time: 28421.809ms - ----- ---- ---- ---- ---- ---- ---- -### 383/620 [`./test/random/expr/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_14.test) - -_Mimic sqlite_ - -```sql -SELECT + 4 / SUM ( ALL - 26 ) - -Expected: ["0"] but got ["-0.154"] -``` - - -```sql -SELECT DISTINCT 67 + + 50 + + 0 - CAST ( NULL AS INTEGER ) * COUNT ( * ) - -Expected: ["NULL"] but got ["117"] -``` - - -```sql -SELECT + 71 * - 48 + CAST ( NULL AS REAL ) * + + ( - + COUNT ( * ) ) - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + 54, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL - 74 - + + CAST ( - COUNT ( + 82 ) AS INTEGER ) * - + 80, + ( - + 21 ) AS col2 - -g is not defined -``` - - -```sql -SELECT ALL COALESCE ( + 62, - NULLIF ( + 38, - COALESCE ( - 15, 92 + 11 + - 40, + ( + - CASE + 4 WHEN + 28 / - - COUNT ( * ) * CASE - 94 WHEN - 98 THEN NULL ELSE - 54 END + + 68 * + COUNT ( * ) THEN NULL WHEN CASE - 76 WHEN 91 THEN + 72 END THEN ( 17 ) * + 96 WHEN + 57 THEN NULL END ) * 90 ) + 20 *… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 36 / - 75 col0, - 39 + - - 7 / - 70 * - + CAST ( NULL AS INTEGER ) - -Expected: ["0","NULL"] but got ["-0.480","NULL"] -``` - - -```sql -SELECT - MIN ( DISTINCT 99 ) / - - CAST ( NULL AS INTEGER ) - - + 86 * - MIN ( ALL ( - CAST ( + 93 AS INTEGER ) ) ), 0 * + + 98 + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL - NULLIF ( COALESCE ( + + CAST ( NULL AS INTEGER ), + 20 ), 0 ) AS col1 - -Expected: ["-20"] but got ["NULL"] -``` - - -```sql -SELECT + - 71 AS col2, - 53 / + CAST ( NULL AS INTEGER ) * + + 74 AS col2 - -Expected: ["-71","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,130 failed -* 78% was OK - -Time: 37073.928ms - ----- ---- ---- ---- ---- ---- ---- -### 384/620 [`./test/random/expr/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_15.test) - -_Mimic sqlite_ - -```sql -SELECT - - COUNT ( * ) col0, + 43 AS col0 - -Expected: ["1","43"] but got ["43"] -``` - - -```sql -SELECT COUNT ( * ) + + - AVG ( DISTINCT + - 86 ) * - - 22 + CAST ( NULL AS INTEGER ) - - 86 - -Expected: ["NULL"] but got ["1979"] -``` - - -```sql -SELECT ALL - CASE + CAST ( - - 97 AS INTEGER ) WHEN + 25 * - + CASE - MAX ( DISTINCT + 73 ) WHEN CAST ( 78 AS REAL ) / 10 * - 57 THEN 60 WHEN ( - 27 ) THEN NULL WHEN COUNT ( ( 42 ) ) - - CASE 17 WHEN + 19 * + 31 + 45 THEN - 18 * 44 WHEN COUNT ( * ) * COALESCE ( - 50, 90 ) THEN + 39 ELSE NULL END TH… - -Wrong conversion type -``` - - -```sql -SELECT - CASE WHEN NOT ( NOT + 61 NOT BETWEEN + 95 * + 46 AND - 46 * - - 50 + + - 85 ) THEN - 0 END + - NULLIF ( + - 47, 61 ) + + - 33 * + 48 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 22 * CAST ( + COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT COALESCE ( 83, - 86 + 21 - + + 82 * - 17 ) - + CASE 15 WHEN 46 THEN + COUNT ( * ) * + + 90 + + 74 END + - 20 + + 91 * - 42, + 77 + - MAX ( - ( - + 5 ) ) + - 24 / ( + 57 ) AS col2 - -Expected: ["NULL","72"] but got ["NULL","71.579"] -``` - - -```sql -SELECT 62 / CAST ( + - COUNT ( * ) AS INTEGER ) * - ( + 77 ) + - 7 * COALESCE ( NULLIF ( 11, - 3 * - 53 + + 66 * + COUNT ( * ) ), ( 62 ), 69 ) - -Expected: ["4697"] but got ["NULL"] -``` - - -```sql -SELECT ALL + COALESCE ( + + 74, 36, + 97 ) + - 58 - + 59 + ( - CAST ( NULL AS INTEGER ) ) / - + 69 AS col1, - CASE - NULLIF ( + COALESCE ( - 45, + 48, + ( ( 54 ) ) ), - 71 ) WHEN COUNT ( * ) THEN - 75 WHEN + 70 THEN NULL ELSE NULL END * - 8 - -Expected: ["NULL","NULL"] but got ["-43","NULL"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) * NULLIF ( - 86, - NULLIF ( - 90, + - COUNT ( + 16 ) + COUNT ( * ) * + + 63 * + 30 ) ) AS col1, CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + 38 * + 66 + - ( 97 ) col2, ( + - 1 ) * + CASE - ( ( - 44 ) ) WHEN + 35 + 23 THEN NULL WHEN + 59 / 5 + 93 THEN - 23 END - - 59 AS col2 - -Expected: ["2411","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,139 failed -* 78% was OK - -Time: 27550.392ms - ----- ---- ---- ---- ---- ---- ---- -### 385/620 [`./test/random/expr/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_16.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 9 / - 58 AS col1 - -Expected: ["0"] but got ["-0.155"] -``` - - -```sql -SELECT - 65 + - CAST ( NULL AS INTEGER ) * - 37 / - - 81 - -Expected: ["NULL"] but got ["-65"] -``` - - -```sql -SELECT ALL + CAST ( - - SUM ( + 86 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + CASE 99 WHEN NULLIF ( CAST ( + - 56 AS INTEGER ), + CAST ( 50 AS REAL ) - 91 + + - COALESCE ( - 9, - - 61 / + CAST ( + COUNT ( * ) AS INTEGER ) ) - - 15 ) / + ( + - 70 ) + + - 50 + - COALESCE ( + 68, 87 ) - 39 * - + ( - 71 ) + COUNT ( DISTINCT - 64 ) THEN CAST ( NULL AS INTEGER ) WHEN - + … - -Wrong conversion type -``` - - -```sql -SELECT ALL MIN ( DISTINCT 76 ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, - CAST ( NULL AS INTEGER ) + - 15 AS col2 - -Expected: ["NULL","NULL"] but got ["-15"] -``` - - -```sql -SELECT + - 11 / + 9 AS col1, - CASE + COUNT ( + 73 ) WHEN + + SUM ( + 18 ) * - 21 THEN - 41 END - -Expected: ["-1","NULL"] but got ["-1.222","NULL"] -``` - - -```sql -SELECT - 20 * + 99 - - CASE WHEN + COALESCE ( - 65, - 99, - AVG ( ALL NULLIF ( + + 50, + 42 * + 88 ) ) + - 28 ) BETWEEN - 51 AND ( NULL ) THEN NULL WHEN NOT ( NOT ( NULL < NULL ) ) THEN - 3 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT COUNT ( * ) + - - NULLIF ( + ( + 57 ), 57 + - MAX ( ALL + 96 + + 2 ) * CAST ( NULL AS INTEGER ) ) + + ( - 40 + - 96 * + 59 ) - -Expected: ["-5646"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 81 - - + CASE 21 WHEN 29 THEN + COUNT ( * ) WHEN COUNT ( * ) * - 12 + + 55 THEN NULL ELSE NULL END + + 70 AS col1, - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT 51 AS col0, CASE 87 WHEN - + 70 THEN 78 WHEN - - 15 THEN NULL END AS col0 - -Expected: ["51","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,077 failed -* 79% was OK - -Time: 40467.732ms - ----- ---- ---- ---- ---- ---- ---- -### 386/620 [`./test/random/expr/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_17.test) - -_Mimic sqlite_ - -```sql -SELECT + 91 / 32 / + 15 + CAST ( - - CAST ( + + ( + - 90 ) AS INTEGER ) AS INTEGER ) - -Expected: ["-90"] but got ["-89.810"] -``` - - -```sql -SELECT + 34 / - CAST ( NULL AS REAL ) col1 - -Wrong conversion type -``` - - -```sql -SELECT + + 64 * CAST ( NULL AS INTEGER ) + 87 AS col1 - -Expected: ["NULL"] but got ["87"] -``` - - -```sql -SELECT ALL + 16 - + 93 + - ( + CAST ( NULL AS INTEGER ) ) * 76 + + 62 + + 28 / - 97 * COUNT ( - 3 ) / - + AVG ( + - 45 ) - 77 * - 99 + 96 AS col2, + 37 * + - COALESCE ( NULLIF ( + 26, + 36 ), + 17, + 92 + 29 ), + 3 - ( - 64 ) + CAST ( NULL AS INTEGER ) - 28 + + COUNT ( * ) * + 77 AS col0 - -Expected: ["NULL","-962","NULL"] but got ["7691.010","-962","116"] -``` - - -```sql -SELECT ALL - 67 * CAST ( - CASE + 52 WHEN ( COUNT ( ALL 17 ) ) * COUNT ( * ) THEN + 23 - - 88 ELSE NULL END AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT + COUNT ( * ) AS col0, - COUNT ( * ) * - 88 - + 13 - + COUNT ( * ) + - COUNT ( * ) + 33 / CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 67 * + - 21 * - + COUNT ( * ) / + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 - -Expected: ["-1407"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 14 - + NULLIF ( - CASE WHEN NULL BETWEEN ( NULL ) AND ( + COUNT ( * ) ) THEN NULL ELSE + COALESCE ( + + 41, + - COUNT ( * ) + 99 ) - - - 10 END, + NULLIF ( - - 66, - 73 + + - ( + + CASE - COUNT ( * ) WHEN 26 / 78 - - 45 * 74 THEN 31 * 80 END ) ) * 20 ) + + COUNT ( * ) * + 21 * - 57 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 23 AS col0, + ( - 45 ) * 74 + 90 - + CAST ( 98 AS INTEGER ) + 55 col1, + 52 * - CASE 52 WHEN 86 THEN - COALESCE ( + 45, 48 ) END AS col0 - -Expected: ["23","-3283","NULL"] but got ["NULL","-3283","NULL"] -``` - - -```sql -SELECT + 55 / - 43 - + ( + + 57 ) * + 40 / - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,095 failed -* 79% was OK - -Time: 50255.115ms - ----- ---- ---- ---- ---- ---- ---- -### 387/620 [`./test/random/expr/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_18.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 55 * 70 / 95 AS col1 - -Expected: ["40"] but got ["40.526"] -``` - - -```sql -SELECT + 34 * 92 + + COUNT ( * ) * - 80 col0, - 1 * + - CAST ( NULL AS INTEGER ) - -Expected: ["3048","NULL"] but got ["3048","0"] -``` - - -```sql -SELECT 47 + + CAST ( + 69 - - AVG ( + 51 ) * 14 AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT - 96 * + - CASE - COUNT ( * ) WHEN - 71 * 35 THEN NULL WHEN COUNT ( * ) - - CAST ( NULL AS REAL ) / 86 THEN - 79 - - 73 ELSE 95 END - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CASE WHEN NOT 4 NOT BETWEEN - CASE + 23 WHEN - + CASE + 63 WHEN 13 THEN - + COUNT ( * ) * + COUNT ( ALL - 82 ) + - + 91 ELSE CASE + 97 WHEN ( + - SUM ( ALL - 37 ) ) + + NULLIF ( - 20, 42 - ( ( 79 ) ) * 9 ) * 21 THEN NULL ELSE - 74 - 41 END / + 21 END THEN - COUNT ( * ) ELSE 13 END A… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 27 AS col2, CASE 33 WHEN + 43 THEN NULL WHEN - ( - 21 ) THEN + 7 END * + - NULLIF ( - ( - ( + + COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), - - ( 66 ) ) ) ), 44 + + COALESCE ( + 95, 17 + - 76 ) * - 90 ) * - COUNT ( * ) - 83 * 68 - + CASE - + COUNT ( - ( 86 ) ) WHEN + + COALESCE ( 75, … - -Expected: ["-27","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + 61 * - CAST ( NULL AS INTEGER ) AS col1, CASE - COUNT ( * ) WHEN - 61 + 28 THEN NULL WHEN + COUNT ( * ) * - + 25 * + 85 THEN - + 4 ELSE NULL END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) * + 56 + + 64 * 93 AS col2 - -Expected: ["NULL","NULL"] but got ["0","5952"] -``` - - -```sql -SELECT ALL + 77 AS col0, CASE + 52 WHEN 60 THEN + - CAST ( NULL AS INTEGER ) * ( - 86 ) END AS col0 - -Expected: ["77","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT COUNT ( ALL + 84 ) * 66 / + + CAST ( - MAX ( ALL ( + - ( 55 ) ) ) AS INTEGER ) + 30 - -Expected: ["31"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,118 failed -* 78% was OK - -Time: 29543.055ms - ----- ---- ---- ---- ---- ---- ---- -### 388/620 [`./test/random/expr/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_19.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( + + COUNT ( * ) AS INTEGER ) - + COUNT ( * ) + - 39 * + 90 * - 52 - -Expected: ["182520"] but got ["182519"] -``` - - -```sql -SELECT ALL + 48 - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL"] but got ["48"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) * - - COUNT ( * ) * + 94 - -Wrong conversion type -``` - - -```sql -SELECT - 7 + - 15 * + 34 + + NULLIF ( - + CAST ( + ( + ( COUNT ( * ) ) ) AS INTEGER ), - 44 + COALESCE ( + 70, ( - 10 ) ) + 52 ) - -g is not defined -``` - - -```sql -SELECT 41 + - - 73 - 11 + - 47 + CASE WHEN + + 30 IS NOT NULL AND NOT + CAST ( + 33 AS INTEGER ) / 32 * + 57 - COUNT ( * ) >= CASE + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) WHEN - - COALESCE ( - 46, + + MIN ( - 61 ) * - 54, + 96 ) + 67 + SUM ( DISTINCT - 74 ) + - ( 1 ) THEN NULL WHEN - - 96 T… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT CASE WHEN NOT COUNT ( DISTINCT 31 ) IS NOT NULL THEN + 73 * + COALESCE ( CASE + 21 WHEN 5 THEN 63 ELSE NULL END, - COUNT ( * ) ) WHEN NOT NULL <= NULL THEN NULL ELSE + 36 * - ( ( - 44 ) ) + + 83 END * + COUNT ( * ) AS col1 - -Expected: ["1667"] but got ["NULL"] -``` - - -```sql -SELECT + 34 - - 13 + - MAX ( ALL 3 ) * - - 45 * + CAST ( NULL AS INTEGER ) * + 57 * - SUM ( - 73 ), - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["47","0"] -``` - - -```sql -SELECT DISTINCT MIN ( - 25 ) / - ( - + 86 ) + + 82 AS col2, - CASE - 0 WHEN - - CASE - 24 WHEN + 84 * - 41 THEN NULL ELSE COUNT ( + 23 ) END THEN - COUNT ( * ) * 49 * - 50 + + 93 WHEN - 72 * 10 THEN NULL ELSE NULL END + + 51 - -Expected: ["82","NULL"] but got ["81.709","NULL"] -``` - - -```sql -SELECT ALL + - 65 AS col1, CASE 21 WHEN - + 58 THEN - 42 * 9 WHEN + 24 THEN - - 39 END AS col1 - -Expected: ["-65","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - - 77 + - CASE + COUNT ( * ) WHEN + 90 THEN NULL WHEN CAST ( + 80 AS INTEGER ) THEN - - 41 END col1, CAST ( NULL AS INTEGER ) + + + 28 - -Expected: ["NULL","NULL"] but got ["NULL","28"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,089 failed -* 79% was OK - -Time: 27684.884ms - ----- ---- ---- ---- ---- ---- ---- -### 389/620 [`./test/random/expr/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT + 62 / + SUM ( - 80 ) * + + 23 + + 38 + CAST ( + 31 AS INTEGER ) * + COUNT ( DISTINCT - 54 ) * + ( + 88 + - CAST ( 95 - COUNT ( * ) * 18 AS INTEGER ) ) - -Expected: ["379"] but got ["2765.966"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), - 9 AS col0 - -Expected: ["NULL","-9"] but got ["0","-9"] -``` - - -```sql -SELECT - ( - CAST ( + - SUM ( DISTINCT - - 53 ) AS INTEGER ) ) - -g is not defined -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT + CASE + COUNT ( * ) WHEN + COALESCE ( + MAX ( DISTINCT - 17 ), 72 - + - 86 + + ( - CASE WHEN ( + CASE - 8 WHEN - 7 THEN NULL WHEN - 70 * + 18 THEN NULL ELSE 82 * + ( - - MIN ( + 47 ) ) + - SUM ( DISTINCT 97 ) END ) BETWEEN - 13 * + 57 AND - COUNT ( * ) * - 74 THEN 89 WHEN NOT - 12 >= NULL T… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 76 / + ( - - 64 ), - ( - COUNT ( * ) ) + + CASE - 49 WHEN - 8 THEN + + ( + COALESCE ( - 57, + 78, + 48 ) ) * + - CAST ( 44 AS INTEGER ) + - + 5 END col1 - -Expected: ["-1","NULL"] but got ["-1.188","NULL"] -``` - - -```sql -SELECT DISTINCT CASE WHEN NOT COUNT ( * ) IN ( + 75 ) THEN ( 79 ) WHEN + 9 IS NOT NULL THEN NULL END - -Expected: ["79"] but got ["NULL"] -``` - - -```sql -SELECT + + 14 * 93 + + CAST ( NULL AS INTEGER ) * + 60 col0, CASE - 49 WHEN + NULLIF ( + - 64, ( + 20 ) ) * + 13 / COUNT ( * ) THEN 85 / - - COUNT ( DISTINCT - 96 ) + - 38 ELSE NULL END - -Expected: ["NULL","NULL"] but got ["1302","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","-15"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,481 failed -* 85% was OK - -Time: 25019.594ms - ----- ---- ---- ---- ---- ---- ---- -### 390/620 [`./test/random/expr/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_20.test) - -_Mimic sqlite_ - -```sql -SELECT - CAST ( NULL AS INTEGER ) + + + COALESCE ( + 95, + MAX ( ALL + 16 ) ) * - COUNT ( * ) - + NULLIF ( 25, - COALESCE ( + - 75, + 50 ) + - 93 ) * + + ( + 11 ) * + 70, + 39 * 94 col1 - -Expected: ["NULL","3666"] but got ["-19345","3666"] -``` - - -```sql -SELECT DISTINCT NULLIF ( + - COUNT ( * ), - + 40 * + 58 * + + 37 ) / MAX ( DISTINCT 31 ) - - 48 + - 37 - + 15 * 56 - -Expected: ["-829"] but got ["-829.032"] -``` - - -```sql -SELECT DISTINCT - CASE - CASE - CASE 58 WHEN - 68 * - 93 + + COALESCE ( + 44, + + 43 ) * + + ( 74 ) * + 97 + 67 - 73 + + 64 + - 66 * + 97 * - ( + - 70 ) - + ( ( - NULLIF ( + 10, 29 ) ) ) * - 68 THEN NULL WHEN - 52 THEN NULL WHEN + AVG ( DISTINCT + 84 ) THEN COUNT ( 47 ) END WHEN 2 * + 81 THEN 38 + … - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( COALESCE ( - ( + + 86 ), + 25 + - AVG ( + 39 ), - - 16 / COUNT ( * ) ) AS INTEGER ) * 92 col0 - -g is not defined -``` - - -```sql -SELECT 48 * + 8 AS col1, + 95 + + + 99 * + 1 + - CASE + CAST ( NULL AS INTEGER ) WHEN - 58 THEN NULL WHEN + - 53 THEN NULL ELSE 71 * - 11 - 12 * - 81 / + 29 + - 27 + 89 + - + CAST ( - COUNT ( * ) AS INTEGER ) + + + 86 + COUNT ( - + 35 ) END + + CASE - + ( + SUM ( 45 ) ) WHEN - - CASE + 70 WHEN + 22… - -Expected: ["384","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + CASE SUM ( + CASE - 65 WHEN - 8 THEN + 98 WHEN 56 THEN NULL ELSE NULL END ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 20 * + CAST ( - + 19 AS INTEGER ) + - COUNT ( * ) + + COUNT ( * ) END + + 22 / - COALESCE ( - 33, MAX ( DISTINCT + 16 ), - + 14 ) AS col2, COUNT ( ALL - ( + + 76 ) ) A… - -Expected: ["-380","1"] but got ["NULL","1"] -``` - - -```sql -SELECT DISTINCT 31 - + CAST ( NULL AS INTEGER ), - 93 * - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["31","0"] -``` - - -```sql -SELECT ALL - CASE WHEN NULL NOT BETWEEN + 32 AND - 99 THEN - 47 ELSE + 25 END * 54 + 69 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + - CASE + 5 WHEN - - 47 * - + 92 THEN - 70 / + 66 + COUNT ( * ) END AS col2, 23 / + + 79 - + 24 + + CAST ( + 71 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 72 * MIN ( DISTINCT + 10 + - 79 ) - -Expected: ["NULL","NULL"] but got ["NULL","47.291"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,096 failed -* 79% was OK - -Time: 36470.689ms - ----- ---- ---- ---- ---- ---- ---- -### 391/620 [`./test/random/expr/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_21.test) - -_Mimic sqlite_ - -```sql -SELECT + CASE 68 WHEN - 34 * - - COUNT ( DISTINCT + - 96 ) THEN MIN ( ALL - ( ( - 14 ) ) ) ELSE + - COUNT ( * ) + - 89 * - + CAST ( NULL AS INTEGER ) * + + 20 END * + 87 / 5 / + 43 + - + 57 * 61 * 64 - -Expected: ["NULL"] but got ["-222528.405"] -``` - - -```sql -SELECT - MIN ( - 0 ) + - + ( + - 82 ) - - COUNT ( * ) / + 57 - -Expected: ["82"] but got ["82.018"] -``` - - -```sql -SELECT - MIN ( ALL + NULLIF ( - CAST ( + + 54 AS INTEGER ), + + 10 - - CAST ( NULL AS REAL ) ) ) + + + CASE + COUNT ( * ) WHEN 71 - + 37 * - 87 THEN NULL WHEN NULLIF ( + - 32, - 29 / + 90 * + 62 * + + 50 * ( + + 69 ) + + - 44 / + 87 * + CASE + 9 WHEN 12 * 99 + 15 - 0 THEN + 24 * + SUM ( 4 ) END ) T… - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( COUNT ( * ) AS REAL ) + - + 92 + - 50 - + + COALESCE ( 74, 24 ) * + CAST ( NULL AS REAL ) * + 85 AS col2 - -g is not defined -``` - - -```sql -SELECT + 60 * - CASE + 96 WHEN + SUM ( ALL + + 14 ) THEN - 33 / - 19 END, 67 * 54 * + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - - MIN ( ALL 9 ), - SUM ( DISTINCT CASE 93 WHEN 89 THEN - 84 * - 39 ELSE NULL END ) * - 7 AS col2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + COUNT ( * ) / - - COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), - 17 + + + 22 ) * + + 42 * + + 48 - 20 - + COUNT ( * ) AS col2 - -Expected: ["-21"] but got ["NULL"] -``` - - -```sql -SELECT ALL - CASE WHEN 86 BETWEEN - - AVG ( ALL - 94 ) - - 0 AND ( + + 20 * - - 22 / - 11 + 31 * - AVG ( - 46 ) + + 8 + CAST ( NULL AS INTEGER ) ) THEN - 43 * 92 END AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + CASE + 56 WHEN - + 4 THEN - COUNT ( * ) * + - 22 * + 9 + + CAST ( NULL AS INTEGER ) ELSE NULL END * + 71 AS col0, 97 - -Expected: ["NULL","97"] but got ["97","NULL"] -``` - - -```sql -SELECT DISTINCT + 75 AS col0, 85 / - + CASE + + 91 WHEN 50 / 26 THEN - 11 ELSE NULL END * + 80 col0 - -Expected: ["75","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,097 failed -* 79% was OK - -Time: 27798.936ms - ----- ---- ---- ---- ---- ---- ---- -### 392/620 [`./test/random/expr/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_22.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - - SUM ( 80 ) / - + 13 + CAST ( + COALESCE ( + 90, ( - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) ) AS INTEGER ) - -Expected: ["84"] but got ["83.846"] -``` - - -```sql -SELECT DISTINCT - 63 * - + CAST ( NULL AS INTEGER ) * - 99 AS col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 23 + + 33 * + CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT 54 * 98 / CASE WHEN + 72 NOT BETWEEN ( + 77 ) AND - 98 THEN + COUNT ( * ) ELSE NULL END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - - 94 - CAST ( - COUNT ( * ) AS INTEGER ) + - 61 - -g is not defined -``` - - -```sql -SELECT - 19 AS col0, - CASE + COUNT ( * ) WHEN - 92 THEN + 12 END AS col0 - -Expected: ["-19","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + SUM ( ALL + 25 ) + - 94 + + ( - 4 ) / + + CAST ( AVG ( - 89 ) AS INTEGER ) + - - COUNT ( * ) / + 80 + + 50 * + 27 - -Expected: ["1281"] but got ["NULL"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + + ( 72 ) / 16 AS col1, + CASE + 59 WHEN - - 24 THEN - CAST ( 8 AS INTEGER ) WHEN + + 72 + + + COUNT ( * ) THEN + 13 WHEN 37 * + 37 + - COUNT ( * ) * + 24 + 60 + - - MIN ( ALL + 77 ) THEN NULL ELSE NULL END col2 - -Expected: ["NULL","NULL"] but got ["4.500","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,025 failed -* 79% was OK - -Time: 65518.659ms - ----- ---- ---- ---- ---- ---- ---- -### 393/620 [`./test/random/expr/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_23.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - - CAST ( NULL AS REAL ) + + 96 - -Wrong conversion type -``` - - -```sql -SELECT - + 35 / - + 59 + + 31 - -Expected: ["31"] but got ["31.593"] -``` - - -```sql -SELECT ALL + 9 col2, CASE COUNT ( * ) WHEN + 16 THEN - 53 + + 65 WHEN + 10 THEN NULL ELSE MAX ( DISTINCT - ( + CASE WHEN NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND - COALESCE ( ( 22 ), 8 ) THEN + 10 + - 79 * 91 ELSE NULL END ) ) END * - 24 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT CASE + 55 WHEN - 4 THEN 97 * - 7 + - NULLIF ( - 30, + 32 ) WHEN 38 THEN 28 * 85 + - 98 * + MIN ( 59 ) ELSE + ( + CAST ( NULL AS INTEGER ) ) END col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL CAST ( + AVG ( ALL + - 2 ) AS INTEGER ) / + 44 + 12 - -g is not defined -``` - - -```sql -SELECT DISTINCT + 16 + 47 + + - 54 + - 40 + + + 78 / + SUM ( ALL - - 31 ) * - CAST ( - COUNT ( * ) AS INTEGER ) + - CAST ( - NULLIF ( 66, 42 ) AS INTEGER ) - -Expected: ["37"] but got ["NULL"] -``` - - -```sql -SELECT - - 45 + - - 94 + + 60 AS col1, CASE + 59 WHEN + + COUNT ( * ) / + 98 + + + 9 * - 52 THEN 35 END / 94 AS col1 - -Expected: ["199","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) * 84 * COUNT ( * ) * + 5 AS col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT 49 / + 2 AS col0 - -Expected: ["24"] but got ["24.500"] -``` - - -```sql -SELECT ALL - - COUNT ( * ) * - ( + CAST ( - - 11 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) - - 73 + 91 * - COUNT ( * ) * 26 * + COUNT ( * ), 67 / + + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["-2304","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,067 failed -* 79% was OK - -Time: 44626.997ms - ----- ---- ---- ---- ---- ---- ---- -### 394/620 [`./test/random/expr/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_24.test) - -_Mimic sqlite_ - -```sql -SELECT + + 6 / - + 77 - -Expected: ["0"] but got ["-0.078"] -``` - - -```sql -SELECT + - CAST ( NULL AS REAL ) + - + 6 + - + 69 + - 68 - -Wrong conversion type -``` - - -```sql -SELECT 30 + + + 45 * - 96 + - CAST ( - - 27 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL"] but got ["-4317"] -``` - - -```sql -SELECT CAST ( SUM ( + 87 ) AS INTEGER ) + 13 col2 - -g is not defined -``` - - -```sql -SELECT 44 AS col1, - CASE + 45 WHEN - - 27 * - 25 * - 91 THEN COALESCE ( + 19, + 5, + - 46 + - 63 ) WHEN + COUNT ( DISTINCT + 34 ) * AVG ( ALL 96 ) THEN + COUNT ( * ) WHEN 67 / + SUM ( ALL - 65 ) THEN + 2 + COUNT ( * ) * 56 END AS col1 - -Expected: ["44","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 29 / - - COALESCE ( + CAST ( NULL AS INTEGER ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20 - -Expected: ["20"] but got ["NULL"] -``` - - -```sql -SELECT + + CASE - - 77 WHEN 27 THEN - + 41 WHEN 74 * 16 THEN NULL ELSE NULL END, - MIN ( + - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + 63 AS col1, + CASE 54 WHEN + 8 + - 38 THEN + + 25 * + + 46 + + 30 + + 12 ELSE NULL END AS col1 - -Expected: ["63","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - COALESCE ( - CASE 36 WHEN - 17 THEN - COUNT ( * ) END, + COUNT ( * ) / - 12 ) * 71 - -Expected: ["0"] but got ["5.917"] -``` - - -```sql -SELECT + + 13 / - - COUNT ( * ), + CASE WHEN NOT + ( 39 ) BETWEEN 86 + SUM ( ALL 1 ) * + 57 + + 57 - - + 26 AND + + 95 THEN - CASE WHEN 3 < 28 THEN + + ( + 78 ) END ELSE NULL END / - - ( + SUM ( DISTINCT 73 ) ) - - 66 - + + MIN ( ALL 61 ) + - + ( - COUNT ( * ) ) * 43 * - 78 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 48 / 49 * - CAST ( NULL AS INTEGER ) * - 14 * + 21, ( CAST ( NULL AS INTEGER ) ) AS col2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL 49 / 47 * 46 - -Expected: ["46"] but got ["47.957"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,860 failed -* 81% was OK - -Time: 31952.510ms - ----- ---- ---- ---- ---- ---- ---- -### 395/620 [`./test/random/expr/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_25.test) - -_Mimic sqlite_ - -```sql -SELECT + 13 + + 12 / - 23 - -Expected: ["13"] but got ["12.478"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - - 9 AS col1, ( 44 ) AS col1 - -Expected: ["NULL","44"] but got ["44","44"] -``` - - -```sql -SELECT - 43 * + 32 + - - CAST ( NULL AS REAL ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 - -Expected: ["67","63"] but got ["67","NULL"] -``` - - -```sql -SELECT CASE 7 WHEN 79 / - COUNT ( * ) + - - COUNT ( 91 ) + + + 95 + - 41 + - CASE - MIN ( DISTINCT + 90 ) WHEN - 14 + + 81 * 50 THEN 87 WHEN + + 96 THEN + + 13 WHEN - - 34 THEN NULL ELSE - - SUM ( DISTINCT 91 ) / ( - - 64 ) END * - + 7 THEN - 98 - - - CAST ( NULL AS INTEGER ) ELSE NULL END + 67 AS … - -Expected: ["NULL","21"] but got ["21","NULL"] -``` - - -```sql -SELECT DISTINCT + NULLIF ( - 97, + COUNT ( * ) * - 42 + + ( 36 ) + - COALESCE ( + 36, + - 1 ) + - 65 + - 13 * + - 31 * + + CAST ( NULL AS INTEGER ) ), CASE WHEN + 69 BETWEEN + + 58 * + NULLIF ( - + ( - - 71 ), - 40 ) * + + 81 * - 21 + + 89 - + 53 + + 2 AND NULL THEN - COUNT ( * ) END * COUNT ( * ) … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + + CAST ( - CASE - MAX ( - CAST ( + 66 AS INTEGER ) ) WHEN + 7 THEN NULL WHEN 14 THEN NULL WHEN + + 30 THEN - 35 - 70 * + 20 ELSE NULL END AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL 74 + + 51 - - - CAST ( NULL AS INTEGER ) * - 9, - ( - - CAST ( NULL AS INTEGER ) ) AS col1 - -Expected: ["NULL","NULL"] but got ["125","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,872 failed -* 81% was OK - -Time: 50877.087ms - ----- ---- ---- ---- ---- ---- ---- -### 396/620 [`./test/random/expr/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_26.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - 82 + + 56 / - + 27 AS col2 - -Expected: ["-84"] but got ["-84.074"] -``` - - -```sql -SELECT ALL CAST ( + CASE - 46 WHEN - + 95 THEN 90 * - - 2 + - - 99 - - - 40 ELSE NULL END AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) col1 - -g is not defined -``` - - -```sql -SELECT + - CASE WHEN NOT ( + AVG ( ALL + 41 ) BETWEEN + 49 + 6 + + 32 AND + 57 / - 19 ) THEN NULL ELSE - 4 * - - 63 / - + 62 END + - ( + - 3 ) - + 63 * + + 64 * + COUNT ( * ) + - 2 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 47 - - ( COUNT ( * ) ) + - COUNT ( * ) * + - COUNT ( * ) + + NULLIF ( 74, + - 49 + - COUNT ( * ) + - + CAST ( - 17 AS REAL ) ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT 17 / - - COALESCE ( CAST ( NULL AS INTEGER ), + 48 * 7 + - 37 ) + - 16 AS col1 - -Expected: ["-16"] but got ["NULL"] -``` - - -```sql -SELECT ALL - CASE - ( - COALESCE ( + - 90, + CAST ( - 79 AS INTEGER ) ) ) WHEN 59 THEN NULL WHEN + 17 THEN - 42 ELSE NULL END * + 30 + - - COUNT ( * ) - - COUNT ( ALL + 7 ) + + 51 AS col2, 83 - -Expected: ["NULL","83"] but got ["83","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2 - -Expected: ["NULL","NULL"] but got ["-389416","-389416"] -``` - - -```sql -SELECT 64 + + CASE 84 WHEN + MIN ( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 AS col0, CASE 58 WHEN - 67 + + 84 + + 0 * - 78 THEN + 12 * - ( + - 90 ) END / 91 + + 59 AS col0 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,876 failed -* 81% was OK - -Time: 47303.686ms - ----- ---- ---- ---- ---- ---- ---- -### 397/620 [`./test/random/expr/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_27.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 13 AS col1, 10 / 84 - -Expected: ["13","0"] but got ["13","0.119"] -``` - - -```sql -SELECT ALL - MIN ( DISTINCT - 19 ) + + SUM ( DISTINCT 93 ) + + 48 + + + SUM ( DISTINCT + + 89 ) + + + CAST ( NULL AS INTEGER ) * - - CAST ( - COUNT ( * ) AS INTEGER ) * + - 97 * COUNT ( * ) - -Expected: ["NULL"] but got ["249"] -``` - - -```sql -SELECT - 23 + + + 19 + - - ( - ( - CASE + - 62 WHEN COALESCE ( + 22, + CASE 42 WHEN + + 62 * - - CAST ( NULL AS REAL ) - - 11 * - - ( + 78 ) THEN - COALESCE ( - 94, - 27 ) END ) THEN - + 43 * COUNT ( * ) * 85 - 54 WHEN - 30 THEN NULL ELSE NULL END ) ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT - + 57 + - COUNT ( * ) + + 8 * - 46 col1, + 61 * + 79 + + CASE 36 WHEN 1 THEN NULL WHEN 97 THEN - - 26 END AS col1 - -Expected: ["-426","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 99 / - 49 * + - CAST ( COUNT ( * ) AS INTEGER ) + - 29 + - 90 / - - 45 + - NULLIF ( + 31, - 98 * - 28 ) + - + 13 * - 41 * - 2 * + + COUNT ( * ) AS col2, - 8 * - 44 * - + CAST ( - + 17 AS INTEGER ) * + - COALESCE ( + 0, + 81 ) - -Expected: ["-1130","0"] but got ["NULL","0"] -``` - - -```sql -SELECT CASE WHEN COUNT ( * ) BETWEEN - - ( + + 93 ) AND + - NULLIF ( + 36, + 80 ) * + 5 THEN - 31 ELSE NULL END, 84 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL CAST ( - - CASE + 81 WHEN - 91 THEN + 37 END AS INTEGER ), + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - 80 + - CASE - CASE + COUNT ( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL 24 + + CASE COUNT ( * ) WHEN + 11 THEN NULL ELSE - 21 END + - 55 + + 92 - - + ( + CAST ( NULL AS INTEGER ) ) / + + 51 * + + CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2 - -Expected: ["-46","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,857 failed -* 81% was OK - -Time: 36012.160ms - ----- ---- ---- ---- ---- ---- ---- -### 398/620 [`./test/random/expr/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_28.test) - -_Mimic sqlite_ - -```sql -SELECT 27 + + COUNT ( * ) - + + 90 + + - 39 - 33 * CAST ( + + SUM ( - 31 ) AS INTEGER ) - -Expected: ["922"] but got ["-101"] -``` - - -```sql -SELECT ALL 51 + CAST ( NULL AS INTEGER ) + - NULLIF ( 53, - ( COUNT ( * ) ) - - 89 ), 61 AS col0 - -Expected: ["NULL","61"] but got ["-2","61"] -``` - - -```sql -SELECT + MIN ( - 15 ) * + MAX ( ALL - 90 ) * + - 64 - - 10 * + + ( + CASE + 84 WHEN - 7 + 58 - + - CAST ( + 7 AS REAL ) THEN - 27 ELSE NULL END ) - -Wrong conversion type -``` - - -```sql -SELECT + NULLIF ( + 7, CAST ( COUNT ( * ) AS INTEGER ) * 70 ) - -g is not defined -``` - - -```sql -SELECT - NULLIF ( + SUM ( ALL + CAST ( NULL AS INTEGER ) ), - 62 / 16 + CAST ( ( - - NULLIF ( - 73, 50 + + - 55 + + 4 ) ) AS INTEGER ) - - - 91 ), CASE - COALESCE ( + 71, - 47, + 19 ) WHEN + - 22 / + - 11 THEN + CASE - - 54 WHEN + 83 THEN - 11 * + 80 ELSE 64 / - - 95 + 7 * NULLIF ( + 63 + CASE + ( … - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - CASE WHEN 53 BETWEEN + 50 / 27 AND - 1 THEN + + ( - - COUNT ( * ) ) + + 26 + - + 65 + + ( - 59 ) + 41 * 48 + + + 42 END / - + COUNT ( * ), 0 * 35 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + - 38 + - COUNT ( * ) / - 82 AS col0, CASE + MIN ( DISTINCT - 97 ) WHEN + MIN ( ALL - 17 ) THEN 84 WHEN 28 THEN NULL ELSE NULL END - -Expected: ["-38","NULL"] but got ["-37.988","NULL"] -``` - - -```sql -SELECT - CASE COUNT ( * ) WHEN + 46 / + 30 THEN + + 13 END AS col1 - -Expected: ["-13"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 64 col2, 95 - - - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","95"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - MAX ( ALL 92 ) + 84 AS col2 - -Expected: ["NULL"] but got ["84"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,924 failed -* 80% was OK - -Time: 56563.626ms - ----- ---- ---- ---- ---- ---- ---- -### 399/620 [`./test/random/expr/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_29.test) - -_Mimic sqlite_ - -```sql -SELECT 47 / - 94 - -Expected: ["0"] but got ["-0.500"] -``` - - -```sql -SELECT 80 * - 17 + 24 + AVG ( DISTINCT - + 20 ) * - 65 * - CAST ( NULL AS INTEGER ) + COALESCE ( COUNT ( * ), + 54 ) AS col0 - -Expected: ["NULL"] but got ["-1335"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS REAL ) * + + ( - + 0 ) * + 14 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( COALESCE ( + SUM ( ALL 94 ), 5 ) AS INTEGER ) * 83 col2 - -g is not defined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + - 22 + + 73 AS col0, + 17 + + + MIN ( + - CAST ( NULL AS INTEGER ) ) + + + 10 + + 88 * + 79 AS col2 - -Expected: ["NULL","NULL"] but got ["51","6979"] -``` - - -```sql -SELECT - CASE + + 75 WHEN - 80 THEN + + 30 + - + 21 * + 37 END, + CAST ( NULL AS INTEGER ) + - 34 AS col1 - -Expected: ["NULL","NULL"] but got ["NULL","-34"] -``` - - -```sql -SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col2, 29 * + CASE - 1 WHEN 97 THEN NULL WHEN 39 + + MAX ( DISTINCT - 88 ) * 19 * CASE - - 41 WHEN - 23 THEN NULL ELSE + + 40 END + COUNT ( * ) THEN + 29 - - 66 * + COUNT ( * ) END AS col1 - -Expected: ["-1","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - NULLIF ( + 55, - - ( 84 ) + + - 29 * - 66 ) * - 40 col1, - CASE + 84 WHEN 45 THEN + + 78 + - 11 + + 15 * - 99 / + - 72 WHEN 29 * + 64 THEN 52 END AS col1 - -Expected: ["2200","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ( + - CASE WHEN NULL BETWEEN NULL AND 93 THEN - CAST ( 90 AS INTEGER ) END ) AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + COUNT ( * ) * + CASE WHEN NOT - COALESCE ( + 30, + ( + 65 ) + - COUNT ( * ) / + 0 + - + 45, + COUNT ( * ) / 80 ) < NULL THEN - 1 WHEN ( NULL ) NOT IN ( 71 ) THEN NULL ELSE - COUNT ( * ) - 85 END + - COUNT ( * ) / CAST ( 76 * COUNT ( * ) - 10 AS INTEGER ) - -Expected: ["-86"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,476 failed -* 85% was OK - -Time: 46717.575ms - ----- ---- ---- ---- ---- ---- ---- -### 400/620 [`./test/random/expr/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT 0 AS col2, 27 AS col2 - -Expected: ["0","27"] but got ["27","27"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * 60 AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT - - COUNT ( * ), 43 + CAST ( NULL AS REAL ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT + 29 * - NULLIF ( + 80, + CAST ( + NULLIF ( + - 4, - + COUNT ( * ) ) AS INTEGER ) * - 44 * - ( COALESCE ( 0, + 36 * 1 ) ) ) AS col1 - -g is not defined -``` - - -```sql -SELECT 30 / COALESCE ( - COALESCE ( + + CAST ( NULL AS INTEGER ), 86 + + 46 ), - - 46 ) - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT 6 * - 8 * CASE - MAX ( ALL - + 82 ) WHEN + COUNT ( * ) THEN + CASE WHEN NOT COUNT ( * ) BETWEEN 77 AND ( ( + COUNT ( - 48 ) ) ) THEN NULL WHEN NULL IS NULL THEN NULL ELSE - 98 END * 3 WHEN + 75 * COUNT ( * ) THEN NULL END * 62 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 24 - - - CASE - + 7 WHEN - COUNT ( * ) THEN + SUM ( DISTINCT 34 ) WHEN + + 14 THEN + 3 / + 91 END col2, 1 * - CAST ( NULL AS INTEGER ) / - + 66, 61 col1 - -Expected: ["NULL","NULL","61"] but got ["NULL","0","61"] -``` - - -```sql -SELECT - + 55 / + - 69, + 81 * 68 + + - ( CASE + 72 WHEN - 90 * + 85 + - COALESCE ( 84, - + ( + COUNT ( * ) ) + 60, + 25 / 41 ) THEN + - 72 * 22 - - 36 - - + 93 WHEN 15 THEN - 38 END ) * 22 AS col0 - -Expected: ["0","NULL"] but got ["0.797","NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ), ( + CAST ( NULL AS INTEGER ) ) + + 79, - - 10 AS col1 - -Expected: ["NULL","NULL","10"] but got ["0","79","10"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,064 failed -* 79% was OK - -Time: 39012.282ms - ----- ---- ---- ---- ---- ---- ---- -### 401/620 [`./test/random/expr/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_30.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 14 - + 61 * + + 94 + 93 + 87 / - 26 - -Expected: ["-5630"] but got ["-5630.346"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - - 97, - 28 - + - 62 + + COUNT ( * ) AS col0 - -Expected: ["NULL","35"] but got ["0","35"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) + 82 AS col1 - -Wrong conversion type -``` - - -```sql -SELECT + + CAST ( - 51 AS INTEGER ) * - CAST ( - SUM ( + 27 ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT + COUNT ( * ) AS col2, - 72 * - 78 * - - 44 + COUNT ( * ) - CASE - 46 WHEN - 50 THEN NULL WHEN CAST ( ( + 20 ) AS INTEGER ) * - + COUNT ( * ) * 75 + + 2 THEN - 26 ELSE NULL END col2 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + - 38 + AVG ( ALL + 92 ) + - 64 + - COUNT ( * ) - - COALESCE ( + - 40, - - 22 ) * CAST ( NULL AS INTEGER ) + - 78 * 1 * - 89 * 56, - 56 * + ( CAST ( NULL AS INTEGER ) ) * + 13 * + COUNT ( * ) * + - 67 AS col2 - -Expected: ["NULL","NULL"] but got ["388741","0"] -``` - - -```sql -SELECT ALL 16 + 55 * - 78 + - - CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - ( 90 ) + - COUNT ( * ) + COUNT ( DISTINCT + 84 ), 59 * - CASE - COUNT ( * ) WHEN + 80 + COALESCE ( + 15, + COALESCE ( - + COUNT ( * ), 6 ) + 58 * + COUNT ( * ) * - 77 * 0 * + 46, - 29 ) * - - ( + AVG ( DISTINCT 4 ) ) * - C… - -Expected: ["NULL","NULL"] but got ["-4363","NULL"] -``` - - -```sql -SELECT - 29 / - - COALESCE ( + CAST ( NULL AS INTEGER ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20 - -Expected: ["20"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 63 AS col1, + CASE 54 WHEN + 8 + - 38 THEN + + 25 * + + 46 + + 30 + + 12 ELSE NULL END AS col1 - -Expected: ["63","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + + 13 / - - COUNT ( * ), + CASE WHEN NOT + ( 39 ) BETWEEN 86 + SUM ( ALL 1 ) * + 57 + + 57 - - + 26 AND + + 95 THEN - CASE WHEN 3 < 28 THEN + + ( + 78 ) END ELSE NULL END / - - ( + SUM ( DISTINCT 73 ) ) - - 66 - + + MIN ( ALL 61 ) + - + ( - COUNT ( * ) ) * 43 * - 78 AS col0 - -Cannot read property 'toString' of undefined -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,765 failed -* 82% was OK - -Time: 37327.706ms - ----- ---- ---- ---- ---- ---- ---- -### 402/620 [`./test/random/expr/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_31.test) - -_Mimic sqlite_ - -```sql -SELECT 20 / - - 96 + + + COUNT ( * ) AS col1 - -Expected: ["1"] but got ["1.208"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT - MIN ( - 37 ) / - 21 / CAST ( NULL AS INTEGER ) - - - 77 + 17 + 57 + + + 22 * ( - - 79 ) AS col1 - -Expected: ["NULL"] but got ["1735"] -``` - - -```sql -SELECT ALL - 45 + - CAST ( - + COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL + CASE WHEN NOT NULL BETWEEN NULL AND 28 THEN 77 ELSE NULL END * + 55 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 65 AS col1, CASE 33 WHEN - + 16 * + + 88 + + 9 * - 98 THEN CASE 37 WHEN 53 / COUNT ( * ) THEN 75 WHEN - ( COALESCE ( 30, - COUNT ( * ) * + 94 - 38 ) ) THEN + 40 END WHEN 52 THEN - 46 WHEN - 56 THEN NULL WHEN + 50 THEN NULL ELSE NULL END + 88 col1 - -Expected: ["-65","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 - -Expected: ["67","63"] but got ["67","NULL"] -``` - - -```sql -SELECT ALL 74 + + 51 - - - CAST ( NULL AS INTEGER ) * - 9, - ( - - CAST ( NULL AS INTEGER ) ) AS col1 - -Expected: ["NULL","NULL"] but got ["125","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,808 failed -* 81% was OK - -Time: 85991.384ms - ----- ---- ---- ---- ---- ---- ---- -### 403/620 [`./test/random/expr/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_32.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * - 36 - -Expected: ["NULL"] but got ["36"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / - 87 - -Expected: ["0"] but got ["-0.011"] -``` - - -```sql -SELECT CAST ( NULL AS REAL ) + - ( + ( + 89 ) ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL + CAST ( MAX ( + 20 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + ( + - ( - CAST ( NULL AS INTEGER ) ) ) AS col2, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - CASE WHEN NOT ( NULL ) NOT BETWEEN NULL AND + 44 THEN 5 END - -Cannot read property 'toString' of undefined -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,469 failed -* 85% was OK - -Time: 56826.603ms - ----- ---- ---- ---- ---- ---- ---- -### 404/620 [`./test/random/expr/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_33.test) - -_Mimic sqlite_ - -```sql -SELECT 17 + 76 / - COALESCE ( 21, COUNT ( * ) ) - -Expected: ["14"] but got ["13.381"] -``` - - -```sql -SELECT DISTINCT + 53 + + CAST ( NULL AS INTEGER ) * - 23 AS col0 - -Expected: ["NULL"] but got ["53"] -``` - - -```sql -SELECT + ( CASE + 53 WHEN + - 78 THEN + + 17 END ) / + CAST ( SUM ( - - ( - + CAST ( + - 67 AS INTEGER ) ) ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - 29 / + CASE + + CAST ( + 12 AS REAL ) WHEN + 86 THEN + 42 + - + 23 END * COALESCE ( COUNT ( * ), COUNT ( * ) ) + + 78 AS col1, 17 AS col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL 39 * ( - - 70 ) + + CASE WHEN NOT ( 64 ) BETWEEN + + 96 AND ( 75 ) THEN NULL ELSE - 86 END + 9 * - ( + 17 + 10 ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + 99 / + COALESCE ( - CAST ( NULL AS INTEGER ), - 9 + + + MIN ( DISTINCT + 21 ), - + COUNT ( * ) - COALESCE ( + COALESCE ( - - 19, - COUNT ( * ) ), + 68 ) * + 88 * + 89 ) - -Expected: ["8"] but got ["NULL"] -``` - - -```sql -SELECT ALL - CASE - ( - COALESCE ( + - 90, + CAST ( - 79 AS INTEGER ) ) ) WHEN 59 THEN NULL WHEN + 17 THEN - 42 ELSE NULL END * + 30 + - - COUNT ( * ) - - COUNT ( ALL + 7 ) + + 51 AS col2, 83 - -Expected: ["NULL","83"] but got ["83","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2 - -Expected: ["NULL","NULL"] but got ["-389416","-389416"] -``` - - -```sql -SELECT 64 + + CASE 84 WHEN + MIN ( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 AS col0, CASE 58 WHEN - 67 + + 84 + + 0 * - 78 THEN + 12 * - ( + - 90 ) END / 91 + + 59 AS col0 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,852 failed -* 81% was OK - -Time: 106064.231ms - ----- ---- ---- ---- ---- ---- ---- -### 405/620 [`./test/random/expr/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_34.test) - -_Mimic sqlite_ - -```sql -SELECT - + 30 + + - 62 / + 32 AS col1 - -Expected: ["-31"] but got ["-31.938"] -``` - - -```sql -SELECT + - 33 * + CAST ( NULL AS REAL ) * + 0 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT 60 * MAX ( ALL 2 ) + - SUM ( - - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL"] but got ["120"] -``` - - -```sql -SELECT ALL CAST ( - - COUNT ( DISTINCT + ( + + 50 ) ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT 99 * + 50 * 8 * + - 29 * - 75 AS col1, 55 / CASE + 29 WHEN - 41 THEN 70 + COUNT ( * ) WHEN 48 + - 39 THEN NULL END AS col1 - -Expected: ["86130000","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL 71 + COUNT ( * ) * + - 10 / MAX ( ALL 56 ) * + CASE + CAST ( + COUNT ( * ) AS INTEGER ) WHEN COUNT ( * ) THEN + 67 * + 42 ELSE NULL END - -Expected: ["71"] but got ["NULL"] -``` - - -```sql -SELECT - CASE WHEN NOT 93 BETWEEN NULL AND ( NULL ) THEN - 48 + 93 END / 66 + 32 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 50 * + CAST ( NULL AS INTEGER ) + - 9 AS col1, + CASE WHEN NOT 18 IS NOT NULL THEN NULL ELSE - - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) END AS col1 - -Expected: ["NULL","NULL"] but got ["0"] -``` - - -```sql -SELECT + 33 + - CAST ( NULL AS INTEGER ), CASE + - 97 WHEN 82 / + 30 THEN - 39 - + 17 + - - 95 + + 0 * - ( + 63 ) END + + + 99 - -Expected: ["NULL","NULL"] but got ["33","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,969 failed -* 80% was OK - -Time: 152457.934ms - ----- ---- ---- ---- ---- ---- ---- -### 406/620 [`./test/random/expr/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_35.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - COALESCE ( - - 65, - 54, - 92 ) / - 6 AS col0 - -Expected: ["10"] but got ["10.833"] -``` - - -```sql -SELECT - CASE + ( 59 ) WHEN - 63 THEN NULL ELSE + + 30 * 54 * 99 * - - 28 - NULLIF ( ( + - 22 ), + 38 ) + - CAST ( NULL AS INTEGER ) + + - 12 + + + COALESCE ( - 22, - + 34 ) * 77 + + COUNT ( * ) END - -Expected: ["NULL"] but got ["-4488957"] -``` - - -```sql -SELECT ALL 1 + - CAST ( + NULLIF ( COUNT ( * ), 98 ) AS INTEGER ) col1 - -g is not defined -``` - - -```sql -SELECT 92 / + CASE + 21 WHEN NULLIF ( - + COUNT ( * ), + 24 / - 19 + + CAST ( NULL AS INTEGER ) + - 75 / COUNT ( * ) ) THEN 78 - 77 - + + 91 + + 39 / 44 WHEN + 90 THEN + + MIN ( DISTINCT + 65 ) END AS col0, CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT + 41 * 79 * + + 79 col2, - CASE - NULLIF ( + - 59, + 93 ) WHEN + + 95 + - COALESCE ( + 41, + 74 + 66 ) THEN - 8 + 55 END col2 - -Expected: ["255881","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - - 6 AS col2, CASE - 38 WHEN - COUNT ( * ) THEN - 14 END * + 67 + - + 93 - -Expected: ["NULL","NULL"] but got ["6","NULL"] -``` - - -```sql -SELECT + - 41 AS col1, + 62 + + CASE - + MAX ( ALL 0 ) WHEN + 34 THEN - + 51 * + COUNT ( * ) / 48 END * + 61 + 94 + 71 + 27 AS col1 - -Expected: ["-41","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + CASE WHEN NOT + 17 BETWEEN - 51 + + 65 * 83 AND + 17 * NULLIF ( CASE 92 WHEN + 45 * 46 + + 71 THEN 2 WHEN 12 * + 26 THEN NULL ELSE NULL END, - 33 * 23 + ( + NULLIF ( + CASE + NULLIF ( 25, ( + 76 ) ) WHEN - 19 THEN - 49 ELSE - MIN ( + 0 ) + + 38 END, + 79 * 81 + + ( 54 + 56 ) ) + + 62 * 49 … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 60 * + + 59 + COUNT ( * ) + 84 / + CAST ( - SUM ( ALL - + 7 ) AS INTEGER ) AS col0 - -Expected: ["3553"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,902 failed -* 81% was OK - -Time: 101202.854ms - ----- ---- ---- ---- ---- ---- ---- -### 407/620 [`./test/random/expr/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_36.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 19 - + + 82 / + NULLIF ( - - 4, - COUNT ( * ) ) - -Expected: ["-1"] but got ["-1.500"] -``` - - -```sql -SELECT - 89 * + - COUNT ( * ) AS col2, COUNT ( * ) * + - CAST ( NULL AS INTEGER ) - -Expected: ["89","NULL"] but got ["89","0"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL - + 97 AS col2, 48 * - CASE + + 60 WHEN + COUNT ( 93 ) * + 51 * AVG ( 79 ) * + + 6 THEN - + 40 - - - 44 END, - 71 * + CAST ( NULL AS INTEGER ) + - 19 - -Expected: ["-97","NULL","NULL"] but got ["-97","NULL","-19"] -``` - - -```sql -SELECT - CASE WHEN NOT NULL BETWEEN NULL AND 84 THEN + ( - ( 30 ) ) END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT CAST ( + AVG ( - ( - 82 ) ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT - CASE - 66 WHEN 88 * + CASE + 2 WHEN + + 43 THEN NULL ELSE + 87 - + 67 END * + COALESCE ( + 67, + COALESCE ( - + 51, + - ( + CAST ( NULL AS INTEGER ) ), + MIN ( 94 ) ) ) + 75 / CASE - + 46 WHEN - 35 THEN + 0 - - 30 WHEN - 80 THEN NULL ELSE NULL END + 28 + + 82 * 56 + - 50 THEN - 50 * + 32 W… - -Expected: ["NULL","-76"] but got ["NULL","-76.005"] -``` - - -```sql -SELECT 41 * + 69 + - + 35 * 5 AS col0, - 93 / - + COALESCE ( + + CAST ( NULL AS INTEGER ), - COUNT ( * ) * + 59 ) - - 54 AS col1 - -Expected: ["2654","53"] but got ["2654","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,929 failed -* 80% was OK - -Time: 50615.720ms - ----- ---- ---- ---- ---- ---- ---- -### 408/620 [`./test/random/expr/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_37.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * + 46, 77 col2 - -Expected: ["NULL","77"] but got ["0","77"] -``` - - -```sql -SELECT DISTINCT CAST ( - - NULLIF ( 60, + AVG ( DISTINCT 81 ) ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT - ( ( CASE + 29 WHEN + + 91 THEN NULL ELSE - 13 / + 72 + 83 + + 38 END ) ) - -Expected: ["-121"] but got ["-120.819"] -``` - - -```sql -SELECT ALL + 21 - 17 * + 13 * - + 86 * - 60 * - CAST ( NULL AS REAL ) - - - 80 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - 11, CASE + 26 WHEN - 29 * + + ( + 25 ) + 64 - - 13 * 19 + + COUNT ( * ) THEN 58 ELSE NULL END * - - 65 - - 44 + + + 28 + + + AVG ( - - 97 ) - -Expected: ["NULL","NULL"] but got ["-11","NULL"] -``` - - -```sql -SELECT + NULLIF ( + + NULLIF ( + ( + MAX ( DISTINCT - 0 ) ), + ( CAST ( NULL AS INTEGER ) ) * - - 69 ), ( + 54 ) + - COUNT ( * ) ) - - 88, COALESCE ( - + 65, - + 56 + ( + 55 ) / + + CAST ( + + COALESCE ( 8, COUNT ( * ) - + + 25 ) AS INTEGER ) * 5 + + - 42, 28 + 97 ) + + COUNT ( * ) AS col1 - -Expected: ["88","-64"] but got ["NULL","-64"] -``` - - -```sql -SELECT ALL 37 + - CASE WHEN NOT ( COALESCE ( - 89, 88 ) - + 26 ) BETWEEN 83 AND NULL THEN 99 * - 73 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 37 AS col2, 50 / + CASE 9 WHEN 29 THEN + 78 ELSE NULL END col2 - -Expected: ["37","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL 75 / ( + MAX ( - + 2 ) ) * + 55 * 53 AS col0, 56 * + CAST ( NULL AS INTEGER ) * + + CASE + + ( 76 ) WHEN + 94 THEN + COUNT ( * ) + NULLIF ( 22, COUNT ( * ) ) WHEN + COUNT ( 33 ) THEN NULL END / - 6 - -Expected: ["-107855","NULL"] but got ["-109312.500","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,954 failed -* 80% was OK - -Time: 54182.313ms - ----- ---- ---- ---- ---- ---- ---- -### 409/620 [`./test/random/expr/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_38.test) - -_Mimic sqlite_ - -```sql -SELECT - 90 + + ( + 55 ) / + 13 - -Expected: ["-86"] but got ["-85.769"] -``` - - -```sql -SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) - -Expected: ["NULL"] but got ["-1"] -``` - - -```sql -SELECT - CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE - CAST ( + + NULLIF ( + + COUNT ( * ), - 78 * 48 + 99 ) AS INTEGER ) END AS col1 - -g is not defined -``` - - -```sql -SELECT DISTINCT - CASE WHEN 48 IN ( - 60, 50, + COALESCE ( 46, - 91 + + 11 ) * - ( + 48 ) ) THEN NULL WHEN NOT COUNT ( 74 ) * 99 BETWEEN ( + 2 ) AND ( - 16 * + 47 ) THEN COUNT ( * ) END * 26 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + ( + + SUM ( DISTINCT - CAST ( NULL AS REAL ) ) ) - -Wrong conversion type -``` - - -```sql -SELECT CASE - - 7 WHEN - + 83 THEN - 63 * - - 37 ELSE NULL END * - + 19 * 99 * 40 + + COUNT ( * ), + 34 + - - NULLIF ( - COALESCE ( CAST ( NULL AS INTEGER ), + 85 * 87, - COALESCE ( 71, + COUNT ( * ) ) ), - 56 ) + - 14 * COUNT ( * ) AS col2 - -Expected: ["NULL","-7375"] but got ["NULL","20"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), 45 + ( - + 92 ) * + + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["0","45"] -``` - - -```sql -SELECT - 87 / - CAST ( + MAX ( DISTINCT + 14 ) AS INTEGER ) + - SUM ( DISTINCT - - 52 ) + + 37 col2 - -Expected: ["-9"] but got ["NULL"] -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, CASE - 99 WHEN 4 THEN + 91 + + COUNT ( * ) + - ( - + 95 ) * + 61 END AS col2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 93 AS col1, CAST ( NULL AS INTEGER ) - 64 + - 60 * - 95 * - 76 * 91 * CASE - + 71 WHEN - 14 * - CAST ( NULL AS INTEGER ) - + 79 THEN + - 15 END AS col1 - -Expected: ["93","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,990 failed -* 80% was OK - -Time: 39461.902ms - ----- ---- ---- ---- ---- ---- ---- -### 410/620 [`./test/random/expr/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_39.test) - -_Mimic sqlite_ - -```sql -SELECT - SUM ( ALL - + 63 ) / - AVG ( ALL - 37 ) - CAST ( NULL AS REAL ) * - + 93 / + + 78 * - 73 - - 6 * - 69 + + - 77 * + - 62 col2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + 8 / SUM ( ALL + 69 ) * + COUNT ( * ) * 89 - - 76 - - + COUNT ( - ( - + 20 ) ) * - - MAX ( ALL 24 ) * + COUNT ( * ) AS col2 - -Expected: ["100"] but got ["110.319"] -``` - - -```sql -SELECT ALL NULLIF ( - - CAST ( NULL AS INTEGER ), + 11 ) * - CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL 59 AS col2, - ( CASE + SUM ( ALL + + 13 ) WHEN + + COUNT ( * ) / + 3 THEN - 47 * 36 * - 70 * AVG ( ALL ( - 61 ) ) * 77 WHEN + 33 + + CAST ( NULL AS INTEGER ) + - 87 + - COUNT ( * ) * - - 86 THEN NULL END ) + 78 * CASE 2 WHEN 84 THEN - CAST ( + 34 AS INTEGER ) * + 81 END * COUNT ( * ) AS … - -Expected: ["59","NULL"] but got ["NULL"] -``` - - -```sql -SELECT CASE WHEN - 35 BETWEEN ( + - 7 * - - 35 + 53 + - ( COUNT ( * ) ) * 44 * + 47 ) AND ( NULL ) THEN - 43 WHEN NOT ( + 81 ) NOT IN ( ( + 19 ) ) THEN NULL END + - 96 * - 14 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - ( + CAST ( + - AVG ( ALL - 12 ) AS INTEGER ) ) AS col0 - -g is not defined -``` - - -```sql -SELECT - 81 / + 25 + CASE 93 WHEN 97 * - 64 * + 59 THEN + - 40 * - 18 WHEN + 90 THEN NULL ELSE NULL END * + 10 * + 50, 30 - + MIN ( + CAST ( NULL AS INTEGER ) ) + + 43 * - CAST ( NULL AS INTEGER ) * + - 45 / - 4 + - 91 * - - 25 AS col0 - -Expected: ["NULL","NULL"] but got ["NULL","-2245"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) / - + 52, - CAST ( NULL AS INTEGER ) * + 85 * - + 39 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,993 failed -* 80% was OK - -Time: 74188.066ms - ----- ---- ---- ---- ---- ---- ---- -### 411/620 [`./test/random/expr/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT + ( - ( - 91 ) ) / - 94 * + - 88 AS col1 - -Expected: ["0"] but got ["0.011"] -``` - - -```sql -SELECT + - 87 / - - 47 + + 6 + - CAST ( + COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + + 43 + - CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL"] but got ["43"] -``` - - -```sql -SELECT DISTINCT COALESCE ( + 51, + COUNT ( * ) / CASE WHEN NOT NULL NOT IN ( 95, 16, - CASE - 72 WHEN - 83 THEN - 70 * + + CAST ( NULL AS REAL ) / + + 81 WHEN CAST ( + COUNT ( * ) AS REAL ) THEN + - 13 ELSE NULL END * + 74 * + COUNT ( * ) ) THEN 69 END + 27 ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT - CASE WHEN NOT + CASE + AVG ( ALL + + 26 ) WHEN ( + 47 ) + CAST ( + 26 AS INTEGER ) - - COUNT ( * ) * - COALESCE ( - - 44, + ( 80 ) ) + + + 47 THEN - 2 ELSE NULL END BETWEEN NULL AND - COUNT ( * ) THEN + + 25 WHEN 92 + + + COUNT ( * ) <= ( + ( + 40 ) + 67 ) THEN NULL END * - 82 + 89 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ), - 10 + - + SUM ( DISTINCT + 37 ) + - CAST ( NULL AS INTEGER ) + 89 * 62 AS col0 - -Expected: ["NULL","NULL"] but got ["0","5471"] -``` - - -```sql -SELECT ALL 38 * - COALESCE ( 52, - + 49 / - 55 * + + 18, NULLIF ( + + 67, - + 39 ) ) / ( + COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) AS col0 - -Expected: ["-1976"] but got ["NULL"] -``` - - -```sql -SELECT ALL - 55 AS col1, - MAX ( ALL - 3 ) / MIN ( ALL + 53 ) * + CASE - - 47 WHEN - + 13 THEN AVG ( ALL - NULLIF ( 1, + + NULLIF ( - 69, 37 + 95 + - 77 ) ) ) ELSE NULL END * - 92 - 65 + - 51 * - 61 * 37 - COUNT ( * ) col1 - -Expected: ["-55","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col1, CASE + COUNT ( * ) WHEN - - 5 THEN + - 71 * + 32 / - 55 END / + 90 * - - 55 * - + NULLIF ( + - SUM ( ALL + 39 ), - 42 ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,064 failed -* 79% was OK - -Time: 46793.566ms - ----- ---- ---- ---- ---- ---- ---- -### 412/620 [`./test/random/expr/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_40.test) - -_Mimic sqlite_ - -```sql -SELECT 28 / + 41 + + ( 87 ) * 82 - -Expected: ["7134"] but got ["7134.683"] -``` - - -```sql -SELECT 65 * CAST ( NULL AS INTEGER ) + 92 - -Expected: ["NULL"] but got ["92"] -``` - - -```sql -SELECT ALL CAST ( SUM ( ALL + 48 ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT ALL - + 57 - + + 39, 87 * - 24 / CAST ( NULL AS REAL ) col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 28 + - + CASE - 83 WHEN COUNT ( * ) * NULLIF ( + NULLIF ( + 73, - 84 * - 36 ), - + 18 ) + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2, + COUNT ( * ) * + AVG ( ALL + 6 ) * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - 50 AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL NULLIF ( 5, + COUNT ( * ) - + 46 ) * ( - 36 ) * - 88 + + CASE + + ( + 96 ) WHEN - 58 * + NULLIF ( - 43, CASE WHEN NULL BETWEEN ( NULL ) AND 53 THEN NULLIF ( + + AVG ( ALL 5 ), ( CASE - - 39 WHEN + 93 THEN NULL WHEN + CAST ( + ( + - 0 ) AS INTEGER ) THEN - COUNT ( * ) * - - 81 * - 7 ELSE … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - 57 * - + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) AS col1 - -Expected: ["57"] but got ["NULL"] -``` - - -```sql -SELECT ALL - COUNT ( * ) / + + 95, - 2 + - + 35 + CASE 96 WHEN - 97 * + 20 THEN 50 * 23 WHEN NULLIF ( 52, 44 - COUNT ( * ) ) THEN NULL END col2 - -Expected: ["0","NULL"] but got ["-0.011","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,984 failed -* 80% was OK - -Time: 89513.788ms - ----- ---- ---- ---- ---- ---- ---- -### 413/620 [`./test/random/expr/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_41.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + MIN ( DISTINCT - 72 ) / 63 - -Expected: ["-1"] but got ["-1.143"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1, - 77 AS col0 - -Expected: ["NULL","-77"] but got ["0","-77"] -``` - - -```sql -SELECT ALL CAST ( + - 50 AS REAL ) * - 42 + + CAST ( NULL AS INTEGER ) AS col1, 97 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - 39 / - CAST ( - COALESCE ( + 34, + - 63 * 36 * + 23 - - COUNT ( * ), - - 93 * + 87 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT CASE + 81 WHEN + - 18 * + - 63 / 96 * - ( 38 ) + + NULLIF ( - 79, 55 + - COUNT ( * ) * + - COUNT ( * ) ) THEN 34 ELSE NULL END AS col2, 30 / - 87 * 10 / 50 * - - 7 - -Expected: ["NULL","0"] but got ["NULL","-0.246"] -``` - - -```sql -SELECT DISTINCT - 43 / + COALESCE ( + - CAST ( NULL AS INTEGER ), + - 55 * + ( + COUNT ( * ) ) * + + 25 ) * - MIN ( DISTINCT - 98 ) AS col2 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL AVG ( ALL 43 ) * - CASE WHEN NULL <> ( 38 ) THEN - SUM ( ALL 88 ) WHEN - 48 BETWEEN ( 35 ) AND - CAST ( NULL AS INTEGER ) * + 92 THEN 13 - + 75 ELSE NULL END + - 4 * 55 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 96, + ( - - AVG ( - CAST ( NULL AS INTEGER ) ) ) + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + CASE - - 60 WHEN - AVG ( - - 80 ) THEN + 52 END AS col1, ( - + CAST ( NULL AS INTEGER ) ) AS col2 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL - ( + 50 ) AS col2, - 47 * CASE + 55 WHEN + + 18 + + - NULLIF ( + 84, 45 ) + - - NULLIF ( 57, + 23 + + CAST ( NULL AS INTEGER ) ) + - 85 + + CAST ( 83 AS INTEGER ) THEN - - 6 + - 43 END col2 - -Expected: ["-50","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,945 failed -* 80% was OK - -Time: 52765.528ms - ----- ---- ---- ---- ---- ---- ---- -### 414/620 [`./test/random/expr/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_42.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) * + - SUM ( - COALESCE ( - 81, 55 + 5 + 53 ) ) + + + 56 AS col1 - -Expected: ["NULL"] but got ["56"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / - 34 AS col0 - -Expected: ["0"] but got ["-0.029"] -``` - - -```sql -SELECT CAST ( NULL AS REAL ) * + 42 - -Wrong conversion type -``` - - -```sql -SELECT 33 * - COUNT ( * ) / + + CAST ( - COUNT ( * ) AS INTEGER ) + ( + + 1 ) AS col2 - -Expected: ["34"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + + 43 + - 96 AS col1 - -g is not defined -``` - - -```sql -SELECT 13 / + 6, 20 / + + 81 + - 24 + + + 77 + - COUNT ( * ) * - - CASE + MAX ( DISTINCT 74 ) WHEN - ( AVG ( + + 3 ) ) THEN + 68 * + + 99 / + - MAX ( DISTINCT 65 ) - - 29 WHEN 49 + + COUNT ( * ) THEN 4 ELSE NULL END / + 62 + + NULLIF ( - 3, + 27 ) + 37 * 87 AS col0 - -Expected: ["2","NULL"] but got ["2.167","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) col0, + 80 + + NULLIF ( 89, 99 ) + CASE - - 87 WHEN + - NULLIF ( - + 14, - 17 ) * + 39 / + 67 - + 42 * + + 36 - - 24 * 63 THEN + 55 + + + COUNT ( * ) / - COUNT ( * ) + - ( + - 23 ) * 45 + - CAST ( 86 AS REAL ) END AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - CASE WHEN NOT - 60 BETWEEN + COUNT ( * ) AND + 47 + + 72 THEN - 52 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 11 * - 65 * 55 col0, CAST ( NULL AS INTEGER ) * CASE 21 WHEN - + 95 / + + 21 THEN NULL WHEN 60 THEN 3 - + + 42 - 73 - + 64 END AS col0 - -Expected: ["39325","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - 74 / 70 + - 96 - -Expected: ["-97"] but got ["-97.057"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,939 failed -* 80% was OK - -Time: 60249.642ms - ----- ---- ---- ---- ---- ---- ---- -### 415/620 [`./test/random/expr/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_43.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + 13 / + 96 AS col0, CAST ( NULL AS INTEGER ) - -Expected: ["0","NULL"] but got ["0.135","0"] -``` - - -```sql -SELECT DISTINCT - 97 / - - ( + 74 ) - -Expected: ["-1"] but got ["-1.311"] -``` - - -```sql -SELECT - - CAST ( SUM ( - 21 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - + 16 / COALESCE ( CAST ( NULL AS INTEGER ), + 89, 13 ) AS col1 - -Expected: ["0"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,588 failed -* 84% was OK - -Time: 34345.834ms - ----- ---- ---- ---- ---- ---- ---- -### 416/620 [`./test/random/expr/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_44.test) - -_Mimic sqlite_ - -```sql -SELECT + 8 - + COUNT ( ( - ( CAST ( 44 AS REAL ) ) ) ) - -Wrong conversion type -``` - - -```sql -SELECT 30 + - - 96 - - 4 + - + 77 + + 67 * + CAST ( NULL AS INTEGER ) / ( - + 58 ) - -Expected: ["NULL"] but got ["53"] -``` - - -```sql -SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT DISTINCT 64 + 63 / + 97 AS col1 - -Expected: ["64"] but got ["64.649"] -``` - - -```sql -SELECT - 33 AS col0, + 29 * + + CASE - - ( - - 93 ) WHEN + 65 THEN NULL WHEN + 84 / + 29 * - 79 + 84 + + 76 + + ( - + 19 ) * - 36 + - ( + + 8 ) * - 30 / ( - 59 ) THEN 2 WHEN - 53 - 86 THEN NULL WHEN - 1 THEN + 98 * MAX ( 59 * 89 ) END * 10 AS col0 - -Expected: ["-33","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - CASE WHEN ( NULL ) BETWEEN ( + 99 ) AND - 35 + 46 THEN NULL ELSE + ( + 59 ) + 89 / - 89 END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 94 * 31 / + - CASE WHEN NULL <> 19 THEN NULL ELSE + 38 END AS col2 - -Expected: ["76"] but got ["NULL"] -``` - - -```sql -SELECT - 16 * + CASE COUNT ( DISTINCT + 35 ) WHEN - - 4 THEN - 29 END / + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - + 6 AS col1, 3 - - + CAST ( NULL AS INTEGER ) / NULLIF ( - 8, - 37 + - 87 ) AS col2 - -Expected: ["NULL","NULL"] but got ["-6","3"] -``` - - -```sql -SELECT ALL 73 col1, + 95 + - + CASE + - 80 WHEN + + ( + 13 ) + + 31 + 60 * - + 25 THEN 23 + + 60 ELSE NULL END AS col1 - -Expected: ["73","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,974 failed -* 80% was OK - -Time: 48979.929ms - ----- ---- ---- ---- ---- ---- ---- -### 417/620 [`./test/random/expr/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_45.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 38 / + - 51 + + 86 * 5 + - 74 + + 84 / + 91 + COALESCE ( - + 81, 83 * - 37, + COUNT ( * ) ) * 90 col0 - -Expected: ["-6934"] but got ["-6933.822"] -``` - - -```sql -SELECT - + 8 - - CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL"] but got ["-8"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) * SUM ( - 35 ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - 26 + - COALESCE ( + 93, + CAST ( + + COUNT ( * ) AS INTEGER ) ) + - 30 * - 52 - + 41 AS col1 - -g is not defined -``` - - -```sql -SELECT + 99 * + 51 + + COUNT ( * ) + + 59 * + - 16 + 67 + + + CASE WHEN NULL > 89 THEN NULL WHEN NULL BETWEEN - COUNT ( * ) AND - 29 THEN + ( - 1 ) * + 64 / ( - + ( - - 27 ) ) * - - 16 - - - AVG ( DISTINCT + - 79 ) + 52 WHEN NOT 5 <= COUNT ( * ) THEN NULL END * + 75 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 26 * + CASE + + CAST ( NULL AS INTEGER ) WHEN + + 31 THEN NULL WHEN + 90 * 68 - + 47 * - - 42 THEN - ( - COUNT ( * ) ) ELSE NULL END col1, - 95 / + CAST ( + 67 AS INTEGER ) - -Expected: ["NULL","-1"] but got ["NULL","-1.418"] -``` - - -```sql -SELECT CASE - 20 WHEN 67 THEN - 76 / + 29 + - - COUNT ( DISTINCT - - 53 ) END * + COUNT ( * ), 36 + + 28 + 50 * + 98 + 99 + + + 34 + ( 13 ) + + CAST ( + NULLIF ( - - COUNT ( * ), - 12 + + 49 / 57 * - 87 ) AS INTEGER ) * - 6 * CAST ( NULL AS INTEGER ) * 97 - -Expected: ["NULL","NULL"] but got ["NULL","5110"] -``` - - -```sql -SELECT 72 * CASE WHEN NOT NULL > ( NULL ) THEN NULL ELSE - 53 END AS col0 - -Expected: ["-3816"] but got ["NULL"] -``` - - -```sql -SELECT ALL 87 / + - 20 AS col2, + CASE - 78 WHEN 72 THEN - 1 + + - 9 END + 96 AS col2 - -Expected: ["-4","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT 45 + - + 1 * + - MAX ( ALL + ( 8 ) ) * - - 88 + + MAX ( ALL + 64 ) - - CAST ( NULL AS INTEGER ) * 18 + + - 72, 5 * - + 70 + 4 + 7 * - + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["741","-346"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,019 failed -* 79% was OK - -Time: 54476.813ms - ----- ---- ---- ---- ---- ---- ---- -### 418/620 [`./test/random/expr/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_46.test) - -_Mimic sqlite_ - -```sql -SELECT + - 40 + - CASE WHEN 36 + + 65 * + 55 IN ( 32 * SUM ( 13 ) + 61 / 8 ) THEN 95 WHEN NOT + CASE 19 WHEN 90 * + ( - 27 ) + 93 * + 2 THEN NULL WHEN + 32 * - 81 THEN 64 WHEN + ( CAST ( + AVG ( + 62 ) AS INTEGER ) ) * + 12 THEN NULL END NOT IN ( - 46 ) THEN NULL ELSE NULL END AS col0 - -g is not defined -``` - - -```sql -SELECT CAST ( - 35 AS INTEGER ) / 39 - 86 * - 8 AS col2 - -Expected: ["688"] but got ["687.103"] -``` - - -```sql -SELECT COALESCE ( MAX ( CAST ( NULL AS INTEGER ) ), 83 - + CASE + 60 WHEN + 43 - 67 THEN AVG ( 84 ) ELSE NULL END * COALESCE ( 9, 17 * - 72, + 99 + 88 ) ) * - 6 + + NULLIF ( + 95 + - 19 * COUNT ( * ), 9 ) - -Expected: ["NULL"] but got ["76"] -``` - - -```sql -SELECT ALL + CASE WHEN NOT ( + COUNT ( * ) ) IN ( 77 - 5 ) THEN - 38 * + COUNT ( * ) END + MIN ( - 78 ) * ( + 7 ) - -Expected: ["-584"] but got ["NULL"] -``` - - -```sql -SELECT ALL 39 + - + CAST ( NULL AS REAL ) + + + 6 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL + 0 * - - 3 AS col0, - ( - ( - + 99 ) ) / - 17 * + CASE - 9 WHEN COUNT ( * ) THEN NULL WHEN 94 THEN ( ( COUNT ( * ) ) ) + CAST ( NULL AS INTEGER ) * + 71 END AS col0 - -Expected: ["0","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + 26 * CAST ( NULL AS INTEGER ) * 68, CASE - + CAST ( NULL AS INTEGER ) WHEN 46 THEN + 23 END + - 71 AS col0 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + - 25 + - NULLIF ( - 56, + + CASE WHEN - CASE - + CAST ( - + 28 AS INTEGER ) WHEN - 17 * + MAX ( ALL + - 68 ) * 9 * - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - CAST ( + 54 AS INTEGER ) - + 95 ELSE NULL END BETWEEN ( - - 86 * + ( - 40 ) - 6 ) AND + 59 * + ( 29 ) THEN - 30 / +… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 9 + - CAST ( NULL AS INTEGER ) AS col2, + MAX ( + CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["-9","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,945 failed -* 80% was OK - -Time: 48653.537ms - ----- ---- ---- ---- ---- ---- ---- -### 419/620 [`./test/random/expr/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_47.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + + 39 * + - CASE - 38 WHEN 61 + + 41 THEN + 43 WHEN + - 37 * 99 + + CAST ( NULL AS REAL ) THEN - 59 WHEN + + ( + COUNT ( * ) ) THEN + 19 END - -Wrong conversion type -``` - - -```sql -SELECT 65 / + 98 - -Expected: ["0"] but got ["0.663"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ), 58 AS col0 - -Expected: ["NULL","58"] but got ["0","58"] -``` - - -```sql -SELECT ALL CAST ( ( NULLIF ( + CAST ( - 93 AS INTEGER ), + + CAST ( + 77 AS INTEGER ) * - 84 - + - 67 + + - 56 + + 78 * + + ( - 20 ) * CASE + ( + 10 ) WHEN + COUNT ( * ) THEN COUNT ( * ) + - 50 * + + MAX ( ALL + 76 ) WHEN 18 THEN NULL WHEN - COUNT ( * ) THEN NULL END ) ) AS INTEGER ) + - - 67 AS co… - -g is not defined -``` - - -```sql -SELECT - - CASE WHEN NOT 40 NOT BETWEEN - 96 * AVG ( - 74 ) AND NULL THEN - 47 ELSE - 11 END * - 12 + - 1 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT - CASE + 61 WHEN - 98 + - 48 + ( 36 ) + - ( + 19 ) / + + 63 + + CAST ( - + 52 AS INTEGER ) + + 54 - - 39 THEN NULL WHEN + MAX ( DISTINCT 58 ) THEN NULL WHEN - + 90 * - + 69 THEN 17 END AS col2, 48 - -Expected: ["NULL","48"] but got ["48","NULL"] -``` - - -```sql -SELECT ALL ( - - CASE ( - SUM ( DISTINCT + 91 ) ) WHEN + 92 + 3 THEN - COUNT ( * ) END ) * + 50 AS col2, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT - 78 * 91 / - ( CAST ( COUNT ( * ) AS INTEGER ) ) * COUNT ( + - 21 ) + + - ( + COUNT ( * ) ) - -Expected: ["7097"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 32 + - 87 AS col1, CASE + - 60 WHEN + + 53 THEN + 17 END * CAST ( NULL AS INTEGER ) * 87 / 71 AS col1 - -Expected: ["-55","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,925 failed -* 80% was OK - -Time: 45479.603ms - ----- ---- ---- ---- ---- ---- ---- -### 420/620 [`./test/random/expr/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_48.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + CAST ( + 50 AS INTEGER ) / - SUM ( 6 ) - -Expected: ["-8"] but got ["-8.333"] -``` - - -```sql -SELECT + NULLIF ( - 90, + CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + ( ( CAST ( NULL AS INTEGER ) ) ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + + 35 col2, COUNT ( * ) / + 32 * + + CAST ( - + MAX ( + - 81 ) AS INTEGER ) * + 9 + - + 97 - 53 * ( 51 ) * - CASE - + 55 WHEN + CAST ( NULL AS INTEGER ) THEN - - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ELSE COUNT ( * ) * COALESCE ( + 72, - - 40 * + + 34 * - + 81 * + 24 * - COUNT ( * )… - -Expected: ["35","194519"] but got ["35","NULL"] -``` - - -```sql -SELECT DISTINCT - 68 / 98 + + 63 - - - 51 + CAST ( COUNT ( * ) AS REAL ) * 77 * + - CAST ( NULL AS INTEGER ) col1, + COALESCE ( 20, - 26 + - ( + - COALESCE ( 27, + ( - 92 ) ) ) ) col0 - -g is not defined -``` - - -```sql -SELECT + 19 / - + NULLIF ( - 50, - COUNT ( DISTINCT - - 34 ) * - CASE + 37 WHEN - 49 + - 74 THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 43 + - 59 + - ( - 38 ) * 1 + - COUNT ( * ) THEN - 64 / 77 + + - 18 ELSE NULL END + 5 ) + - MIN ( DISTINCT ( + CASE - 3 WHEN + ( + 98 ) THEN + 86 WHEN - 96 THEN NUL… - -Expected: ["NULL","0"] but got ["NULL","0.250"] -``` - - -```sql -SELECT - - 94 * + CAST ( NULL AS INTEGER ) + + - ( + + SUM ( DISTINCT - 16 ) ) + - 52 * 60 / + + NULLIF ( - 15, 5 ) AS col0, - CASE 51 WHEN + 12 / + COUNT ( * ) * CAST ( - - COUNT ( * ) AS INTEGER ) * 13 THEN NULL WHEN 63 * - 94 THEN 55 ELSE NULL END / - 84 + - + CASE + 31 WHEN 49 + 40 * 92 THEN - … - -Expected: ["NULL","NULL"] but got ["224","NULL"] -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * ( 47 ) AS col2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT 24 + CASE WHEN + NULLIF ( 12, + + ( - - 92 ) + - 44 + - CASE 32 WHEN + + 38 THEN + 95 * + - 30 + - 24 ELSE + CASE + ( - 99 ) WHEN 80 THEN + 32 END * 38 + + CASE + 52 - 31 * 58 WHEN 49 THEN + 92 + 4 END * 42 END ) BETWEEN ( NULL ) AND ( 20 * 3 ) THEN NULL WHEN + 15 IN ( 55 ) THEN NUL… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ( + 25 ) AS col2, 63 * - + 82 * CASE + 72 WHEN 89 THEN - + 53 + - 79 END * + 95 AS col2 - -Expected: ["25","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL 32 / + - 60 * + - 23 + - + 70 / 40 + - 26 AS col0 - -Expected: ["-27"] but got ["-27.727"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,038 failed -* 79% was OK - -Time: 28052.604ms - ----- ---- ---- ---- ---- ---- ---- -### 421/620 [`./test/random/expr/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_49.test) - -_Mimic sqlite_ - -```sql -SELECT 60 * - 67 + + COUNT ( * ) AS col2, 95 - -Expected: ["-4019","95"] but got ["95","-4019"] -``` - - -```sql -SELECT CASE 26 WHEN + COUNT ( DISTINCT + + CAST ( NULL AS REAL ) ) * - 56 * 64 + - 16 + - - ( - 23 ) THEN - ( - 29 ) * - 2 + + 16 * + + 84 * + + 93 / + CASE 43 WHEN COUNT ( * ) * + CASE - COUNT ( * ) WHEN - 48 * + + COUNT ( + 53 ) THEN NULL WHEN - 30 THEN MIN ( - 82 ) END - ( 33 ) THEN 4 WHEN - + 3… - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 29 + - - 43 + - 41 * - ( + 8 ) * CAST ( NULL AS INTEGER ) * + 5 AS col2 - -Expected: ["NULL"] but got ["72"] -``` - - -```sql -SELECT 21 + - COUNT ( * ) - 76 + - - ( + + 27 ) + 9 * CASE WHEN - CAST ( NULL AS INTEGER ) BETWEEN + 98 + + + 68 AND + 3 * + COUNT ( * ) + - 64 * - 39 * - 32 / + COUNT ( * ) THEN NULL ELSE 62 / 10 END + ( - 60 ) + + - 50 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 1 AS col0, CASE - + 46 WHEN - - 81 THEN 83 * - + 51 / + 61 * - - 91 + 93 * - COUNT ( * ) * 89 END AS col0 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + + 94, CAST ( - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * + + 20 + 53, CAST ( NULL AS INTEGER ) col0 - -Expected: ["NULL","NULL"] but got ["53","0"] -``` - - -```sql -SELECT ALL - + CASE WHEN NOT - 74 IN ( + COALESCE ( + 50, - 13, 76 * + - 63 * 21 ) * + 78 * - 21 + + ( + 15 ), 64, + - 81 ) THEN - 25 + - + 10 END * 54 + + COUNT ( DISTINCT 56 ) * + COUNT ( * ) * - - 29 * - + 56 - -Expected: ["266"] but got ["NULL"] -``` - - -```sql -SELECT - 26 AS col0, + 71 * + CASE - 50 WHEN - 16 THEN - ( 15 ) WHEN + - 52 + 43 THEN NULL END * - - 52 + - 49 AS col0 - -Expected: ["-26","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col1, + CASE 26 WHEN - - 43 THEN - 78 * - MIN ( DISTINCT - + 25 ) * NULLIF ( + 18, + 38 * + ( + 19 ) * + + 75 ) * 34 * 11 + SUM ( - 49 ) * - + 3 * + NULLIF ( + AVG ( ALL 80 ), - 71 ) END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,006 failed -* 79% was OK - -Time: 31998.523ms - ----- ---- ---- ---- ---- ---- ---- -### 422/620 [`./test/random/expr/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT 89 * + CASE 39 WHEN + - 14 THEN NULL ELSE - + ( - COUNT ( * ) ) - - - 28 END * - - CAST ( - 86 AS INTEGER ) - - CASE + AVG ( + 89 ) WHEN - CAST ( - 27 AS REAL ) THEN - 76 + + CAST ( NULL AS INTEGER ) + + - 31 + 22 * - 82 * + + COUNT ( - + ( + - ( 29 ) ) ) ELSE - 0 END + 94 - -Wrong conversion type -``` - - -```sql -SELECT - 79 / 44 + + + 90 col1 - -Expected: ["89"] but got ["88.205"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 9 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL CASE + - 88 WHEN - COALESCE ( - CAST ( - 37 AS INTEGER ), + 62 ) - + COUNT ( * ) / 56 THEN - 58 WHEN 41 THEN NULL END, 82 / 81 AS col0 - -Expected: ["NULL","1"] but got ["NULL","1.012"] -``` - - -```sql -SELECT ALL - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT + CAST ( - + CASE WHEN NOT 4 NOT BETWEEN COUNT ( * ) AND NULL THEN + 22 END AS REAL ) * 73 * - 59 / - MAX ( DISTINCT - 71 ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + MAX ( + - ( + 1 ) ) * 34 + + - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( DISTINCT - 24 ) / 41 + 68 * - CASE + 74 + - 34 * 20 WHEN 67 THEN NULL WHEN MIN ( + 97 ) + CAST ( - 84 - + 15 AS INTEGER ) * 27 THEN 56 ELSE NULL END - -Expected: ["NULL","NULL"] but got ["-34","NULL"] -``` - - -```sql -SELECT ( - 91 ) AS col0, - NULLIF ( + COUNT ( * ), ( + 67 ) * - CASE ( + COUNT ( * ) ) WHEN CASE + 85 WHEN + - 28 * - 66 THEN NULL WHEN + 94 THEN + 62 END + - 95 + CASE + + COALESCE ( - COALESCE ( 49, - ( - + ( + 72 ) ) / - + SUM ( 25 ), + 65, 15 * + NULLIF ( + - 36, + NULLIF ( NULLIF ( - COALESCE … - -Expected: ["-91","-1"] but got ["-91","NULL"] -``` - - -```sql -SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), ( - 87 ) / + COUNT ( * ) * - 62 * - 63 / + + 33 ) * 38, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + 52, + CAST ( NULL AS INTEGER ) + - NULLIF ( SUM ( ALL - - 73 ), + 53 - + 93 * - 72 + NULLIF ( - 49, + CAST ( NULL AS INTEGER ) ) + 30 ) col2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","-73"] -``` - - -```sql -SELECT CASE ( - CASE - + ( + 60 ) WHEN - COALESCE ( - 43, + 42 ) + - - 23 THEN + - COUNT ( * ) ELSE - 44 * + 52 END ) WHEN - 44 THEN - 73 END + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * + 82 AS col0 - -Expected: ["NULL","NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + 65 AS col1, CASE + + 3 WHEN + + 8 THEN 69 ELSE NULL END col1 - -Expected: ["65","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,085 failed -* 79% was OK - -Time: 63811.123ms - ----- ---- ---- ---- ---- ---- ---- -### 423/620 [`./test/random/expr/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_50.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 82 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - 64 / - + 11 - -Expected: ["5"] but got ["5.818"] -``` - - -```sql -SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT CASE WHEN NOT + 12 BETWEEN + ( - + 75 ) * - ( - + 78 ) + - - 40 + 19 AND CAST ( NULL AS REAL ) THEN + - 12 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 9 + + CASE + + NULLIF ( - 93, + 67 ) WHEN 55 * + CASE + CAST ( NULL AS INTEGER ) WHEN - - 31 THEN NULL WHEN + 76 THEN NULL ELSE + 83 END + - - 11 + + + 56 THEN NULL WHEN ( + - ( - 89 ) ) + + ( + 43 ) + + 16 + + + CAST ( NULL AS REAL ) * + 31 THEN NULL WHEN + COALESCE ( + COUNT ( * )… - -Wrong conversion type -``` - - -```sql -SELECT ALL - 53 / 66 * 44 * - - CAST ( NULL AS INTEGER ) AS col0, - 40 * + CASE + 66 WHEN - 97 THEN NULL WHEN - 65 + COUNT ( * ) * COUNT ( * ) * + 43 - 49 THEN + - 41 END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT DISTINCT - - 98 AS col0, + ( + CASE 65 WHEN - COUNT ( * ) THEN NULL WHEN - - 96 THEN + 10 * + 19 * 67 + - ( - 60 ) * 23 + 78 END ) * - + 33 + - 34 AS col0 - -Expected: ["98","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - - 17 * - 99 * 16, 29 * - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + 22 / - CAST ( - 38 AS INTEGER ) * - 78 + + 20 - - CASE - 24 WHEN - - CASE - + COALESCE ( COUNT ( * ), - 78 + - 34 * + 44, SUM ( + - 92 ) ) WHEN + 79 + + CAST ( - CAST ( - 95 AS INTEGER ) AS INTEGER ) + + CASE - 39 WHEN - SUM ( ALL + 64 ) THEN 29 END * AVG ( ALL + 92 ) THEN NULL WHEN + - 65… - -Expected: ["-657"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,998 failed -* 80% was OK - -Time: 62774.177ms - ----- ---- ---- ---- ---- ---- ---- -### 424/620 [`./test/random/expr/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_51.test) - -_Mimic sqlite_ - -```sql -SELECT 64 + CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT ALL + - 73 + - CAST ( NULL AS INTEGER ) + 19 - -Expected: ["NULL"] but got ["-54"] -``` - - -```sql -SELECT ALL + - 57 / + + 27 AS col1 - -Expected: ["-2"] but got ["-2.111"] -``` - - -```sql -SELECT ALL 21 + CAST ( NULL AS INTEGER ) AS col2, CASE 87 WHEN + 31 THEN - 8 WHEN - 3 THEN - 58 WHEN - - 59 THEN NULL END - -Expected: ["NULL","NULL"] but got ["21","NULL"] -``` - - -```sql -SELECT ALL - ( CASE WHEN + CAST ( 98 AS INTEGER ) BETWEEN + CAST ( NULL AS INTEGER ) * + ( 57 ) + + CAST ( - SUM ( + 89 ) AS REAL ) AND NULL THEN CASE COALESCE ( ( 71 ), + - COALESCE ( 11, + - CAST ( NULL AS INTEGER ), CASE 16 WHEN 70 THEN + 72 ELSE - 48 * + 52 END + 89 ) ) WHEN + + 23 THEN - + 30 … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + COUNT ( * ) AS col2, - 3 + - + ( - - 70 ) / COALESCE ( + COUNT ( * ), + - 11 * 97 ) + - + CASE + CASE COUNT ( * ) WHEN - + 38 * + - 26 THEN - + 14 * ( + 56 ) ELSE NULL END WHEN - CAST ( + 44 AS INTEGER ) + - - 28 + + - 51 * - 9 THEN ( - 73 ) + 14 END AS col2 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( + MIN ( DISTINCT 28 ) AS INTEGER ) * NULLIF ( + + 2, + ( CASE + ( + 33 ) WHEN + + 52 / - + 90 THEN + + 44 END ) ) / + + 41 AS col2 - -g is not defined -``` - - -```sql -SELECT - COUNT ( * ) AS col0, 80 / - NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), - 21 / COUNT ( * ) + - 98 ) - -Expected: ["-1","-80"] but got ["-1","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col0, + 76 * CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,968 failed -* 80% was OK - -Time: 85602.335ms - ----- ---- ---- ---- ---- ---- ---- -### 425/620 [`./test/random/expr/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_52.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - + 50 + 53 AS col0, ( - CAST ( - - COUNT ( * ) AS INTEGER ) ) * + 15 AS col2 - -g is not defined -``` - - -```sql -SELECT ALL 98 / + + 41 AS col2 - -Expected: ["2"] but got ["2.390"] -``` - - -```sql -SELECT + - 35 + - + CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["-35"] -``` - - -```sql -SELECT ALL - COALESCE ( + 32, - SUM ( DISTINCT 84 ) * 35 ) / CAST ( NULL AS INTEGER ) / MAX ( + CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT COUNT ( * ) - ( + 44 ) + - COUNT ( * ) AS col2, - 41 * - CASE 48 WHEN + 21 * - + CASE - + COUNT ( * ) WHEN - 3 THEN + - 7 * + + ( + 69 ) END * 30 - 35 THEN + 46 END AS col2 - -Expected: ["-44","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + 33 * + - CASE - 23 WHEN + 11 THEN - 0 + + CAST ( NULL AS INTEGER ) WHEN - 77 THEN NULL END AS col2, + 61 + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","61"] -``` - - -```sql -SELECT - COUNT ( * ) * + - ( + 46 ) / - 55 * CAST ( - COUNT ( * ) * 12 AS INTEGER ) - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT - 21 * - COALESCE ( - 5, 79, + AVG ( - 25 ) / + COUNT ( * ) + - 39 + + - 2 + CASE - + 51 WHEN - - 25 * 40 + - CASE WHEN 64 IS NOT NULL THEN NULL WHEN - 25 BETWEEN NULL AND 36 + 23 THEN NULL ELSE + 79 + CASE 48 + + ( - 0 - ( 33 ) * 68 ) WHEN + ( 90 ) - 95 * - 87 THEN NULL WHEN + 53 * 34 THEN … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - + 4 / + 38 + + + 19 - + - 39 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + 96 * - 91 + - 97, - 82 + 69 * + ( CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["-8776.105","-82"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,064 failed -* 79% was OK - -Time: 116796.951ms - ----- ---- ---- ---- ---- ---- ---- -### 426/620 [`./test/random/expr/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_53.test) - -_Mimic sqlite_ - -```sql -SELECT 52 * 75 / + 95 AS col2, SUM ( DISTINCT + 67 ) + + + 29 + - 62 * - 97 * - + 80 AS col1 - -Expected: ["41","-481024"] but got ["41.053","-481024"] -``` - - -```sql -SELECT ALL CASE + 75 WHEN - 57 THEN NULL ELSE - + CASE - 36 WHEN + NULLIF ( ( + - ( - 61 ) ), 36 ) THEN - + AVG ( 61 ) ELSE 74 + + 28 + 1 - 71 + - + COUNT ( * ) + - 41 END END + - 80 * CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL"] but got ["10"] -``` - - -```sql -SELECT SUM ( + 36 ) * + NULLIF ( + - 37, 58 ) * + 60 * + 5 + + CAST ( NULL AS INTEGER ) + 70 * NULLIF ( 22, 27 ) + - 44, AVG ( 3 ) / - + SUM ( ALL - CASE 83 WHEN 2 THEN 9 + + 3 * - 73 ELSE NULL END ) * COUNT ( * ) + COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["-398104","NULL"] -``` - - -```sql -SELECT DISTINCT COALESCE ( - CAST ( MIN ( 31 ) AS INTEGER ), 82 - - - 45 ) + - - 23 + - 31 * 93 * - 52 * 42 * + ( - - 19 ) col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - 20 * - - CAST ( NULL AS REAL ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT 24 * - - ( + - 85 ) * CASE WHEN NOT ( NULL ) NOT BETWEEN - CAST ( - - 55 AS INTEGER ) AND + COALESCE ( 75, + + 79 ) * - AVG ( ALL - 25 ) THEN + 81 ELSE - + 40 END + 40 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 42 - + COALESCE ( - + 94, + SUM ( COALESCE ( 86, - 89 * - 66 + + + 17 / + + 92, - COALESCE ( 45, - 8, CAST ( - 79 AS INTEGER ) + + ( + 0 ), + 8 ) ) ) + + + 41 ) AS col1, + ( - + CASE - + 22 WHEN 27 * - COUNT ( * ) THEN - 79 - - + 45 WHEN + 92 / + + 69 * + - 21 THEN - CAST ( - 94 AS INTEG… - -Expected: ["136","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 64 / COUNT ( * ) + - 61 + + CAST ( NULL AS INTEGER ) + + + 28 * ( - 4 ) * + MAX ( + 86 ) + 75 AS col1, - MAX ( ALL + 20 ) - - CASE + 10 WHEN + + 28 THEN - 2 / 95 WHEN - 60 * - 97 THEN NULL ELSE CAST ( NULL AS INTEGER ) + COUNT ( * ) END + COUNT ( * ) AS col0 - -Expected: ["NULL","NULL"] but got ["-9554","-18"] -``` - - -```sql -SELECT + 49 + CASE - 0 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 15 END AS col0 - -Expected: ["64"] but got ["NULL"] -``` - - -```sql -SELECT - 84 AS col1, 47 * - CASE + 47 WHEN ( + 79 ) THEN - 85 END AS col1 - -Expected: ["-84","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,981 failed -* 80% was OK - -Time: 78629.794ms - ----- ---- ---- ---- ---- ---- ---- -### 427/620 [`./test/random/expr/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_54.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 51, + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["51","NULL"] but got ["51","0"] -``` - - -```sql -SELECT + COUNT ( * ) / MIN ( DISTINCT - 41 ) * 88 - -Expected: ["0"] but got ["-2.146"] -``` - - -```sql -SELECT + 52 AS col1, NULLIF ( CAST ( NULL AS REAL ), - + SUM ( DISTINCT - 5 ) * + 58 * - 73 - - + COUNT ( * ) ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 55, CAST ( + COUNT ( * ) AS INTEGER ) * + 89 col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) - - 35 AS col0 - -Expected: ["NULL","NULL"] but got ["0","35"] -``` - - -```sql -SELECT ALL + CASE WHEN NOT SUM ( + - 68 ) = NULL THEN NULL ELSE 21 END AS col1 - -Expected: ["21"] but got ["NULL"] -``` - - -```sql -SELECT ALL 38 + 47 * - + 90 - - CASE WHEN NOT NULL BETWEEN NULL AND 61 THEN + NULLIF ( - 1, - 90 - + COALESCE ( - ( 72 ), - 3, 56 / 75 - 28 ) * COUNT ( * ) ) * - 4 ELSE ( 0 ) END - -Cannot read property 'toString' of undefined -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,612 failed -* 83% was OK - -Time: 30907.812ms - ----- ---- ---- ---- ---- ---- ---- -### 428/620 [`./test/random/expr/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_55.test) - -_Mimic sqlite_ - -```sql -SELECT + 5 / - 43 AS col2 - -Expected: ["0"] but got ["-0.116"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) + - 48 * + - COALESCE ( + + 64, + - 79 ) - -Wrong conversion type -``` - - -```sql -SELECT + 54 - - 6 + CAST ( NULL AS INTEGER ) / + COALESCE ( - + 81, CAST ( NULL AS INTEGER ) + + 49 ) col1 - -Expected: ["NULL"] but got ["60"] -``` - - -```sql -SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 5 + 80 + - 41 col0 - -g is not defined -``` - - -```sql -SELECT + 93 + + 87 * - - CASE - + 71 WHEN - 15 * 76 THEN - + CAST ( NULL AS INTEGER ) END * 32 + 7 * COUNT ( * ) + 38 AS col0, + CAST ( NULL AS INTEGER ) + - 37 + - 53 * + 81 + + + 93 - -Expected: ["NULL","NULL"] but got ["NULL","-4237"] -``` - - -```sql -SELECT + ( + + NULLIF ( - COUNT ( ALL - CAST ( NULL AS INTEGER ) ), - 14 ) ) AS col1, - CASE + 63 WHEN + - 85 THEN - 42 - - COUNT ( * ) * - - COALESCE ( + 80, + + 99, 28 * + 37 + + 69 ) END / - 26 AS col0 - -Expected: ["0","NULL"] but got ["-1","NULL"] -``` - - -```sql -SELECT 45 * + CAST ( NULL AS INTEGER ) col0, CAST ( NULL AS INTEGER ) + + 50 * + - MIN ( 71 ) AS col2 - -Expected: ["NULL","NULL"] but got ["0","-3550"] -``` - - -```sql -SELECT + - COALESCE ( - NULLIF ( - 33, + CASE WHEN - 89 NOT BETWEEN - + COALESCE ( + + 64, + 48 ) * + - 14 + + 11 + COALESCE ( 39, COUNT ( * ), 98 * ( + 87 ) + 36 ) * 79 AND 28 THEN COUNT ( * ) + - ( 87 + 71 ) END - 15 / ( 14 ) ), 27, SUM ( 28 ) ) + 34 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN + + 34 * + COUNT ( * ) ELSE NULL END col1 - -Expected: ["34"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 54 AS col1, 85 / 68 * - 72 * + 98 * + 88 * - - CASE + 0 WHEN 8 + CAST ( - 5 AS INTEGER ) THEN 85 END * - 61 AS col1 - -Expected: ["54","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) * MAX ( ALL - 99 ) AS col0 - -Wrong conversion type -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,081 failed -* 79% was OK - -Time: 46450.571ms - ----- ---- ---- ---- ---- ---- ---- -### 429/620 [`./test/random/expr/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_56.test) - -_Mimic sqlite_ - -```sql -SELECT + CASE - 20 WHEN NULLIF ( + - 51, - CAST ( 45 AS REAL ) + - 92 * + COUNT ( * ) ) * + + 76 THEN NULL WHEN - 92 * - 61 THEN + ( - 83 ) * + CAST ( NULL AS INTEGER ) WHEN 75 / COUNT ( * ) + + 56 / 49 THEN - 41 ELSE NULL END / + 32 + ( + COUNT ( * ) ) - -Wrong conversion type -``` - - -```sql -SELECT - 61 * + CAST ( COUNT ( DISTINCT 4 ) AS INTEGER ) AS col1 - -g is not defined -``` - - -```sql -SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + + 31 * - MAX ( 19 ) * + 82 * + CASE - COUNT ( * ) WHEN ( + + CAST ( + 38 AS INTEGER ) ) THEN + ( 19 ) WHEN + 2 + + 40 THEN NULL ELSE - 37 + + CAST ( + 29 AS INTEGER ) * - CAST ( NULL AS INTEGER ) END + 26 + + 98 - -Expected: ["NULL"] but got ["1787150"] -``` - - -```sql -SELECT DISTINCT MAX ( - 91 ) / + 42 - - 60 + + COUNT ( * ) + 3 - -Expected: ["62"] but got ["61.833"] -``` - - -```sql -SELECT CASE WHEN NOT - 49 BETWEEN - ( - COALESCE ( - ( ( 22 ) ), - MAX ( 11 ) ) ) AND 78 + - 94 THEN NULL WHEN ( NULL ) NOT IN ( ( 60 ) ) THEN 50 / 26 ELSE 53 * - 71 + 40 END + 61 * + 19 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 95 col1, CASE - + 98 WHEN - 30 + + + 15 THEN + COUNT ( * ) END AS col1 - -Expected: ["95","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + MAX ( + 86 ) / CAST ( COUNT ( * ) / - 14 + + 41 AS INTEGER ) + 63 / 17 - -Expected: ["5"] but got ["NULL"] -``` - - -```sql -SELECT ALL - MIN ( DISTINCT + - 11 ) * CAST ( NULL AS INTEGER ) * + + NULLIF ( 51, 54 ) * + 71 + - - COUNT ( * ) - - - 9 - + + 30 * + + 81 * 70 * - - 15 + + 4, CASE - ( 59 ) WHEN + CAST ( NULL AS INTEGER ) + 29 THEN NULL WHEN + 93 * + - CASE 46 WHEN + + 48 THEN + COUNT ( * ) WHEN - + 95 THEN NULL E… - -Expected: ["NULL","NULL"] but got ["-2551504","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,014 failed -* 79% was OK - -Time: 44510.234ms - ----- ---- ---- ---- ---- ---- ---- -### 430/620 [`./test/random/expr/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_57.test) - -_Mimic sqlite_ - -```sql -SELECT - + 31 / 46 - -Expected: ["0"] but got ["-0.674"] -``` - - -```sql -SELECT ALL - - CAST ( NULL AS INTEGER ) + - ( - 84 ) + - 65 + - 13 * + 4 + - 13 AS col2 - -Expected: ["NULL"] but got ["-46"] -``` - - -```sql -SELECT ALL + NULLIF ( 12, 88 + - COUNT ( * ) + CAST ( NULL AS REAL ) * + CAST ( 27 AS INTEGER ) ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL 94 * + CAST ( + CASE + + ( + 29 ) WHEN - 69 THEN - 13 WHEN - 52 THEN NULL ELSE - CASE + 50 WHEN COUNT ( * ) THEN - 80 * 69 END * + 66 END AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - 71 AS col2, CASE + MAX ( ALL 23 ) WHEN + 31 + - + 21 THEN 14 ELSE NULL END * + COUNT ( * ) AS col2 - -Expected: ["-71","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - - 98 * + + NULLIF ( + AVG ( ALL ( - COALESCE ( - 11, + 92, - + 44 * + ( + 58 ) + 41, + - 91 ) ) ), 11 ), CAST ( NULL AS INTEGER ) / - + COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1, 97 - - + AVG ( - + 50 ) + - + CAST ( NULL AS INTEGER ) + - - 36 AS col2 - -Expected: ["NULL","NULL"] but got ["1","83"] -``` - - -```sql -SELECT DISTINCT - 97 - + CASE WHEN + 83 >= NULL THEN COALESCE ( ( - COUNT ( * ) ), 40 * 0, + 42 ) + AVG ( 14 ) WHEN NOT - 46 / + 1 NOT BETWEEN MIN ( ALL - 40 ) - ( COUNT ( * ) ) * - COUNT ( * ) AND NULL THEN NULL END + + COALESCE ( - 83, 4 + + 8, COUNT ( * ) ) * - 97 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - COUNT ( * ) * CASE WHEN NULL NOT IN ( + 55, - 6 ) THEN NULL ELSE + 74 + + 47 END AS col2 - -Expected: ["-121"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 22 AS col1, + 85 + 41 + + CASE + 22 WHEN 96 THEN NULL WHEN - 94 THEN + ( 59 ) * - 42 - + 10 END AS col1 - -Expected: ["-22","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,000 failed -* 80% was OK - -Time: 38376.271ms - ----- ---- ---- ---- ---- ---- ---- -### 431/620 [`./test/random/expr/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_58.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CAST ( NULL AS REAL ) * - COUNT ( * ) / + + 20 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT + 82 + + + 32 / 65 col1 - -Expected: ["82"] but got ["82.492"] -``` - - -```sql -SELECT DISTINCT NULLIF ( 18, + 77 ) * - 45 + - - CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["-810"] -``` - - -```sql -SELECT DISTINCT - + 56 * COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), + 21 ) AS col1 - -g is not defined -``` - - -```sql -SELECT ALL + 40, - CASE WHEN NOT + 26 BETWEEN + - 95 * + 70 / - + 96 AND - ( + - 84 ) THEN NULL WHEN + 7 BETWEEN ( + NULLIF ( + 97, + - 26 * + 45 * 0 ) ) AND NULL THEN - 34 ELSE NULL END col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 86 AS col0, + ( - 50 ) + - + ( + CASE + 77 WHEN CAST ( + 14 AS INTEGER ) THEN + 89 WHEN - 81 * - 25 THEN NULL END ) - + 21 * COUNT ( DISTINCT - 32 ) AS col0 - -Expected: ["86","NULL"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), + 97 + - CAST ( NULL AS INTEGER ) - + 93 AS col0 - -Expected: ["NULL","NULL"] but got ["0","4"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) col0, + COUNT ( * ) / + ( - 77 ) * + + 1 * 76 * 67 * AVG ( + + CAST ( NULL AS INTEGER ) ) * - 28 + + - 30 AS col2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - MIN ( ALL + 40 ) / - + CAST ( - MIN ( - - 20 ) AS INTEGER ) + - - 21 AS col2 - -Expected: ["19"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 54 * + 33 AS col0, 65 / + CAST ( NULL AS INTEGER ) - + - 53 - + 76 / - 46 * 13 * + 36 AS col0 - -Expected: ["1782","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,952 failed -* 80% was OK - -Time: 40352.406ms - ----- ---- ---- ---- ---- ---- ---- -### 432/620 [`./test/random/expr/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_59.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 41 / - 55 + + COUNT ( * ) - -Expected: ["1"] but got ["1.745"] -``` - - -```sql -SELECT ALL + 58 * + CAST ( NULL AS INTEGER ) + - 96 - -Expected: ["NULL"] but got ["-96"] -``` - - -```sql -SELECT ( - ( + CAST ( NULL AS REAL ) ) ) - -Wrong conversion type -``` - - -```sql -SELECT 63 * CAST ( - COUNT ( * ) AS INTEGER ), 48 AS col0 - -g is not defined -``` - - -```sql -SELECT - CASE WHEN NOT ( NULL ) BETWEEN NULL AND - 50 THEN NULL ELSE + - 87 END col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + COUNT ( ALL + + 19 ) * ( 30 ) * + ( + - CAST ( MAX ( ALL + 6 ) AS INTEGER ) ) AS col2, - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * + 90 / + - CAST ( NULL AS INTEGER ) - -Expected: ["-180","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - - 84 * - 91 * + ( 50 ) - - - 34 * + NULLIF ( - + ( + 25 ), + - 93 - - 4 ) + + 21 + - 97 / + CAST ( - COUNT ( * ) AS INTEGER ) + + + 67 - + 98 / COUNT ( ALL + 15 ) col2 - -Expected: ["-381263"] but got ["NULL"] -``` - - -```sql -SELECT 14 * + - 33 + - 85 * - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / + NULLIF ( 87, + 60 ) * - 64 AS col1 - -Expected: ["NULL","NULL"] but got ["-462","0"] -``` - - -```sql -SELECT + CASE - 44 WHEN 69 THEN - + 28 + - 92 + + - 32 - + 20 END, - CAST ( NULL AS INTEGER ) * 53 AS col2 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,977 failed -* 80% was OK - -Time: 42944.682ms - ----- ---- ---- ---- ---- ---- ---- -### 433/620 [`./test/random/expr/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + 77 + - 25 + COALESCE ( 17, COUNT ( * ), - NULLIF ( + 14, + - ( - 78 ) * - COUNT ( * ) ) ) + CAST ( NULL AS REAL ) AS col2 - -Wrong conversion type -``` - - -```sql -SELECT 64 / - - 90 + + 22 * + ( - 0 ) AS col1 - -Expected: ["0"] but got ["0.711"] -``` - - -```sql -SELECT 64 - + - CASE + 33 WHEN + 80 * 8 * - - 62 + + 88 + - + 5 * 63 / 11 THEN - + COALESCE ( - 93, - 63 ) ELSE NULL END + - - 51 - + + 99 AS col1, 79 AS col1 - -Expected: ["NULL","79"] but got ["79","79"] -``` - - -```sql -SELECT + + 92 * NULLIF ( COALESCE ( + - 44, 60 * + 41 ), - - 77 ) * 82 * CAST ( NULLIF ( COUNT ( * ), - 7 * - 79 + + + 35 ) AS INTEGER ) + + + 48 - -g is not defined -``` - - -```sql -SELECT 6 + - + 0 * + 51 / + ( CASE WHEN + 76 BETWEEN - 93 * + + CAST ( - - 7 AS INTEGER ) * 71 * + + 10 - + AVG ( DISTINCT - 95 ) AND - 61 THEN - - 39 WHEN 73 BETWEEN 8 AND - ( 25 ) + 86 THEN + COUNT ( * ) * AVG ( 33 ) END ) * 89 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, CASE - 45 WHEN 29 THEN + - COUNT ( * ) WHEN + 74 THEN NULL END AS col1 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 44 / - 97 - + + 36 + + 0 * 40 + + 15 * - MIN ( - 42 ) * + + 25 AS col1, - CASE - + 73 WHEN COALESCE ( - MAX ( ALL - - 70 ), + 94 * + COALESCE ( - 20, - 90 * - 32 + - 35 + - + 4, + 62 + - NULLIF ( + + ( 95 ), + 65 ), 26 ) * - 49 + + NULLIF ( 43, - 91 ) ) THEN - 62 * + 4 * + AVG ( 92 ) - - 7… - -Expected: ["15714","NULL"] but got ["15714.454","NULL"] -``` - - -```sql -SELECT + COALESCE ( - MAX ( + - 18 ), - - ( + COALESCE ( 15, - SUM ( ALL - + 6 ) ) ) ) / - - ( CAST ( + + MIN ( ALL - 30 ) AS INTEGER ) ) - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 69 + + CAST ( NULL AS INTEGER ) AS col1, - 40 - - 10 * + 5 AS col0, + SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 74 - -Expected: ["NULL","10","NULL"] but got ["-69","10","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,043 failed -* 79% was OK - -Time: 51010.488ms - ----- ---- ---- ---- ---- ---- ---- -### 434/620 [`./test/random/expr/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_60.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 89 * + CAST ( - COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + COUNT ( DISTINCT - CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col2 - -Expected: ["0"] but got ["1"] -``` - - -```sql -SELECT - 85 * - - NULLIF ( + - 1, - 95 + + CAST ( NULL AS REAL ) ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT 36 * + 74 * CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT 69 / - 21 - + + AVG ( 47 ) + + CASE + 57 WHEN COUNT ( * ) + + COUNT ( * ) THEN - + ( + 4 ) END + + 20 AS col0, CAST ( NULL AS INTEGER ) + - 28 + + COUNT ( * ) AS col0 - -Expected: ["NULL","NULL"] but got ["-27"] -``` - - -```sql -SELECT DISTINCT - 52 / + + 16 + 73 * + 6 + 28 / - ( + CASE 1 WHEN ( - 58 ) THEN - + 40 WHEN - NULLIF ( + - COALESCE ( 78, - + COUNT ( * ) / + + 13 * + 54 + - - 76 ), + 41 ) / 68 THEN - - 58 * + - COUNT ( * ) + + 20 END ) AS col2 - -Expected: ["435"] but got ["NULL"] -``` - - -```sql -SELECT ALL - CASE + MAX ( DISTINCT - ( - + 3 ) ) WHEN COALESCE ( - - 93, + 87, - + COALESCE ( - 51, 42 + - 82 + - NULLIF ( 39, + - 11 ) ) * - 4 - + 32 ) THEN - 6 - + 31 END * 89 AS col0, 97 - -Expected: ["NULL","97"] but got ["97","NULL"] -``` - - -```sql -SELECT DISTINCT 11 + - COUNT ( * ) + SUM ( ALL + 48 ) + - + COUNT ( * ) / NULLIF ( - 48, 50 * + + 34 * + CASE WHEN NULL IS NOT NULL THEN NULL WHEN NULL NOT BETWEEN ( + COALESCE ( 5, - 53 ) ) AND 93 THEN - 4 END + + MAX ( DISTINCT COALESCE ( - 51, 39, + 27 ) ) * + 40 ) + + 57 / - 77 AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 91 AS col2, 90 * - - CASE 22 WHEN CAST ( NULL AS INTEGER ) * 60 THEN - 52 WHEN + 94 * - 13 THEN NULL END - 61 * + 19 AS col2 - -Expected: ["91","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + CASE 42 WHEN + 66 THEN 36 END, - COUNT ( + 40 ) * CAST ( NULL AS INTEGER ) * - 73 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,007 failed -* 79% was OK - -Time: 65080.713ms - ----- ---- ---- ---- ---- ---- ---- -### 435/620 [`./test/random/expr/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_61.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT NULLIF ( + SUM ( ( ( + 5 ) ) ), + 66 + - ( + 85 ) ) / - - 87 + + 13 * + 47 - -Expected: ["611"] but got ["611.057"] -``` - - -```sql -SELECT 62 + + CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - - 51 + + - CAST ( - + COUNT ( 49 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - ( - + ( CAST ( NULL AS INTEGER ) ) ) AS col1, - 31 - - + 48 - -Expected: ["NULL","17"] but got ["0","17"] -``` - - -```sql -SELECT - 86 + - + 69 + 30 * - 39 + - - 45 AS col2, CASE WHEN NOT ( NULL ) NOT BETWEEN - COALESCE ( + 91, - - 2 ) AND AVG ( ALL ( 40 ) ) THEN - 3 + 82 END + - 69 col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 25 * - + 78 * CASE - 71 WHEN 5 THEN - COUNT ( * ) END AS col2, 91 - -Expected: ["NULL","91"] but got ["91","NULL"] -``` - - -```sql -SELECT DISTINCT + 58 * + COUNT ( * ) + AVG ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) AS col0, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 - -Expected: ["NULL","NULL"] but got ["58","0"] -``` - - -```sql -SELECT - 79 AS col0, + CASE - - 28 WHEN + 13 THEN - + 3 - + CAST ( NULL AS INTEGER ) ELSE NULL END col0 - -Expected: ["-79","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + CASE WHEN NOT ( 30 ) >= NULL THEN NULL ELSE 2 END * + 48 + + + 83 * 97 + 12 - -Expected: ["8159"] but got ["NULL"] -``` - - -```sql -SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col0, + 36 * + 24 - + CASE + + 61 WHEN + COUNT ( * ) + - + 47 + + 36 + 79 / - 39 + + 33 * - 27 THEN NULL WHEN - COALESCE ( + 40, + - ( + 65 ), - 30 ) + + 52 + + + COUNT ( * ) / 24 * 6 * - ( - 8 / + 80 ) THEN 79 * COUNT ( * ) END AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,025 failed -* 79% was OK - -Time: 45647.673ms - ----- ---- ---- ---- ---- ---- ---- -### 436/620 [`./test/random/expr/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_62.test) - -_Mimic sqlite_ - -```sql -SELECT + 14 / + 60 - -Expected: ["0"] but got ["0.233"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * 19 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - CASE + - 58 WHEN 81 * + 23 * CASE WHEN - COUNT ( * ) < NULL THEN - - NULLIF ( - COALESCE ( + 75, 97 ), 61 - - 50 * 6 ) + NULLIF ( 3 + 69 * 42, 60 + - 80 ) WHEN NOT ( - 17 * COUNT ( * ) + COUNT ( * ) ) NOT BETWEEN ( 23 ) AND ( - 51 ) THEN + MAX ( DISTINCT 51 ) END + 54 * + 9 THEN 43 + CAST … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) / - 55 - + 35 col1 - -Wrong conversion type -``` - - -```sql -SELECT 20 * 25 * + - CAST ( - - 10 AS INTEGER ) * - 59 + NULLIF ( - CAST ( - + ( + COALESCE ( - - CASE + - COUNT ( * ) WHEN - + 2 * + ( + - 31 ) THEN NULL ELSE + 96 END, - 96 * - 70, 21 * - 34 ) ) AS INTEGER ), - CAST ( NULL AS INTEGER ) ) + + 59 * 0 AS col0 - -g is not defined -``` - - -```sql -SELECT - NULLIF ( - 54, - COUNT ( 43 ) / + - 58 * - 16 - + 70 ) * + CAST ( NULL AS INTEGER ) AS col2, + NULLIF ( - CAST ( - - CASE + AVG ( ALL - - 5 ) WHEN - 72 / 94 THEN - 32 END AS INTEGER ), + - 28 ) * + + ( - + 75 ) - + 57 * + 8 + + COALESCE ( 59, - 2 * ( COUNT ( 62 ) ), 38 ) - -Expected: ["NULL","NULL"] but got ["0","-397"] -``` - - -```sql -SELECT + AVG ( + - ( + 74 ) ) + - 86 * + - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) + - + CASE - 68 WHEN - 66 THEN + + 21 WHEN - SUM ( DISTINCT - 28 ) THEN NULL END + 12 * + + 46 - -Expected: ["NULL","NULL"] but got ["-74","NULL"] -``` - - -```sql -SELECT 79 * + + 18 + + - COUNT ( * ) / - CAST ( MAX ( 57 ) AS INTEGER ) AS col1 - -Expected: ["1422"] but got ["NULL"] -``` - - -```sql -SELECT ALL ( - CASE 58 WHEN + 62 THEN + - 81 WHEN - NULLIF ( 19, 42 / + 94 + + 89 + + + 67 ) * - - 50 THEN 57 END ) AS col0, ( 40 ) / + 99 AS col2 - -Expected: ["NULL","0"] but got ["NULL","0.404"] -``` - - -```sql -SELECT DISTINCT COUNT ( DISTINCT + 11 ) AS col1, 1 col1 - -Expected: ["1","1"] but got ["1"] -``` - - -```sql -SELECT ALL - 29 AS col0, CASE + 8 WHEN - + 25 THEN - 15 ELSE NULL END * - - 28 AS col0 - -Expected: ["-29","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,045 failed -* 79% was OK - -Time: 50511.480ms - ----- ---- ---- ---- ---- ---- ---- -### 437/620 [`./test/random/expr/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_63.test) - -_Mimic sqlite_ - -```sql -SELECT + MIN ( ALL - NULLIF ( + 89, 47 ) ) * CAST ( + COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) / 76 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT 52 / 72 * - COALESCE ( + 14, - COUNT ( * ) * - 38 ) AS col0 - -Expected: ["0"] but got ["-10.111"] -``` - - -```sql -SELECT ALL 65 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 37 * + CAST ( NULL AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + - 98 * - + COUNT ( * ) + - NULLIF ( 49, + + 51 * + MAX ( - - 58 ) - CAST ( NULL AS INTEGER ) ) + 80 / CAST ( - + MAX ( - 41 ) AS INTEGER ) * - 73 + - - 63 * - + 86 - -Expected: ["-5442"] but got ["NULL"] -``` - - -```sql -SELECT ALL + ( - - COUNT ( * ) ) / CASE WHEN NOT ( NOT - - ( ( - ( - COUNT ( * ) ) ) ) NOT BETWEEN NULL AND - 57 ) THEN + 5 / + + COUNT ( * ) + 35 + + 91 WHEN ( 48 ) + 82 IS NULL THEN NULL ELSE + CASE + ( 52 ) WHEN 4 THEN NULL WHEN - 0 + 85 THEN NULL ELSE 52 END END + - 77 * 76 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - CASE 93 WHEN 25 THEN - 23 WHEN + - COUNT ( * ) THEN 45 END AS col2, 97 - -Expected: ["NULL","97"] but got ["97","NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + MAX ( ALL + 49 ) - - CASE + 19 WHEN - + 5 - 9 + + 22 - - - 72 THEN NULL ELSE - 1 * - 57 - + - 84 - - + 24 * - - 86 END + - 37 / + - 75 AS col0, 7 AS col2, - + COUNT ( * ) + - 43 * CASE - COUNT ( * ) WHEN - COALESCE ( - 97, - 11, + - COALE… - -Expected: ["NULL","7","NULL"] but got ["NULL","7"] -``` - - -```sql -SELECT + 97 + CAST ( NULL AS INTEGER ), - MAX ( - - CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["97","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,002 failed -* 80% was OK - -Time: 35681.828ms - ----- ---- ---- ---- ---- ---- ---- -### 438/620 [`./test/random/expr/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_64.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - SUM ( ALL 20 ) + 33 + - 11 - 8 + - 74 + + 93 - -Expected: ["53"] but got ["33"] -``` - - -```sql -SELECT 45 + - 10 * CASE + CAST ( NULL AS INTEGER ) WHEN 30 - CAST ( - COUNT ( * ) AS INTEGER ) / + - 27 THEN + NULLIF ( + 21, 3 * 39 - 33 ) WHEN + ( + CAST ( NULL AS REAL ) ) THEN NULL END AS col2 - -g is not defined -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 68 * - 62 + - 89 - -Expected: ["NULL","-4305"] but got ["0","-4305"] -``` - - -```sql -SELECT - - 52 * 99 + - + CAST ( CAST ( 70 AS REAL ) AS INTEGER ) col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + 16 + - 65 * + CAST ( NULL AS INTEGER ) AS col0, - CASE - - 72 WHEN + 50 THEN - + 14 WHEN + 42 * + - CASE - 1 WHEN 19 THEN NULL WHEN CASE + COUNT ( * ) WHEN 52 * + 83 THEN 33 WHEN + 0 THEN NULL ELSE NULL END - 19 THEN - COUNT ( DISTINCT + 38 ) END THEN NULL END + 43 - -Expected: ["NULL","NULL"] but got ["16","NULL"] -``` - - -```sql -SELECT DISTINCT + ( + - COUNT ( * ) ) / - COALESCE ( CAST ( NULL AS INTEGER ), + 97 + 71 / + 9 * 77 ) + 91 * - 88 * - ( - 16 ) * - + 44 col2 - -Expected: ["5637632"] but got ["NULL"] -``` - - -```sql -SELECT ALL + CASE WHEN NOT NULL IS NOT NULL THEN + CAST ( - 81 AS INTEGER ) WHEN NOT NULL NOT BETWEEN NULL AND 15 * 92 - - 64 THEN NULL ELSE NULL END AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 16 - - + 65 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 76 + 11 * + 36 AS col0, 39 - - 37 - + CASE + 13 WHEN COUNT ( * ) + - 2 * + + 2 THEN + 60 * - CASE - 47 WHEN + + 57 + - - 21 THEN - + COUNT ( * ) * + - 13 ELSE - 45 END - 41 * + 39 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END … - -Expected: ["552","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL 7 / - CAST ( NULL AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) * + - 30 AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,056 failed -* 79% was OK - -Time: 47234.129ms - ----- ---- ---- ---- ---- ---- ---- -### 439/620 [`./test/random/expr/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_65.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - + ( ( - - CAST ( NULL AS INTEGER ) ) ) AS col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * 98 - -Wrong conversion type -``` - - -```sql -SELECT COUNT ( * ) / - + 86 AS col1 - -Expected: ["0"] but got ["-0.012"] -``` - - -```sql -SELECT ALL + + CAST ( + SUM ( + 36 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT + + COUNT ( ALL - 96 ) / + CAST ( - COUNT ( * ) AS INTEGER ) - -Expected: ["-1"] but got ["NULL"] -``` - - -```sql -SELECT ALL + CASE WHEN NULL NOT BETWEEN NULL AND NULL THEN ( + 62 ) END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + - 14 / - 71 * 35 col2, COALESCE ( - 94, - 30 * - + 34, - CAST ( NULL AS INTEGER ) ) * 63 * + 40 / + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["0","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,716 failed -* 82% was OK - -Time: 35605.099ms - ----- ---- ---- ---- ---- ---- ---- -### 440/620 [`./test/random/expr/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_66.test) - -_Mimic sqlite_ - -```sql -SELECT 80 / + 92 - -Expected: ["0"] but got ["0.870"] -``` - - -```sql -SELECT 57 AS col1, 52 * - + 35, + CAST ( NULL AS REAL ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT - 82 AS col1, - 56 - + CAST ( NULL AS INTEGER ) + + MAX ( - + 6 ) - -Expected: ["-82","NULL"] but got ["-82","-62"] -``` - - -```sql -SELECT + CAST ( COUNT ( ALL + + ( - 95 ) ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT 51 * 90 + + CASE - 42 WHEN + COUNT ( * ) THEN NULL WHEN + 21 THEN - + CAST ( NULL AS INTEGER ) ELSE NULL END AS col0, 59 - -Expected: ["NULL","59"] but got ["59","NULL"] -``` - - -```sql -SELECT + CASE + 59 WHEN + 76 + - - 52 + ( - 68 ) * 91 THEN 58 END + - + 94 * 13 col2, NULLIF ( + + COALESCE ( - SUM ( - - 73 ), - 11 ), + 87 ) * CAST ( NULL AS INTEGER ) + - + 20 - -Expected: ["NULL","NULL"] but got ["NULL","-20"] -``` - - -```sql -SELECT ALL CASE - ( - 50 ) WHEN + CAST ( - + COALESCE ( - 25, 24, - 56 / 64 + 73 ) AS INTEGER ) THEN 63 * - 57 WHEN - 94 * 53 THEN + 49 / 21 END - CASE WHEN ( 37 ) NOT BETWEEN - NULLIF ( - 39, 25 ) AND ( NULL ) THEN NULL WHEN - COUNT ( * ) IS NOT NULL THEN - 68 - 55 ELSE NULL END AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 32 + 99 AS col0, CASE WHEN NOT 22 IS NOT NULL THEN + + 70 END AS col0 - -Expected: ["131","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT COALESCE ( + ( + 15 ), + COUNT ( * ) * 83 + + - ( 20 ) ) * - 31 + CASE WHEN NOT - AVG ( + 92 ) IN ( 47 ) THEN NULLIF ( 70, SUM ( 28 ) ) END / ( + 79 * - NULLIF ( - 18 * 17, - 17 ) + - 17 ) AS col1 - -Expected: ["-465"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,062 failed -* 79% was OK - -Time: 42864.782ms - ----- ---- ---- ---- ---- ---- ---- -### 441/620 [`./test/random/expr/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_67.test) - -_Mimic sqlite_ - -```sql -SELECT 78, + 75 / + 81 + - 26 col0 - -Expected: ["78","-26"] but got ["78","-25.074"] -``` - - -```sql -SELECT 2 + - CAST ( NULL AS INTEGER ) * - 35 - -Expected: ["NULL"] but got ["2"] -``` - - -```sql -SELECT ALL + ( CAST ( NULL AS REAL ) ) - 16 * + ( - AVG ( + + 1 ) ) * + - 4 * - 39 + + + ( NULLIF ( - - COUNT ( * ), SUM ( CAST ( NULL AS INTEGER ) ) + + 33 * 29 ) ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 85 + + ( 0 ) - - 3 - + COUNT ( * ) / + CAST ( + COUNT ( * ) AS INTEGER ) - 87 + + COUNT ( * ) * - COUNT ( * ) * - MIN ( ALL COALESCE ( + 21, + - 89, + 1 * - 2 ) ) / 2 AS col2 - -Expected: ["-160"] but got ["NULL"] -``` - - -```sql -SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + + 13 AS col2 - -g is not defined -``` - - -```sql -SELECT - 67 - + MAX ( + 45 ) - + CASE 66 WHEN 9 THEN - 59 END + + - 64 * + + 97 AS col0, 36 - -Expected: ["NULL","36"] but got ["36","NULL"] -``` - - -```sql -SELECT DISTINCT - + 12 * 7 * + + CAST ( NULL AS INTEGER ) + 68 + + - 77, 97 / - ( - ( - 98 ) ) * + - COUNT ( * ) AS col1, - - CASE + COUNT ( * ) WHEN MAX ( 60 ) / - - 62 + 50 - 88 THEN + 2 END - -Expected: ["NULL","0","NULL"] but got ["-9","0.990","NULL"] -``` - - -```sql -SELECT ALL + CASE WHEN NOT SUM ( - + 52 ) NOT BETWEEN 87 AND - + 97 + + ( - 49 ) THEN - 12 + - COUNT ( DISTINCT - 8 + CASE NULLIF ( 26, + ( 89 ) * 5 ) WHEN - CAST ( + 3 AS INTEGER ) THEN - 93 WHEN - 71 + ( 35 ) THEN NULL ELSE 89 END ) ELSE NULL END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col0, - ( MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) * - - 52 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT 47 * 48 AS col0, 1 AS col0 - -Expected: ["2256","1"] but got ["1","1"] -``` - - -```sql -SELECT 94 AS col1, + 69 * + 83 / - + CAST ( NULL AS INTEGER ) + - 43 AS col1 - -Expected: ["94","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,033 failed -* 79% was OK - -Time: 69467.608ms - ----- ---- ---- ---- ---- ---- ---- -### 442/620 [`./test/random/expr/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_68.test) - -_Mimic sqlite_ - -```sql -SELECT + COUNT ( * ) + CASE - AVG ( ALL + + 47 ) WHEN - 62 + - + 84 + - - 49 THEN 69 WHEN ( - 68 ) / + + NULLIF ( 74, + 25 * 33 ) + + 81 * + 10 + CAST ( 76 - 87 AS REAL ) THEN NULL END * - 87 - -Wrong conversion type -``` - - -```sql -SELECT + + 16 * - 90 + - - COUNT ( * ) / + 39 - -Expected: ["-1440"] but got ["-1439.974"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - 64 AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL COUNT ( + + 7 ) / + 15 * - + CAST ( AVG ( DISTINCT - 87 ) AS INTEGER ) * - - 61 AS col0 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT + - CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN 0 THEN + CAST ( COUNT ( * ) AS INTEGER ) ELSE - 93 END - -g is not defined -``` - - -```sql -SELECT DISTINCT - 67 * + CASE + + CASE WHEN 69 BETWEEN 12 AND 4 / + 13 - + AVG ( 27 ) + 45 THEN - 16 END WHEN 27 * 73 * + 80 + + NULLIF ( + 7, + 65 ) + - 54 + NULLIF ( + COALESCE ( + + 55, - 89 * 53 / ( - + 53 ) ), 88 ) * 34 - - 27 + 51 * - 50 THEN + 47 * - 50 ELSE MIN ( - 86 ) END + - COUNT ( * ) … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + 59 + + 98 + - + CAST ( NULL AS INTEGER ) + ( - CASE - 94 WHEN + 24 THEN + COUNT ( - 26 ) ELSE - - 60 END ) * - 78 AS col0, + 37 + - CASE 93 WHEN + ( 16 ) * + 58 * - 36 + + COUNT ( * ) + + - 56 * 48 * + 2 * + + SUM ( ALL + + 68 ) * - + 17 * + NULLIF ( - - 4, + - 61 + 16 + + 22 + - COUNT… - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 72 - + + 41 / - + 36 AS col2, + COUNT ( + 57 ) * + 86 * - 9 * CASE 20 WHEN + 12 THEN + 59 + - 93 END + - 3 - -Expected: ["-71","NULL"] but got ["-70.861","NULL"] -``` - - -```sql -SELECT + 77 + + + 23 AS col0, CASE NULLIF ( ( - - 61 ), 13 + 49 ) WHEN - 26 THEN - ( 4 ) + 75 WHEN + - 60 THEN - - 1 ELSE NULL END col0 - -Expected: ["100","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 96 / - 59 * + MAX ( + 17 ) AS col2, CAST ( NULL AS INTEGER ) col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,977 failed -* 80% was OK - -Time: 86039.273ms - ----- ---- ---- ---- ---- ---- ---- -### 443/620 [`./test/random/expr/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_69.test) - -_Mimic sqlite_ - -```sql -SELECT 89 / + - 12 - -Expected: ["-7"] but got ["-7.417"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + - ( - - 82 ) col2 - -Expected: ["NULL"] but got ["-82"] -``` - - -```sql -SELECT 33 / CAST ( - + COUNT ( 27 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT - 82 AS col0, 14 / + CAST ( + 80 AS INTEGER ) + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - 53 / + 68 - -Wrong conversion type -``` - - -```sql -SELECT COUNT ( * ) + + 43 AS col0, + 60 * CASE - + 82 WHEN + 64 THEN - COUNT ( * ) ELSE NULL END AS col0 - -Expected: ["44","NULL"] but got ["NULL"] -``` - - -```sql -SELECT CASE - COUNT ( * ) WHEN + - 24 THEN - 37 WHEN - 39 / 34 THEN + NULLIF ( + 14, - SUM ( ALL + - 53 ) + + - COUNT ( * ) - 30 * - CAST ( NULL AS REAL ) ) END AS col1 - -Expected: ["14"] but got ["NULL"] -``` - - -```sql -SELECT 18 * + CASE WHEN NOT 19 NOT BETWEEN NULL AND NULL THEN + COUNT ( * ) + 36 ELSE 38 * + 86 END AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ), + CASE - COUNT ( * ) WHEN 28 / + 84 + - + CASE - 36 WHEN - 8 THEN + - 17 WHEN + 73 THEN NULL ELSE NULL END * NULLIF ( - CASE - 81 WHEN 4 * + 64 + - 41 * 30 THEN + 41 ELSE NULL END, 29 ) THEN 46 + CASE + CASE ( - 52 ) WHEN + 4 - 2 THEN NULL ELSE + COUNT ( AL… - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( + CAST ( NULL AS INTEGER ) ) AS col0, + MIN ( + CAST ( NULL AS INTEGER ) ) * + CASE COUNT ( * ) WHEN MIN ( ALL + 73 ) / NULLIF ( + 74, 84 ) * 10 THEN NULL ELSE - + 25 END - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,019 failed -* 79% was OK - -Time: 79667.518ms - ----- ---- ---- ---- ---- ---- ---- -### 444/620 [`./test/random/expr/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 83 / - 36 AS col1 - -Expected: ["2"] but got ["2.306"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) * - + 40 col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - MIN ( + - 66 ) * + + 86 + + - SUM ( + 97 ) - - + 4 * ( + MAX ( - 8 ) ) * CASE 6 WHEN CAST ( + + 22 AS REAL ) THEN - 82 WHEN - 14 THEN NULL END AS col0 - -Wrong conversion type -``` - - -```sql -SELECT - 33 AS col0, 3 / + COUNT ( * ) + - CASE - 63 WHEN + + 43 * + COUNT ( * ) THEN + 77 * + ( 69 ) WHEN - + ( + 24 ) + + 83 * - - 92 THEN + 91 END + - - 12 * + 64 col0 - -Expected: ["-33","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT CASE WHEN NOT NULLIF ( 11, - 27 ) BETWEEN - 40 + + 42 AND - CASE CAST ( + 34 AS INTEGER ) WHEN ( 22 ) + + 40 THEN - 15 * 68 ELSE - 4 * 78 END THEN 72 END / COALESCE ( + 58, + MIN ( - 44 ) ) AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT 27 col1, - CASE - + 30 WHEN + 37 THEN NULL WHEN + 0 + 2 * - 60 THEN + ( 95 ) / COALESCE ( - 40, 57 / - 17 ) WHEN - 64 - - 98 THEN NULL ELSE NULL END AS col1 - -Expected: ["27","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL + 99 * + CAST ( - + COUNT ( ALL - 18 ) AS INTEGER ) AS col2 - -g is not defined -``` - - -```sql -SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ), 33 * + CAST ( - 13 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) / + + 12 * - 39 - -Expected: ["NULL","NULL"] but got ["-1","0"] -``` - - -```sql -SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0, 32 + + 91 + - 95 + - NULLIF ( + CASE + 52 WHEN - + 61 + - + 37 THEN + - 27 - + - 74 / MAX ( ALL + 70 ) WHEN - 37 THEN NULL WHEN + 66 THEN NULL WHEN + ( + MIN ( DISTINCT 35 ) ) + + 29 * - 72 THEN - MIN ( DISTINCT + - ( - 20 ) ) * - + 53… - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,097 failed -* 79% was OK - -Time: 67304.733ms - ----- ---- ---- ---- ---- ---- ---- -### 445/620 [`./test/random/expr/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_70.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) * 52 / - + ( 13 ) AS col1, COUNT ( * ) AS col1 - -Expected: ["NULL","1"] but got ["1"] -``` - - -```sql -SELECT DISTINCT 52 / + 42 AS col2, + 3 AS col1 - -Expected: ["1","3"] but got ["1.238","3"] -``` - - -```sql -SELECT - CAST ( + MIN ( - 85 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT 25 * - CAST ( NULL AS REAL ) - -Wrong conversion type -``` - - -```sql -SELECT + 37 AS col0, COALESCE ( - + COUNT ( * ), - COALESCE ( - 65, - 40 + 29 + + - 25 + - 71 * + - COUNT ( * ) / + 78 / - 51 ) * 27 + - - 72 ) / CASE + CASE - + 68 WHEN 58 + ( 57 ) / + 55 / 36 THEN + CAST ( 34 AS INTEGER ) WHEN - COALESCE ( 29, 60 + + 66 ) THEN NULL ELSE - CAST ( COUNT ( * ) AS IN… - -Expected: ["37","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 8 AS col0, - 26 - - - 85 + + + 56 * + CASE 78 WHEN + 57 THEN + - 71 WHEN + 33 THEN NULL END * - + 32 col0 - -Expected: ["8","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + 52 / - 9 * CAST ( NULL AS INTEGER ) col2, COUNT ( * ) + - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","1"] -``` - - -```sql -SELECT CASE WHEN ( NOT ( - 38 BETWEEN COUNT ( * ) + + 1 AND AVG ( 66 ) - 52 ) ) THEN - MIN ( ALL ( + 54 ) ) WHEN NULL NOT BETWEEN NULL AND ( NULL ) THEN NULL END / 49 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - 68 + - + 1 + + COUNT ( * ) * - 71 * - 19 - - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL","NULL"] but got ["1280","0"] -``` - - -```sql -SELECT DISTINCT + CASE + 17 WHEN + - ( + COALESCE ( + MIN ( - 87 ), COUNT ( * ) + AVG ( ALL 86 ), - 76 ) ) THEN NULL WHEN SUM ( ALL 3 ) + CASE + 53 WHEN 63 THEN - 22 WHEN - MAX ( DISTINCT 69 ) THEN - NULLIF ( + 21, + MAX ( + 31 ) ) + 11 * - 59 END THEN + 97 WHEN 17 THEN + 86 / + 23 END AS col0 - -Expected: ["3"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,000 failed -* 80% was OK - -Time: 50186.268ms - ----- ---- ---- ---- ---- ---- ---- -### 446/620 [`./test/random/expr/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_71.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + COUNT ( * ) AS col0, 4 - -Expected: ["1","4"] but got ["4","1"] -``` - - -```sql -SELECT + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * + + 23 * + + 40 + 61 + + MIN ( ALL - + 31 ) AS col2 - -Expected: ["NULL"] but got ["31"] -``` - - -```sql -SELECT + 75 * ( + - CAST ( + SUM ( - 42 ) AS INTEGER ) ) - -g is not defined -``` - - -```sql -SELECT DISTINCT + - 6 * - CAST ( + + 26 AS INTEGER ) * - CAST ( NULL AS REAL ) + + - 62 * - ( - + 99 ) - -Wrong conversion type -``` - - -```sql -SELECT NULLIF ( CASE + + 57 WHEN 85 THEN - 59 * 70 WHEN 53 THEN - 87 ELSE NULL END, - COALESCE ( CAST ( - + 47 AS INTEGER ), 11, + - 77 ) / + - 7 ) + CAST ( + 84 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL - 66 + + COUNT ( * ) + + ( + 74 ) * - 42 AS col1, - 3 / + CAST ( - MAX ( - 86 ) AS INTEGER ) - + - 68 + 54 - -Expected: ["-3173","122"] but got ["-3173","NULL"] -``` - - -```sql -SELECT - 15 / + CASE WHEN NOT NULL IN ( - CASE 96 WHEN + CAST ( - 0 AS INTEGER ) * + ( + CAST ( 65 AS INTEGER ) - + 87 ) + - 51 THEN NULL ELSE 26 * + CAST ( COUNT ( * ) AS INTEGER ) END ) THEN NULL WHEN NULL NOT BETWEEN + CAST ( NULL AS REAL ) + + 34 AND ( 24 - 71 ) THEN 89 - 36 * COUNT ( ALL - COA… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 81 + ( + + CAST ( NULL AS INTEGER ) ) AS col1, - CAST ( NULL AS INTEGER ) / + 13 - -Expected: ["NULL","NULL"] but got ["81","0"] -``` - - -```sql -SELECT ALL + SUM ( DISTINCT - 98 ) col1, 81 / - 11 - + + CASE 60 WHEN - AVG ( + 77 ) THEN NULL WHEN - + 86 THEN 18 END * - 28 * + MIN ( ALL - 21 ) AS col1 - -Expected: ["-98","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,994 failed -* 80% was OK - -Time: 33185.926ms - ----- ---- ---- ---- ---- ---- ---- -### 447/620 [`./test/random/expr/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_72.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - 66 / 9 / + - 79 - -Expected: ["0"] but got ["0.093"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * - 91 * - 22 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( + AVG ( DISTINCT + - 5 ) AS INTEGER ) * + + 91 AS col0, 87 + + + 56 + 1 * - + 10 / + 84 - -g is not defined -``` - - -```sql -SELECT + NULLIF ( + COUNT ( * ), CAST ( 37 AS REAL ) * - - 90 + + + 88 ) * + - 93 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ), - 99 * CASE + SUM ( + 13 ) WHEN + 93 + - - 88 THEN CASE + 45 WHEN - 2 + 64 * - 64 THEN NULL ELSE + - NULLIF ( + ( + COUNT ( * ) ), - 52 ) * ( + + 53 ) + 85 + - 97 END WHEN + - 35 THEN + CAST ( NULL AS REAL ) * - + 77 END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + CASE 36 WHEN - - 90 THEN - 44 ELSE NULL END, 49 + - - 99 / 38 AS col1 - -Expected: ["NULL","51"] but got ["NULL","51.605"] -``` - - -```sql -SELECT - 83 * 6 * + - CASE WHEN COUNT ( * ) NOT BETWEEN + - COALESCE ( SUM ( DISTINCT 74 ), + 80, CAST ( - - 17 AS INTEGER ) ) AND - + 58 * - - 46 THEN 21 + + 78 END * 2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - - CASE + 72 WHEN + 72 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 22 * - 96 + - - 97 THEN + CAST ( - - 43 AS INTEGER ) + - 40 ELSE + 64 END * 40 AS col1 - -Expected: ["2560"] but got ["NULL"] -``` - - -```sql -SELECT + 79 * + + 75 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2, + 94 * 49 + - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["5926","4606"] -``` - - -```sql -SELECT DISTINCT - ( + 30 ) - 58 AS col1, + 37 * + 68 * - ( 67 ) / CAST ( NULL AS INTEGER ) * - 8 - - + 80 + - ( 45 ) AS col1 - -Expected: ["-88","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,050 failed -* 79% was OK - -Time: 35553.413ms - ----- ---- ---- ---- ---- ---- ---- -### 448/620 [`./test/random/expr/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_73.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 58 + - + 65 * + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL"] but got ["-58"] -``` - - -```sql -SELECT ALL COUNT ( * ) / + 79 AS col2, - 64 / + COUNT ( * ) + - - MIN ( + NULLIF ( - + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - ( + 37 ) ) ) + + 43 * COUNT ( * ) - 43 + 18 AS col0 - -Expected: ["0","NULL"] but got ["0.013","NULL"] -``` - - -```sql -SELECT ALL + COUNT ( * ) + - + COUNT ( * ) AS col0, + 92 * + - 29 col0 - -Expected: ["0","-2668"] but got ["-2668"] -``` - - -```sql -SELECT + CASE - + COUNT ( * ) WHEN - - COUNT ( * ) THEN + 49 WHEN + COALESCE ( 99, + CAST ( 64 AS INTEGER ) / + + ( - 63 ) ) THEN + - 79 END + - + NULLIF ( CASE - - 99 WHEN + 82 THEN - ( + - ( + AVG ( - CAST ( NULL AS REAL ) ) ) ) END, 99 * 37 ) / 11 - -Wrong conversion type -``` - - -```sql -SELECT CASE - SUM ( - 39 ) WHEN + - 84 THEN + - 32 WHEN 93 THEN 6 ELSE NULL END AS col2, + 18 - 43 + - CAST ( NULL AS INTEGER ) * + 77 + - 22 + + 82 AS col2 - -Expected: ["NULL","NULL"] but got ["35"] -``` - - -```sql -SELECT ALL - NULLIF ( CAST ( - COALESCE ( - - COUNT ( * ), - 38 * + 74 - - 34 * 70 * + 39 ) AS INTEGER ), - 79 ) * 71 AS col1 - -g is not defined -``` - - -```sql -SELECT ALL CASE WHEN NOT + 14 BETWEEN NULL AND + COUNT ( * ) / + COUNT ( * ) * - 86 * + - 15 * - - COALESCE ( - ( - - 34 ), - 60, + - 71 * - + COUNT ( * ) * - 72 * COUNT ( * ) ) THEN + + 89 ELSE NULL END * - 1 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - CASE WHEN NOT - COUNT ( * ) IN ( ( - 10 ) - + - NULLIF ( - - 86, - - COUNT ( * ) ) + 21 + - COALESCE ( - + ( - 85 ), - 4, + COUNT ( * ) ) * - MAX ( + 10 ), + 82 + - 31 ) THEN 63 WHEN CAST ( NULL AS INTEGER ) IS NULL THEN NULL END / 65 col2 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT 66 * 95 AS col1, + CASE ( - 82 ) WHEN + CAST ( + - 79 AS INTEGER ) + 62 + 8 + + 33 * 11 THEN 67 END AS col1 - -Expected: ["6270","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + 93 * - COUNT ( * ) * + - CASE ( + - 26 ) WHEN - + 41 * - CAST ( + + 8 AS INTEGER ) + - - 82 THEN - 11 END * - 92 AS col1, COUNT ( * ) + + + 61 + - - CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL","NULL"] but got ["NULL","62"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,032 failed -* 79% was OK - -Time: 28356.921ms - ----- ---- ---- ---- ---- ---- ---- -### 449/620 [`./test/random/expr/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_74.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + - 17 / - 55 + - 25 - - 28 AS col2, 53 AS col1 - -Expected: ["3","53"] but got ["3.309","53"] -``` - - -```sql -SELECT + 13 * + 99 AS col2, + AVG ( ALL CAST ( NULL AS INTEGER ) ) - -Expected: ["1287","NULL"] but got ["1287","0"] -``` - - -```sql -SELECT ALL COUNT ( * ) AS col1, NULLIF ( + CASE + + 4 WHEN 46 * MAX ( - 9 ) THEN 92 END, + 22 ) AS col1 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + - COALESCE ( + - COALESCE ( - 60, + 41 / + 24 + + CAST ( + CAST ( + ( + 52 ) AS REAL ) AS INTEGER ), + - 1 / + 67 + + - 52 * + 7 + - CAST ( - COUNT ( + 90 ) AS INTEGER ) ), 53 ) * - 93 - + 3 * + + 47 - -Wrong conversion type -``` - - -```sql -SELECT CASE WHEN NOT NULL >= CAST ( NULL AS INTEGER ) THEN NULL ELSE + CAST ( + 28 AS INTEGER ) + - - 42 END + - COUNT ( * ) - - - COUNT ( * ) * - MAX ( DISTINCT - 96 ) col0 - -Expected: ["-27"] but got ["NULL"] -``` - - -```sql -SELECT 60 * + CAST ( COUNT ( DISTINCT + + 81 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT - 6 / CAST ( NULL AS INTEGER ), + 58 + - - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","58"] -``` - - -```sql -SELECT ALL + - MIN ( DISTINCT + - 64 ) * + 50 + CASE 24 WHEN 12 THEN NULL WHEN + 99 + 93 + - + 5 + 35 * 2 / - - 94 * 13 - - 88 * - - CASE WHEN NOT NULL <= - 25 THEN NULL WHEN NOT 88 NOT BETWEEN 76 AND + 22 THEN - 48 ELSE NULL END THEN + 59 * - 18 END col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ), CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + 3 AS col2, - CASE - 98 WHEN - 15 THEN - + CAST ( COUNT ( * ) AS INTEGER ) / + + 59 WHEN - 72 THEN + 7 ELSE NULL END AS col2 - -Expected: ["3","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,078 failed -* 79% was OK - -Time: 32534.597ms - ----- ---- ---- ---- ---- ---- ---- -### 450/620 [`./test/random/expr/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_75.test) - -_Mimic sqlite_ - -```sql -SELECT - + 33 / - 14 AS col2 - -Expected: ["2"] but got ["2.357"] -``` - - -```sql -SELECT ALL ( 29 ) * 58 * 47 / - COALESCE ( - 44, - COUNT ( * ) * - ( + 19 ) + - - 71, 92 ) + - 38 + + COUNT ( * ) - - 68 * - 96 - - CAST ( NULL AS INTEGER ) - + - 38 * - 28 - -Expected: ["NULL"] but got ["-5832.318"] -``` - - -```sql -SELECT DISTINCT + + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) * + ( + 72 ) / - + 14 - -g is not defined -``` - - -```sql -SELECT + ( + + 67 ) * + ( - CAST ( NULL AS REAL ) ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT + 59 AS col1, - 6 AS col0, CASE + COUNT ( * ) WHEN + 89 THEN + 18 * - MIN ( ALL 49 ) END AS col0 - -Expected: ["59","-6","NULL"] but got ["59","NULL"] -``` - - -```sql -SELECT + 7 + - 55 + + 9 / + 5 + - 2 + + + 45 + 48 + - 58 * 77 / 60 * - + COUNT ( * ) / CAST ( - COUNT ( * ) AS INTEGER ) - -Expected: ["-30"] but got ["NULL"] -``` - - -```sql -SELECT + ( CASE WHEN NULL BETWEEN - 3 AND 66 + + 92 THEN COUNT ( * ) END ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 75 col1, + 74 * - 17 + + CASE 61 WHEN ( + 86 ) THEN + CAST ( 99 AS INTEGER ) * + - 15 WHEN 77 THEN NULL END * - 66 * - 56 AS col1 - -Expected: ["75","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + 15 * - CAST ( NULL AS INTEGER ) + + - NULLIF ( + + 6, - 89 - - 82 ) + 61, 20 * CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["55","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), - CASE - - 28 WHEN + - COUNT ( * ) THEN - 90 END AS col0 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,056 failed -* 79% was OK - -Time: 26864.136ms - ----- ---- ---- ---- ---- ---- ---- -### 451/620 [`./test/random/expr/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_76.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + 23 + + CAST ( NULL AS INTEGER ) col0 - -Expected: ["NULL"] but got ["23"] -``` - - -```sql -SELECT DISTINCT - 46 * 67 + 35 AS col0, 50 AS col0 - -Expected: ["-3047","50"] but got ["50","50"] -``` - - -```sql -SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT - ( + 61 ) + + CAST ( NULL AS REAL ) col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / + 96 AS col1, + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL COUNT ( * ) / - CAST ( + MIN ( 44 ) AS INTEGER ) - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 53 / + 71 + - 80 AS col2, 92 - - - ( + CASE + 72 WHEN - 27 THEN - 98 WHEN CAST ( NULL AS INTEGER ) + + - NULLIF ( + 93, - 11 * - 62 ) THEN NULL ELSE NULL END ) AS col2 - -Expected: ["-80","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( 13 AS INTEGER ) / + CASE 49 WHEN MIN ( - 57 ) THEN - + 62 - - 37 - + 66 + + + 62 / AVG ( DISTINCT 79 ) WHEN 26 THEN + - 98 WHEN - COUNT ( * ) THEN + - 52 ELSE NULL END + + - 87 * + 23 + 81 AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + 29 * - CASE WHEN + 89 IS NOT NULL THEN + 63 / - 97 / + 81 + + 41 + - + COUNT ( + + 32 ) * - 48 WHEN NOT ( NULL ) NOT BETWEEN ( - 61 ) AND NULL THEN 43 - - 16 END * + + 47 + CASE + 76 WHEN + 99 THEN + 16 / + - 52 WHEN 22 * + + 54 - + 15 + COALESCE ( 64, CASE 54 WHEN - 23 / 22 THEN + 54 ELSE… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - 63 * - CASE - 66 WHEN 19 * - 86 THEN - + MIN ( + - 73 ) END, CAST ( + COUNT ( * ) AS INTEGER ) AS col2 - -Expected: ["NULL","1"] but got ["NULL","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,709 failed -* 82% was OK - -Time: 22868.030ms - ----- ---- ---- ---- ---- ---- ---- -### 452/620 [`./test/random/expr/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_77.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 29 / 20 - -Expected: ["1"] but got ["1.450"] -``` - - -```sql -SELECT ALL CASE + NULLIF ( + - 63, - 7 * - 49 + - 50 + 4 - - 7 * + - ( 71 ) * - ( 29 ) / - + 45 + + + 82 + - 87 * - 68 + + 90 ) WHEN 7 THEN NULL WHEN + + 50 THEN - 27 WHEN SUM ( + 13 ) + + 27 * - MAX ( + 21 ) THEN NULL END AS col0, 86 - -Expected: ["NULL","86"] but got ["86","NULL"] -``` - - -```sql -SELECT AVG ( - CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) - 2 + ( + - 69 ) - -Expected: ["NULL"] but got ["-71"] -``` - - -```sql -SELECT DISTINCT - + CAST ( + COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL - 7 / + COALESCE ( + CAST ( NULL AS INTEGER ), - - COUNT ( * ) * - + 92 ) - - 8 - -Expected: ["8"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 85 * CAST ( NULL AS REAL ) + - 70 + + CASE 33 WHEN + 63 THEN COALESCE ( - 50, COUNT ( * ) ) * 67 ELSE - 7 END * - 27 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + + CASE WHEN NOT - 90 > NULL THEN - + COALESCE ( COALESCE ( 40, 89 * 57 + 53, 54 + + 20 - - 40 * NULLIF ( + 71, + COALESCE ( + 21, - 30 ) ), + 17 ), + AVG ( - 91 ) ) WHEN NULL NOT BETWEEN NULL AND 67 THEN COUNT ( * ) * + 94 - + 90 * + 56 ELSE NULL END AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + 65 * - - CAST ( NULL AS INTEGER ), ( + - CAST ( - 17 AS INTEGER ) ) / - + CASE - 94 WHEN COUNT ( * ) THEN + 42 - - + MAX ( + - 18 ) / + COUNT ( * ) * + 21 ELSE NULL END * - 9 * 2 + + - 80 / - COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) / - ( - 32 ) + - SUM ( DISTINCT - ( + 14 ) ), NULLIF ( - NULLIF ( - - AVG ( 84 ), ( MIN ( + ( 51 ) ) ) ), 5 * 45 * + AVG ( DISTINCT + 64 ) ) + + + CAST ( NULL AS INTEGER ) * 46 * 48 - -Expected: ["NULL","NULL"] but got ["14","-84"] -``` - - -```sql -SELECT 43 * - + 31 - + 29 AS col0, CASE - ( + + 79 ) WHEN - 9 + - + 99 THEN + 70 WHEN + - 91 THEN + 35 END AS col0 - -Expected: ["-1362","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,988 failed -* 80% was OK - -Time: 28233.369ms - ----- ---- ---- ---- ---- ---- ---- -### 453/620 [`./test/random/expr/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_78.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * + - 42 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL 67 AS col1, - 25 + + 83 + + + 93 / + - 41 + 93 - -Expected: ["67","149"] but got ["67","148.732"] -``` - - -```sql -SELECT ALL + ( + ( + - 53 ) ) + - NULLIF ( + + SUM ( + + 44 ), + - CAST ( - 87 AS REAL ) + 73 * - 93 ) AS col0, - COUNT ( * ) - - + 88 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( - COALESCE ( - ( + 57 ), + 30 - - 63 + - 63 * COUNT ( * ) * 39, + - 58 ) AS INTEGER ) / NULLIF ( + 96, + CAST ( 45 AS INTEGER ) ) - - 43 AS col0 - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - MIN ( - 84 ) col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + 1 AS col0, + 35 + + ( - CASE WHEN NOT ( + CAST ( ( - 42 ) AS REAL ) ) IS NULL THEN NULL WHEN COUNT ( * ) BETWEEN ( NULL ) AND + COALESCE ( ( - 92 ), 86 ) THEN CAST ( 66 AS INTEGER ) END ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT - + 89 / - 26 * CAST ( COUNT ( * ) AS INTEGER ) / - COUNT ( * ) * + COUNT ( * ) + - 15 * + 62 - - 17 - -Expected: ["-916"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 3 * + 1 + 89 + + + COUNT ( * ) + 82 AS col1, - CASE + CASE 52 WHEN - - ( - COUNT ( * ) ) * ( - + COUNT ( * ) ) * NULLIF ( + MIN ( DISTINCT - 69 ), + 52 + - 22 ) THEN NULL ELSE - COUNT ( * ) + + ( - COUNT ( ALL 14 ) ) END WHEN - - 87 * - 8 THEN - + 39 WHEN - 72 THEN NULL END / + 45 AS c… - -Expected: ["175","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 24 * + MIN ( + NULLIF ( + 63, + 71 ) ) + + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - MIN ( 37 ), + 72 * - CASE + ( + SUM ( DISTINCT + 51 ) ) WHEN 93 * + 49 THEN + 44 WHEN 4 * ( - 72 ) + - 69 THEN NULL ELSE NULL END + 37 AS col1 - -Expected: ["NULL","NULL"] but got ["1475","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,030 failed -* 79% was OK - -Time: 22842.718ms - ----- ---- ---- ---- ---- ---- ---- -### 454/620 [`./test/random/expr/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_79.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 73, 21 / - CASE + COALESCE ( - 10, ( + + COALESCE ( 77, - 55 ) ), + COUNT ( * ) + 28 ) WHEN + 82 * 44 + - 75 + - 80 / 98 THEN + 27 ELSE 35 END * + 41 AS col1 - -Expected: ["73","0"] but got ["73","-0.015"] -``` - - -```sql -SELECT 43 * + + 22 * 18 * - ( - CAST ( NULL AS REAL ) ) + - 99 * - - 97 + COUNT ( * ) + 80 - -Wrong conversion type -``` - - -```sql -SELECT + 21 - + CAST ( - MAX ( + - 58 ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT ALL + 74 * COUNT ( + 45 ) * + + 63 * - CAST ( NULL AS INTEGER ) + - 62 - - 66 * + 94 / + ( 85 ) - -Expected: ["NULL"] but got ["10.988"] -``` - - -```sql -SELECT 58 + - CAST ( NULL AS INTEGER ) + - 57 AS col0 - -Expected: ["NULL"] but got ["1"] -``` - - -```sql -SELECT + 83 + + + 41 + CASE + 68 WHEN + 10 / - 92 THEN NULL WHEN + 82 + - COUNT ( * ) / - - 99 * - 4 THEN COUNT ( * ) END + + 20 * ( + 90 ) * - + 67 - - 72 * + 77 * - + 10 AS col2, 23 - -Expected: ["NULL","23"] but got ["23","NULL"] -``` - - -```sql -SELECT DISTINCT CASE WHEN NOT CAST ( NULL AS INTEGER ) NOT BETWEEN COUNT ( * ) + + 18 + - 23 + + - 18 AND 1 THEN 15 END AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + ( + + 79 ) * - 48 + + CASE WHEN NOT + 81 IN ( + 76 + + 11 ) THEN + 40 ELSE NULL END AS col0 - -Expected: ["-3752"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - 28 + - 38 AS col2, CASE - 33 WHEN - 89 THEN 13 ELSE NULL END AS col2 - -Expected: ["-66","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + + 79 AS col1, CAST ( NULL AS INTEGER ) * - SUM ( - + 96 ) AS col0, + - 86 - -Expected: ["NULL","NULL","-86"] but got ["79","0","-86"] -``` - - -```sql -SELECT 91 / - ( + CAST ( NULL AS INTEGER ) ) AS col1, + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) + 22 AS col0 - -Expected: ["NULL","NULL"] but got ["NULL","22"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,066 failed -* 79% was OK - -Time: 23541.380ms - ----- ---- ---- ---- ---- ---- ---- -### 455/620 [`./test/random/expr/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT 48 / + + 76 + + - 81 + - 78 + + - 92 - -Expected: ["-251"] but got ["-250.368"] -``` - - -```sql -SELECT ALL - ( - - CAST ( COUNT ( * ) AS INTEGER ) ) + 92 - -g is not defined -``` - - -```sql -SELECT ALL - 85 * - CAST ( NULL AS INTEGER ) AS col2, 26 - -Expected: ["NULL","26"] but got ["0","26"] -``` - - -```sql -SELECT DISTINCT - 58 + + CAST ( NULL AS REAL ) - - 6 + + COUNT ( DISTINCT - 58 ) * + 23 * - COUNT ( * ) + 11 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT COALESCE ( 8, - 90 ) * + 74, + CASE - COUNT ( * ) WHEN + - CASE WHEN - 50 NOT BETWEEN + ( - 5 ) + 1 * - 15 AND COUNT ( * ) THEN - 87 * + 60 END THEN NULL WHEN + 17 THEN 0 * CAST ( - CAST ( 8 AS INTEGER ) AS INTEGER ) END / 82 + - 48 * - 21 AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT COUNT ( * ) / - COALESCE ( + + CAST ( NULL AS INTEGER ), + - 93 + - + 11 * + 76 ), 24 / ( 29 ) - -Expected: ["0","0"] but got ["NULL","0.828"] -``` - - -```sql -SELECT DISTINCT - CASE 14 WHEN 17 + 74 THEN NULL ELSE CASE 63 WHEN + 61 THEN 95 * - - COUNT ( * ) * COUNT ( * ) - + 76 ELSE NULL END + - + 2 + 90 - 20 - - 39 / + 45 * - 43 END col2, 38 - -Expected: ["NULL","38"] but got ["38","NULL"] -``` - - -```sql -SELECT 57 + + CASE + COUNT ( * ) WHEN - 80 THEN + + 58 END - - 44 * + + 74 / - 67 + ( - COUNT ( * ) ) * + 48, CAST ( NULL AS INTEGER ) + - 20 AS col1 - -Expected: ["NULL","NULL"] but got ["NULL","-20"] -``` - - -```sql -SELECT + NULLIF ( + + 5, CAST ( - + MIN ( + COALESCE ( - - 85, + + 52 ) ) AS INTEGER ) ) - -g is not defined -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + 7 + - CAST ( - 45 AS INTEGER ) - - - 61 + - - 1 - 74, + AVG ( - - CAST ( NULL AS INTEGER ) ) + 63 AS col2 - -Expected: ["NULL","NULL"] but got ["-82","63"] -``` - - -```sql -SELECT ALL + 2 col0, ( 32 ) + - 3 + CASE - 81 WHEN - - 81 THEN 21 END + + 27 + + 93 AS col0 - -Expected: ["2","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,139 failed -* 78% was OK - -Time: 25024.695ms - ----- ---- ---- ---- ---- ---- ---- -### 456/620 [`./test/random/expr/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_80.test) - -_Mimic sqlite_ - -```sql -SELECT + 87 * + + NULLIF ( 21, - 40 * 93 / 67 ) + + + COUNT ( * ) * + - 25 - + ( - CAST ( + - AVG ( DISTINCT + ( + + 37 ) ) AS INTEGER ) ) + 15 col2 - -Expected: ["1780"] but got ["1817"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + 47 AS col0 - -Expected: ["NULL"] but got ["47"] -``` - - -```sql -SELECT DISTINCT CAST ( - COUNT ( + 42 ) AS INTEGER ) + + COALESCE ( 50, + 50 ) / - + 96 - -g is not defined -``` - - -```sql -SELECT ALL + CASE 14 WHEN + 12 THEN CASE 11 WHEN + + ( + 55 ) THEN + COUNT ( * ) + + - 79 END + + + 97 END * + 41 + + - CAST ( + 61 AS REAL ) + + - 99 * + 21 * COUNT ( * ) * + 64 * CASE 63 WHEN - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END - -Wrong conversion type -``` - - -```sql -SELECT - 3 * - CAST ( NULL AS INTEGER ) * - 28, - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT 13 + + + 43 + - 81 / ( - CASE - COUNT ( * ) WHEN CASE WHEN NOT + 69 BETWEEN ( 12 ) AND + CAST ( NULL AS INTEGER ) / + 41 THEN NULL ELSE - 51 + ( - 36 ) END * + 28 THEN NULL WHEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 92 ELSE 84 + + MAX ( 68 ) END ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT ( COUNT ( * ) ) + + 74 * + 15 col2, + NULLIF ( + - CASE + COUNT ( DISTINCT + 77 ) WHEN CASE + CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 84 + 32 * 53 THEN COUNT ( * ) END / + 63 THEN NULL WHEN COUNT ( * ) THEN - 73 - + 47 END, - 38 * 33 ) AS col0 - -Expected: ["1111","120"] but got ["1111","NULL"] -``` - - -```sql -SELECT ALL - 47 / - 79, + CASE - 8 WHEN - 88 THEN NULL WHEN - 98 THEN - 82 END col2 - -Expected: ["0","NULL"] but got ["0.595","NULL"] -``` - - -```sql -SELECT - 15 * - CAST ( NULL AS INTEGER ) AS col0, CASE + 56 WHEN + COUNT ( ALL - 28 ) THEN - 17 * + CAST ( NULL AS INTEGER ) WHEN - + 79 + + 53 THEN NULL END AS col2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 58 * 86 AS col0, 3 / CASE 35 WHEN - - 70 THEN - 18 WHEN + 19 + 17 THEN NULL END AS col0 - -Expected: ["4988","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,050 failed -* 79% was OK - -Time: 36009.902ms - ----- ---- ---- ---- ---- ---- ---- -### 457/620 [`./test/random/expr/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_81.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 83 / + CAST ( - ( + COUNT ( DISTINCT + - 13 ) ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT + - 91 AS col1, 41 * 89 * 33 / + 49 AS col2 - -Expected: ["-91","2457"] but got ["-91","2457.490"] -``` - - -```sql -SELECT - 8 - + + 85, - CAST ( NULL AS INTEGER ) * + + AVG ( ALL - 3 ) + - + COALESCE ( 27, AVG ( ALL - 73 ) ) + + 68 AS col1 - -Expected: ["-93","NULL"] but got ["-93","41"] -``` - - -```sql -SELECT DISTINCT + 11 / - 55 AS col2, - 56 * - CASE + 59 WHEN 71 / - SUM ( DISTINCT + - 15 ) + - - 39 THEN - ( CAST ( + COUNT ( * ) AS INTEGER ) ) / + COUNT ( * ) - + + ( + AVG ( DISTINCT - - 58 ) ) END AS col2 - -Expected: ["0","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + CASE + - 24 WHEN - 20 - - ( - 25 ) - + 6 + CAST ( 1 AS REAL ) * - 60 THEN - 32 / - ( NULLIF ( CASE - CASE + 44 WHEN + COUNT ( * ) THEN 44 WHEN - SUM ( - 57 ) * - COUNT ( DISTINCT 27 ) + 32 THEN NULL END WHEN - AVG ( 15 ) * - 92 + COUNT ( * ) THEN NULL WHEN + AVG ( 87 ) THEN + 19 END, CAST … - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + NULLIF ( 94, + CASE WHEN ( NULL ) BETWEEN + - 85 AND ( - CAST ( NULL AS REAL ) ) THEN + - 65 END * 30 ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT 7 / - 75 AS col2, CASE + - CAST ( NULL AS INTEGER ) WHEN 26 THEN + 12 END AS col2 - -Expected: ["0","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - 25 + CASE 55 WHEN - - 22 - - MIN ( ALL + 24 ) + - 3 + - - SUM ( ALL - 57 ) - 90 THEN - 33 + - + 75 + - 78 + 0 - - 50 ELSE NULL END AS col2, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT MAX ( - - CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + 91 AS col0, - ( - - CAST ( NULL AS INTEGER ) ) + - 4 * - - COALESCE ( CAST ( NULL AS INTEGER ), 21 ) * + 30 col2 - -Expected: ["NULL","NULL"] but got ["91","0"] -``` - - -```sql -SELECT DISTINCT + + 54 / COALESCE ( + NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) * + - 25 ), - 81 * + - 82 ) - -Expected: ["0"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,042 failed -* 79% was OK - -Time: 28305.879ms - ----- ---- ---- ---- ---- ---- ---- -### 458/620 [`./test/random/expr/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_82.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + CAST ( NULL AS REAL ) * - + ( - - 25 ) / COUNT ( * ), + 77 * - + 30 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT ( - 62 ) col2, + 15 - - 94 AS col2 - -Expected: ["-62","109"] but got ["109","109"] -``` - - -```sql -SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL 73 * CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + COALESCE ( - 59, - COUNT ( * ), + 69 ) * - ( - - NULLIF ( 0, - CAST ( NULL AS INTEGER ) ) ) + 15 - -Expected: ["15"] but got ["NULL"] -``` - - -```sql -SELECT - CASE WHEN ( NULL BETWEEN 59 AND ( + 22 ) ) THEN 48 ELSE 91 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - 54 col2, - ( + 51 ) * + + 11 + - - 13 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","-574"] -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) + - - 18, COUNT ( + 5 ) / - ( - 61 ) + + CASE + 45 WHEN + 47 THEN + - MIN ( DISTINCT + + 89 ) ELSE NULL END AS col0 - -Expected: ["NULL","NULL"] but got ["18","NULL"] -``` - - -```sql -SELECT ALL + 66 AS col2, - CASE + + 15 WHEN - 55 THEN + 61 WHEN COUNT ( + 23 ) THEN COUNT ( * ) * - 72 END AS col2 - -Expected: ["66","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL 34 AS col0, - CASE - 29 WHEN - + ( 36 ) + + 11 + - 97 - + + 86 THEN - 52 * + 46 END AS col0 - -Expected: ["34","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,104 failed -* 78% was OK - -Time: 27055.651ms - ----- ---- ---- ---- ---- ---- ---- -### 459/620 [`./test/random/expr/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_83.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 59 * + + COUNT ( * ) + 2 * + 74 AS col0, - 41 * - 3 + - + COUNT ( * ) + COUNT ( - + 61 ) + 67 + + + NULLIF ( 53, - 94 ) * - + COALESCE ( - ( + + 10 ), + COUNT ( * ) * - 77 * - + 38 * + 37 + - - 22 * + - 45 * + 29 - + + 62 ) / - 1 + 47 + ( - 83 ) * - COUNT ( - 52 ) AS col0 - -Expected: ["207","-210"] but got ["-210"] -``` - - -```sql -SELECT CASE - + 55 WHEN + 44 THEN NULL ELSE + + 12 + + 10 + - - 81 END * + 9 + + 68 + + CAST ( NULL AS INTEGER ), 63 - 52 col0 - -Expected: ["NULL","11"] but got ["995","11"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) + ( 90 - 27 * + COUNT ( * ) ) - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( SUM ( 80 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL 7 AS col1, 61 - - CASE 2 WHEN + 33 - 65 THEN + COUNT ( * ) WHEN + - 43 - - + 70 - 15 * + 96 * 65 * - + 80 / - 25 * - - COUNT ( * ) THEN NULL ELSE NULL END + + 64 + + 71 * + + ( - COUNT ( * ) ) / - CASE - 36 WHEN 30 THEN NULL ELSE 57 + - ( - 61 ) * - + 51 END * + 66 * - 71 - + NULLIF ( + … - -Expected: ["7","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - CASE WHEN NOT + 0 BETWEEN + MIN ( ALL CASE 3 WHEN 84 THEN - 60 * 42 ELSE NULL END ) * 55 AND + 34 THEN + 19 + - 10 WHEN NULL <= ( NULL ) THEN COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) END + + 1 * - 6 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - + 53 / + MIN ( + 13 ) + + CASE CAST ( NULL AS INTEGER ) WHEN - 93 / + 39 / + 16 * 32 * - - CAST ( NULL AS INTEGER ) * - 88 THEN NULL ELSE 29 END + - + 54 / ( - NULLIF ( + 68, - 92 * + SUM ( DISTINCT 95 ) * 67 / - 43 + - 73 + - 69 + + 58 * - 22 * 25 + - 5 * - CAST ( NULL AS INTEGER ) + + 29… - -Expected: ["-848"] but got ["NULL"] -``` - - -```sql -SELECT ALL 87 * - ( CAST ( NULL AS INTEGER ) ), + CASE - 33 WHEN - SUM ( DISTINCT + 67 ) THEN + - ( - CASE + 97 WHEN - + 79 THEN 78 END ) * + 10 / - 46 WHEN + 27 THEN NULL END * + + 66 AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 6 * - CAST ( NULL AS INTEGER ), + CAST ( + + ( - 16 ) AS INTEGER ) * - COUNT ( * ) / + 33 + CAST ( NULL AS INTEGER ) + - - 87 * + CAST ( - 3 AS INTEGER ) - + + 95 + - 47 AS col1 - -Expected: ["NULL","NULL"] but got ["0","-402.515"] -``` - - -```sql -SELECT + 18 / + 89 - -Expected: ["0"] but got ["0.202"] -``` - - -```sql -SELECT COUNT ( * ) / 79 - + 99 AS col1 - -Expected: ["-99"] but got ["-98.987"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,995 failed -* 80% was OK - -Time: 26289.136ms - ----- ---- ---- ---- ---- ---- ---- -### 460/620 [`./test/random/expr/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_84.test) - -_Mimic sqlite_ - -```sql -SELECT ALL CASE CAST ( NULL AS REAL ) WHEN - 52 THEN 52 WHEN 44 THEN 53 + + ( + 59 + - 46 ) * - CAST ( + 26 AS INTEGER ) END col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 83 / - 12 - -Expected: ["6"] but got ["6.917"] -``` - - -```sql -SELECT ALL + + 2 * + + 28 * - - CAST ( NULL AS INTEGER ) * 24 + + 71 - -Expected: ["NULL"] but got ["71"] -``` - - -```sql -SELECT + CAST ( - AVG ( ALL - 11 ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT DISTINCT 92 / + - 84 - -Expected: ["-1"] but got ["-1.095"] -``` - - -```sql -SELECT - 44 / - 64, - CASE COALESCE ( COUNT ( * ), + 87 * MAX ( + 68 ) + - 32 / - 54 + MAX ( DISTINCT 73 ) / + NULLIF ( + 44, + CASE 3 WHEN - 51 + - + COUNT ( * ) * + + 84 THEN NULL WHEN - 64 THEN - + 43 ELSE - 37 END * + 93 * + MIN ( ALL - + 27 ) ), + 64 * ( + CASE 3 WHEN 8 * - 72 - + 45 THEN 7 EN… - -Expected: ["0","NULL"] but got ["0.688","NULL"] -``` - - -```sql -SELECT + 57 * CASE WHEN NOT ( NULL ) NOT BETWEEN - 49 AND - - COUNT ( * ) * - COUNT ( * ) * - COALESCE ( - - 53, - NULLIF ( + AVG ( + 14 ), + 57 + - + COUNT ( * ) + - - ( 20 ) + + 75 / 66 ) ) + - + COALESCE ( 36, - COALESCE ( - 46, + - CASE - ( + 57 ) WHEN + 95 THEN NULL WHEN + CASE + - 33 WHEN - 2… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - NULLIF ( + ( - 0 ), + ( CAST ( NULL AS INTEGER ) ) ) AS col1 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT 31 + 95 + - COUNT ( * ) + - ( + 33 ) - + - ( - 9 ) * - - CASE - COALESCE ( AVG ( - + 35 ), - - ( + CAST ( NULL AS INTEGER ) ) * 70, + SUM ( - + ( - + 20 ) ) / + CAST ( NULL AS INTEGER ) / ( + 50 ) ) WHEN - 47 / 5 + COUNT ( * ) THEN - 61 + 86 END, 61 + + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["NULL","61"] -``` - - -```sql -SELECT 49 + - 56 + - 27 + 60 AS col2, CASE - 25 WHEN - 92 THEN NULL WHEN - 79 * - 81 THEN + 47 * + 87 END AS col2 - -Expected: ["26","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,992 failed -* 80% was OK - -Time: 33503.424ms - ----- ---- ---- ---- ---- ---- ---- -### 461/620 [`./test/random/expr/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_85.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 9 / + 92 + - 43 * - + COUNT ( * ) * - 98 - -Expected: ["-4214"] but got ["-4213.902"] -``` - - -```sql -SELECT ALL 26 * + 14 + + - 9 * - CAST ( NULL AS INTEGER ) * + + 83 + - 82 + 78 * 55 AS col2 - -Expected: ["NULL"] but got ["4572"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / + CASE - 28 WHEN - 68 THEN 80 WHEN + 37 THEN NULL WHEN - 67 THEN - 1 ELSE NULL END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT ALL + 27 + + 98 + + CAST ( NULL AS REAL ) + + + 28 + - 8 * - 14 + - 75 - + NULLIF ( - 35, + 33 - 13 ) * 17 * COALESCE ( + COUNT ( * ), + CAST ( - 46 AS INTEGER ) ) * 8 AS col2 - -Wrong conversion type -``` - - -```sql -SELECT 98 + + 54 * CAST ( - + COUNT ( * ) AS INTEGER ) - 18 + + 34 / 2 - 4 col1 - -g is not defined -``` - - -```sql -SELECT ALL - 84 AS col0, CASE - 33 WHEN + + 31 THEN - CAST ( 9 AS REAL ) END AS col0 - -Expected: ["-84","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT 99 / 81 - -Expected: ["1"] but got ["1.222"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - + + 71 AS col2 - -Expected: ["NULL","NULL"] but got ["0","-71"] -``` - - -```sql -SELECT ALL + 17 * + COUNT ( * ) AS col0, + 81 / + 26 + + + CASE - 1 WHEN + COALESCE ( + COUNT ( - + 7 ), + 78 ) / + 77 - - 16 - - - 42 + - 85 + + + COUNT ( * ) * COUNT ( * ) + - 67 THEN + COALESCE ( 36, - 54, + + 80 ) END AS col0 - -Expected: ["17","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + - ( - + COUNT ( * ) ) - CASE WHEN NOT ( NULL ) NOT BETWEEN + 70 AND + MAX ( ALL + + ( + 2 ) ) + - + 74 THEN + 11 ELSE NULL END AS col1 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT - - CASE WHEN NOT - 9 IN ( + 59 - + SUM ( DISTINCT - + ( - 5 ) ) ) THEN - 53 WHEN ( 17 * + 60 ) NOT IN ( + 45 * 9 + 60 ) OR + ( COUNT ( * ) ) * + 19 IS NULL THEN NULL ELSE NULL END - -Expected: ["-53"] but got ["NULL"] -``` - - -```sql -SELECT 46 / - - 15 - -Expected: ["3"] but got ["3.067"] -``` - - -```sql -SELECT 5 / - 35 AS col1 - -Expected: ["0"] but got ["-0.143"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,033 failed -* 79% was OK - -Time: 27011.384ms - ----- ---- ---- ---- ---- ---- ---- -### 462/620 [`./test/random/expr/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_86.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT 64 * ( - + 83 ) + - 88 + + + COUNT ( * ) * - 77 / 55 AS col1 - -Expected: ["-5401"] but got ["-5401.400"] -``` - - -```sql -SELECT ALL + 30 + CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["30"] -``` - - -```sql -SELECT ALL AVG ( DISTINCT CAST ( NULL AS REAL ) ) - -Wrong conversion type -``` - - -```sql -SELECT + 65 * + 50 * + - MIN ( ALL - ( + 16 ) ) + CAST ( NULL AS INTEGER ) + - 10 + - 93, + CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["51897","0"] -``` - - -```sql -SELECT ALL 37 * 65 + - 66 * CAST ( AVG ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + ( + COALESCE ( + 22, - 4 + 68 ) ) + - 61 AS col1 - -g is not defined -``` - - -```sql -SELECT ALL NULLIF ( ( - CASE - 78 WHEN + + COUNT ( * ) THEN - + 84 - - + 81 END ), 44 ) AS col2, 44 - -Expected: ["NULL","44"] but got ["44","NULL"] -``` - - -```sql -SELECT 51 * + - CASE WHEN NOT 1 BETWEEN - MIN ( - NULLIF ( - 96, 11 ) ) AND ( COUNT ( * ) ) THEN COUNT ( DISTINCT - 90 ) ELSE NULL END col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + + + 83 + 10 AS col0, CASE - 86 WHEN - + 24 - 95 / - COUNT ( ALL 74 ) THEN - - 25 * + COALESCE ( 2, - 42 ) ELSE NULL END - -Expected: ["NULL","NULL"] but got ["93","NULL"] -``` - - -```sql -SELECT ALL + - MIN ( - + 93 ) * - NULLIF ( 0, + CAST ( NULL AS INTEGER ) * - 32 ) * - MIN ( - 70 ) - - 23 + - 25 AS col0 - -Expected: ["-2"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 13 col1, + 39 * - ( + 90 ) / + - CAST ( NULL AS INTEGER ) col1 - -Expected: ["13","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,906 failed -* 80% was OK - -Time: 25791.586ms - ----- ---- ---- ---- ---- ---- ---- -### 463/620 [`./test/random/expr/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_87.test) - -_Mimic sqlite_ - -```sql -SELECT - + 82 / + 97 - -Expected: ["0"] but got ["-0.845"] -``` - - -```sql -SELECT + 40 * + CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - + CAST ( - 61 AS INTEGER ) * 65 / + - CAST ( NULL AS REAL ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( - MIN ( - 52 ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + COUNT ( * ) / CAST ( + COUNT ( * ) AS INTEGER ) AS col1 - -Expected: ["1"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - - CAST ( NULL AS INTEGER ), CASE 2 WHEN - - 11 THEN + - 26 ELSE NULL END + - CASE - 39 WHEN 42 THEN - 29 * - 75 WHEN 43 * 60 THEN NULL ELSE - 13 + 92 END - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 94 * COUNT ( * ) / + 77 AS col0, - CASE + - 59 WHEN + 81 THEN - - 47 + COALESCE ( 76, - 97 ) WHEN - 3 THEN CAST ( 92 AS INTEGER ) + 59 WHEN + 61 THEN NULL END AS col0 - -Expected: ["1","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,739 failed -* 82% was OK - -Time: 18686.830ms - ----- ---- ---- ---- ---- ---- ---- -### 464/620 [`./test/random/expr/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_88.test) - -_Mimic sqlite_ - -```sql -SELECT 66 * - ( - 51 ) * + 9 + CAST ( NULL AS INTEGER ) + - 68 - - 59 + - 8 * - + 43 + + COUNT ( * ) AS col0 - -Expected: ["NULL"] but got ["30630"] -``` - - -```sql -SELECT DISTINCT - SUM ( ALL 2 ) * - 92 + + 94 - - ( - COUNT ( * ) ) / + 48 - 15 col0 - -Expected: ["263"] but got ["262.979"] -``` - - -```sql -SELECT ALL - COUNT ( + 82 ) * + CAST ( NULL AS REAL ) * + - 98 / - 12 AS col0, - 89 - -Wrong conversion type -``` - - -```sql -SELECT ALL + 80 * + 85 + + CAST ( + - COUNT ( * ) AS INTEGER ) * + 9 AS col2 - -g is not defined -``` - - -```sql -SELECT 80 + COUNT ( * ) * 93 * - NULLIF ( 6, + COUNT ( 33 ) ) - - CASE WHEN NOT 17 NOT BETWEEN - 91 - - 31 AND 36 THEN - + 3 ELSE NULL END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + CASE - + 44 WHEN 51 * - 55 - + + 99 * - ( - 28 ) * - + 88 THEN 40 ELSE NULL END, 84 * - + CAST ( NULL AS INTEGER ) / + 18 - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT ALL + 0 + - COALESCE ( - CASE - 81 WHEN - 57 THEN NULL WHEN 91 THEN NULL WHEN - 82 * COALESCE ( + 86, 40 ) THEN NULL ELSE 48 / - CAST ( NULL AS INTEGER ) + + 16 * 43 END, 57 ) + - 69 / - 81 col0 - -Expected: ["-57"] but got ["NULL"] -``` - - -```sql -SELECT ALL CASE 45 WHEN 49 THEN COUNT ( * ) ELSE NULL END AS col1, 52 - -Expected: ["NULL","52"] but got ["52","NULL"] -``` - - -```sql -SELECT ALL 80 AS col2, + CASE - 98 WHEN 50 THEN + - 29 WHEN - + 24 / + 61 * - 43 THEN NULL END AS col2 - -Expected: ["80","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL AVG ( - - 41 ) + - - 2 * 48 * - - NULLIF ( + NULLIF ( CAST ( NULL AS INTEGER ), + 84 * + 66 + + + COUNT ( * ) + - 18 ), ( - 35 ) + 61 ) * 61 AS col0, CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL","NULL"] but got ["41","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,085 failed -* 79% was OK - -Time: 28880.761ms - ----- ---- ---- ---- ---- ---- ---- -### 465/620 [`./test/random/expr/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_89.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 84 * 63 / - - 50 + - 59 + - 22 + + + COUNT ( * ) + - 50 * - 72 * CAST ( NULL AS REAL ) / - 56 AS col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL + + ( - 63 ) * CAST ( NULL AS INTEGER ) * - 28 * AVG ( - - 65 ) / - 65 + + 98 * + 80 - -Expected: ["NULL"] but got ["7840"] -``` - - -```sql -SELECT ALL 75 * + CAST ( NULL AS INTEGER ) * ( - + 42 ), + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + COALESCE ( + - ( 51 ), 10 * - + 5 - + - 48 ) / - + 7 - - + 54 AS col1 - -Expected: ["61"] but got ["61.286"] -``` - - -```sql -SELECT - CAST ( - MIN ( + 22 ) AS INTEGER ) AS col1 - -g is not defined -``` - - -```sql -SELECT CASE - + 76 WHEN + 7 THEN - - 30 END + + - 8 * ( - - 71 ) + COUNT ( * ) AS col2, + 34 / 84 - -Expected: ["NULL","0"] but got ["NULL","0.405"] -``` - - -```sql -SELECT ALL + 38 * - - 77 AS col2, + 62 / + - CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["2926","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - 0 * 71 + CAST ( NULL AS INTEGER ) AS col0, 0 + + + CASE + 94 WHEN + 89 * + + CAST ( 35 AS INTEGER ) THEN - 28 END * - COUNT ( * ) - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT - - CASE WHEN NOT - + 21 BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL OR NOT + + 78 * ( + 77 ) * - 87 - + - 18 * - 28 * 4 + - + CASE - 1 WHEN + - 80 THEN - 15 WHEN 22 * ( + 38 ) + + - 64 + - CASE + 33 WHEN + - COUNT ( * ) THEN - COUNT ( ALL ( 6 ) ) END THEN NULL WHEN - 27 + + + 59 * - 87 * … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + 47 col2, 4 * - ( + 8 ) + - 16 + - 42 + SUM ( ALL - - 67 ) * ( + CASE - + SUM ( + + 41 ) WHEN + - 41 * - - 71 THEN NULL WHEN + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END ) + - - 52 col2, - - 26 - 94 + - CASE - + 20 WHEN - + CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) * - 43 +… - -Expected: ["47","NULL","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + COALESCE ( + 17, + 23 ) * 5 + + - CASE WHEN NOT NULL > NULL THEN + CASE WHEN NOT + 3 IS NULL THEN NULL ELSE ( NULLIF ( NULLIF ( COUNT ( * ), - MIN ( ALL 2 ) ), - COALESCE ( + MAX ( ALL 12 ), 23 * 61, - COUNT ( * ) ) ) ) END WHEN NULL < ( COUNT ( * ) ) THEN NULL ELSE 17 * 10 END col2 - -Expected: ["-85"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,004 failed -* 79% was OK - -Time: 32705.686ms - ----- ---- ---- ---- ---- ---- ---- -### 466/620 [`./test/random/expr/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_9.test) - -_Mimic sqlite_ - -```sql -SELECT - NULLIF ( 52, 73 ) / - 38 AS col1 - -Expected: ["1"] but got ["1.368"] -``` - - -```sql -SELECT ALL 8 + - CAST ( NULL AS INTEGER ) * ( - 85 ) AS col0 - -Expected: ["NULL"] but got ["8"] -``` - - -```sql -SELECT 22 col1, 35 * + CASE 28 WHEN 4 THEN NULL WHEN - 57 THEN 46 END * + 57 / - 91 AS col1 - -Expected: ["22","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - 53, 56 * ( + ( + ( - CAST ( NULL AS REAL ) ) ) ) + - + 68 - - - MIN ( - - ( - 69 ) ) * - 98 + + MAX ( + 97 ) * CASE - 4 WHEN - 23 * 97 + COUNT ( DISTINCT 40 ) THEN 80 WHEN 54 * 2 THEN - 96 ELSE - MAX ( 94 ) END AS col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL + CAST ( + ( COUNT ( * ) ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT ALL + COUNT ( * ) AS col1, 53 / CASE - 61 WHEN 73 + COUNT ( * ) THEN COUNT ( * ) * - 10 + - - 16 + + + 38 / COUNT ( DISTINCT 78 ) + + 15 + 1 WHEN - + 91 THEN + COUNT ( * ) + 49 END + 14 / 6 col1 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT CASE - COALESCE ( + 2, - CAST ( NULL AS INTEGER ) ) WHEN + + 11 * - + 93 * 31 THEN 1 + + 71 WHEN - 72 THEN NULL END - - CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN - 33 BETWEEN ( NULL ) AND - 14 THEN + 27 END - + 30 / - COALESCE ( 26, - NULLIF ( - 59, - COUNT ( * ) ) + + COUNT ( * ) + + 41… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + + 74 col0, CASE WHEN NOT NULL >= ( NULL ) THEN NULL ELSE 80 END * - 68 - -Expected: ["74","-5440"] but got ["74","NULL"] -``` - - -```sql -SELECT - 12 * + ( - CAST ( NULL AS INTEGER ) ) AS col0, + CASE MAX ( - 48 ) WHEN 20 * - 45 THEN COUNT ( * ) WHEN - 8 THEN 60 ELSE NULL END AS col0 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + ( + + 12 ) + - + 36 + - 83 * - 12 * ( - 71 ) * + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + ( + 21 ) ) * 16 + - 97, CAST ( NULL AS INTEGER ) * - 90 AS col2 - -Expected: ["NULL","NULL"] but got ["-121","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,046 failed -* 79% was OK - -Time: 26486.700ms - ----- ---- ---- ---- ---- ---- ---- -### 467/620 [`./test/random/expr/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_90.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 87 / + - 33 + - - 77 AS col2 - -Expected: ["75"] but got ["74.364"] -``` - - -```sql -SELECT ALL COUNT ( * ) / + - MIN ( ( - 7 ) ) * - 70 + - - 98 + MIN ( ALL 43 ) * 36 * + - 0 - + + CAST ( NULL AS INTEGER ) + + - NULLIF ( + 75, + 17 ) / - SUM ( + 84 ) AS col0 - -Expected: ["NULL"] but got ["98.891"] -``` - - -```sql -SELECT ALL + 6 * + 21 * 76 - - + 49 AS col0, 92 + CASE - + COUNT ( * ) WHEN - COUNT ( * ) * 13 - + 63 * + + 60 * + 20 + - - 56 THEN COUNT ( * ) WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN - - 51 + - 41 ELSE NULL END + + + 44 + 51 * + 67 * 43 AS col0 - -Expected: ["9625","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + - CAST ( COUNT ( * ) AS INTEGER ) + + 43 + + 65 * 85 + + 58 - -g is not defined -``` - - -```sql -SELECT DISTINCT CASE - 86 WHEN - CASE + 36 WHEN + 88 * + 42 THEN NULL WHEN + - 54 THEN - - 43 END + ( CAST ( + 28 AS REAL ) ) + + 84 * 12 + + + NULLIF ( + 89, - 80 ) THEN NULL WHEN - 12 * 6 THEN - 37 + 91 * + ( + - 19 ) * + + COUNT ( * ) * 86 - ( 18 ) + - 91 / - + 52 * + COUNT ( * ) * - 54 END - -Wrong conversion type -``` - - -```sql -SELECT - CASE WHEN NOT 26 IN ( + 95 ) THEN - NULLIF ( 63, + COUNT ( * ) ) * MIN ( DISTINCT 12 ) WHEN NOT ( COUNT ( * ) - 68 * + 98 ) IS NULL THEN NULL ELSE NULL END * + 51 - -Expected: ["38556"] but got ["NULL"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL + 83 + 0 * - CASE WHEN NOT + NULLIF ( - 5, - 71 * 0 + - - 57 ) BETWEEN - 72 AND ( 54 * - COUNT ( * ) + 86 ) THEN NULL WHEN NOT ( - ( - CAST ( NULL AS INTEGER ) ) ) NOT BETWEEN + 11 / COUNT ( * ) AND - 43 THEN - COUNT ( * ) * + NULLIF ( CAST ( NULL AS INTEGER ), 16 + 8 ) + + 93 END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 79 + 54 + - 5 AS col1, CAST ( NULL AS INTEGER ), 10 * - CASE - 51 WHEN - 61 THEN 78 - + 45 WHEN - 80 * - - 76 * + - 5 + NULLIF ( - 94 + 52, - 26 ) / ( 17 + - COUNT ( * ) ) THEN + 82 ELSE NULL END - -Expected: ["128","NULL","NULL"] but got ["128","0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,060 failed -* 79% was OK - -Time: 25624.403ms - ----- ---- ---- ---- ---- ---- ---- -### 468/620 [`./test/random/expr/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_91.test) - -_Mimic sqlite_ - -```sql -SELECT - CASE + - 1 WHEN CAST ( NULL AS INTEGER ) THEN - 64 ELSE - + 18 + + ( 90 ) / - 14 + - 60 END AS col1 - -Expected: ["84"] but got ["84.429"] -``` - - -```sql -SELECT ALL + + 59 + CAST ( NULL AS INTEGER ) - + 73 / + + 14 col2 - -Expected: ["NULL"] but got ["53.786"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS REAL ) - 61 col0 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + 26 AS col1, CAST ( NULL AS INTEGER ) col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT + 49 * CASE ( ( - 89 ) ) WHEN - - 55 THEN NULL WHEN - COUNT ( * ) THEN - ( 25 ) ELSE NULL END AS col2, 33 - -Expected: ["NULL","33"] but got ["33","NULL"] -``` - - -```sql -SELECT - CAST ( COALESCE ( CASE COUNT ( * ) WHEN 58 THEN NULL WHEN + ( + 76 ) THEN 40 WHEN 91 THEN - 91 * + COUNT ( * ) ELSE NULL END, - 85 ) AS INTEGER ) * - 14 + - 27 / 53 AS col2 - -g is not defined -``` - - -```sql -SELECT DISTINCT - - ( - - CASE WHEN NOT + 87 BETWEEN NULL AND ( NULL ) THEN + 33 END ) - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL 66 AS col0, 57 - - CASE 41 WHEN - 95 - - 18 THEN - + 93 ELSE NULL END AS col0 - -Expected: ["66","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT 33 / ( + CAST ( COUNT ( * ) AS INTEGER ) ) + - COUNT ( * ) / + 26 AS col2 - -Expected: ["33"] but got ["NULL"] -``` - - -```sql -SELECT - - CAST ( NULL AS INTEGER ) + + 88 AS col2, - CASE 76 WHEN - CASE - 62 WHEN - 68 * COUNT ( + 7 ) - 54 THEN - 69 END * + 86 THEN NULL WHEN - - 25 THEN + COALESCE ( MIN ( ALL + + 5 ), - 46 * + CAST ( + CAST ( + 75 AS INTEGER ) AS INTEGER ) + 76 ) WHEN - 10 + 76 THEN 88 ELSE NULL END * 79 + + … - -Expected: ["NULL","NULL"] but got ["88","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,050 failed -* 79% was OK - -Time: 26319.393ms - ----- ---- ---- ---- ---- ---- ---- -### 469/620 [`./test/random/expr/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_92.test) - -_Mimic sqlite_ - -```sql -SELECT COALESCE ( - 92, - COUNT ( * ) * COUNT ( * ) * + 9 ) / - 68 - -Expected: ["1"] but got ["1.353"] -``` - - -```sql -SELECT 67 * - CAST ( NULL AS INTEGER ) - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + - 40 * + CAST ( - ( + + COUNT ( * ) ) AS INTEGER ) AS col0 - -g is not defined -``` - - -```sql -SELECT ALL ( + COALESCE ( - COUNT ( * ), - 56, + MAX ( ALL - 85 ), NULLIF ( 10, + 41 ) ) ) * + COUNT ( * ) + + 42 * ( COUNT ( * ) - NULLIF ( - MAX ( ALL 58 ), NULLIF ( COUNT ( * ), + 47 + + 16 ) * - COALESCE ( COALESCE ( + CAST ( - 9 AS REAL ), + COUNT ( * ) / ( + 18 / 68 ), + 67 ) * + 51 - + 62, 9… - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CASE WHEN NOT + COALESCE ( + CAST ( ( 16 ) AS INTEGER ), + 92 + - 66, CAST ( NULL AS INTEGER ) * - 47 ) NOT BETWEEN NULLIF ( 98, 67 ) * + 63 AND COUNT ( * ) + 21 THEN CASE 84 WHEN + 36 THEN NULLIF ( 2, - ( 57 ) ) + 72 * 16 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END END col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL COUNT ( * ) AS col2, CASE + COUNT ( * ) WHEN 94 THEN 38 END AS col2 - -Expected: ["1","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) col2, + 46 + - - CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","46"] -``` - - -```sql -SELECT DISTINCT COUNT ( * ) + + 69 / CAST ( + + MIN ( 45 ) AS INTEGER ) + + + 48 * + 31 col1 - -Expected: ["1490"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 84 + - 94 * + CAST ( NULL AS INTEGER ) + 10 AS col2 - -Expected: ["NULL"] but got ["94"] -``` - - -```sql -SELECT ALL + 8 AS col0, 32 * ( + COALESCE ( + - 41, 66 ) ) / + - CAST ( NULL AS INTEGER ) * - 97 * + 6 + - + 41 + - - 50 AS col0 - -Expected: ["8","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - ( + CAST ( NULL AS INTEGER ) ), + CASE + 89 WHEN 95 THEN 91 * + - 49 END + 19 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,097 failed -* 79% was OK - -Time: 36929.795ms - ----- ---- ---- ---- ---- ---- ---- -### 470/620 [`./test/random/expr/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_93.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 25 / 11 - -Expected: ["-2"] but got ["-2.273"] -``` - - -```sql -SELECT ALL - 98 * - ( 70 ) * + CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CASE - 24 WHEN 25 / - ( + COUNT ( * ) ) + - 9 THEN 53 WHEN CAST ( - 48 AS REAL ) THEN NULL ELSE - 59 / 62 END * - 31 + - 93 - -Wrong conversion type -``` - - -```sql -SELECT ALL + 94 * CAST ( + NULLIF ( + + 66, - COUNT ( * ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) / 49 + - 27 + CASE WHEN NOT 32 BETWEEN - 37 + - 51 AND - ( + 3 ) / COUNT ( * ) THEN NULL WHEN 80 + MAX ( + ( 47 ) ) >= + 28 * 8 THEN + 29 + 81 ELSE NULL END - - 25 * + 34 * + COUNT ( * ) col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL + + 68 * + COUNT ( * ) * - 50 + + + CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["-3400","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), CASE 21 WHEN CASE + 11 WHEN 9 THEN + 2 + + 60 END / - 0 + 93 THEN + + ( + - 69 ) END AS col2 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 18 / 31, CASE - - 1 WHEN + 74 * 49 THEN NULL WHEN - 25 THEN 26 + 77 WHEN - 80 THEN 27 END * + 32 AS col1 - -Expected: ["0","NULL"] but got ["0.581","NULL"] -``` - - -```sql -SELECT 75 + - - CASE WHEN NOT ( NULL ) >= 4 THEN NULL WHEN NOT 24 IN ( 77 * + AVG ( + 27 ) + 72 * 4 ) THEN + 91 + - ( 2 + + ( 55 ) ) / + 18 END AS col2 - -Expected: ["163"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,047 failed -* 79% was OK - -Time: 35314.022ms - ----- ---- ---- ---- ---- ---- ---- -### 471/620 [`./test/random/expr/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_94.test) - -_Mimic sqlite_ - -```sql -SELECT - MIN ( DISTINCT - 33 ) * - 19 + - + 3 / - 39 - -Expected: ["-627"] but got ["-626.923"] -``` - - -```sql -SELECT ALL - + 13 + + CAST ( NULL AS INTEGER ) - - + 94 - -Expected: ["NULL"] but got ["81"] -``` - - -```sql -SELECT - ( + CAST ( NULL AS REAL ) ) AS col0 - -Wrong conversion type -``` - - -```sql -SELECT + 16 + - 24 AS col1, 24 / - AVG ( DISTINCT - + 34 ) * 20 * + CASE + 27 WHEN 24 THEN NULL WHEN + 51 * - COUNT ( * ) THEN NULL WHEN - CAST ( 69 AS INTEGER ) THEN NULLIF ( + 87, CAST ( NULL AS INTEGER ) ) ELSE NULL END + 45 AS col1 - -Expected: ["-8","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT 35 - + + 66 * 92 + - ( - - CAST ( + MIN ( DISTINCT - 53 ) AS INTEGER ) ) AS col2 - -g is not defined -``` - - -```sql -SELECT - CASE WHEN + 88 NOT BETWEEN - 13 AND - CAST ( - 77 AS INTEGER ) / 50 - - 89 + + 31 * + 65 THEN NULLIF ( - 49, + + 71 ) END - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 85 AS col2, CAST ( NULL AS INTEGER ) AS col0 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - CASE COUNT ( * ) WHEN ( COUNT ( * ) ) / + 60 - + - COUNT ( - 16 ) THEN - 57 - + 28 WHEN - 42 THEN CASE + 62 WHEN 22 / - 98 + - 69 * - COUNT ( * ) THEN - 86 WHEN + ( + 13 ) THEN NULL WHEN - 86 THEN + 88 * 82 WHEN 94 * + 28 + + COUNT ( * ) THEN NULL ELSE + 81 * 49 + + 84 * - 70 END END AS co… - -Expected: ["85"] but got ["NULL"] -``` - - -```sql -SELECT 59 col2, CASE - 75 WHEN 56 THEN + 53 WHEN - - ( + CAST ( + - 44 AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) THEN ( - 20 ) * - - 19 * + 75 * + 43 END * - + 98 AS col2 - -Expected: ["59","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( + 84 ) - - COALESCE ( - + 27, - - 64 * - + 57 + - 52 ) / CASE COALESCE ( 8, 96 / - 89 ) WHEN - COUNT ( * ) * - MIN ( ALL - - 51 ) + 22 * + - MIN ( ALL - - 10 ) THEN + COUNT ( * ) - - 27 WHEN + - 41 THEN 70 * - 92 + 61 + + - 37 + + 54 / + 40 END *… - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT + 29 / - COALESCE ( + + 5, 46, + 65 ) AS col1 - -Expected: ["-5"] but got ["-5.800"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,058 failed -* 79% was OK - -Time: 27335.644ms - ----- ---- ---- ---- ---- ---- ---- -### 472/620 [`./test/random/expr/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_95.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT ( + 13 ) - - 79 AS col0, CAST ( NULL AS INTEGER ) AS col1 - -Expected: ["92","NULL"] but got ["92","0"] -``` - - -```sql -SELECT ALL 50 / + - ( + + 6 ) - -Expected: ["-8"] but got ["-8.333"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) / - - COUNT ( ALL + + 87 ) - -Wrong conversion type -``` - - -```sql -SELECT CASE + CAST ( ( - + CASE + 1 WHEN - - CASE - + 31 WHEN 86 THEN NULL ELSE + 3 + + + 75 + 85 * - 17 + - CAST ( NULL AS INTEGER ) - + 89 END + - + 42 THEN NULL ELSE COUNT ( * ) * 64 END ) AS INTEGER ) WHEN - 25 THEN CAST ( NULL AS INTEGER ) WHEN + ( 10 ) THEN NULL END AS col0 - -g is not defined -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ), + CASE - - 48 WHEN + 39 - + - COUNT ( * ) THEN - + 50 + - 70 WHEN + 28 + + - 4 THEN NULL ELSE NULL END * - - 85 * + COUNT ( * ) AS col1 - -Expected: ["NULL","NULL"] but got ["0","NULL"] -``` - - -```sql -SELECT 36 + - + 42 + - CASE WHEN NULL BETWEEN NULL AND NULL THEN - 35 END + + - 64 AS col0 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + 31 + CASE - - 29 WHEN + 17 + + 42 THEN NULL WHEN - - 19 * + - CASE - NULLIF ( - 32, COUNT ( * ) + - - 69 ) WHEN + + 72 THEN + 3 ELSE + 73 - - 18 + 58 + + 91 END - + 96 THEN 46 + + COALESCE ( + ( 49 ), 63 * CAST ( - 28 AS INTEGER ) ) * - 44 WHEN 29 THEN 37 END AS col1 - -Expected: ["68"] but got ["NULL"] -``` - - -```sql -SELECT 81 AS col2, - CASE + 29 WHEN 5 THEN NULL WHEN - 11 THEN + 92 WHEN - ( - + 77 ) THEN NULL ELSE NULL END * 5 AS col2 - -Expected: ["81","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL CASE - - CAST ( NULL AS INTEGER ) WHEN - + 62 + 96 THEN + + 62 ELSE + 1 END + - COUNT ( * ) + 78 + - + 63 + + + 55 + + + 10 / - MAX ( ALL CAST ( NULL AS INTEGER ) ) * - ( COUNT ( * ) ) + + 49 * - - COUNT ( ALL CAST ( + 19 AS INTEGER ) ) / - - COUNT ( * ), 91 * 24 / + 74 + + MIN ( - - 83 … - -Expected: ["NULL","112"] but got ["NULL","112.514"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - 34 * - + COUNT ( * ) col2, - 73 + + + CAST ( NULL AS INTEGER ) * - - 92 - -Expected: ["NULL","NULL"] but got ["34","-73"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,074 failed -* 79% was OK - -Time: 29824.546ms - ----- ---- ---- ---- ---- ---- ---- -### 473/620 [`./test/random/expr/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_96.test) - -_Mimic sqlite_ - -```sql -SELECT + + 66 / 58 * 71 * - 5 AS col2 - -Expected: ["-355"] but got ["-403.966"] -``` - - -```sql -SELECT ALL 30 * CAST ( NULL AS INTEGER ) - + 47 AS col0 - -Expected: ["NULL"] but got ["-47"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - - 79 + - 43 / CAST ( CASE - 3 WHEN + 99 THEN NULL ELSE + COUNT ( * ) * + - MAX ( ALL + 10 ) END AS INTEGER ) * - - 36 - + 96 - -g is not defined -``` - - -```sql -SELECT 97 + - - CAST ( NULL AS INTEGER ) * CASE - CAST ( - 0 AS REAL ) WHEN 46 THEN - 16 WHEN - 63 THEN NULL ELSE NULL END AS col2 - -Wrong conversion type -``` - - -```sql -SELECT COALESCE ( + 98, + MIN ( + 74 ) ) * - + 49 + COUNT ( ALL - 63 ) - + 32 * CASE CAST ( 78 AS INTEGER ) WHEN - - 28 * 9 + - - CASE WHEN NOT 40 > NULL THEN NULL WHEN + 3 BETWEEN + 8 + + 74 AND ( NULL ) THEN COUNT ( * ) + + ( - NULLIF ( + + 48, ( - + 26 ) ) ) * 43 * + + 67 * - - 97 * + 60 ELSE - … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT DISTINCT + 78 col0, ( COUNT ( * ) ) / + + CASE + - 59 WHEN + 91 * + + 52 * - - COALESCE ( 29, - COUNT ( DISTINCT - - 33 ) + - 86 * 90, - 5 - 84 ) THEN 24 END * 23 + - 46 * 14 AS col0 - -Expected: ["78","NULL"] but got ["NULL"] -``` - - -```sql -SELECT - 28 - - ( + + 54 ) / - CAST ( - SUM ( ALL ( 81 ) ) AS INTEGER ) * - - 48 * 96 + - - 49 - + COUNT ( * ) / + 9 + - 60 + 56 + COALESCE ( + 37, - - 41 ) * - ( + - 71 ) + - 53 * + 2 - -Expected: ["2538"] but got ["NULL"] -``` - - -```sql -SELECT - CASE - COUNT ( * ) WHEN 69 + + 44 + + + 29 * - ( - 27 ) + + + 38 + + + 52 THEN - 46 WHEN + - COUNT ( * ) * + + COUNT ( * ) THEN NULL ELSE NULL END, + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - ( 48 ) - -Expected: ["NULL","NULL"] but got ["NULL","0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,024 failed -* 79% was OK - -Time: 32926.695ms - ----- ---- ---- ---- ---- ---- ---- -### 474/620 [`./test/random/expr/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_97.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + 90 col1, 64 AS col1 - -Expected: ["90","64"] but got ["64","64"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) + + 0 / + - 48 + CAST ( NULL AS REAL ) - + 34 * - 86 * - CAST ( 63 AS REAL ) * + 57 + 46 + + 35 AS col1, + 26 * - 0 + 25 AS col0 - -Wrong conversion type -``` - - -```sql -SELECT + 4 * + - CAST ( - COUNT ( * ) AS INTEGER ) - + - 22 - -g is not defined -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) col0, - AVG ( - + CAST ( NULL AS INTEGER ) ) AS col2 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT + 1 * - COUNT ( * ) * + - 98 * - ( CAST ( NULL AS INTEGER ) ) + - 47 AS col1 - -Expected: ["NULL"] but got ["-47"] -``` - - -```sql -SELECT ALL - ( - CASE WHEN NOT 43 IS NULL THEN NULL WHEN NOT ( NULL ) BETWEEN 56 / 17 + - 50 AND 28 * + 61 + + 0 THEN + - 8 END ) AS col2 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + 37 AS col2, - 15 + - CASE - 20 WHEN - 85 THEN NULL WHEN - - 42 + - 67 THEN - 81 + + 69 WHEN + ( - COUNT ( * ) ) THEN COALESCE ( 86, - 68 ) END + 40 AS col2 - -Expected: ["37","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - CASE COUNT ( * ) WHEN - - COUNT ( * ) + 29 / - 40 * - ( - - CASE 37 WHEN - + MIN ( + 39 ) / CASE + + ( + - 12 ) WHEN - 23 + - 19 THEN NULL WHEN - 12 * - ( SUM ( 84 ) ) THEN 5 ELSE - - 57 - - - 61 END THEN NULL WHEN + CASE + 92 WHEN - 72 / - - COUNT ( * ) THEN NULL WHEN + - SUM ( +… - -Expected: ["79"] but got ["NULL"] -``` - - -```sql -SELECT ALL - 64 * CASE + - 89 WHEN 66 / COUNT ( * ) THEN + + COUNT ( * ) END col2, CASE - + 44 WHEN + 22 THEN - 9 END * 23 * - - 34 AS col2 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + 7 * + 13 AS col2, - ( - CASE 24 WHEN + 85 THEN NULL WHEN + 7 THEN COALESCE ( + ( 42 ), - 63 ) END ) AS col2 - -Expected: ["91","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,033 failed -* 79% was OK - -Time: 25299.271ms - ----- ---- ---- ---- ---- ---- ---- -### 475/620 [`./test/random/expr/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_98.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( CAST ( 27 AS REAL ) AS INTEGER ) AS col1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 40 / - - 17 AS col2 - -Expected: ["2"] but got ["2.353"] -``` - - -```sql -SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 - -Expected: ["1","NULL"] but got ["0"] -``` - - -```sql -SELECT - 2 + + + CAST ( - COUNT ( * ) AS INTEGER ) - -g is not defined -``` - - -```sql -SELECT DISTINCT + CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN NULL ELSE + 26 END col2 - -Expected: ["26"] but got ["NULL"] -``` - - -```sql -SELECT - CASE WHEN NULL NOT BETWEEN ( NULL ) AND 53 THEN - - 50 WHEN NULL IS NULL THEN NULL END / + 15 - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, AVG ( CAST ( NULL AS INTEGER ) ) - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL CASE + 1 WHEN 35 + 5 / - - 2 THEN 78 END AS col1, - 17 + - + ( - COUNT ( * ) ) * - + 29 / - 32 * - 47 * - - 86 + - - 78 AS col2 - -Expected: ["NULL","61"] but got ["NULL","61.000"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,793 failed -* 82% was OK - -Time: 18127.025ms - ----- ---- ---- ---- ---- ---- ---- -### 476/620 [`./test/random/expr/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_99.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - MAX ( - 57 ) + 16 + + 44 / - + CASE - 95 WHEN 84 + 9 + + 81 * + 48 + + 37 THEN NULL WHEN - ( - + 82 ) THEN NULL ELSE 42 + - - 88 END * + 36 + + 41 * COUNT ( * ) + + 45 - -Expected: ["159"] but got ["158.991"] -``` - - -```sql -SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) AS col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT COUNT ( DISTINCT - - 46 ) + + - CASE 87 WHEN 46 / + 17 * - 59 * - 83 THEN 10 END + - CASE + 85 WHEN 55 * + CAST ( NULL AS REAL ) - - 52 THEN + 70 ELSE NULL END * - - 18 + + 97 * 51 - -Wrong conversion type -``` - - -```sql -SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - 55 + - 66 - -g is not defined -``` - - -```sql -SELECT ALL + + COUNT ( * ) / 25 + 85 + + + 98 + - 27 * 98 * - - SUM ( - 27 ) + + 79 / + + 94 * + + CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) - -Expected: ["71625"] but got ["NULL"] -``` - - -```sql -SELECT ALL + 94 AS col1, ( - 51 ) - - 87 * + 99 * - - AVG ( - 2 ) * + - 75 / - 86 * + + CASE - + 13 WHEN - ( - 81 ) THEN + - COUNT ( * ) WHEN - 51 * - 13 THEN NULL END AS col1 - -Expected: ["94","NULL"] but got ["NULL"] -``` - - -```sql -SELECT 83 - + 10 + - + 68 + + 19 - + CAST ( - ( + - 17 ) AS INTEGER ) * MIN ( 57 ) * + 46 + - - ( ( 90 ) ) + + 64 + + - NULLIF ( - 1, + - 3 ) * - + 69 + CASE WHEN NOT - SUM ( + 48 ) NOT BETWEEN ( - 53 ) AND - 29 * - COUNT ( * ) THEN COUNT ( * ) WHEN NOT NULL IS NOT NULL THEN - 41 * ( COUNT ( * ) * … - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT COUNT ( * ) * - 18 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) col2, 17 + COUNT ( * ) + - COALESCE ( 13, - 15 + 62 ) + + CASE - 85 + 82 * + 81 WHEN 61 * + 60 THEN 41 / - 49 END * 19 AS col2 - -Expected: ["NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL 96 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + 73 * + + 80 AS col0 - -Expected: ["NULL","NULL"] but got ["0","5840"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,071 failed -* 79% was OK - -Time: 25642.319ms - ----- ---- ---- ---- ---- ---- ---- -### 477/620 [`./test/random/groupby/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT - tab1.col0 * 84 + + 38 AS col2 FROM tab1 GROUP BY tab1.col0 - -Expected: ["-1810","-2314","-6850"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - + cor0.col1 FROM tab0, tab0 cor0 GROUP BY cor0.col1 - -Expected: ["-81","0"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1 - -Expected: ["41","59","61"] but got ["NULL"] -``` - - -```sql -SELECT ALL 59 / 26 FROM tab2 AS cor0 GROUP BY cor0.col0 - -Expected: ["2","2","2"] but got ["2.269","2.269","2.269"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 GROUP BY tab0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2 cor0 GROUP BY cor0.col1 - -Wrong conversion type -``` - - -```sql -SELECT ALL cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT ( cor0.col1 ) IS NULL - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,287 failed -* 57% was OK - -Time: 27397.331ms - ----- ---- ---- ---- ---- ---- ---- -### 478/620 [`./test/random/groupby/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT 47 / + cor0.col1 FROM tab1 AS cor0 GROUP BY col1 - -Expected: ["0","1","7"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col0 - -Expected: ["0","81"] but got ["NULL"] -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 GROUP BY col0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + cor0.col1 + + ( col1 ) AS col1 FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["0","162"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - NULLIF ( + cor0.col2 * cor0.col1, - cor0.col1 ) + - 31 * cor0.col2 - - col1 col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2 - -Expected: ["-2607","NULL"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY col0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 GROUP BY cor1.col1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 2 / + 19 FROM tab1 AS cor0 GROUP BY col0 - -Expected: ["0"] but got ["0.105"] -``` - - -```sql -SELECT + cor1.col0 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0, cor0.col2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT ( cor0.col1 ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + + CAST ( NULL AS INTEGER ) * 11 FROM tab0, tab2 AS cor0 GROUP BY tab0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL 86 + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor1.col0 - -Expected: ["112","112","129","129","169","169"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL CASE - cor0.col1 WHEN cor0.col1 THEN NULL ELSE cor0.col1 END FROM tab0 cor0 GROUP BY cor0.col1 - -Expected: ["81","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - + tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1 - -Expected: ["-81","0"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT cor1.col0 - + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0, cor1.col0 - -1 results returned but expected 9 -``` - - -```sql -SELECT NULLIF ( cor0.col1, cor0.col1 * 4 + - col1 ) * + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col1 - -Expected: ["3483","NULL","NULL"] but got ["NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,144 failed -* 58% was OK - -Time: 24621.064ms - ----- ---- ---- ---- ---- ---- ---- -### 479/620 [`./test/random/groupby/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_10.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 AS col2, + col0 + - col1 AS col2 FROM tab0 GROUP BY col1, col0 - -Expected: ["26","26","43","-38","83","83"] but got ["26","43","83"] -``` - - -```sql -SELECT DISTINCT + + col0 FROM tab0 cor0 GROUP BY col2, col0 HAVING NOT + col2 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN ( - col0 ) AND NULL GROUP BY col1 - -Expected: ["57"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT col0 AS col1, col0, col0 AS col1 FROM tab0 cor0 GROUP BY col0 - -6 results returned but expected 9 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 284 failed -* 97% was OK - -Time: 22402.512ms - ----- ---- ---- ---- ---- ---- ---- -### 480/620 [`./test/random/groupby/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_11.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 GROUP BY col2 HAVING NOT ( NOT col2 IS NOT NULL ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + col2 * col1 AS col0, - col1 AS col0 FROM tab1 AS cor0 GROUP BY col2, col1 - -Expected: ["2565","-57","3124","-44","48","-6"] but got ["-44","-57","-6"] -``` - - -```sql -SELECT + col1 AS col2, col1 * col1 - - + col1, - col1 AS col2 FROM tab1 AS cor0 GROUP BY col1 - -6 results returned but expected 9 -``` - - -```sql -SELECT ALL - - col0 / 30 AS col1 FROM tab2 AS cor0 GROUP BY col0, col1, col2 HAVING NOT col0 * + col0 NOT BETWEEN CAST ( NULL AS REAL ) AND - 74 * col1 + - col1 - -Wrong conversion type -``` - - -```sql -SELECT - + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 GROUP BY col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + col2 + + ( + col2 ) FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL GROUP BY col2 - -Expected: ["116","158","174"] but got ["NULL"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY col0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + col2, ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT 65 NOT BETWEEN - col0 + - col1 AND 78 GROUP BY col2 - -Expected: ["45","45","71","71","8","8"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - - 67 + - + col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["-14","NULL","67","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ), + ( - - col0 ) AS col0, + col0 FROM tab2 GROUP BY col0, col2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - + 5 / 17 / CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 GROUP BY col2, col1 HAVING NOT - + col2 + col1 < - col1 * + 81 * - 57 * - col1 - -Expected: ["NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT + CASE WHEN NOT NULL NOT BETWEEN NULL AND NULL THEN - col1 ELSE NULL END FROM tab2 GROUP BY col0 - -Cannot read property 'toString' of undefined -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 873 failed -* 91% was OK - -Time: 24278.216ms - ----- ---- ---- ---- ---- ---- ---- -### 481/620 [`./test/random/groupby/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_12.test) - -_Mimic sqlite_ - -```sql -SELECT - col0 FROM tab1 AS cor0 WHERE NOT - 48 * - 90 IN ( + + 87 ) GROUP BY col0 - -Expected: ["-22","-28","-82"] but got ["NULL"] -``` - - -```sql -SELECT ALL + col2 + - + ( - 41 ) - - - col1 col1, 7 FROM tab1 cor0 GROUP BY col2, col1 - -Expected: ["29","7","43","7","68","7"] but got ["7","29","7","43","7","68"] -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab2 GROUP BY col2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL - - 46 * CAST ( NULL AS REAL ) * + col0 col1 FROM tab0 AS cor0 GROUP BY col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 75 + CAST ( - 81 AS INTEGER ) AS col2 FROM tab1 GROUP BY col1, col2 HAVING + col2 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL 20 + + 77 + - - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * - 88 FROM tab1 GROUP BY col0 HAVING NOT NULL IS NOT NULL - -Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["97","0","97","0","97","0"] -``` - - -```sql -SELECT ALL + col1 * - col0 * CASE WHEN NULL = + col2 THEN NULL ELSE col0 END + + col1 FROM tab0 AS cor0 GROUP BY col0, col1 - -Expected: ["-149688","0","0"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + - col2 AS col1, col2 FROM tab0 WHERE NOT + - col1 IN ( - - 38, + 41, CAST ( + + col1 AS INTEGER ) ) GROUP BY col2, col2 - -Expected: ["-24","24"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) FROM tab0 GROUP BY col1 HAVING + 79 IS NOT NULL - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT - 74 AS col1, col0 * + 6, - + 87 AS col1 FROM tab2 GROUP BY col1, col0 HAVING NOT NULL IS NOT NULL - -6 results returned but expected 9 -``` - - -```sql -SELECT DISTINCT - - col1 - - col0 * + CAST ( NULL AS INTEGER ) * col0, CASE - 55 WHEN + 36 THEN NULL WHEN - + col0 THEN NULL WHEN - 29 THEN - + col1 WHEN + 19 THEN NULL ELSE NULL END AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL GROUP BY col2, col1, col0 - -Expected: ["NULL","NULL"] but got ["0","NULL","81","NULL"] -``` - - -```sql -SELECT ALL col2 + + col2 col0, col2 * col2 AS col2, 87 FROM tab2 GROUP BY col2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - col0 / - CAST ( NULL AS INTEGER ) + col0 - + 52 AS col0, 69 FROM tab2 AS cor0 GROUP BY col0, col1 - -Expected: ["NULL","69","NULL","69","NULL","69"] but got ["69","NULL","69","NULL","69","NULL"] -``` - - -```sql -SELECT ALL col2 + col2 - - 43 * + - COUNT ( * ) / CASE + CAST ( NULL AS INTEGER ) WHEN - - COALESCE ( - + 59, col1 / col1 * + COUNT ( ALL + - 40 ) * - 52, - - CASE WHEN col1 NOT BETWEEN NULL AND NULL THEN NULL ELSE 33 + + col0 / 65 END * col2 ) * - col2 + col0 THEN - COUNT ( * ) WHEN col0 THEN NULL… - -Cannot read property 'toString' of undefined -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 56 BETWEEN - - 14 + col2 * - + col1 / - col1 * + - col1 AND - ( + col1 ) + + col2 GROUP BY col1, col1 - -Expected: ["NULL","NULL","NULL"] but got ["NULL"] -``` - - -```sql -SELECT + ( NULLIF ( - cor0.col1, col1 ) ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 - -Expected: ["-81","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,446 failed -* 85% was OK - -Time: 28094.339ms - ----- ---- ---- ---- ---- ---- ---- -### 482/620 [`./test/random/groupby/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_13.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + cor0.col2 - + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2 - -Expected: ["0","0","0"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT cor0.col0 + - ( - cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col1, col0 - -Expected: ["164","44","56"] but got ["NULL"] -``` - - -```sql -SELECT ALL 97 * + 3 + - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["210","291"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL col2 / 60 FROM tab0 AS cor0 GROUP BY col0, cor0.col2 - -Expected: ["0","0","1"] but got ["0.400","0.633","1.317"] -``` - - -```sql -SELECT DISTINCT NULLIF ( + cor0.col2 * cor0.col1, - cor0.col1 ) + - 31 * cor0.col2 + - col1 col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2 - -Expected: ["1119","NULL"] but got ["NULL"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - 3 FROM tab0 AS cor0 GROUP BY cor0.col2 - -Expected: ["NULL","NULL","NULL"] but got ["-3","-3","-3"] -``` - - -```sql -SELECT NULLIF ( - cor0.col1, cor0.col1 ) FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["-81","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) - 56 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 cor0 GROUP BY cor0.col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1, cor0.col2 - -Correct amount of values returned but hash was different than expected. -``` - -#### ☓ Ran 3,182 tests as _sqlite_ - -* 1,259 failed -* 60% was OK - -Time: 11280.771ms - ----- ---- ---- ---- ---- ---- ---- -### 483/620 [`./test/random/groupby/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - ( 50 ) + tab1.col2 AS col1 FROM tab1 GROUP BY col2 - -Expected: ["-42","-5","21"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1 - -Expected: ["41","59","61"] but got ["NULL"] -``` - - -```sql -SELECT - 66 + cor0.col1 FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["-66","15"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - 70 / - 15 + col1 AS col2 FROM tab0 GROUP BY tab0.col1 - -Expected: ["4","85"] but got ["4.667","85.667"] -``` - - -```sql -SELECT NULLIF ( + col1, cor0.col1 * - ( cor0.col1 ) ) AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0 - -Expected: ["81","NULL","NULL"] but got ["0","0","81"] -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab0 cor0 GROUP BY cor0.col1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 GROUP BY cor0.col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL + cor0.col2 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor0.col2, cor1.col1 - -Expected: ["58","58","79","79","87","87"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2, cor0.col1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - tab2.col2 FROM tab2 GROUP BY tab2.col2 HAVING + col2 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - cor0.col2 * - cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor0.col2, cor1.col0 - -1 results returned but expected 9 -``` - - -```sql -SELECT + cor0.col1 - + NULLIF ( cor0.col1, COALESCE ( - cor0.col1, - cor0.col0, cor0.col1 + 52 ) ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0 - -Expected: ["0","NULL","NULL"] but got ["NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,198 failed -* 58% was OK - -Time: 27250.032ms - ----- ---- ---- ---- ---- ---- ---- -### 484/620 [`./test/random/groupby/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT 49 - - col2 * cor0.col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col2 - -Expected: ["1993","49","49"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + tab1.col2 AS col1 FROM tab1 GROUP BY col2 - -Expected: ["45","71","8"] but got ["NULL"] -``` - - -```sql -SELECT 82 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["0","6642"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + 82 / 87 FROM tab0 GROUP BY tab0.col2 - -Expected: ["0","0","0"] but got ["0.943","0.943","0.943"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 92 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0 - -Expected: ["NULL"] but got ["92"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) FROM tab1 GROUP BY col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT CASE cor0.col0 WHEN cor0.col2 * + cor0.col2 THEN cor0.col2 WHEN - 42 / cor0.col2 + cor0.col0 THEN + ( - cor0.col0 ) WHEN - col2 + - cor0.col0 THEN NULL END + NULLIF ( + cor0.col2, + cor0.col0 ) FROM tab0 cor0 GROUP BY cor0.col0, col2 - -Expected: ["53","NULL","NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT - cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1 - -Expected: ["-26","-43","-83"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL - cor1.col1 + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1, cor0.col0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2 - -Wrong conversion type -``` - - -```sql -SELECT tab1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 GROUP BY tab1.col2 HAVING NOT tab1.col2 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT cor1.col1 + - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor1.col1 - -Expected: ["-41","-59","-61","20","22","40"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,465 failed -* 55% was OK - -Time: 21427.186ms - ----- ---- ---- ---- ---- ---- ---- -### 485/620 [`./test/random/groupby/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_4.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - - ( - tab0.col0 ) FROM tab0 GROUP BY tab0.col0 - -Expected: ["-26","-43","-83"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - 35 FROM tab1 AS cor0 GROUP BY cor0.col0 - -Expected: ["NULL","NULL","NULL"] but got ["-35","-35","-35"] -``` - - -```sql -SELECT DISTINCT - cor0.col0 * - cor0.col0 AS col1 FROM tab1 cor0 GROUP BY col0 - -Expected: ["484","6724","784"] but got ["NULL"] -``` - - -```sql -SELECT ALL cor0.col1 + col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1 - -Expected: ["0","162"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor0.col2, cor1.col1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 12 / 68 FROM tab2 GROUP BY tab2.col2 - -Expected: ["0","0","0"] but got ["0.176","0.176","0.176"] -``` - - -```sql -SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 GROUP BY tab0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT NULLIF ( + 79, + cor0.col2 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1 - -Expected: ["79","79","NULL"] but got ["79","79","79"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY col1 - -Wrong conversion type -``` - - -```sql -SELECT + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2, cor1.col1 - -Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1 HAVING NOT ( tab1.col1 ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT cor0.col1 - cor0.col1 * + 37 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1 - -Expected: ["-1476","-2124","-2196"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL - + NULLIF ( tab0.col1, + 29 / - 88 ) AS col0 FROM tab0 GROUP BY tab0.col1 - -Expected: ["-81","NULL"] but got ["NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,369 failed -* 56% was OK - -Time: 21141.759ms - ----- ---- ---- ---- ---- ---- ---- -### 486/620 [`./test/random/groupby/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_5.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + tab2.col1 col2 FROM tab2 GROUP BY col1 - -Expected: ["41","59","61"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, col1 - -Expected: ["0","81"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - 0 / - cor0.col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2 - -Expected: ["0"] but got ["NULL"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY col1, cor0.col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT 3 / + 5 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0 - -Expected: ["0","0","0"] but got ["0.600","0.600","0.600"] -``` - - -```sql -SELECT - - CAST ( NULL AS REAL ) AS col2 FROM tab1 GROUP BY tab1.col2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 GROUP BY tab0.col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - col1 * - CAST ( NULL AS INTEGER ) + - 97 FROM tab0 GROUP BY tab0.col1 - -Expected: ["NULL","NULL"] but got ["-97","-97"] -``` - - -```sql -SELECT ALL - 90 / - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor1.col0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1 HAVING NOT + tab0.col1 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL + cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 - -Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL + cor0.col2 * NULLIF ( - cor0.col1, cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1 - -Expected: ["-1944","NULL","NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT cor0.col1 * + CASE cor0.col0 / + cor0.col2 WHEN + cor0.col0 / cor0.col0 THEN cor0.col1 * + cor0.col1 WHEN cor0.col0 / - cor0.col0 THEN NULL END FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2 - -Expected: ["205379","68921","NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT NULLIF ( cor0.col1, + cor0.col1 + + cor0.col1 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["81","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,488 failed -* 55% was OK - -Time: 20861.798ms - ----- ---- ---- ---- ---- ---- ---- -### 487/620 [`./test/random/groupby/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_6.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 * - cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0 - -Expected: ["-1806","-650","-6806"] but got ["NULL"] -``` - - -```sql -SELECT ALL - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col1, cor0.col1 - -Expected: ["-41","-59","-61"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL + cor0.col1 * - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1 - -Expected: ["-6561","0"] but got ["NULL","NULL"] -``` - - -```sql -SELECT + 92 / + 53 FROM tab2 GROUP BY tab2.col2 - -Expected: ["1","1","1"] but got ["1.736","1.736","1.736"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0 GROUP BY cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 - -Wrong conversion type -``` - - -```sql -SELECT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2, cor0.col0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + tab1.col1 FROM tab1 GROUP BY tab1.col1 HAVING tab1.col1 IS NOT NULL - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,625 failed -* 53% was OK - -Time: 23373.015ms - ----- ---- ---- ---- ---- ---- ---- -### 488/620 [`./test/random/groupby/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_7.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col2 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2 - -Expected: ["-1944","0","0"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT - cor0.col1 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["-81","0"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT cor0.col2 + - cor0.col2 + + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2 - -Expected: ["41","59","61"] but got ["NULL"] -``` - - -```sql -SELECT - ( + cor0.col1 * CAST ( NULL AS REAL ) ) + + 69 * col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2 - -Wrong conversion type -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 AS cor0 GROUP BY cor0.col0, col2, cor0.col1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * - 66 FROM tab0 AS cor0 GROUP BY cor0.col2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( - cor0.col1 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1 - -Expected: ["-44","-57","-6"] but got ["0","0","0"] -``` - - -```sql -SELECT + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 - -Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - - -```sql -SELECT + NULLIF ( - COALESCE ( - cor0.col2, cor0.col1 ), 79 ) / cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1 - -Expected: ["1","1","NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT ALL tab0.col0 FROM tab0 GROUP BY tab0.col0 HAVING NOT tab0.col0 IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT NULLIF ( cor0.col1, - cor0.col1 ) * - col1 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["-6561","NULL"] but got ["NULL","NULL"] -``` - - -```sql -SELECT DISTINCT - NULLIF ( + cor0.col1, cor0.col1 / - 16 ) FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["-81","NULL"] but got ["NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 4,547 failed -* 54% was OK - -Time: 28699.951ms - ----- ---- ---- ---- ---- ---- ---- -### 489/620 [`./test/random/groupby/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_8.test) - -_Mimic sqlite_ - -```sql -SELECT - tab2.col2 / - tab2.col2 AS col1 FROM tab2 GROUP BY col2 - -Expected: ["1","1","1"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT DISTINCT + col1 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["0","6561"] but got ["NULL"] -``` - - -```sql -SELECT - cor0.col1 * - cor0.col1 FROM tab0 AS cor0 GROUP BY col1 - -Expected: ["0","6561"] but got ["NULL","NULL"] -``` - - -```sql -SELECT - NULLIF ( cor0.col0, + 26 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0 - -Expected: ["-43","-83","NULL"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT + - CAST ( NULL AS REAL ) * + tab0.col2 AS col0 FROM tab0 GROUP BY tab0.col2 - -Wrong conversion type -``` - - -```sql -SELECT 65 / 40 AS col1 FROM tab1 GROUP BY tab1.col0 - -Expected: ["1","1","1"] but got ["1.625","1.625","1.625"] -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 GROUP BY tab1.col1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT tab2.col2 FROM tab2 GROUP BY tab2.col2 HAVING NOT ( tab2.col2 ) IS NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * 22 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT ALL cor0.col2 + - 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor1.col2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT cor0.col2 * - ( + cor0.col2 ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 - -Expected: ["-3364","-3364","-6241","-6241","-7569","-7569"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 2,975 failed -* 70% was OK - -Time: 21104.628ms - ----- ---- ---- ---- ---- ---- ---- -### 490/620 [`./test/random/groupby/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_9.test) - -_Mimic sqlite_ - -```sql -SELECT col1 AS col1 FROM tab1 GROUP BY col1 HAVING col1 IS NOT NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT col0, - col0 AS col0 FROM tab0 AS cor0 GROUP BY col0, col2 - -Expected: ["26","-26","43","-43","83","-83"] but got ["26","43","83"] -``` - - -```sql -SELECT DISTINCT + cor0.col0 * 74 FROM tab0 AS cor0 GROUP BY cor0.col0 - -Expected: ["1924","3182","6142"] but got ["NULL"] -``` - - -```sql -SELECT + cor0.col2 * 38 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2 - -Expected: ["1444","3002","912"] but got ["NULL","NULL","NULL"] -``` - - -```sql -SELECT 67 + 43 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["3550","67"] but got ["NULL","NULL"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1 - -Expected: ["NULL","NULL"] but got ["0","0"] -``` - - -```sql -SELECT * FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * 93 FROM tab1 AS cor0 GROUP BY cor0.col1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) * ( + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0 - -Wrong conversion type -``` - - -```sql -SELECT ALL col2 AS col1, - AVG ( - col2 ) AS col1, - col2 AS col1 FROM tab0 AS cor0 GROUP BY col2 - -3 results returned but expected 9 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 503 failed -* 94% was OK - -Time: 20537.234ms - ----- ---- ---- ---- ---- ---- ---- -### 491/620 [`./test/random/select/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_0.test) - -_Mimic sqlite_ - -```sql -SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 cor0 - -18 results returned but expected 54 -``` - - -```sql -SELECT - col2 / - col0 - + 69 AS col0 FROM tab1 AS cor0 - -Expected: ["-51","-68","-69"] but got ["-51","-67.800","-68.109"] -``` - - -```sql -SELECT DISTINCT + col0 + col1 / CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT + 63 - 48 * col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0 - -Expected: ["NULL"] but got ["63"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT ( - col2 * + col0 ) IN ( - col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,572 failed -* 84% was OK - -Time: 18468.317ms - ----- ---- ---- ---- ---- ---- ---- -### 492/620 [`./test/random/select/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_1.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - col2 + + ( 69 ) / - col2 FROM tab1 AS cor0 - -Expected: ["-55","-58","-96"] but got ["-55.278","-58.211","-96.719"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1 - -27 results returned but expected 243 -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab0, tab1, tab2 AS cor0, tab2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col0 FROM tab1 WHERE NOT ( col0 ) IN ( + col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,338 failed -* 86% was OK - -Time: 18960.251ms - ----- ---- ---- ---- ---- ---- ---- -### 493/620 [`./test/random/select/slt_good_10.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_10.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 / + ( ( cor0.col2 ) ) AS col0 FROM tab0 AS cor0 - -Expected: ["0","1","35"] but got ["0.727","1.085","35"] -``` - - -```sql -SELECT - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-26","-27","-38"] -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) / - 31 FROM tab1, tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + 50 / + tab0.col2 AS col0 FROM tab0, tab2 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["3","64","80"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT - col0 + - col2 FROM tab1 WHERE NOT col0 BETWEEN col1 AND - col2 - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,287 failed -* 87% was OK - -Time: 26788.021ms - ----- ---- ---- ---- ---- ---- ---- -### 494/620 [`./test/random/select/slt_good_100.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_100.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab1 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL + 69 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT + + cor0.col0 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col2 / + 51 + + col0 FROM tab2 AS cor0 - -Expected: ["7","78","79"] but got ["7.529","78.510","79.745"] -``` - - -```sql -SELECT col1 * + CAST ( NULL AS INTEGER ) + 30 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["30","30","30"] -``` - - -```sql -SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) - - col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["86","91","97"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + + 63 AS col2 FROM tab2, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + col2 BETWEEN ( col0 * col2 ) AND col2 - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,441 failed -* 85% was OK - -Time: 24379.690ms - ----- ---- ---- ---- ---- ---- ---- -### 495/620 [`./test/random/select/slt_good_101.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_101.test) - -_Mimic sqlite_ - -```sql -SELECT + ( col0 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] -``` - - -```sql -SELECT - col1 - col2 / + col0 AS col2 FROM tab2 AS cor0 - -Expected: ["-17","-34","-59"] but got ["-17.481","-34.857","-59.333"] -``` - - -```sql -SELECT + cor3.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab2, tab0, tab0 cor0, tab1 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + 93 + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["93"] -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( cor0.col2 ) AND - col2 * col2 * + col1 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 cor0, tab1, tab2 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,435 failed -* 85% was OK - -Time: 24177.338ms - ----- ---- ---- ---- ---- ---- ---- -### 496/620 [`./test/random/select/slt_good_102.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_102.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab2 WHERE NOT + col1 IN ( - col2 * col2 * - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT col0 + - ( col0 + tab2.col2 ) * + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 - -Expected: ["NULL"] but got ["7","78","79"] -``` - - -```sql -SELECT DISTINCT col2 / cor0.col0 + 11 col0 FROM tab0 AS cor0 - -Expected: ["11","12"] but got ["11.029","11.921","12.375"] -``` - - -```sql -SELECT ALL ( + col2 ) + CAST ( NULL AS REAL ) * - 9 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) * 5 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT cor0.col1 * 71 / 92 AS col0 FROM tab1, tab1 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab2 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,458 failed -* 85% was OK - -Time: 25632.155ms - ----- ---- ---- ---- ---- ---- ---- -### 497/620 [`./test/random/select/slt_good_103.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_103.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + + cor0.col1 + col0 / ( + col0 * ( - cor0.col0 ) ) FROM tab1 AS cor0 - -Expected: ["10","13","26"] but got ["12.988","25.667","9.984"] -``` - - -```sql -SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab0 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL + 37 - - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["37","37","37"] -``` - - -```sql -SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) * + 34 + + col0 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["14","156","158"] -``` - - -```sql -SELECT ALL - + col1 * ( + col2 * + CAST ( ( col1 ) AS REAL ) ) + + col0 AS col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab1 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT col2 IN ( col0 / - col2 + + col0 * col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,457 failed -* 85% was OK - -Time: 21529.683ms - ----- ---- ---- ---- ---- ---- ---- -### 498/620 [`./test/random/select/slt_good_104.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_104.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col0 + + tab1.col2 + CAST ( NULL AS INTEGER ) * + 57 FROM tab1 - -Expected: ["NULL"] but got ["121","176","57"] -``` - - -```sql -SELECT ALL + - CAST ( + col1 AS REAL ) + col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + col0 / 37 + col2 * - col0 AS col2 FROM tab0 cor0 - -Expected: ["-35","-7296","-792"] but got ["-34.054","-7295.595","-791.351"] -``` - - -```sql -SELECT cor0.col2 + - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["54","57","96"] -``` - - -```sql -SELECT cor0.col2 * - 5 FROM tab1 cor0 CROSS JOIN tab0, tab0 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… -``` - - -```sql -SELECT - cor0.col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab0 WHERE NOT + col1 + + col1 IN ( tab0.col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab0 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,433 failed -* 85% was OK - -Time: 28275.224ms - ----- ---- ---- ---- ---- ---- ---- -### 499/620 [`./test/random/select/slt_good_105.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_105.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col0 / 73 FROM tab2 - -Expected: ["0","1"] but got ["0.096","1.068","1.082"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS REAL ) FROM tab2, tab0, tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - ( + 90 ) + cor1.col0 / 90 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 + col1 ) IN ( + tab2.col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col0 * + CAST ( NULL AS INTEGER ) * + tab2.col0 AS col2 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 cor1, tab0 AS cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,443 failed -* 85% was OK - -Time: 23704.004ms - ----- ---- ---- ---- ---- ---- ---- -### 500/620 [`./test/random/select/slt_good_106.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_106.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + - cor1.col2 / 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] -``` - - -```sql -SELECT cor0.col1 / col0 + col1 * - col1 FROM tab2 AS cor0 - -Expected: ["-289","-3481","-957"] but got ["-288.785","-3480.244","-956.571"] -``` - - -```sql -SELECT ALL - col0 * - CAST ( + 27 AS REAL ) FROM tab2 cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL tab0.col2 * 10 + cor0.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT + col1 FROM tab2 WHERE NOT ( + col2 ) IN ( + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 * col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab1, tab0 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,415 failed -* 85% was OK - -Time: 20801.215ms - ----- ---- ---- ---- ---- ---- ---- -### 501/620 [`./test/random/select/slt_good_107.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_107.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( NULL AS INTEGER ) - 91 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT tab0.col1 * col2 + - CAST ( NULL AS INTEGER ) + col1 FROM tab0 - -Expected: ["NULL"] but got ["194","2924","7553"] -``` - - -```sql -SELECT DISTINCT - ( col2 ) / col0 AS col2 FROM tab2 - -Expected: ["-3","0"] but got ["-0.333","-0.481","-3.857"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) - + 85 col0 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["-85","-85","-85"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) * + col2 + col0 * + tab1.col2 / + tab1.col1 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 cor1, tab2, tab2 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT ( col0 + + col2 + col2 ) IN ( + col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,454 failed -* 85% was OK - -Time: 21876.717ms - ----- ---- ---- ---- ---- ---- ---- -### 502/620 [`./test/random/select/slt_good_108.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_108.test) - -_Mimic sqlite_ - -```sql -SELECT - - ( col2 ) / col1 AS col2 FROM tab1 AS cor0 - -Expected: ["2","5","7"] but got ["2.077","5.700","7.385"] -``` - - -```sql -SELECT ALL col0 + + 3 * - col2 * - CAST ( NULL AS INTEGER ) + 97 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["121","132","186"] -``` - - -```sql -SELECT cor0.col2 / - ( - 49 ) AS col1 FROM tab0, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col2 + col2 * CAST ( NULL AS REAL ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + 2 * tab2.col0 + CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab2 - -Expected: ["NULL"] but got ["14","156","158"] -``` - - -```sql -SELECT + cor0.col1 FROM tab2 cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 cor1, tab1, t ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT ( col2 ) IN ( + col0 + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 cor1, tab1, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,399 failed -* 86% was OK - -Time: 20644.964ms - ----- ---- ---- ---- ---- ---- ---- -### 503/620 [`./test/random/select/slt_good_109.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_109.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( - col2 ) AS col2 FROM tab1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - 76 / + cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + col1 / 59 - + col0 AS col2 FROM tab2 AS cor0 - -Expected: ["-7","-77","-79"] but got ["-6.475","-77","-78.712"] -``` - - -```sql -SELECT ALL - - cor0.col2 + - CAST ( NULL AS INTEGER ) * - 31 col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] -``` - - -```sql -SELECT DISTINCT + col2 * - tab2.col1 - - CAST ( NULL AS REAL ) col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT - col0 FROM tab1 WHERE NOT col0 + col1 / - col1 + + tab1.col2 IN ( col1 * + tab1.col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab0 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,408 failed -* 85% was OK - -Time: 27035.858ms - ----- ---- ---- ---- ---- ---- ---- -### 504/620 [`./test/random/select/slt_good_11.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_11.test) - -_Mimic sqlite_ - -```sql -SELECT ALL col1 / 77 - col0 col0 FROM tab0 - -Expected: ["-23","-34","-88"] but got ["-22.883","-33.740","-87.818"] -``` - - -```sql -SELECT ALL - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-86","-91","-97"] -``` - - -```sql -SELECT DISTINCT cor0.col1 * CAST ( NULL AS INTEGER ) * + col2 + col1 / col0 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0.215","0.756","4.429"] -``` - - -```sql -SELECT + tab1.col0 / + cor0.col0 FROM tab1, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 29 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL col0 FROM tab1 WHERE NOT - col1 + + col1 IN ( col0 + - col2 - + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) / 44 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 - -Wrong conversion type -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,340 failed -* 86% was OK - -Time: 24199.012ms - ----- ---- ---- ---- ---- ---- ---- -### 505/620 [`./test/random/select/slt_good_110.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_110.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 FROM tab0 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT - ( col2 ) + - col2 / col1 AS col0 FROM tab2 AS cor0 - -Expected: ["-26","-27","-40"] but got ["-26.441","-27.871","-40.235"] -``` - - -```sql -SELECT ALL - + col0 + + CAST ( NULL AS REAL ) * + col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - - 58 + 34 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL cor0.col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["24","35","89"] -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN col2 AND ( NULL ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 cor1, tab2, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,009 tests as _sqlite_ - -* 1,415 failed -* 85% was OK - -Time: 21307.125ms - ----- ---- ---- ---- ---- ---- ---- -### 506/620 [`./test/random/select/slt_good_111.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_111.test) - -_Mimic sqlite_ - -```sql -SELECT - col2 * - 70 + tab0.col1 / col0 + 50 * col1 AS col0 FROM tab0 - -Expected: ["10291","4922","6613"] but got ["10291.022","4922.771","6613.583"] -``` - - -```sql -SELECT tab2.col2 * - CAST ( - 11 * - col1 AS REAL ) AS col0 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] -``` - - -```sql -SELECT ALL + - cor1.col2 / - ( + cor1.col1 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 - - col1 AS col2 FROM tab1 - -Expected: ["NULL"] but got ["109","67","80"] -``` - - -```sql -SELECT ALL ( + 21 ) FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab0 cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,476 failed -* 85% was OK - -Time: 20799.093ms - ----- ---- ---- ---- ---- ---- ---- -### 507/620 [`./test/random/select/slt_good_112.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_112.test) - -_Mimic sqlite_ - -```sql -SELECT col1 / ( + 63 ) FROM tab1 AS cor0 - -Expected: ["0","0","0"] but got ["0.159","0.206","0.413"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) + col1 + - col0 * - ( + col2 ) / col0 col2 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-26","-27","-38"] -``` - - -```sql -SELECT + - CAST ( NULL AS INTEGER ) + 2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["2","2","2"] -``` - - -```sql -SELECT ALL + tab1.col1 / 79 AS col0 FROM tab1, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 cor1, tab2 AS cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT - col0 IN ( tab1.col0 * + col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,452 failed -* 85% was OK - -Time: 20851.687ms - ----- ---- ---- ---- ---- ---- ---- -### 508/620 [`./test/random/select/slt_good_113.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_113.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - 63 + col2 * - CAST ( - col1 AS REAL ) + - col2 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 97 + - col1 / - 75 AS col1 FROM tab2 AS cor0 - -Expected: ["97"] but got ["97.227","97.413","97.787"] -``` - - -```sql -SELECT col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + 76 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL 94 / - cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 + - col0 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-24","-35","-89"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT + col2 - col2 BETWEEN col0 / col0 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0, tab2 cor0, tab2 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,365 failed -* 86% was OK - -Time: 25097.073ms - ----- ---- ---- ---- ---- ---- ---- -### 509/620 [`./test/random/select/slt_good_114.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_114.test) - -_Mimic sqlite_ - -```sql -SELECT - 40 * cor0.col2 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-2160","-2280","-3840"] -``` - - -```sql -SELECT - 15 + col0 / 99 FROM tab1 AS cor0 - -Expected: ["-15","-15","-15"] but got ["-14.192","-14.354","-14.970"] -``` - - -```sql -SELECT * FROM tab1, tab0 cor0, tab0 cor1, tab0 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) * + col0 * col1 + - col2 + + col0 AS col2 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 42 FROM tab0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col0 IN ( + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + cor0.col2 + + cor1.col2 / tab2.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 - -27 results returned but expected 9 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,393 failed -* 86% was OK - -Time: 26484.674ms - ----- ---- ---- ---- ---- ---- ---- -### 510/620 [`./test/random/select/slt_good_115.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_115.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + + 32 / col1 AS col0 FROM tab0 AS cor0 - -Expected: ["0","0","0"] but got ["0.330","0.352","0.372"] -``` - - -```sql -SELECT 82 + col1 * CAST ( NULL AS INTEGER ) * col1 col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["82","82","82"] -``` - - -```sql -SELECT tab0.col1 / 28 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT col2 + CAST ( NULL AS REAL ) + 25 * col2 AS col0 FROM tab0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab0 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT col0 / - col2 IN ( col0 + - col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,445 failed -* 85% was OK - -Time: 21614.169ms - ----- ---- ---- ---- ---- ---- ---- -### 511/620 [`./test/random/select/slt_good_116.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_116.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - + col1 / ( col2 * - col1 ) AS col1 FROM tab1 AS cor0 - -Expected: ["0"] but got ["0.010","0.018","0.019"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) + - ( col1 ) FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-10","-13","-26"] -``` - - -```sql -SELECT - cor0.col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL + - cor1.col1 / cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - cor0.col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-86","-91","-97"] -``` - - -```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL ) - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab1 WHERE NOT col1 * - col2 - col1 IN ( tab1.col0 * + col1 / + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0 cor1 - -27 results returned but expected 243 -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,466 failed -* 85% was OK - -Time: 20937.936ms - ----- ---- ---- ---- ---- ---- ---- -### 512/620 [`./test/random/select/slt_good_117.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_117.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + col0 / + 21 AS col2 FROM tab2 AS cor0 - -Expected: ["0","3","3"] but got ["0.333","3.714","3.762"] -``` - - -```sql -SELECT col1 + + CAST ( NULL AS REAL ) * - col0 col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) / + col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + col0 * col2 + CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL"] but got ["162","3648","7680"] -``` - - -```sql -SELECT ALL - cor1.col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT + + col1 / CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["0","0","4"] but got ["0.215","0.756","4.429"] -``` - - -```sql -SELECT ALL * FROM tab0 WHERE NOT ( + col2 * + col1 ) IN ( + col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2, tab1 cor0, tab1 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT + col1 / + col0 + + col0 FROM tab2 AS cor0 - -Expected: ["11","78","79"] but got ["11.429","78.756","79.215"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,524 failed -* 84% was OK - -Time: 21318.401ms - ----- ---- ---- ---- ---- ---- ---- -### 513/620 [`./test/random/select/slt_good_118.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_118.test) - -_Mimic sqlite_ - -```sql -SELECT - col2 - + CAST ( - col1 AS INTEGER ) / + col2 AS col0 FROM tab0 AS cor0 - -Expected: ["-31","-81","96"] but got ["-30.394","-80.890","96"] -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab0 cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + cor1.col0 * + 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT + 50 * + tab0.col2 + col2 * CAST ( NULL AS INTEGER ) / 19 AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["1650","4100","50"] -``` - - -```sql -SELECT DISTINCT cor0.col0 * + cor0.col0 - - CAST ( NULL AS INTEGER ) * + 88 FROM tab0, tab0 AS cor0 - -Expected: ["NULL"] but got ["1225","576","7921"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) / + 17 AS col0 FROM tab0, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col1 * col1 * - col1 FROM tab0 WHERE NOT col0 IN ( col1 + - col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,447 failed -* 85% was OK - -Time: 23216.468ms - ----- ---- ---- ---- ---- ---- ---- -### 514/620 [`./test/random/select/slt_good_119.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_119.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - col2 / + col0 FROM tab2 cor0 - -Expected: ["-3","0"] but got ["-0.333","-0.481","-3.857"] -``` - - -```sql -SELECT + + col1 * - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-7396","-8281","-9409"] -``` - - -```sql -SELECT ALL + col1 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab2, tab1 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT - col2 FROM tab1 WHERE NOT col0 BETWEEN ( + col1 + col2 ) AND NULL - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,441 failed -* 85% was OK - -Time: 28639.829ms - ----- ---- ---- ---- ---- ---- ---- -### 515/620 [`./test/random/select/slt_good_12.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_12.test) - -_Mimic sqlite_ - -```sql -SELECT - col1 / col2 AS col0 FROM tab0 - -Expected: ["-1","-2","-97"] but got ["-1.110","-2.606","-97"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab1 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT ALL - CAST ( NULL AS REAL ) + col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… -``` - - -```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-54","-57","-96"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT + col2 - tab0.col1 IN ( col0 * col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,256 failed -* 87% was OK - -Time: 20834.771ms - ----- ---- ---- ---- ---- ---- ---- -### 516/620 [`./test/random/select/slt_good_120.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_120.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - + col2 - - col0 / col1 AS col2 FROM tab0 AS cor0 - -Expected: ["-1","-33","-82"] but got ["-0.639","-32.721","-81.022"] -``` - - -```sql -SELECT DISTINCT cor0.col2 / CAST ( NULL AS REAL ) FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - 75 / tab2.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + col0 * - CAST ( NULL AS INTEGER ) / + tab1.col0 + col2 + 92 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["146","149","188"] -``` - - -```sql -SELECT cor1.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= ( NULL ) OR NOT + col2 * col1 IN ( + col1 / - col1 - - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + col0 * + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["35","7298","792"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,434 failed -* 85% was OK - -Time: 20826.518ms - ----- ---- ---- ---- ---- ---- ---- -### 517/620 [`./test/random/select/slt_good_121.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_121.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - 59 / col2 AS col0 FROM tab1 AS cor0 - -Expected: ["-1","0"] but got ["-0.615","-1.035","-1.093"] -``` - - -```sql -SELECT ALL - - cor0.col1 * CAST ( - col2 AS REAL ) AS col2 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-24","-35","-89"] -``` - - -```sql -SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-26","-27","-38"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - col0 * col1 * + tab2.col2 FROM tab2 WHERE NOT ( col2 ) IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0, tab1 cor0, tab0 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT - col0 / 45 + - col1 AS col2 FROM tab2 AS cor0 - -Expected: ["-18","-31","-60"] but got ["-18.756","-31.156","-60.733"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,397 failed -* 86% was OK - -Time: 20758.083ms - ----- ---- ---- ---- ---- ---- ---- -### 518/620 [`./test/random/select/slt_good_122.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_122.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT col1 / + col0 + col2 FROM tab1 AS cor0 - -Expected: ["57","62","96"] but got ["57.156","62.667","96.162"] -``` - - -```sql -SELECT CAST ( + 92 AS REAL ) * + col1 + - col2 + col1 * cor0.col2 AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT + - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + col0 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab1 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 - - col0 * + col1 IN ( col1 * col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,464 failed -* 85% was OK - -Time: 21272.181ms - ----- ---- ---- ---- ---- ---- ---- -### 519/620 [`./test/random/select/slt_good_123.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_123.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - col2 / col1 col1 FROM tab0 AS cor0 - -Expected: ["0"] but got ["-0.010","-0.384","-0.901"] -``` - - -```sql -SELECT ALL - col1 * tab2.col0 * CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT ALL CAST ( NULL AS REAL ) + col0 / - col1 FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT - cor0.col1 / + 11 AS col2 FROM tab2, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT 0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab0 AS cor0 WHERE NOT col0 / col1 BETWEEN + col0 * col0 AND + col0 - - col2 - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 cor1, tab2, tab0 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,443 failed -* 85% was OK - -Time: 31050.740ms - ----- ---- ---- ---- ---- ---- ---- -### 520/620 [`./test/random/select/slt_good_124.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_124.test) - -_Mimic sqlite_ - -```sql -SELECT + 56 / col2 - - col0 FROM tab1 cor0 - -Expected: ["4","64","80"] but got ["4.037","64.982","80.583"] -``` - - -```sql -SELECT DISTINCT ( + col2 ) * col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["35","7298","792"] -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] -``` - - -```sql -SELECT DISTINCT - - cor0.col0 * CAST ( col0 AS REAL ) - col1 AS col1 FROM tab0 cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab1, tab1 cor0, tab2, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + tab1.col1 AS col2 FROM tab1 WHERE NOT + col0 IN ( - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 cor0, tab0, tab0 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 2,865 tests as _sqlite_ - -* 396 failed -* 86% was OK - -Time: 7061.630ms - ----- ---- ---- ---- ---- ---- ---- -### 521/620 [`./test/random/select/slt_good_125.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_125.test) - -#### ★ Assuming all 12 tests still passes as _sqlite_ - -Time: 0.427ms - ----- ---- ---- ---- ---- ---- ---- -### 522/620 [`./test/random/select/slt_good_126.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_126.test) - -#### ★ Assuming all 12 tests still passes as _sqlite_ - -Time: 0.616ms - ----- ---- ---- ---- ---- ---- ---- -### 523/620 [`./test/random/select/slt_good_13.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_13.test) - -_Mimic sqlite_ - -```sql -SELECT ALL 97 * - col1 + CAST ( + col1 AS REAL ) - col2 * - tab2.col1 col1 FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT 1 / - cor0.col0 AS col0 FROM tab0, tab0 AS cor0 - -Expected: ["0"] but got ["-0.011","-0.029","-0.042"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + 49 col1 FROM tab0 - -Expected: ["NULL"] but got ["49"] -``` - - -```sql -SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT 12 * + 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 cor0, tab2 AS cor1, tab0 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT col1 / col0 FROM tab2 WHERE NOT - col2 BETWEEN ( col2 * + col1 ) AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - 17 * - 37 * + col2 + CAST ( NULL AS REAL ) * - col2 FROM tab1 AS cor0 - -Wrong conversion type -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,314 failed -* 86% was OK - -Time: 21159.992ms - ----- ---- ---- ---- ---- ---- ---- -### 524/620 [`./test/random/select/slt_good_14.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_14.test) - -_Mimic sqlite_ - -```sql -SELECT + - col1 / + col2 + + col0 FROM tab1 cor0 - -Expected: ["3","64","80"] but got ["2.519","63.825","79.865"] -``` - - -```sql -SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + col2 * - col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT 57 - + ( + col1 * - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["57","57","57"] -``` - - -```sql -SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) / - col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["1","33","82"] -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 cor0, tab2, tab2 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT + col2 + col1 + + col2 FROM tab2 AS cor0 WHERE NOT col2 IN ( col1 * - col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,300 failed -* 87% was OK - -Time: 20382.591ms - ----- ---- ---- ---- ---- ---- ---- -### 525/620 [`./test/random/select/slt_good_15.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_15.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col1 + - CAST ( NULL AS REAL ) * + 98 AS col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + 81 + col2 / 38 FROM tab1 AS cor0 - -Expected: ["82","82","83"] but got ["82.421","82.500","83.526"] -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… -``` - - -```sql -SELECT + + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab2 WHERE NOT col1 IN ( + col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-54","-57","-96"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0, tab0 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,280 failed -* 87% was OK - -Time: 19956.137ms - ----- ---- ---- ---- ---- ---- ---- -### 526/620 [`./test/random/select/slt_good_16.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_16.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - cor0.col0 / col1 - + cor0.col1 FROM tab0 AS cor0 - -Expected: ["-86","-91","-97"] but got ["-86.279","-91.978","-97.361"] -``` - - -```sql -SELECT ALL - cor0.col0 / 75 col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - cor0.col0 AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-7","-78","-79"] -``` - - -```sql -SELECT ALL + 94 / - tab0.col2 FROM tab0, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - CAST ( col0 AS REAL ) * cor0.col0 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0, tab1 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( + col2 + col1 + col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,295 failed -* 87% was OK - -Time: 19961.805ms - ----- ---- ---- ---- ---- ---- ---- -### 527/620 [`./test/random/select/slt_good_17.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_17.test) - -_Mimic sqlite_ - -```sql -SELECT - + CAST ( NULL AS INTEGER ) + 99 * col0 AS col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["2376","3465","8811"] -``` - - -```sql -SELECT - + col0 + col2 / + col1 FROM tab2 AS cor0 - -Expected: ["-7","-77","-78"] but got ["-6.129","-76.765","-77.559"] -``` - - -```sql -SELECT - CAST ( + col1 AS REAL ) + - col0 * - col2 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + 28 + - cor0.col1 / + 8 AS col0 FROM tab0, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT + col0 - CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL"] but got ["24","35","89"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0, tab2 AS cor0, tab1 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT col0 * + col0 FROM tab1 WHERE NOT col0 * + col1 + - col0 * - col2 NOT BETWEEN ( - col0 ) AND ( + col2 * + col2 + + col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,327 failed -* 86% was OK - -Time: 29946.970ms - ----- ---- ---- ---- ---- ---- ---- -### 528/620 [`./test/random/select/slt_good_18.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_18.test) - -_Mimic sqlite_ - -```sql -SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL + col2 * col1 / - 27 FROM tab2 - -Expected: ["-23","-31","-56"] but got ["-23.926","-31","-56.815"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * + col1 * - col0 AS col0 FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) / + col2 + - cor0.col0 * col0 AS col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab1, tab0 AS cor0, tab0 cor1, tab2 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT * FROM tab0 WHERE NOT + col0 * col1 IN ( col0 + - col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab0 AS cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,335 failed -* 86% was OK - -Time: 21906.421ms - ----- ---- ---- ---- ---- ---- ---- -### 529/620 [`./test/random/select/slt_good_19.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_19.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT - col0 - col2 / + col0 AS col0 FROM tab0 AS cor0 - -Expected: ["-25","-35","-89"] but got ["-25.375","-35.029","-89.921"] -``` - - -```sql -SELECT ALL * FROM tab2, tab0 cor0, tab1, tab2 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - cor0.col1 + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-17","-31","-59"] -``` - - -```sql -SELECT CAST ( 95 AS REAL ) AS col0 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - cor0.col1 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( - col2 ) AS col1 FROM tab0 - -Expected: ["NULL"] but got ["-1","-33","-82"] -``` - - -```sql -SELECT col2 AS col2 FROM tab1 WHERE col0 IN ( - col0 / tab1.col1 + + col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,306 failed -* 86% was OK - -Time: 20120.555ms - ----- ---- ---- ---- ---- ---- ---- -### 530/620 [`./test/random/select/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_2.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT + col2 * + tab0.col1 + - col0 / - col1 FROM tab0 - -Expected: ["2838","7462","97"] but got ["2838.279","7462.978","97.361"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 + col0 AS col1 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["171","36","57"] -``` - - -```sql -SELECT CAST ( col1 AS REAL ) + - tab1.col0 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT ALL 86 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT * FROM tab1 WHERE NOT ( col1 ) IN ( col2 + col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,291 failed -* 87% was OK - -Time: 19230.292ms - ----- ---- ---- ---- ---- ---- ---- -### 531/620 [`./test/random/select/slt_good_20.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_20.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - cor0.col1 / - 12 col2 FROM tab0, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1, tab0 AS cor0, tab0 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT cor0.col1 / + col0 FROM tab2 AS cor0 - -Expected: ["0","4"] but got ["0.215","0.756","4.429"] -``` - - -```sql -SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT DISTINCT + col1 * - col0 - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL col1 * + 84 - - ( tab1.col0 + CAST ( NULL AS INTEGER ) ) FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["1172","2187","904"] -``` - - -```sql -SELECT ALL - tab1.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… -``` - - -```sql -SELECT col2 * col2 FROM tab0 AS cor0 WHERE NOT col1 * col2 * - cor0.col2 BETWEEN col2 AND NULL - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,299 failed -* 87% was OK - -Time: 20203.980ms - ----- ---- ---- ---- ---- ---- ---- -### 532/620 [`./test/random/select/slt_good_21.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_21.test) - -_Mimic sqlite_ - -```sql -SELECT + 94 / - col2 + col1 + 9 FROM tab0 AS cor0 - -Expected: ["12","93","99"] but got ["12","92.152","98.854"] -``` - - -```sql -SELECT ALL - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1, tab1 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT CAST ( col2 AS REAL ) AS col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT col2 FROM tab2 WHERE NOT - col0 BETWEEN col2 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,347 failed -* 86% was OK - -Time: 25256.290ms - ----- ---- ---- ---- ---- ---- ---- -### 533/620 [`./test/random/select/slt_good_22.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_22.test) - -_Mimic sqlite_ - -```sql -SELECT ALL cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) * 41 FROM tab1 - -Expected: ["NULL"] but got ["10","13","26"] -``` - - -```sql -SELECT CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-86","-91","-97"] -``` - - -```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - - col2 / + col1 + + cor0.col0 / 24 AS col0 FROM tab0 AS cor0 - -Expected: ["1","1","3"] but got ["1.384","1.469","4.609"] -``` - - -```sql -SELECT 9 / - col2 + + col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT col1 * col0 * col0 IN ( - col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0, tab1 cor1 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,324 failed -* 86% was OK - -Time: 24767.506ms - ----- ---- ---- ---- ---- ---- ---- -### 534/620 [`./test/random/select/slt_good_23.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_23.test) - -_Mimic sqlite_ - -```sql -SELECT col2 - - tab2.col0 / + tab2.col1 AS col1 FROM tab2 - -Expected: ["27","27","42"] but got ["27.226","27.322","42.647"] -``` - - -```sql -SELECT ALL + - col0 * ( + cor0.col0 ) + + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-49","-6084","-6241"] -``` - - -```sql -SELECT ALL + col2 * CAST ( 27 AS REAL ) AS col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL * FROM tab2, tab1, tab0 AS cor0, tab1 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT 20 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["20"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0, tab0 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT * FROM tab1 AS cor0 WHERE NOT col0 + col2 IN ( + col0 - + cor0.col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,346 failed -* 86% was OK - -Time: 20604.366ms - ----- ---- ---- ---- ---- ---- ---- -### 535/620 [`./test/random/select/slt_good_24.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_24.test) - -_Mimic sqlite_ - -```sql -SELECT col1 / - 43 + + col0 * tab2.col2 FROM tab2 - -Expected: ["189","2027","3002"] but got ["188.279","2026.628","3001.605"] -``` - - -```sql -SELECT ALL - col1 + cor0.col0 * + CAST ( NULL AS INTEGER ) * 34 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-17","-31","-59"] -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * col1 + - col1 * + col0 AS col2 FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-2064","-3395","-8099"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS REAL ) * col1 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2, tab1 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT col1 FROM tab2 WHERE NOT - col1 BETWEEN col2 AND NULL - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,321 failed -* 86% was OK - -Time: 20100.159ms - ----- ---- ---- ---- ---- ---- ---- -### 536/620 [`./test/random/select/slt_good_25.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_25.test) - -_Mimic sqlite_ - -```sql -SELECT + - 18 - - col2 * col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-18","-18","-18"] -``` - - -```sql -SELECT + CAST ( col0 AS REAL ) - col1 AS col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT - tab2.col0 AS col1 FROM tab2 WHERE NOT - col1 * col2 IN ( + col1 * col2 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT - col2 / + col1 AS col0 FROM tab2 - -Expected: ["-2","0","0"] but got ["-0.441","-0.871","-2.235"] -``` - - -```sql -SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab0 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT - + col0 * - CAST ( NULL AS INTEGER ) + - 92 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-92"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,313 failed -* 86% was OK - -Time: 19977.665ms - ----- ---- ---- ---- ---- ---- ---- -### 537/620 [`./test/random/select/slt_good_26.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_26.test) - -_Mimic sqlite_ - -```sql -SELECT + CAST ( col0 AS INTEGER ) / - col2 + ( - col1 ) - + col1 AS col0 FROM tab1 AS cor0 - -Expected: ["-21","-26","-52"] but got ["-21.123","-26.833","-52.056"] -``` - - -```sql -SELECT - cor0.col0 * + col0 + CAST ( NULL AS REAL ) * col0 * + col0 AS col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 98 FROM tab1 cor0 - -Expected: ["NULL"] but got ["-98"] -``` - - -```sql -SELECT - col2 * col1 - col1 * + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-1248","-1404","-570"] -``` - - -```sql -SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab1, tab1 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT + cor1.col1 * - 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL tab0.col2 * - tab0.col0 FROM tab0 WHERE NOT - col2 - - col2 BETWEEN col0 AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1 cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT + col2 / + cor0.col0 + col2 FROM tab2 AS cor0 - -Expected: ["26","30","38"] but got ["26.333","30.857","38.481"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,349 failed -* 86% was OK - -Time: 21578.205ms - ----- ---- ---- ---- ---- ---- ---- -### 538/620 [`./test/random/select/slt_good_27.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_27.test) - -_Mimic sqlite_ - -```sql -SELECT ALL - cor0.col1 / col0 + col0 FROM tab0 AS cor0 - -Expected: ["21","33","88"] but got ["20.417","32.229","87.978"] -``` - - -```sql -SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1, tab1, tab0 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL - cor1.col0 * + 21 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) + col1 * - col2 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-1248","-1404","-570"] -``` - - -```sql -SELECT + - CAST ( NULL AS REAL ) * - col0 + + col2 * + 31 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1, tab1 cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( + tab0.col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 45 AS col2 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,287 failed -* 87% was OK - -Time: 28339.338ms - ----- ---- ---- ---- ---- ---- ---- -### 539/620 [`./test/random/select/slt_good_28.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_28.test) - -_Mimic sqlite_ - -```sql -SELECT + ( - cor0.col1 ) + 93 / - col1 FROM tab1 AS cor0 - -Expected: ["-19","-20","-29"] but got ["-19.300","-20.154","-29.577"] -``` - - -```sql -SELECT ALL * FROM tab2, tab1, tab0 AS cor0, tab0 cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT ( - tab0.col0 + - CAST ( NULL AS INTEGER ) * ( col1 ) ) FROM tab0 - -Expected: ["NULL"] but got ["-24","-35","-89"] -``` - - -```sql -SELECT - 54 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT + tab0.col2 + col1 * CAST ( NULL AS INTEGER ) / + col1 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["1","33","82"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab2 AS cor2 - -36 results returned but expected 972 -``` - - -```sql -SELECT col1 + CAST ( - 60 AS REAL ) FROM tab2 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab1 cor0 WHERE NOT - col2 IN ( cor0.col2 / - cor0.col1 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,306 failed -* 86% was OK - -Time: 21299.590ms - ----- ---- ---- ---- ---- ---- ---- -### 540/620 [`./test/random/select/slt_good_29.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_29.test) - -_Mimic sqlite_ - -```sql -SELECT col2 * - ( + col1 ) + col0 / - col1 - 86 AS col2 FROM tab0 AS cor0 - -Expected: ["-183","-2924","-7548"] but got ["-183.361","-2924.279","-7548.978"] -``` - - -```sql -SELECT ( cor0.col1 + - cor2.col0 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT CAST ( - 33 AS INTEGER ) - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-33","-33","-33"] -``` - - -```sql -SELECT ALL - - CAST ( col1 AS REAL ) * + col0 FROM tab0 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 * - col0 col0 FROM tab1 AS cor0 - -Expected: ["NULL"] but got ["-4096","-6400","-9"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1, tab2 cor0, tab2 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab1 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL + tab2.col0 * col2 AS col1 FROM tab2 WHERE NOT ( + col0 * - col1 ) IN ( tab2.col0 + col1 * col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,405 failed -* 85% was OK - -Time: 20251.482ms - ----- ---- ---- ---- ---- ---- ---- -### 541/620 [`./test/random/select/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_3.test) - -_Mimic sqlite_ - -```sql -SELECT 40 + ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 - -Expected: ["NULL","NULL","NULL"] but got ["40","40","40"] -``` - - -```sql -SELECT ALL cor0.col0 + 94 / col2 FROM tab1 AS cor0 - -Expected: ["4","65","80"] but got ["4.741","65.649","80.979"] -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - ( + col2 ) * col2 + ( col1 * - col1 ) FROM tab0 AS cor0 - -Expected: ["NULL"] but got ["-7396","-8281","-9409"] -``` - - -```sql -SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IN ( col0 + col0 * col0 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,258 failed -* 87% was OK - -Time: 19602.442ms - ----- ---- ---- ---- ---- ---- ---- -### 542/620 [`./test/random/select/slt_good_30.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_30.test) - -_Mimic sqlite_ - -```sql -SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT - - col1 + - col2 / + col0 FROM tab0 AS cor0 - -Expected: ["85","91","97"] but got ["84.625","90.079","96.971"] -``` - - -```sql -SELECT ( col0 ) + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] -``` - - -```sql -SELECT - col0 + CAST ( ( col1 ) AS REAL ) FROM tab1 cor0 - -Wrong conversion type -``` - - -```sql -SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab1 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT ALL - col2 FROM tab2 WHERE NOT col0 IN ( - col2 / - col0 + + col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( col0 ) + ( - col2 ) * - col2 FROM tab1 - -Expected: ["NULL"] but got ["2919","3313","9296"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2 - -36 results returned but expected 972 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,409 failed -* 85% was OK - -Time: 20837.734ms - ----- ---- ---- ---- ---- ---- ---- -### 543/620 [`./test/random/select/slt_good_31.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_31.test) - -_Mimic sqlite_ - -```sql -SELECT + col2 + + col2 / col1 AS col0 FROM tab2 AS cor0 - -Expected: ["26","27","40"] but got ["26.441","27.871","40.235"] -``` - - -```sql -SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * cor0.col2 col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT + CAST ( NULL AS INTEGER ) * + col0 * - col0 + 48 AS col0 FROM tab1 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["48","48","48"] -``` - - -```sql -SELECT ALL - tab1.col0 / 51 AS col2 FROM tab1, tab0 AS cor0 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT CAST ( NULL AS REAL ) * - ( col0 * + ( 40 ) ) AS col1 FROM tab2 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab1, tab1 cor0, tab1 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - col1 IN ( col1 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2 - -45 results returned but expected 3645 -``` - -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,382 failed -* 86% was OK - -Time: 27073.920ms - ----- ---- ---- ---- ---- ---- ---- -### 544/620 [`./test/random/select/slt_good_32.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_32.test) - -_Mimic sqlite_ - -```sql -SELECT DISTINCT - col0 + + CAST ( 60 AS INTEGER ) / + col0 AS col0 FROM tab1 - -Expected: ["-64","-80","17"] but got ["-63.063","-79.250","17"] -``` - - -```sql -SELECT ALL - + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0 - -Expected: ["NULL"] but got ["0"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) * - col1 + cor0.col1 FROM tab2 cor0 - -Wrong conversion type -``` - - -```sql -SELECT * FROM tab2, tab0 AS cor0, tab2 cor1, tab2 cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab2 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab0 cor2 - -45 results returned but expected 3645 -``` - - -```sql -SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT ( col2 ) IN ( - col2 ) - -Query was expected to return results (but did not) -``` - -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,354 failed -* 86% was OK - -Time: 23966.453ms - ----- ---- ---- ---- ---- ---- ---- -### 545/620 [`./test/random/select/slt_good_33.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_33.test) - -_Mimic sqlite_ - -```sql -SELECT ALL + - cor0.col2 + - CAST ( NULL AS INTEGER ) * 58 AS col2 FROM tab0 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["-1","-33","-82"] -``` - - -```sql -SELECT col1 + - 77 / col0 AS col0 FROM tab1 AS cor0 - -Expected: ["1","13","9"] but got ["0.333","12.037","8.797"] +Expected: ["0"] but got ["-100"] ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) * cor1.col0 FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2 +SELECT * FROM tab0 AS cor0 WHERE col4 * + col1 + - col3 + - 64 + - col4 BETWEEN col1 + + - CAST ( + - col4 AS REAL ) AND - - CAST ( NULL AS INTEGER ) -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT DISTINCT cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1 +SELECT CAST ( NULL AS INTEGER ) AS col3 FROM tab0 AS cor0 WHERE NOT - col3 IN ( + - 29 * 82 ) -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Query was expected to return results (but did not) ``` ```sql -SELECT + CAST ( NULL AS REAL ) / - col1 col2 FROM tab2 AS cor0 +SELECT ALL - + COUNT ( * ) * + + 51 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> - col0 -Wrong conversion type +Expected: ["0","NULL"] but got ["-5100","0"] ``` ```sql -SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) FROM tab0 +SELECT ALL + CAST ( COUNT ( ALL col0 ) AS INTEGER ) col3 FROM tab0 WHERE NULL IS NULL -Expected: ["NULL"] but got ["0"] +g is not defined ``` ```sql -SELECT col2 * col2 + col1 * col0 AS col1 FROM tab0 WHERE NOT ( - col0 ) IN ( col0 * tab0.col0 ) +SELECT col2 AS col0 FROM tab0 WHERE NOT - - col0 >= 54 + 23 -Query was expected to return results (but did not) +Expected: ["0"] but got ["qckcw"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab2, tab1 AS cor2 +SELECT col0 * + - 7 FROM tab0 WHERE CAST ( col0 AS INTEGER ) NOT BETWEEN NULL AND + col3 -45 results returned but expected 3645 +100 results returned but expected 55 ``` -#### ☓ Ran 10,012 tests as _sqlite_ +#### ☓ Ran 10,123 tests as _sqlite_ -* 1,384 failed -* 86% was OK +* 715 failed +* 92% was OK -Time: 21141.155ms +Time: 34562.483ms ---- ---- ---- ---- ---- ---- ---- -### 546/620 [`./test/random/select/slt_good_34.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_34.test) +### 122/190 [`./test/index/random/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/100/slt_good_1.test) _Mimic sqlite_ ```sql -SELECT DISTINCT + col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 - -Wrong conversion type -``` - - -```sql -SELECT DISTINCT col1 + 14 / - col0 + - col1 FROM tab1 AS cor0 - -Expected: ["-4","0"] but got ["-0.175","-0.219","-4.667"] -``` - - -```sql -SELECT col0 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2 - -Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] -``` - - -```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab1 AS cor0 +SELECT + col5 AS col1 FROM tab0 AS cor0 WHERE ( - 0 ) BETWEEN 6 * - col4 AND ( + col0 * - - col1 - 48 ) Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col0 - + cor0.col1 FROM tab2 AS cor0 - -Expected: ["NULL"] but got ["-17","-31","-59"] -``` - - -```sql -SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1, tab2, tab2 AS cor2 +SELECT DISTINCT + + 77 AS col2, - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col4 AND NULL -45 results returned but expected 3645 +Expected: ["77","0"] but got ["77","-100"] ``` ```sql -SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT ( col0 ) IN ( + col2 + col2 * col0 ) +SELECT + 92 * + - 75 FROM tab0 AS cor0 WHERE NOT + ( + - col0 ) IN ( - + ( + + 81 ) + + col3 ) Query was expected to return results (but did not) ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,385 failed -* 86% was OK - -Time: 20495.557ms - ----- ---- ---- ---- ---- ---- ---- -### 547/620 [`./test/random/select/slt_good_35.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_35.test) - -_Mimic sqlite_ - -```sql -SELECT ALL ( 17 ) / col0 FROM tab2 - -Expected: ["0","0","2"] but got ["0.215","0.218","2.429"] -``` - - -```sql -SELECT + col1 + - ( - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] -``` - ```sql -SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0, tab1 cor2 +SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) IS NOT NULL -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT DISTINCT + col2 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 +SELECT DISTINCT + - MAX ( DISTINCT + col3 ) AS col2, + ( + COUNT ( * ) ) + + 71 FROM tab0 WHERE NOT + 13 * CAST ( NULL AS INTEGER ) IS NOT NULL -Expected: ["NULL"] but got ["26","27","38"] +Expected: ["-9951","171"] but got ["NULL","71"] ``` ```sql -SELECT ALL - - col0 + - col2 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 +SELECT - COUNT ( * ) * AVG ( DISTINCT + col3 ) AS col3 FROM tab0 WHERE NOT NULL <= + + col3 -Wrong conversion type +Expected: ["NULL"] but got ["-531399"] ``` ```sql -SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - col2 * - col2 IN ( col1 + col2 ) +SELECT col5 col5 FROM tab0 WHERE NOT ( ( col1 ) ) >= + ( - 80 ) * - 31 - col0 -Query was expected to return results (but did not) +Expected: ["0","0","0","0"] but got ["kjkvp","rrlwc","uhpvq","ydhme"] ``` ```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab0 AS cor2 +SELECT + col5 AS col5 FROM tab0 AS cor0 WHERE + col4 NOT BETWEEN NULL AND + col3 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +100 results returned but expected 42 ``` ```sql -SELECT DISTINCT * FROM tab0, tab1, tab2 cor0, tab0 AS cor1 +SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 75 * - 78 * + - ( ( - + 46 ) ) IS NULL -36 results returned but expected 972 +g is not defined ``` -#### ☓ Ran 10,012 tests as _sqlite_ +#### ☓ Ran 10,123 tests as _sqlite_ -* 1,344 failed -* 86% was OK +* 655 failed +* 93% was OK -Time: 20660.236ms +Time: 41092.423ms ---- ---- ---- ---- ---- ---- ---- -### 548/620 [`./test/random/select/slt_good_36.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_36.test) +### 123/190 [`./test/index/random/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_0.test) _Mimic sqlite_ ```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab1 AS cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 cor1, tab0, t ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL - col2 / col0 AS col1 FROM tab0 - -Expected: ["-1","0","0"] but got ["-0.029","-0.921","-1.375"] -``` - - -```sql -SELECT DISTINCT col1 * CAST ( + 86 AS REAL ) + + col2 - + col1 FROM tab2 AS cor0 +SELECT * FROM tab0 AS cor0 WHERE col4 * + col1 + - col3 + - 64 + - col4 BETWEEN col1 + + - CAST ( + - col4 AS REAL ) AND - - CAST ( NULL AS INTEGER ) Wrong conversion type ``` ```sql -SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0, tab0 AS cor0 +SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col5 FROM tab0 WHERE - 72 NOT BETWEEN 37 AND NULL Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT + + CAST ( NULL AS INTEGER ) * - col1 + col2 FROM tab2 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] -``` - - -```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1 +SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL > col4 -Expected: ["NULL"] but got ["0"] +Expected: ["0"] but got ["-1000"] ``` ```sql -SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2 +SELECT CAST ( NULL AS INTEGER ) AS col3 FROM tab0 AS cor0 WHERE NOT - col3 IN ( + - 29 * 82 ) -45 results returned but expected 3645 +Query was expected to return results (but did not) ``` ```sql -SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 + + col2 ) BETWEEN - cor0.col2 AND ( NULL ) OR NOT + col0 IN ( col1 + col2 - col1 ) +SELECT ALL - + COUNT ( * ) * + + 51 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <> - col0 -Query was expected to return results (but did not) +Expected: ["0","NULL"] but got ["-51000","0"] ``` -#### ☓ Ran 10,011 tests as _sqlite_ +#### ☓ Ran 2,067 tests as _sqlite_ -* 1,438 failed -* 85% was OK +* 70 failed +* 96% was OK -Time: 25221.575ms +Time: 17277.403ms ---- ---- ---- ---- ---- ---- ---- -### 549/620 [`./test/random/select/slt_good_37.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_37.test) +### 124/190 [`./test/index/random/1000/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_1.test) _Mimic sqlite_ ```sql -SELECT DISTINCT ( col2 ) + + cor0.col2 / + cor0.col0 FROM tab0 AS cor0 - -Expected: ["1","34","82"] but got ["1.029","34.375","82.921"] -``` - - -```sql -SELECT DISTINCT + col2 + + ( - col0 ) / + CAST ( NULL AS REAL ) FROM tab1 AS cor0 +SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL <> + col4 / CAST ( - col0 AS REAL ) ) Wrong conversion type ``` +#### ☓ Ran 1,056 tests as _sqlite_ -```sql -SELECT DISTINCT * FROM tab2, tab1 cor0, tab1, tab1 AS cor1 - -36 results returned but expected 972 -``` - - -```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 cor0 - -Expected: ["NULL"] but got ["17","31","59"] -``` - - -```sql -SELECT - CAST ( NULL AS INTEGER ) * col2 + col1 * col0 FROM tab0 AS cor0 - -Expected: ["NULL","NULL","NULL"] but got ["2064","3395","8099"] -``` - - -```sql -SELECT + cor0.col1 * tab0.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … -``` - - -```sql -SELECT * FROM tab0, tab0 cor0, tab2 cor1, tab2 AS cor2 - -Correct amount of values returned but hash was different than expected. -``` - - -```sql -SELECT ALL * FROM tab1 WHERE NOT - col1 IN ( col0 ) - -Query was expected to return results (but did not) -``` - - -```sql -SELECT + ( col2 ) + CAST ( NULL AS INTEGER ) - + 63 * col0 * - col1 AS col0 FROM tab1 AS cor0 +* 5 failed +* 99% was OK -Expected: ["NULL","NULL","NULL"] but got ["40377","4968","65616"] -``` +Time: 2634.214ms +---- ---- ---- ---- ---- ---- ---- +### 125/190 [`./test/index/random/1000/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_2.test) -```sql -SELECT DISTINCT - + col0 / + cor0.col1 + col0 FROM tab0 AS cor0 +#### ★ Assuming all 1,027 tests still passes as _sqlite_ -Expected: ["24","35","89"] but got ["23.721","34.639","88.022"] -``` +Time: 0.415ms -#### ☓ Ran 10,012 tests as _sqlite_ +---- ---- ---- ---- ---- ---- ---- +### 126/190 [`./test/index/random/1000/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_3.test) -* 1,300 failed -* 87% was OK +#### ★ Assuming all 1,033 tests still passes as _sqlite_ -Time: 26442.624ms +Time: 0.499ms ---- ---- ---- ---- ---- ---- ---- -### 550/620 [`./test/random/select/slt_good_38.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_38.test) +### 127/190 [`./test/index/random/1000/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_4.test) _Mimic sqlite_ ```sql -SELECT CAST ( + col1 AS REAL ) * + col2 FROM tab1 +SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( - CAST ( NULL AS REAL ) + + col0 NOT IN ( - - col0 * - col3 ) ) ) Wrong conversion type ``` +#### ☓ Ran 1,032 tests as _sqlite_ -```sql -SELECT col0 / - col2 + col2 AS col2 FROM tab0 +* 5 failed +* 99% was OK -Expected: ["-34","33","81"] but got ["-34","32.273","80.915"] -``` +Time: 2253.505ms + +---- ---- ---- ---- ---- ---- ---- +### 128/190 [`./test/index/random/1000/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_5.test) +_Mimic sqlite_ ```sql -SELECT CAST ( NULL AS INTEGER ) + + 52 AS col1 FROM tab1 AS cor0 +SELECT + COUNT ( * ) AS col5 FROM tab0 WHERE NOT - ( 3 ) + col4 NOT BETWEEN NULL AND col0 -Expected: ["NULL","NULL","NULL"] but got ["52","52","52"] +Expected: ["0"] but got ["1000"] ``` ```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab2 cor0 +SELECT ALL 72 FROM tab0 WHERE + - col1 * - - ( - col0 ) / + col4 - + col3 + + col0 + + 62 * CAST ( NULL AS INTEGER ) * col0 * - col4 + + 91 IS NULL -Expected: ["NULL"] but got ["-17","-31","-59"] +Query was expected to return results (but did not) ``` ```sql -SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2 +SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL IS NULL -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 + col1 + - col1 ) IN ( col2 ) OR - col1 * col0 <= NULL +SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 42 * - col4 AS col3 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL -Query was expected to return results (but did not) +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 cor0 +SELECT 15 FROM tab0 cor0 WHERE ( 92 ) <= col0 / + + CAST ( NULL AS REAL ) + 77 -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2 +SELECT ALL + CAST ( COUNT ( ALL col0 ) AS INTEGER ) col3 FROM tab0 WHERE NULL IS NULL -45 results returned but expected 3645 +g is not defined ``` -#### ☓ Ran 10,012 tests as _sqlite_ +#### ☓ Ran 4,333 tests as _sqlite_ -* 1,339 failed -* 86% was OK +* 265 failed +* 93% was OK -Time: 21278.089ms +Time: 31491.780ms ---- ---- ---- ---- ---- ---- ---- -### 551/620 [`./test/random/select/slt_good_39.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_39.test) +### 129/190 [`./test/index/random/1000/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_6.test) _Mimic sqlite_ ```sql -SELECT + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - - -```sql -SELECT - col0 + CAST ( col0 AS INTEGER ) / col2 FROM tab0 AS cor0 +SELECT DISTINCT col1 - 9 * + ( + + CAST ( NULL AS INTEGER ) ) * - 41 * + + 35 FROM tab0 WHERE NOT - 70 IS NULL -Expected: ["-24","-88","0"] but got ["-23.273","-87.915","0"] +Expected: ["NULL"] but got ["1001.490","101.350","1023.170","1029.400","1040.530","1041.320","105.910","1052.610","1055.210","1061.720","1077.130","1088.150","1134.630","1136.530","1141.510","1142.310","1145.470","1184.360","1189.950","119.510","1195.480","1196.280","1202.190","121.600","1210.330",… ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab0 AS cor0 +SELECT ALL - 42 + + col0 AS col1, 66 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( 78 AS INTEGER ) * 42 * + 24 IS NULL Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT ALL - 24 * + cor0.col1 * 41 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab2 cor3 +SELECT ALL + + col2 FROM tab0 WHERE col0 <= + + col4 * - + CAST ( NULL AS REAL ) + + 67 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Wrong conversion type ``` ```sql -SELECT DISTINCT - + CAST ( + ( cor0.col1 ) AS REAL ) / - col1 - cor0.col2 FROM tab1 AS cor0 +SELECT + 89 FROM tab0 WHERE + - col0 NOT BETWEEN + + 45 + - + col4 AND NULL -Wrong conversion type +1000 results returned but expected 491 ``` ```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - tab0.col1 FROM tab0, tab2, tab1 AS cor0 +SELECT - MIN ( + col4 ) AS col3 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL -Expected: ["NULL"] but got ["0"] +Expected: ["-61"] but got ["-61.500"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab2 cor2 +SELECT - 74 * 61 FROM tab0 AS cor0 WHERE NOT 1 IN ( 78 ) -45 results returned but expected 3645 +Query was expected to return results (but did not) ``` ```sql -SELECT * FROM tab1 WHERE NOT - col0 * + col1 IN ( col0 / col2 ) +SELECT ALL * FROM tab0 AS cor0 WHERE ( col3 ) IN ( + col0 ) -Query was expected to return results (but did not) +Expected: ["750","79","2150","0","79","1716","0"] but got ["750","79","2150.540","kuzlf","79","1716.500","wqnrb"] ``` -#### ☓ Ran 10,010 tests as _sqlite_ +#### ☓ Ran 11,021 tests as _sqlite_ -* 1,334 failed -* 86% was OK +* 725 failed +* 93% was OK -Time: 20762.883ms +Time: 92801.739ms ---- ---- ---- ---- ---- ---- ---- -### 552/620 [`./test/random/select/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_4.test) +### 130/190 [`./test/index/random/1000/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_7.test) _Mimic sqlite_ ```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab0 AS cor0 +SELECT MAX ( col4 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Expected: ["NULL"] but got ["9994.100"] ``` ```sql -SELECT ALL + 60 / ( tab0.col0 + 64 ) FROM tab0 +SELECT ALL + ( - - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col5 FROM tab0 WHERE NOT NULL IS NULL -Expected: ["0","0","0"] but got ["0.392","0.606","0.682"] +Query was expected to return results (but did not) ``` ```sql -SELECT ALL * FROM tab1, tab1 cor0, tab2 cor1 +SELECT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) IS NOT NULL -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT + col2 * + CAST ( col0 AS REAL ) + + col1 AS col0 FROM tab1 cor0 +SELECT + col5 FROM tab0 WHERE NOT NULL IS NOT NULL -Wrong conversion type +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 +SELECT - COUNT ( 41 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 41 AND - 82 -Expected: ["NULL"] but got ["0"] +Expected: ["0"] but got ["-1000"] ``` ```sql -SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3 +SELECT 36 FROM tab0 WHERE - col3 + col0 NOT BETWEEN NULL AND ( + - col0 ) -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +1000 results returned but expected 762 ``` ```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 +SELECT DISTINCT + 42 / + COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL -18 results returned but expected 54 +Expected: ["0"] but got ["NULL"] ``` ```sql -SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN + col1 / - col2 AND col2 +SELECT ALL col2 FROM tab0 WHERE - + col3 BETWEEN - 72 AND 50 + + 78 -Query was expected to return results (but did not) +Expected: ["0","0","0","0","0"] but got ["ernxs","orpfh","pirjf","tbpkm","zphbq"] ``` -#### ☓ Ran 10,011 tests as _sqlite_ +#### ☓ Ran 11,022 tests as _sqlite_ -* 1,317 failed -* 86% was OK +* 780 failed +* 92% was OK -Time: 19715.389ms +Time: 94189.728ms ---- ---- ---- ---- ---- ---- ---- -### 553/620 [`./test/random/select/slt_good_40.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_40.test) +### 131/190 [`./test/index/random/1000/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/random/1000/slt_good_8.test) _Mimic sqlite_ ```sql -SELECT - col2 / 47 + col0 * - col2 * + col2 FROM tab0 AS cor0 - -Expected: ["-26136","-35","-598437"] but got ["-26136.702","-35.021","-598437.745"] -``` - - -```sql -SELECT - CAST ( NULL AS REAL ) / col0 AS col1 FROM tab1 cor0 +SELECT DISTINCT col0 / - - col3 + + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL -Wrong conversion type +1000 results returned but expected 967 ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab1 AS cor0 +SELECT ALL ( + + col0 ) FROM tab0 AS cor0 WHERE NOT col4 IN ( + - col1 * - + 58, + col4 * - col0 ) -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Query was expected to return results (but did not) ``` ```sql -SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0 +SELECT + ( - MAX ( - 10 ) ) * + + 59 AS col3 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL ) -Expected: ["NULL"] but got ["-34","-7","9"] +Expected: ["NULL"] but got ["590"] ``` ```sql -SELECT ALL - cor1.col1 / - ( + cor1.col2 ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 +SELECT col3 AS col1 FROM tab0 WHERE NOT 2 * + col0 + + CAST ( NULL AS REAL ) + - 93 >= + 40 -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 +SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col4 * + + col3 + + - col0 + - + col4 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Expected: ["0"] but got ["1000"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab2, tab2 AS cor0, tab1 cor1 +SELECT ALL + CAST ( col3 AS INTEGER ) * col3 + - ( + col0 ) / - col3 AS col2 FROM tab0 WHERE ( NULL ) IS NULL -36 results returned but expected 972 +Correct amount of values returned but hash was different than expected. ``` +#### ☓ Ran 4,841 tests as _sqlite_ -```sql -SELECT + col0 AS col2 FROM tab2 WHERE NOT ( col1 ) BETWEEN NULL AND - col0 + - col0 - -Query was expected to return results (but did not) -``` +* 310 failed +* 93% was OK -#### ☓ Ran 10,010 tests as _sqlite_ +Time: 34256.400ms -* 1,324 failed -* 86% was OK +---- ---- ---- ---- ---- ---- ---- +### 132/190 [`./test/index/view/10/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_0.test) -Time: 22419.479ms +_Mimic sqlite_ +Time: 5.718ms ---- ---- ---- ---- ---- ---- ---- -### 554/620 [`./test/random/select/slt_good_41.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_41.test) +### 133/190 [`./test/index/view/10/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_1.test) _Mimic sqlite_ ```sql -SELECT ALL - CAST ( NULL AS REAL ) * + 15 FROM tab0 +SELECT pk, col0 FROM view_2_tab0_153 -Wrong conversion type +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT + 83 / - col1 FROM tab1 +SELECT pk, col0 FROM view_1_tab0_154 UNION SELECT pk, col0 FROM view_2_tab0_154 -Expected: ["-3","-6","-8"] but got ["-3.192","-6.385","-8.300"] +10 results returned but expected 20 ``` ```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) + cor0.col1 AS col0 FROM tab2 AS cor0 +SELECT * FROM view_3_tab0_154 -Expected: ["NULL"] but got ["17","31","59"] +Expected: ["1","4","5","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT * FROM tab0, tab0 cor0, tab2, tab2 cor1 +SELECT pk, col0 FROM view_2_tab0_155 -Correct amount of values returned but hash was different than expected. +Expected: ["6","0"] but got ["NULL","NULL"] ``` ```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1 +CREATE VIEW view_1_tab0_157 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE ((col0 IS NULL) OR col3 > 5 OR col3 <= 50 OR col1 < 83.11))) OR col0 > 75 -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Cannot read property 'columns' of undefined ``` +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 8,137 tests as _sqlite_ + +* 7,698 skipped +* 91 failed +* 4% was OK + +Time: 3651.216ms + +---- ---- ---- ---- ---- ---- ---- +### 134/190 [`./test/index/view/10/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_2.test) + +_Mimic sqlite_ ```sql -SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + - col2 + + col1 FROM tab1 AS cor0 +SELECT pk, col0 FROM view_1_tab0_302 -Expected: ["NULL","NULL","NULL"] but got ["-28","-47","-83"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2 +SELECT pk, col0 FROM view_2_tab0_302 -45 results returned but expected 3645 +Expected: ["4","11","7","70"] but got ["NULL","NULL","NULL","NULL"] ``` ```sql -SELECT * FROM tab1 WHERE NOT col2 * + col0 IN ( col1 + col2 ) +SELECT pk, col0 FROM view_1_tab0_302 UNION SELECT pk, col0 FROM view_2_tab0_302 -Query was expected to return results (but did not) +4 results returned but expected 20 ``` ```sql -SELECT cor0.col1 / + col0 FROM tab0 AS cor0 +SELECT * FROM view_3_tab0_302 -Expected: ["1","2","3"] but got ["1.022","2.771","3.583"] +Expected: ["0","1","2","3","5","6","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,362 failed -* 86% was OK -Time: 29212.685ms +```sql +SELECT pk, col0 FROM view_2_tab0_305 ----- ---- ---- ---- ---- ---- ---- -### 555/620 [`./test/random/select/slt_good_42.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_42.test) +Expected: ["6","56","7","70","8","75"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` -_Mimic sqlite_ ```sql -SELECT + col2 / 50 AS col0 FROM tab2 AS cor0 +SELECT * FROM view_3_tab0_305 -Expected: ["0","0","0"] but got ["0.520","0.540","0.760"] +Expected: ["0","1","2","3","4","5","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT - col2 + - CAST ( - col2 + col1 * + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1 AS cor0 +SELECT pk, col0 FROM view_2_tab0_306 -Wrong conversion type +Expected: ["4","11"] but got ["NULL","NULL"] ``` ```sql -SELECT ALL + - CAST ( NULL AS INTEGER ) * 86 + col1 * + 90 AS col0 FROM tab0 AS cor0 +SELECT * FROM view_3_tab0_308 -Expected: ["NULL","NULL","NULL"] but got ["7740","8190","8730"] +Expected: ["2","3","5","8","9"] but got ["NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1, tab0 AS cor1 +SELECT * FROM view_3_tab0_316 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["6","7","8"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 +SELECT * FROM view_3_tab0_322 -Correct amount of values returned but hash was different than expected. +Expected: ["6"] but got ["NULL"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0, tab1 AS cor1 +CREATE VIEW view_1_tab0_367 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL OR (((col0 < 64 AND (col0 BETWEEN 25 AND 41) AND (col4 >= 33.34) OR (col4 < 22.72 AND (col0 >= 61)) AND (col0 > 4) OR col0 >= 0 OR col0 >= 45 AND col3 IN (SELECT col0 FROM tab0 WHERE col3 > 42) AND col3 IS NULL AND col3 <= … -36 results returned but expected 972 +Cannot read property 'columns' of undefined ``` +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,465 tests as _sqlite_ + +* 1,028 skipped +* 1,361 failed +* 67% was OK + +Time: 20921.613ms + +---- ---- ---- ---- ---- ---- ---- +### 135/190 [`./test/index/view/10/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_3.test) + +_Mimic sqlite_ ```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - cor0.col1 + - col0 * 85 FROM tab0 AS cor0 +SELECT pk, col0 FROM view_1_tab0_376 -Expected: ["NULL"] but got ["-2040","-2975","-7565"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT * FROM tab2 WHERE NOT - col2 IN ( col0 * + col1 ) +SELECT pk, col0 FROM view_1_tab0_376 UNION SELECT pk, col0 FROM view_2_tab0_376 -Query was expected to return results (but did not) +2 results returned but expected 20 ``` -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,431 failed -* 85% was OK -Time: 21183.268ms +```sql +SELECT pk, col0 FROM view_1_tab0_377 ----- ---- ---- ---- ---- ---- ---- -### 556/620 [`./test/random/select/slt_good_43.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_43.test) +Expected: ["1","72","5","85","8","94","9","95"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] +``` -_Mimic sqlite_ ```sql -SELECT ALL col2 * 24 / col0 + col1 * - 3 AS col2 FROM tab0 +SELECT * FROM view_3_tab0_377 -Expected: ["-225","-251","-291"] but got ["-225","-250.888","-290.314"] +Expected: ["1","5","8","9"] but got ["NULL","NULL","NULL","NULL"] ``` ```sql -SELECT - + 21 + - col2 * - col2 * - col1 + cor0.col2 * - CAST ( NULL AS INTEGER ) * col2 col1 FROM tab0 AS cor0 +SELECT pk, col0 FROM view_1_tab0_378 -Expected: ["NULL","NULL","NULL"] but got ["-118","-611905","-93675"] +Expected: ["2","52"] but got ["NULL","NULL"] ``` ```sql -SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0 +SELECT * FROM view_3_tab0_378 -Expected: ["NULL"] but got ["26","27","38"] +Expected: ["2"] but got ["NULL"] ``` ```sql -SELECT + - col1 - - CAST ( + ( col0 ) AS REAL ) AS col2 FROM tab1 AS cor0 +SELECT * FROM view_3_tab0_385 -Wrong conversion type +Expected: ["0","2","3","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab0 cor2 +SELECT pk, col0 FROM view_2_tab0_387 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["0","60","1","72","9","95"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0 +SELECT * FROM view_3_tab0_387 -Correct amount of values returned but hash was different than expected. +Expected: ["2","3","4","5","6","7","8"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT + tab0.col0 * + col1 + col0 * + tab0.col0 * - col1 FROM tab0 WHERE NOT col2 + tab0.col0 IN ( col1 / col1 ) +SELECT * FROM view_3_tab0_405 -Query was expected to return results (but did not) +Expected: ["2","6","7"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 AS cor1, tab1, tab2 AS cor2 +CREATE VIEW view_1_tab0_408 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL AND (((((col1 < 63.79))) OR col0 >= 35 AND col4 > 76.20 AND col0 = 84 OR col0 <= 76 AND col3 IN (SELECT col0 FROM tab0 WHERE col4 = 39.20 AND col3 <= 5))) -45 results returned but expected 3645 +Cannot read property 'columns' of undefined ``` -#### ☓ Ran 10,012 tests as _sqlite_ +_Fail found for statement setting up data so skipping rest of tests_ -* 1,317 failed -* 86% was OK +#### ☓ Ran 7,271 tests as _sqlite_ + +* 4,133 skipped +* 716 failed +* 33% was OK -Time: 22207.191ms +Time: 9178.581ms ---- ---- ---- ---- ---- ---- ---- -### 557/620 [`./test/random/select/slt_good_44.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_44.test) +### 136/190 [`./test/index/view/10/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_4.test) _Mimic sqlite_ ```sql -SELECT ALL + + col2 / + col0 AS col2 FROM tab0 AS cor0 +SELECT pk, col0 FROM view_1_tab0_444 -Expected: ["0","0","1"] but got ["0.029","0.921","1.375"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT + CAST ( NULL AS INTEGER ) * col1 + - col2 FROM tab1 AS cor0 +SELECT pk, col0 FROM view_2_tab0_444 -Expected: ["NULL","NULL","NULL"] but got ["-54","-57","-96"] +Expected: ["1","65","5","67"] but got ["NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT + CAST ( + 18 AS REAL ) - col1 * - 3 AS col1 FROM tab2 cor0 +SELECT pk, col0 FROM view_1_tab0_444 UNION SELECT pk, col0 FROM view_2_tab0_444 -Wrong conversion type +4 results returned but expected 20 ``` ```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1 +SELECT * FROM view_3_tab0_444 -Expected: ["NULL"] but got ["0"] +Expected: ["0","2","3","4","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT * FROM tab1, tab0 cor0, tab0, tab0 AS cor1 +SELECT pk, col0 FROM view_2_tab0_446 -Correct amount of values returned but hash was different than expected. +Expected: ["1","65"] but got ["NULL","NULL"] ``` ```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 AS cor2 +SELECT * FROM view_3_tab0_447 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["3"] but got ["NULL"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1, tab2, tab0 cor2 +SELECT * FROM view_3_tab0_448 -45 results returned but expected 3645 +Expected: ["2","3","4","8","9"] but got ["NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - col0 IN ( col1 * + col1 * + col0 + - col2 ) +SELECT pk, col0 FROM view_1_tab0_462 -Query was expected to return results (but did not) +Expected: ["3","6","7","52","8","29"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,341 failed -* 86% was OK - -Time: 20459.826ms - ----- ---- ---- ---- ---- ---- ---- -### 558/620 [`./test/random/select/slt_good_45.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_45.test) - -_Mimic sqlite_ ```sql -SELECT DISTINCT * FROM tab2, tab1, tab0 AS cor0, tab1 cor1 +SELECT * FROM view_3_tab0_462 -36 results returned but expected 972 +Expected: ["3","7","8"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT - cor0.col2 / cor0.col1 AS col2 FROM tab1 AS cor0 +SELECT * FROM view_3_tab0_463 -Expected: ["-2","-5","-7"] but got ["-2.077","-5.700","-7.385"] +Expected: ["0","1","2","5","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT + cor0.col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0 +CREATE VIEW view_1_tab0_519 AS SELECT pk, col0 FROM tab0 WHERE (((col0 >= 39) OR (col1 < 88.77) AND (((col1 <= 79.45) AND col0 IN (83,70,92,44,74) AND col4 < 94.64 OR col0 > 49 AND (col3 >= 51 OR col0 > 38)) OR col0 < 10 OR col1 > 79.73 AND col3 > 53 AND col1 BETWEEN 24.95 AND 9.14 AND col3 < 51 OR… -Wrong conversion type +Cannot read property 'columns' of undefined ``` +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 7,563 tests as _sqlite_ + +* 223 skipped +* 1,526 failed +* 76% was OK -```sql -SELECT ALL + + col2 * col2 * - CAST ( NULL AS INTEGER ) + col2 + col0 * - col1 col1 FROM tab1 AS cor0 +Time: 18873.399ms -Expected: ["NULL","NULL","NULL"] but got ["-24","-583","-944"] -``` +---- ---- ---- ---- ---- ---- ---- +### 137/190 [`./test/index/view/10/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_5.test) +_Mimic sqlite_ ```sql -SELECT ALL * FROM tab1, tab0 cor0, tab0 AS cor1, tab0 AS cor2 +SELECT pk, col0 FROM view_1_tab0_660 Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + cor0.col0 * col1 col2 FROM tab0 cor0 +SELECT pk, col0 FROM view_2_tab0_660 -Expected: ["NULL"] but got ["2064","3395","8099"] +Expected: ["2","85","3","93"] but got ["NULL","NULL","NULL","NULL"] ``` ```sql -SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2 +SELECT pk, col0 FROM view_1_tab0_660 UNION SELECT pk, col0 FROM view_2_tab0_660 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +4 results returned but expected 20 ``` ```sql -SELECT * FROM tab2 WHERE NOT ( + col1 + + col0 * col0 ) IN ( + col0 ) +SELECT * FROM view_3_tab0_660 -Query was expected to return results (but did not) +Expected: ["0","1","4","5","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,346 failed -* 86% was OK -Time: 24146.494ms +```sql +SELECT pk, col0 FROM view_1_tab0_661 ----- ---- ---- ---- ---- ---- ---- -### 559/620 [`./test/random/select/slt_good_46.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_46.test) +Expected: ["0","48","2","85","3","93"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] +``` -_Mimic sqlite_ ```sql -SELECT + cor0.col1 * + col0 + - col1 / + col0 + 99 FROM tab0 AS cor0 +SELECT * FROM view_3_tab0_661 -Expected: ["2160","3492","8197"] but got ["2159.417","3491.229","8196.978"] +Expected: ["0","2","3"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT ALL + col1 / CAST ( NULL AS REAL ) FROM tab0 +SELECT * FROM view_3_tab0_662 -Wrong conversion type +Expected: ["2","3"] but got ["NULL","NULL"] ``` ```sql -SELECT + col2 + - col1 * + CAST ( NULL AS INTEGER ) / 71 AS col1 FROM tab2 AS cor0 +SELECT * FROM view_3_tab0_677 -Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] +Expected: ["0","2","3","4","5","7","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT - 52 / cor0.col1 FROM tab1, tab0 AS cor0 +SELECT * FROM view_3_tab0_687 -Correct amount of values returned but hash was different than expected. +Expected: ["8"] but got ["NULL"] ``` ```sql -SELECT DISTINCT + cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 +CREATE VIEW view_1_tab0_726 AS SELECT pk, col0 FROM tab0 WHERE col0 > 84 AND col4 <= 74.98 AND col1 IN (SELECT col4 FROM tab0 WHERE (col4 > 35.62) AND ((col3 > 33) AND (((((col3 > 1))) AND (col0 = 21 OR (((col3 > 79))) AND (col1 < 18.85) AND ((col3 > 26)) OR ((col3 > 73) AND col3 <= 84)))) OR ((((c… -Expected: ["NULL"] but got ["3","64","80"] +Cannot read property 'columns' of undefined ``` +_Fail found for statement setting up data so skipping rest of tests_ -```sql -SELECT * FROM tab1 WHERE NOT col0 IN ( col1 * col1 * tab1.col1 ) +#### ☓ Ran 7,384 tests as _sqlite_ -Query was expected to return results (but did not) -``` +* 1,143 skipped +* 1,371 failed +* 65% was OK +Time: 18483.443ms + +---- ---- ---- ---- ---- ---- ---- +### 138/190 [`./test/index/view/10/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_6.test) + +_Mimic sqlite_ ```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2 +SELECT pk, col0 FROM view_1_tab0_946 -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab1 cor2 +SELECT pk, col0 FROM view_1_tab0_946 UNION SELECT pk, col0 FROM view_2_tab0_946 -45 results returned but expected 3645 +10 results returned but expected 20 ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,389 failed -* 86% was OK -Time: 42177.684ms +```sql +SELECT * FROM view_3_tab0_946 ----- ---- ---- ---- ---- ---- ---- -### 560/620 [`./test/random/select/slt_good_47.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_47.test) +Expected: ["1","2","5","6","9"] but got ["NULL","NULL","NULL","NULL","NULL"] +``` -_Mimic sqlite_ ```sql -SELECT ALL + col2 / - 16 FROM tab0 AS cor0 +SELECT pk, col0 FROM view_2_tab0_948 -Expected: ["-2","-5","0"] but got ["-0.063","-2.063","-5.125"] +Expected: ["7","71"] but got ["NULL","NULL"] ``` ```sql -SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IN ( cor0.col2 ) OR - col2 IN ( - col0 ) +SELECT pk, col0 FROM view_2_tab0_952 -Query was expected to return results (but did not) +Expected: ["1","35","3","18","7","71","9","0"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0 cor0 +SELECT * FROM view_3_tab0_952 -Wrong conversion type +Expected: ["0","2","4","5","6","8"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 cor1, tab1 AS cor2 +SELECT * FROM view_3_tab0_961 -36 results returned but expected 972 +Expected: ["0","1","2","4","5","6","7"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT 37 / 34 AS col1 FROM tab0, tab2 AS cor0 +SELECT * FROM view_3_tab0_963 -Correct amount of values returned but hash was different than expected. +Expected: ["8"] but got ["NULL"] ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 +SELECT pk, col0 FROM view_2_tab0_970 -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Expected: ["0","87","3","18"] but got ["NULL","NULL","NULL","NULL"] ``` ```sql -SELECT - 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1 +SELECT * FROM view_3_tab0_975 -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Expected: ["3","7","9"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) + 69 FROM tab0 +CREATE VIEW view_1_tab0_984 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 42) AND ((col1 IS NULL)) OR ((((col3 > 72)))) OR (((col3 <= 90) AND ((col0 > 68)) AND (col0 IN (45,3,50,1) OR col4 < 9.99 OR col3 IN (76,97,24) AND col1 > 8.58 AND (col0 = 3) AND (col0 >= 50 AND col0 IN (SELECT col3 FROM tab0 WH… -Expected: ["NULL"] but got ["69"] +Cannot read property 'columns' of undefined ``` -#### ☓ Ran 10,011 tests as _sqlite_ +_Fail found for statement setting up data so skipping rest of tests_ -* 1,374 failed -* 86% was OK +#### ☓ Ran 6,492 tests as _sqlite_ + +* 2,753 skipped +* 806 failed +* 45% was OK -Time: 33064.355ms +Time: 10329.724ms ---- ---- ---- ---- ---- ---- ---- -### 561/620 [`./test/random/select/slt_good_48.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_48.test) +### 139/190 [`./test/index/view/10/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10/slt_good_7.test) _Mimic sqlite_ ```sql -SELECT DISTINCT + 81 / - col1 FROM tab0 +SELECT pk, col0 FROM view_1_tab0_1009 -Expected: ["0"] but got ["-0.835","-0.890","-0.942"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN col1 * col0 * + col1 + + col1 * + col0 AND NULL +SELECT pk, col0 FROM view_2_tab0_1009 -Query was expected to return results (but did not) +Expected: ["0","71","5","97"] but got ["NULL","NULL","NULL","NULL"] ``` ```sql -SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab2 cor1 +SELECT pk, col0 FROM view_1_tab0_1009 UNION SELECT pk, col0 FROM view_2_tab0_1009 -Correct amount of values returned but hash was different than expected. +4 results returned but expected 20 ``` ```sql -SELECT + cor0.col1 + + CAST ( NULL AS INTEGER ) * - ( - col0 ) FROM tab0 AS cor0 +SELECT * FROM view_3_tab0_1009 -Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] +Expected: ["1","2","3","4","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT - CAST ( 64 AS REAL ) FROM tab2 cor0 +SELECT pk, col0 FROM view_2_tab0_1013 -Wrong conversion type +Expected: ["2","89","4","92","5","97"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0 +SELECT * FROM view_3_tab0_1013 -Expected: ["NULL"] but got ["0"] +Expected: ["0","1","3","6","7","8","9"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0, tab2 cor1 +SELECT pk, col0 FROM view_2_tab0_1023 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0, tab2 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI… +Expected: ["3","5"] but got ["NULL","NULL"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab2, tab2 cor2 +SELECT * FROM view_3_tab0_1027 -45 results returned but expected 3645 +Expected: ["6"] but got ["NULL"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,375 failed -* 86% was OK - -Time: 29979.740ms - ----- ---- ---- ---- ---- ---- ---- -### 562/620 [`./test/random/select/slt_good_49.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_49.test) - -_Mimic sqlite_ ```sql -SELECT ALL - 81 / col0 AS col0 FROM tab1 +SELECT * FROM view_3_tab0_1031 -Expected: ["-1","-1","-27"] but got ["-1.012","-1.266","-27"] +Expected: ["1","3","6","7","9"] but got ["NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) + - ( cor0.col1 ) * - ( cor0.col0 ) FROM tab1 AS cor0 +SELECT * FROM view_3_tab0_1035 -Expected: ["NULL","NULL","NULL"] but got ["1040","640","78"] +Expected: ["3","7","8"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT - tab2.col0 * + CAST ( col1 AS REAL ) * tab2.col1 FROM tab2 +CREATE VIEW view_1_tab0_1042 AS SELECT pk, col0 FROM tab0 WHERE ((col0 > 16 OR ((col0 < 9 OR col3 IN (SELECT col0 FROM tab0 WHERE (col0 < 94) AND col0 <= 61))) AND col3 = 18 OR col3 < 55 AND col3 IN (76,76) OR col3 >= 86 AND ((((((col0 < 9)))) AND col0 = 70 OR col1 IS NULL) AND (col3 IN (31,92,0)))… -Wrong conversion type +Cannot read property 'columns' of undefined ``` +_Fail found for statement setting up data so skipping rest of tests_ -```sql -SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) - cor0.col2 FROM tab1 AS cor0 +#### ☓ Ran 7,533 tests as _sqlite_ -Expected: ["NULL"] but got ["-54","-57","-96"] -``` +* 4,593 skipped +* 646 failed +* 30% was OK +Time: 8954.524ms + +---- ---- ---- ---- ---- ---- ---- +### 140/190 [`./test/index/view/100/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_0.test) + +_Mimic sqlite_ ```sql -SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2 +SELECT pk, col0 FROM tab0 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT ALL 9 / cor0.col1 FROM tab2, tab1 cor0 +SELECT pk, col0 FROM view_1_tab0_77 UNION SELECT pk, col0 FROM view_2_tab0_77 -Correct amount of values returned but hash was different than expected. +150 results returned but expected 200 ``` ```sql -SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 AS cor1, tab0 AS cor2 +SELECT * FROM view_3_tab0_84 -36 results returned but expected 972 +Expected: ["1","26","29","4","81","94"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT ( - col2 ) IN ( col2 ) +CREATE VIEW view_1_tab0_93 AS SELECT pk, col0 FROM tab0 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 -Query was expected to return results (but did not) +Cannot read property 'columns' of undefined ``` -#### ☓ Ran 10,012 tests as _sqlite_ +_Fail found for statement setting up data so skipping rest of tests_ -* 1,342 failed -* 86% was OK +#### ☓ Ran 8,623 tests as _sqlite_ + +* 6,893 skipped +* 677 failed +* 12% was OK -Time: 38702.468ms +Time: 6891.356ms ---- ---- ---- ---- ---- ---- ---- -### 563/620 [`./test/random/select/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_5.test) +### 141/190 [`./test/index/view/100/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_1.test) _Mimic sqlite_ ```sql -SELECT ALL * FROM tab0, tab0 cor0, tab2 cor1 +SELECT pk, col0 FROM tab0 Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT + col1 / - 99 AS col1 FROM tab0 - -Expected: ["0"] but got ["-0.869","-0.919","-0.980"] -``` - - -```sql -SELECT CAST ( 24 + - col2 AS REAL ) AS col0 FROM tab2 +SELECT pk, col0 FROM view_1_tab0_226 UNION SELECT pk, col0 FROM view_2_tab0_226 -Wrong conversion type +112 results returned but expected 200 ``` ```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 cor1 +SELECT pk, col0 FROM view_2_tab0_229 -18 results returned but expected 54 +Expected: ["30","84","86","184"] but got ["NULL","NULL","NULL","NULL"] ``` ```sql -SELECT + col1 - - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0 +SELECT pk, col0 FROM view_1_tab0_232 -Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] +Expected: ["19","869","81","978","83","803"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 * col1 / 84 FROM tab2 AS cor0 +SELECT * FROM view_3_tab0_232 -Expected: ["NULL"] but got ["18.262","7.690","9.964"] +Expected: ["19","81","83"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2 +SELECT * FROM view_3_tab0_250 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["18","24"] but got ["NULL","NULL"] ``` ```sql -SELECT ALL - col0 * + col1 AS col2 FROM tab2 WHERE NOT - col1 * tab2.col1 IN ( col2 ) +SELECT * FROM view_3_tab0_271 -Query was expected to return results (but did not) +Expected: ["93"] but got ["NULL"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ +#### ☓ Ran 7,122 tests as _sqlite_ -* 1,323 failed -* 86% was OK +* 2,876 failed +* 59% was OK -Time: 28190.507ms +Time: 27506.299ms ---- ---- ---- ---- ---- ---- ---- -### 564/620 [`./test/random/select/slt_good_50.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_50.test) +### 142/190 [`./test/index/view/100/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_2.test) _Mimic sqlite_ ```sql -SELECT ALL 57 / + col0 AS col0 FROM tab2 AS cor0 +SELECT pk, col0 FROM tab0 -Expected: ["0","0","8"] but got ["0.722","0.731","8.143"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT ALL CAST ( NULL AS INTEGER ) - 0 AS col2 FROM tab0 AS cor0 +SELECT pk, col0 FROM view_1_tab0_523 UNION SELECT pk, col0 FROM view_2_tab0_523 -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +64 results returned but expected 200 ``` ```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2 +CREATE VIEW view_1_tab0_534 AS SELECT pk, col0 FROM tab0 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR… -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Cannot read property 'columns' of undefined ``` +_Fail found for statement setting up data so skipping rest of tests_ + +#### ☓ Ran 8,235 tests as _sqlite_ + +* 7,008 skipped +* 457 failed +* 9% was OK + +Time: 8172.180ms + +---- ---- ---- ---- ---- ---- ---- +### 143/190 [`./test/index/view/100/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_3.test) + +_Mimic sqlite_ ```sql -SELECT + cor0.col1 + col0 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0 +SELECT pk, col0 FROM tab0 -Wrong conversion type +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT + col0 * col2 + CAST ( NULL AS INTEGER ) * col0 - - col2 FROM tab2 AS cor0 +SELECT pk, col0 FROM view_1_tab0_597 -Expected: ["NULL"] but got ["2054","216","3040"] +Expected: ["69","996"] but got ["NULL","NULL"] ``` ```sql -SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab1 cor2 +SELECT pk, col0 FROM view_1_tab0_597 UNION SELECT pk, col0 FROM view_2_tab0_597 -Correct amount of values returned but hash was different than expected. +198 results returned but expected 200 ``` ```sql -SELECT ALL tab2.col0 * tab2.col2 AS col0 FROM tab2 WHERE NOT col0 BETWEEN col0 * col1 + col0 AND col1 +SELECT * FROM view_3_tab0_597 -Query was expected to return results (but did not) +Expected: ["69"] but got ["NULL"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2 +CREATE VIEW view_1_tab0_602 AS SELECT pk, col0 FROM tab0 WHERE col0 IN (SELECT col3 FROM tab0 WHERE col0 >= 795) OR col3 >= 543 OR col3 > 991 AND (((col3 < 927 OR (col3 < 430)) AND (col0 > 590) OR (col0 >= 449 AND col4 > 729.35 OR (((col3 >= 745 AND col0 IN (376,260))) AND col0 = 742 OR ((col3 < 40… -45 results returned but expected 3645 +Cannot read property 'columns' of undefined ``` -#### ☓ Ran 10,012 tests as _sqlite_ +_Fail found for statement setting up data so skipping rest of tests_ -* 1,405 failed -* 85% was OK +#### ☓ Ran 7,174 tests as _sqlite_ + +* 6,548 skipped +* 207 failed +* 5% was OK -Time: 21634.933ms +Time: 4415.686ms ---- ---- ---- ---- ---- ---- ---- -### 565/620 [`./test/random/select/slt_good_51.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_51.test) +### 144/190 [`./test/index/view/100/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_4.test) _Mimic sqlite_ ```sql -SELECT DISTINCT - col0 + + cor0.col0 / + ( col1 ) AS col1 FROM tab0 cor0 +SELECT pk, col0 FROM tab0 -Expected: ["-24","-35","-89"] but got ["-23.721","-34.639","-88.022"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab2 +SELECT pk, col0 FROM view_1_tab0_799 UNION SELECT pk, col0 FROM view_2_tab0_799 -Expected: ["NULL"] but got ["0"] +36 results returned but expected 200 ``` ```sql -SELECT + + col1 + CAST ( 97 AS REAL ) * - cor0.col0 - + col0 FROM tab0 AS cor0 +SELECT pk, col0 FROM view_1_tab0_804 -Wrong conversion type +Expected: ["11","576","47","71"] but got ["NULL","NULL","NULL","NULL"] ``` ```sql -SELECT ALL * FROM tab2, tab1 AS cor0, tab0 cor1, tab0, tab0 cor2 +SELECT * FROM view_3_tab0_804 -Correct amount of values returned but hash was different than expected. +Expected: ["11","47"] but got ["NULL","NULL"] ``` ```sql -SELECT - col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab1 +SELECT * FROM view_3_tab0_813 -Expected: ["NULL","NULL","NULL"] but got ["-3","-64","-80"] +Expected: ["49"] but got ["NULL"] ``` ```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab2 AS cor2 +SELECT * FROM view_3_tab0_817 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 cor1, tab0, t ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["23","34","36","67","68","8","91"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab0 AS cor1 +SELECT * FROM view_3_tab0_837 -27 results returned but expected 243 +Expected: ["54","65","74","76","96"] but got ["NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT - col1 * + col1 * + col2 + + col2 * col1 * + col2 FROM tab0 WHERE NOT + col0 IN ( col1 ) +CREATE VIEW view_1_tab0_869 AS SELECT pk, col0 FROM tab0 WHERE (((col0 > 796 OR ((((col0 < 642)) AND (((((col1 < 435.47 AND col0 = 220)) AND (col0 > 695) AND col3 > 66 AND (col4 > 262.50))) OR col0 > 828 AND ((col0 >= 606 AND col1 <= 821.18)) OR (col0 > 561) AND col4 < 21.23 OR col0 <= 506 AND col3… -Query was expected to return results (but did not) +Cannot read property 'columns' of undefined ``` -#### ☓ Ran 10,011 tests as _sqlite_ +_Fail found for statement setting up data so skipping rest of tests_ -* 1,362 failed -* 86% was OK +#### ☓ Ran 6,935 tests as _sqlite_ + +* 108 skipped +* 2,712 failed +* 59% was OK -Time: 21202.038ms +Time: 27502.419ms ---- ---- ---- ---- ---- ---- ---- -### 566/620 [`./test/random/select/slt_good_52.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_52.test) +### 145/190 [`./test/index/view/100/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/100/slt_good_5.test) _Mimic sqlite_ ```sql -SELECT DISTINCT + - CAST ( + col2 AS REAL ) AS col1 FROM tab0 AS cor0 +SELECT pk, col0 FROM tab0 -Wrong conversion type +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT ALL - + cor0.col0 / 95 AS col1 FROM tab1 AS cor0 +SELECT pk, col0 FROM view_1_tab0_870 UNION SELECT pk, col0 FROM view_2_tab0_870 -Expected: ["0","0","0"] but got ["-0.032","-0.674","-0.842"] +16 results returned but expected 200 ``` ```sql -SELECT ALL - - 23 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 +SELECT * FROM view_3_tab0_876 -Expected: ["NULL","NULL","NULL"] but got ["23","23","23"] +Expected: ["2","27","51","57","6","64","75"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT 14 col2 FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2 +SELECT pk, col0 FROM view_1_tab0_879 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["29","638","43","152","46","772","51","862"] but got ["NULL","NULL","NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / - 81 AS col2 FROM tab1, tab0 AS cor0 +SELECT * FROM view_3_tab0_879 -Correct amount of values returned but hash was different than expected. +Expected: ["29","43","46","51"] but got ["NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT - tab2.col1 - CAST ( NULL AS INTEGER ) FROM tab2 +SELECT pk, col0 FROM tab1 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)) -Expected: ["NULL"] but got ["-17","-31","-59"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT col2 FROM tab0 WHERE NOT ( - col0 ) IN ( col2 / col1 + col2 / col1 ) +SELECT pk, col0 FROM tab1 WHERE col4 = 495.61 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 495.61) -Query was expected to return results (but did not) +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2 +CREATE VIEW view_1_tab0_901 AS SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= … -45 results returned but expected 3645 +Cannot read property 'columns' of undefined ``` +_Fail found for statement setting up data so skipping rest of tests_ -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab0 - -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` - -#### ☓ Ran 10,010 tests as _sqlite_ +#### ☓ Ran 7,949 tests as _sqlite_ -* 1,428 failed -* 85% was OK +* 4,823 skipped +* 1,217 failed +* 24% was OK -Time: 20832.399ms +Time: 11864.560ms ---- ---- ---- ---- ---- ---- ---- -### 567/620 [`./test/random/select/slt_good_53.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_53.test) +### 146/190 [`./test/index/view/1000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/1000/slt_good_0.test) _Mimic sqlite_ ```sql -SELECT col2 + col0 + - col0 / col2 FROM tab1 +SELECT pk, col0 FROM tab0 -Expected: ["120","176","57"] but got ["119.877","175.167","56.944"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1, tab0 cor2 +SELECT pk, col0 FROM view_1_tab0_739 UNION SELECT pk, col0 FROM view_2_tab0_739 -36 results returned but expected 972 +1824 results returned but expected 2000 ``` ```sql -SELECT + - cor0.col0 * col1 * - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 +CREATE VIEW view_1_tab0_742 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) -Expected: ["NULL","NULL","NULL"] but got ["13520","2028","6400"] +Cannot read property 'columns' of undefined ``` +_Fail found for statement setting up data so skipping rest of tests_ -```sql -SELECT - - ( + col1 ) * cor0.col0 - CAST ( NULL AS REAL ) FROM tab0 AS cor0 +#### ☓ Ran 7,630 tests as _sqlite_ -Wrong conversion type -``` +* 6,203 skipped +* 167 failed +* 16% was OK + +Time: 16687.166ms + +---- ---- ---- ---- ---- ---- ---- +### 147/190 [`./test/index/view/10000/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/index/view/10000/slt_good_0.test) +_Mimic sqlite_ ```sql -SELECT DISTINCT + col1 / - col1 + CAST ( NULL AS INTEGER ) + - ( col0 ) FROM tab1 AS cor0 +SELECT pk, col0 FROM tab0 -Expected: ["NULL"] but got ["-4","-65","-81"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT ALL cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3 +SELECT pk, col0 FROM view_1_tab0_1 UNION SELECT pk, col0 FROM view_2_tab0_1 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +6920 results returned but expected 20000 ``` +#### ☓ Ran 10,622 tests as _sqlite_ + +* 271 failed +* 97% was OK + +Time: 1541433.391ms + +---- ---- ---- ---- ---- ---- ---- +### 148/190 [`./test/random/aggregates/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_0.test) + +_Mimic sqlite_ ```sql -SELECT 81 / + 97 col2 FROM tab0, tab2 AS cor0, tab2 cor1 +SELECT DISTINCT 20 / - 97 FROM tab0 -Correct amount of values returned but hash was different than expected. +Expected: ["0"] but got ["-0.206"] ``` ```sql -SELECT ALL * FROM tab1 WHERE NOT col2 IN ( + tab1.col0 ) +SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 0 col0 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL Query was expected to return results (but did not) ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,370 failed -* 86% was OK -Time: 30171.424ms +```sql +SELECT MIN ( DISTINCT col1 ) * - + AVG ( DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) ) AS col2, COUNT ( ALL - col0 ) AS col2 FROM tab2 AS cor0 ----- ---- ---- ---- ---- ---- ---- -### 568/620 [`./test/random/select/slt_good_54.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_54.test) +Expected: ["NULL","3"] but got ["3"] +``` -_Mimic sqlite_ ```sql -SELECT ALL cor0.col2 * col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0 +SELECT DISTINCT - col1 AS col2, col2 AS col2 FROM tab1 WHERE - - CAST ( + - col1 AS REAL ) NOT BETWEEN - col0 AND NULL Wrong conversion type ``` ```sql -SELECT col0 + col0 / + 58 FROM tab1 +SELECT DISTINCT + CAST ( ( + SUM ( - 14 ) ) AS INTEGER ) AS col0 FROM tab1 + +g is not defined +``` + + +```sql +SELECT ALL + col0 AS col1, + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0 -Expected: ["3","65","81"] but got ["3.052","65.103","81.379"] +Expected: ["15","NULL","87","NULL","97","NULL"] but got ["15","47","87","10","97","99"] ``` ```sql -SELECT - 75 / 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 +SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT ALL CAST ( + 43 AS INTEGER ) / + col1 + + CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab0 +SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL + +18 results returned but expected 54 +``` + + +```sql +SELECT + col1 * CAST ( NULL AS INTEGER ) + + 67 AS col2 FROM tab2 WHERE ( + + col2 ) <= ( 42 ) -Expected: ["NULL","NULL","NULL"] but got ["0.443","0.473","0.500"] +Expected: ["NULL","NULL"] but got ["67","67"] ``` ```sql -SELECT DISTINCT - + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0 +SELECT + MIN ( - 82 ) AS col0 FROM tab2 WHERE - + 5 * + col1 / - CAST ( NULL AS INTEGER ) IS NULL -Expected: ["NULL"] but got ["-17","-31","-59"] +Expected: ["-82"] but got ["NULL"] ``` ```sql -SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1 +SELECT ALL MIN ( ALL + 80 ) AS col2, 27 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + 95 + + 63 AND + 0 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Expected: ["NULL","27"] but got ["27","NULL"] ``` ```sql -SELECT ALL col2 FROM tab1 WHERE NOT col1 IN ( + col0 * + col1 ) +SELECT DISTINCT * FROM tab2 cor0 JOIN tab2 cor1 ON + ( 90 ) IS NOT NULL, tab0 AS cor2 -Query was expected to return results (but did not) +Parse error on line 1: +...+ ( 90 ) IS NOT NULL, tab0 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` ```sql -SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0, tab0 cor1 +SELECT col2 + + 76 / - ( - + col1 ) AS col1, 71 + col0 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 -36 results returned but expected 972 +Expected: ["24","NULL","40","NULL","59","NULL"] but got ["24.490","NULL","40.987","NULL","59.134","NULL"] ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,459 failed -* 85% was OK +* 1,588 failed +* 84% was OK -Time: 22173.148ms +Time: 27497.945ms ---- ---- ---- ---- ---- ---- ---- -### 569/620 [`./test/random/select/slt_good_55.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_55.test) +### 149/190 [`./test/random/aggregates/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_1.test) _Mimic sqlite_ ```sql -SELECT - col1 + col1 + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +SELECT ALL col1, + col2 col1 FROM tab2 -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Expected: ["51","23","67","58","77","40"] but got ["23","23","40","40","58","58"] ``` ```sql -SELECT - cor0.col0 / 6 AS col2 FROM tab1, tab2 AS cor0 +SELECT + ( CAST ( NULL AS REAL ) ) - col0 AS col1 FROM tab1 -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT ALL - col0 * - col0 - col0 / - col1 AS col0 FROM tab0 AS cor0 +SELECT ALL - 19 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * 44 FROM tab0 AS cor0 -Expected: ["1225","576","7921"] but got ["1225.361","576.279","7921.978"] +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT ALL CAST ( NULL AS REAL ) FROM tab0 AS cor0 +SELECT DISTINCT - - CAST ( MAX ( ALL + col1 ) AS INTEGER ) FROM tab2 AS cor0 -Wrong conversion type +g is not defined ``` ```sql -SELECT DISTINCT col1 * - col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 +SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 -Expected: ["NULL"] but got ["-289","-3481","-961"] +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT ALL cor2.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3 +SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 cor2 +SELECT 16 AS col0 FROM tab0 WHERE NOT + 71 * + + CAST ( NULL AS INTEGER ) * - 24 + - ( - col2 ) IS NOT NULL -36 results returned but expected 972 +Query was expected to return results (but did not) ``` ```sql -SELECT * FROM tab0 WHERE NOT - col0 IN ( + col0 ) +SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL -Query was expected to return results (but did not) +18 results returned but expected 54 ``` -#### ☓ Ran 10,009 tests as _sqlite_ - -* 1,391 failed -* 86% was OK -Time: 21628.232ms +```sql +SELECT ALL MAX ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT - 85 * col0 + col0 BETWEEN - 82 AND NULL ----- ---- ---- ---- ---- ---- ---- -### 570/620 [`./test/random/select/slt_good_56.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_56.test) +Expected: ["99"] but got ["NULL"] +``` -_Mimic sqlite_ ```sql -SELECT - col0 / col2 AS col0 FROM tab1 +SELECT + CAST ( NULL AS INTEGER ) + 36 / + - 21 AS col1, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 -Expected: ["-1","0","0"] but got ["-0.056","-0.833","-1.123"] +Expected: ["NULL","NULL"] but got ["0"] ``` +#### ☓ Ran 10,012 tests as _sqlite_ -```sql -SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * + cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 +* 1,374 failed +* 86% was OK -Expected: ["NULL"] but got ["1343","217","4602"] -``` +Time: 23702.189ms +---- ---- ---- ---- ---- ---- ---- +### 150/190 [`./test/random/aggregates/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_2.test) + +_Mimic sqlite_ ```sql -SELECT ALL + tab0.col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1 AS cor0 +SELECT CAST ( + SUM ( ALL - 37 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 -Correct amount of values returned but hash was different than expected. +g is not defined ``` ```sql -SELECT CAST ( - cor1.col0 AS REAL ) FROM tab2, tab2 AS cor0, tab1 cor1 +SELECT DISTINCT + - SUM ( + CAST ( NULL AS INTEGER ) ) + - 23 AS col1 FROM tab2 AS cor0 -Wrong conversion type +Expected: ["NULL"] but got ["-23"] ``` ```sql -SELECT ALL - tab2.col0 * CAST ( NULL AS INTEGER ) FROM tab2 +SELECT + - 40 / + + col2 AS col2 FROM tab2 AS cor0 -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Expected: ["-1","-1","0"] but got ["-0.690","-1","-1.739"] ``` ```sql -SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col1 IN ( + col1 ) +SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + + + col1 IN ( 37 ) Query was expected to return results (but did not) ``` ```sql -SELECT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1 +SELECT ALL - + CAST ( NULL AS INTEGER ) + 77 FROM tab0 AS cor0 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', 'AN… +Expected: ["NULL","NULL","NULL"] but got ["77","77","77"] ``` ```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab2, tab0 AS cor2 +SELECT DISTINCT CAST ( NULL AS REAL ) * - 52 * - col1 * + 92 AS col1 FROM tab1 -45 results returned but expected 3645 +Wrong conversion type ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,322 failed -* 86% was OK -Time: 21101.240ms +```sql +SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL IS NULL ) ----- ---- ---- ---- ---- ---- ---- -### 571/620 [`./test/random/select/slt_good_57.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_57.test) +Correct amount of values returned but hash was different than expected. +``` -_Mimic sqlite_ ```sql -SELECT + col1 / col0 FROM tab0 cor0 +SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT + + 45 IS NULL -Expected: ["1","2","3"] but got ["1.022","2.771","3.583"] +18 results returned but expected 54 ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 63 + col0 * col1 + col1 FROM tab0 AS cor0 +SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * ( - SUM ( col2 ) ) FROM tab1 AS cor0 -Expected: ["NULL"] but got ["2150","3492","8190"] +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT col0 - + CAST ( col2 AS REAL ) FROM tab0 +SELECT + CAST ( NULL AS REAL ) * AVG ( col0 ) AS col2 FROM tab1 Wrong conversion type ``` +#### ☓ Ran 10,012 tests as _sqlite_ -```sql -SELECT + + col2 + 98 * + cor0.col1 + CAST ( NULL AS INTEGER ) * cor0.col2 * + col2 AS col1 FROM tab0 AS cor0 +* 1,508 failed +* 84% was OK -Expected: ["NULL","NULL","NULL"] but got ["8461","9000","9507"] -``` +Time: 27568.464ms + +---- ---- ---- ---- ---- ---- ---- +### 151/190 [`./test/random/aggregates/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_3.test) +_Mimic sqlite_ ```sql -SELECT ALL * FROM tab0, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2 +SELECT ALL 57 - + CAST ( NULL AS INTEGER ) + - + col2 AS col2 FROM tab0 AS cor0 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["NULL","NULL","NULL"] but got ["-42","10","47"] ``` ```sql -SELECT * FROM tab2, tab0, tab0 AS cor0, tab0 cor1 +SELECT ALL + 54 / 64 AS col0 FROM tab1 AS cor0 -Correct amount of values returned but hash was different than expected. +Expected: ["0","0","0"] but got ["0.844","0.844","0.844"] ``` ```sql -SELECT * FROM tab1 WHERE NOT col0 * - col2 IN ( col0 ) +SELECT ALL - CAST ( + MAX ( DISTINCT - col2 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 / + col1 / - - 59 * 70 / col0 ) -Query was expected to return results (but did not) +g is not defined ``` ```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 cor1, tab2 cor2 +SELECT DISTINCT COUNT ( * ) * + - CAST ( NULL AS REAL ) AS col0 FROM tab2 -36 results returned but expected 972 +Wrong conversion type ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,442 failed -* 85% was OK - -Time: 21021.587ms - ----- ---- ---- ---- ---- ---- ---- -### 572/620 [`./test/random/select/slt_good_58.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_58.test) - -_Mimic sqlite_ ```sql -SELECT CAST ( NULL AS INTEGER ) - col2 * col2 FROM tab0 AS cor0 +SELECT + col2 + + col1, col2 * + - 52 * - col1 AS col0, - - ( + 43 ) / - ( + col2 ) + col0 - + col1 + + col0 * 87 AS col1 FROM tab2 -Expected: ["NULL","NULL","NULL"] but got ["-1","-1089","-6724"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT ( col2 ) / + col0 + ( - ( + col1 ) ) AS col0 FROM tab2 AS cor0 +SELECT ALL 73 * + SUM ( - 22 ) * + 80 AS col0, + 1 + + + 83 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 -Expected: ["-17","-28","-59"] but got ["-16.519","-27.143","-58.667"] +Expected: ["-385440","NULL"] but got ["-385440","1"] ``` ```sql -SELECT - CAST ( NULL AS REAL ) * col1 - - col0 FROM tab2 AS cor0 +SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NOT - 57 + + 29 NOT BETWEEN + 93 AND + ( + col2 ) ) ) -Wrong conversion type +Query was expected to return results (but did not) ``` ```sql -SELECT ALL 21 / + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 +SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL -Correct amount of values returned but hash was different than expected. +18 results returned but expected 54 ``` ```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3 +SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * cor0.col2 col0 FROM tab1 AS cor0 +SELECT 55 / + CAST ( NULL AS INTEGER ), col2 * 46 + col1 + + CAST ( NULL AS INTEGER ) + - col2 * - col0 AS col0 FROM tab2 -Expected: ["NULL"] but got ["0"] +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["NULL","2167","NULL","4477","NULL","7085"] ``` ```sql -SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - col0 + col1 BETWEEN col1 AND NULL +SELECT ALL - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 -Query was expected to return results (but did not) +Expected: ["1"] but got ["NULL"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab1 AS cor2 +SELECT + CAST ( NULL AS INTEGER ) AS col2, col1 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL -45 results returned but expected 3645 +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","51","0","67","0","77"] ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,411 failed -* 85% was OK +* 1,666 failed +* 83% was OK -Time: 28234.270ms +Time: 24754.996ms ---- ---- ---- ---- ---- ---- ---- -### 573/620 [`./test/random/select/slt_good_59.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_59.test) +### 152/190 [`./test/random/aggregates/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_4.test) _Mimic sqlite_ ```sql -SELECT ALL col2 / + tab0.col1 - + col1 / col0 AS col2 FROM tab0 +SELECT DISTINCT 63 / col1 AS col2 FROM tab2 -Expected: ["-1","-2","-3"] but got ["-0.121","-2.761","-3.200"] +Expected: ["0","1"] but got ["0.818","0.940","1.235"] ``` ```sql -SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 cor1, tab2, tab2 AS cor2 +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, col0 - + 58 FROM tab2 AS cor0 -45 results returned but expected 3645 +Expected: ["NULL","-12","NULL","17","NULL","6"] but got ["0","-12","0","17","0","6"] ``` ```sql -SELECT DISTINCT - ( - col0 ) * col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 +SELECT - - col2 * col0 + + - 40, CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 -Expected: ["NULL"] but got ["4096","6400","9"] +Wrong conversion type ``` ```sql -SELECT col1 + CAST ( NULL AS REAL ) AS col2 FROM tab1 +SELECT + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 -Wrong conversion type +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) - + cor0.col0 FROM tab1 AS cor0 +SELECT - CAST ( + COUNT ( DISTINCT + - col2 ) AS INTEGER ) FROM tab1 -Expected: ["NULL","NULL","NULL"] but got ["-3","-64","-80"] +g is not defined ``` ```sql -SELECT ALL 9 AS col2 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2 +SELECT ALL + col2 FROM tab2 WHERE NOT - col0 + col0 BETWEEN - col0 AND ( - col0 ) -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Query was expected to return results (but did not) ``` ```sql -SELECT CAST ( NULL AS INTEGER ) / cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +SELECT DISTINCT MIN ( 38 ) AS col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL ) -Correct amount of values returned but hash was different than expected. +Expected: ["NULL"] but got ["38"] ``` ```sql -SELECT * FROM tab1 WHERE NOT ( - col2 ) IN ( + col2 ) +SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE 46 IS NOT NULL -Query was expected to return results (but did not) +18 results returned but expected 54 ``` ```sql -SELECT DISTINCT + + col0 / + col1 FROM tab1 AS cor0 +SELECT + + COUNT ( * ) AS col1, MIN ( - - 79 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL -Expected: ["0","6"] but got ["0.115","6.154","6.400"] +Expected: ["0","NULL"] but got ["NULL"] ``` -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,418 failed -* 85% was OK -Time: 24252.117ms +```sql +SELECT ALL + + CAST ( NULL AS INTEGER ), ( - col2 ) * + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 ----- ---- ---- ---- ---- ---- ---- -### 574/620 [`./test/random/select/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_6.test) +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","0","0","0","0","0"] +``` -_Mimic sqlite_ ```sql -SELECT + col0 / - col1 + - ( - col2 ) col0 FROM tab2 AS cor0 +SELECT DISTINCT col1 AS col1, + 34 / + CAST ( NULL AS INTEGER ) + col2 * - - col1 * + 65 col1 FROM tab2 -Expected: ["25","27","34"] but got ["24.678","26.774","33.353"] +Expected: ["51","NULL","67","NULL","77","NULL"] but got ["NULL","NULL"] ``` ```sql -SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 +SELECT DISTINCT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT + CAST ( NULL AS INTEGER ) FROM tab1 +SELECT ALL - MAX ( ALL - - col1 ) AS col0 FROM tab2 WHERE NOT ( col0 ) + 87 IN ( - + 12, - 20, - - col0 ) -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Expected: ["-77"] but got ["NULL"] ``` +#### ☓ Ran 10,012 tests as _sqlite_ -```sql -SELECT col2 + + col2 / + CAST ( NULL AS REAL ) FROM tab0 +* 1,688 failed +* 83% was OK -Wrong conversion type -``` +Time: 27128.507ms +---- ---- ---- ---- ---- ---- ---- +### 153/190 [`./test/random/aggregates/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_5.test) + +_Mimic sqlite_ ```sql -SELECT ALL 43 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3 +SELECT + COUNT ( * ) + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2 +SELECT col2, 95 AS col2 FROM tab0 -45 results returned but expected 3645 +Expected: ["10","95","47","95","99","95"] but got ["95","95","95","95","95","95"] ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + 35 FROM tab2 AS cor0 +SELECT ALL - col0 * + 64 * - CAST ( NULL AS INTEGER ) FROM tab0 -Expected: ["NULL"] but got ["35"] +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT ALL tab2.col1 * tab2.col0 FROM tab2 WHERE NOT ( + col0 ) IN ( col1 + + col2 ) +SELECT DISTINCT - CAST ( + col1 AS REAL ) * col2 + CAST ( NULL AS INTEGER ), 92 AS col2 FROM tab0 -Query was expected to return results (but did not) +Wrong conversion type ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,345 failed -* 86% was OK -Time: 20478.133ms +```sql +SELECT - CAST ( AVG ( + col0 ) AS INTEGER ) FROM tab0 AS cor0 ----- ---- ---- ---- ---- ---- ---- -### 575/620 [`./test/random/select/slt_good_60.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_60.test) +g is not defined +``` -_Mimic sqlite_ ```sql -SELECT DISTINCT + col0 / col2 AS col0 FROM tab1 AS cor0 +SELECT col0 * - + 59 * - - col1 col1, col0 * - col2 * 90 AS col2, ( - col1 ) AS col2 FROM tab2 -Expected: ["0","1"] but got ["0.056","0.833","1.123"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT col1 + + col0 * - col2 + col0 * ( - col2 + CAST ( NULL AS INTEGER ) ) / col0 FROM tab1 +SELECT - - col2 AS col2 FROM tab0 WHERE NOT - + ( col1 ) IN ( col1 * - + 99 + + col1, + 70 / 67, col1 * - col2, + - col2 + + col1 - + + col1, - col0, col2 + + + 94, - + 28 ) -Expected: ["NULL","NULL","NULL"] but got ["-190","-3695","-7763"] +Query was expected to return results (but did not) ``` ```sql -SELECT + cor0.col2 / cor0.col1 FROM tab0, tab1 AS cor0 +SELECT * FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL, tab1 AS cor2 -Correct amount of values returned but hash was different than expected. +Parse error on line 1: +...NOT NULL IS NOT NULL, tab1 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` ```sql -SELECT DISTINCT ( ( - col2 ) ) * CAST ( NULL AS INTEGER ) + 29 * + tab0.col2 * col1 FROM tab0 +SELECT - MIN ( + col1 ) AS col0, 84 FROM tab1 AS cor0 WHERE NOT ( - 48 ) IS NOT NULL -Expected: ["NULL"] but got ["216398","2813","82302"] +Expected: ["NULL","84"] but got ["84","NULL"] ``` ```sql -SELECT ALL cor0.col2 + + col0 - CAST ( NULL AS REAL ) / 33 FROM tab1 AS cor0 +SELECT DISTINCT + + MAX ( col2 ) FROM tab0 AS cor0 WHERE NOT 38 BETWEEN NULL AND + col1 -Wrong conversion type +Expected: ["99"] but got ["NULL"] ``` ```sql -SELECT ALL col2 FROM tab2 WHERE NOT - col2 IN ( col1 + tab2.col1 * col0 ) +SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NULL IS NULL -Query was expected to return results (but did not) +18 results returned but expected 54 ``` +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,632 failed +* 83% was OK + +Time: 25460.919ms + +---- ---- ---- ---- ---- ---- ---- +### 154/190 [`./test/random/aggregates/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_6.test) + +_Mimic sqlite_ ```sql -SELECT ALL - cor0.col2 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1 +SELECT DISTINCT COUNT ( * ) / + 45 AS col1, 95 FROM tab0 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Expected: ["0","95"] but got ["95","0.067"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab2 AS cor2 +SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 - + - col1 + ( col0 ) + CAST ( NULL AS INTEGER ) * 18 ) IS NOT NULL -45 results returned but expected 3645 +Query was expected to return results (but did not) ``` -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,421 failed -* 85% was OK -Time: 23081.708ms +```sql +SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 ----- ---- ---- ---- ---- ---- ---- -### 576/620 [`./test/random/select/slt_good_61.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_61.test) +Expected: ["NULL"] but got ["3"] +``` -_Mimic sqlite_ ```sql -SELECT + CAST ( NULL AS INTEGER ) * + 69 AS col0 FROM tab2 AS cor0 +SELECT ALL CAST ( NULL AS INTEGER ) * 8 AS col1 FROM tab0 Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT + col1 + CAST ( - 56 AS INTEGER ) / + col1 AS col0 FROM tab1 AS cor0 +SELECT ( + CAST ( COUNT ( * ) AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) / - - 78 FROM tab0 -Expected: ["24","5","9"] but got ["23.846","4.400","8.692"] +g is not defined ``` ```sql -SELECT CAST ( NULL AS REAL ) * + col0 + col2 / - 74 FROM tab0 AS cor0 +SELECT ALL - CAST ( NULL AS REAL ) - + + 63 - + 61 + + 36 + - col0 - 18 FROM tab1 Wrong conversion type ``` ```sql -SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1 +SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 33 IS NOT NULL Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab2 AS cor1 +SELECT DISTINCT ( - 38 ) / + col2 AS col0, col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 -Expected: ["NULL"] but got ["0"] +Expected: ["-3","NULL","0","NULL"] but got ["-0.384","0","-0.809","0","-3.800","0"] ``` ```sql -SELECT + col0 AS col0 FROM tab2 WHERE NOT col0 IN ( col2 ) +SELECT DISTINCT MAX ( ALL - 6 ) FROM tab2 WHERE NOT - col1 BETWEEN 33 + - 90 AND NULL -Query was expected to return results (but did not) +Expected: ["-6"] but got ["NULL"] ``` ```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2, tab0 AS cor3 +SELECT * FROM tab1 cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL < ( NULL ) -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +54 results returned but expected 18 ``` ```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 cor2 +SELECT DISTINCT 9 + COUNT ( * ) AS col2, AVG ( DISTINCT + + col2 ) col2, - MAX ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL -36 results returned but expected 972 +Expected: ["9","NULL","NULL"] but got ["NULL","NULL"] ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,417 failed -* 85% was OK +* 1,649 failed +* 83% was OK -Time: 27074.143ms +Time: 28017.738ms ---- ---- ---- ---- ---- ---- ---- -### 577/620 [`./test/random/select/slt_good_62.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_62.test) +### 155/190 [`./test/random/aggregates/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_7.test) _Mimic sqlite_ ```sql -SELECT - col1 / - col0 AS col2 FROM tab0 +SELECT DISTINCT - + col2 + col1 / - + 86 AS col1 FROM tab1 AS cor0 -Expected: ["1","2","3"] but got ["1.022","2.771","3.583"] +Expected: ["-59","-68","-96"] but got ["-59.058","-68.547","-96.163"] ``` ```sql -SELECT ALL + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +SELECT + CAST ( NULL AS INTEGER ) + col1 + - 68 + col0 * + col2 AS col2 FROM tab2 -Expected: ["NULL","NULL","NULL"] but got ["86","91","97"] +Expected: ["NULL","NULL","NULL"] but got ["1041","2569","4349"] ``` ```sql -SELECT DISTINCT + CAST ( + col2 AS REAL ) * tab0.col0 AS col0 FROM tab0 +SELECT col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 88 * - col1 AND - col2 -Wrong conversion type +Query was expected to return results (but did not) ``` ```sql -SELECT + cor0.col2 / + 85 AS col0 FROM tab2, tab1 AS cor0 +SELECT * FROM tab2 cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT - + 94 = NULL -Correct amount of values returned but hash was different than expected. +54 results returned but expected 18 ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0 +SELECT ALL - 11 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 -Expected: ["NULL"] but got ["24","35","89"] +Wrong conversion type ``` ```sql -SELECT * FROM tab1 WHERE NOT + col1 + col2 * col0 IN ( - col1 ) +SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( + 58 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 -Query was expected to return results (but did not) +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2 +SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE - 70 IS NOT NULL -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 cor2 +SELECT + CAST ( + MAX ( - 43 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - col1 ) + col2 -36 results returned but expected 972 +g is not defined ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,353 failed -* 86% was OK -Time: 30713.200ms +```sql +SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 87 < - - 14 + + 1 * col1 ----- ---- ---- ---- ---- ---- ---- -### 578/620 [`./test/random/select/slt_good_63.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_63.test) +Expected: ["NULL","NULL"] but got ["0","0"] +``` -_Mimic sqlite_ ```sql -SELECT - col0 + col2 + + col2 / - 2 FROM tab1 cor0 +SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col0 + - - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 -Expected: ["-32","-35","24"] but got ["-32","-35.500","24"] +Expected: ["NULL","NULL","NULL","NULL","NULL","NULL"] but got ["0","15","0","87","0","97"] ``` ```sql -SELECT CAST ( NULL AS REAL ) FROM tab2, tab1, tab2 AS cor0 +SELECT - 34 + + COUNT ( * ) * 2 - - COUNT ( * ) AS col1, MAX ( + 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL -Wrong conversion type +Expected: ["-34","NULL"] but got ["NULL"] ``` ```sql -SELECT ALL - cor1.col0 col2 FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1 +SELECT + + SUM ( DISTINCT col0 ) / + - CAST ( - COUNT ( * ) AS INTEGER ) + - 82 + - + COUNT ( * ) FROM tab1 AS cor0 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Expected: ["-10"] but got ["NULL"] ``` ```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 63 AS col1 FROM tab2, tab0 AS cor0 +SELECT - + COUNT ( * ) * - + 68 - + SUM ( DISTINCT col0 ) col2, + MAX ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL -Expected: ["NULL"] but got ["0"] +Expected: ["NULL","NULL"] but got ["NULL"] ``` ```sql -SELECT ALL - cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 +SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab1 cor1 ON NOT 86 IS NOT NULL, tab0 AS cor2 -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Parse error on line 1: +...N NOT 86 IS NOT NULL, tab0 AS cor2 +-----------------------^ +Expecting 'EOF', 'WITH', 'RPAR', 'PIVOT', 'UNPIVOT', 'IN', 'LIKE', 'ARROW', 'DOT', 'ORDER', 'CARET', 'EQ', 'WHERE', 'SLASH', 'EXCLAMATION', 'MODULO', 'GT', 'LT', 'GTGT', 'LTLT', 'NOT', 'UNION', 'INTERSECT', 'EXCEP… ``` +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,634 failed +* 83% was OK + +Time: 40163.199ms + +---- ---- ---- ---- ---- ---- ---- +### 156/190 [`./test/random/aggregates/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_8.test) + +_Mimic sqlite_ ```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - CAST ( - col0 AS INTEGER ) IN ( col2, + col2 ) -Correct amount of values returned but hash was different than expected. +Expected: ["-3"] but got ["0"] ``` ```sql -SELECT * FROM tab2 WHERE NOT + col2 + col2 + col1 IN ( - tab2.col2 ) +SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 BETWEEN NULL AND - + col1 Query was expected to return results (but did not) ``` ```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2 +SELECT - 25 * + CAST ( + + COUNT ( ALL - 61 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 -45 results returned but expected 3645 +g is not defined ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,421 failed -* 85% was OK -Time: 22364.626ms +```sql +SELECT ALL + ( - AVG ( - CAST ( NULL AS INTEGER ) ) ) + - ( - 23 ) FROM tab0 ----- ---- ---- ---- ---- ---- ---- -### 579/620 [`./test/random/select/slt_good_64.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_64.test) +Expected: ["NULL"] but got ["23"] +``` -_Mimic sqlite_ ```sql -SELECT - + 36 * col0 - + CAST ( NULL AS REAL ) * 65 FROM tab2 AS cor0 +SELECT ALL CAST ( - - col1 AS INTEGER ) / col1 + + col0 + - + CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab0 -Wrong conversion type +Expected: ["NULL","NULL","NULL"] but got ["16","88","98"] ``` ```sql -SELECT cor0.col1 / + 34 + 84 / + cor0.col0 FROM tab0 AS cor0 +SELECT COUNT ( * ) / - 3, - 4 / CAST ( + + AVG ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 -Expected: ["2","4","5"] but got ["3.620","5.253","6.029"] +Expected: ["-1","0"] but got ["-1","NULL"] ``` ```sql -SELECT ALL - cor1.col1 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1 +SELECT DISTINCT col2 + col2 AS col1 FROM tab2 WHERE NOT - 89 * CAST ( NULL AS REAL ) IS NOT NULL -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Wrong conversion type ``` ```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 + col0 + - col2 AS col0 FROM tab2 AS cor0 +SELECT 61 AS col1, col1 AS col1 FROM tab1 AS cor0 -Expected: ["NULL"] but got ["-20","41","52"] +Expected: ["61","14","61","47","61","5"] but got ["14","14","47","47","5","5"] ``` ```sql -SELECT CAST ( NULL AS INTEGER ) * - col1 * - tab2.col2 AS col0 FROM tab2 +SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 36 ) IS NOT NULL -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +18 results returned but expected 54 ``` ```sql -SELECT cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0 +SELECT + CAST ( NULL AS INTEGER ) + - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + col2 IN ( col2 * + col2 ) +SELECT DISTINCT + + col2 - - CAST ( NULL AS INTEGER ) + + 20, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 -Query was expected to return results (but did not) +Expected: ["NULL","NULL"] but got ["119","0","30","0","67","0"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2 +SELECT DISTINCT + 6 * - 31 + col1 AS col1, + 34 / - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 -45 results returned but expected 3645 +Expected: ["-139","NULL","-172","NULL","-181","NULL"] but got ["NULL","NULL"] ``` -#### ☓ Ran 10,011 tests as _sqlite_ +#### ☓ Ran 10,012 tests as _sqlite_ -* 1,367 failed -* 86% was OK +* 1,634 failed +* 83% was OK -Time: 21320.998ms +Time: 36466.707ms ---- ---- ---- ---- ---- ---- ---- -### 580/620 [`./test/random/select/slt_good_65.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_65.test) +### 157/190 [`./test/random/aggregates/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/aggregates/slt_good_9.test) _Mimic sqlite_ ```sql -SELECT ALL col0 / 82 AS col0 FROM tab0 +SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS REAL ) IS NOT NULL ) -Expected: ["0","0","1"] but got ["0.293","0.427","1.085"] +Wrong conversion type ``` ```sql -SELECT CAST ( NULL AS INTEGER ) + 88 col0 FROM tab2 +SELECT ALL - + 1 * - col0 + - - 96 * ( + + 92 ) - 81 / - - ( + col0 ) AS col0 FROM tab0 AS cor0 -Expected: ["NULL","NULL","NULL"] but got ["88","88","88"] +Expected: ["8842","8919","8929"] but got ["8841.600","8918.069","8928.165"] ``` ```sql -SELECT tab1.col2 - CAST ( ( col1 ) AS REAL ) AS col2 FROM tab1 +SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + MIN ( ALL - 45 ) AS col1 FROM tab0 -Wrong conversion type +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT DISTINCT + 35 + - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +SELECT ALL + - col0 AS col0, CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0 -Expected: ["NULL"] but got ["-54","0","11"] +Expected: ["-15","NULL","-87","NULL","-97","NULL"] but got ["-15","0","-87","0","-97","0"] ``` ```sql -SELECT ALL * FROM tab1, tab1 cor0, tab1 AS cor1, tab0, tab0 AS cor2 +SELECT DISTINCT - + 86 + - - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 -Correct amount of values returned but hash was different than expected. +g is not defined ``` ```sql -SELECT ALL col0 FROM tab2 WHERE NOT - col1 BETWEEN ( col2 / col1 ) AND NULL +SELECT ALL * FROM tab1 WHERE NOT col2 IN ( - ( col1 ) ) Query was expected to return results (but did not) ``` ```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3 +SELECT ALL - 14 AS col2, 94 AS col2, col2 FROM tab0 AS cor0 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab1 cor2 +SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL -45 results returned but expected 3645 +18 results returned but expected 54 ``` -#### ☓ Ran 10,011 tests as _sqlite_ -* 1,400 failed -* 86% was OK +```sql +SELECT - + CAST ( NULL AS INTEGER ) + 3 AS col0 FROM tab2 WHERE + + col2 - - - ( + col1 ) - - col2 <> col0 + + - col1 + +Expected: ["NULL","NULL"] but got ["3","3"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ -Time: 20930.483ms +* 1,565 failed +* 84% was OK + +Time: 34915.089ms ---- ---- ---- ---- ---- ---- ---- -### 581/620 [`./test/random/select/slt_good_66.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_66.test) +### 158/190 [`./test/random/expr/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_0.test) _Mimic sqlite_ ```sql -SELECT ALL - cor0.col2 / cor0.col0 + col0 * - 21 FROM tab1 AS cor0 +SELECT 20 / - - 96 + CAST ( 90 AS INTEGER ) AS col2 + +Expected: ["90"] but got ["90.208"] +``` + + +```sql +SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) -Expected: ["-1344","-1681","-81"] but got ["-1344.891","-1681.200","-81"] +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT + col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 +SELECT 67 * + 85 * - CAST ( - SUM ( - 52 ) AS INTEGER ) col2 -Expected: ["NULL","NULL","NULL"] but got ["17","31","59"] +g is not defined ``` ```sql -SELECT ALL + 6 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1 +SELECT ALL 25 * + COUNT ( * ) + - 0 - + - 6 + + - ( + + CASE + CAST ( + + 38 AS REAL ) WHEN 3 THEN NULL WHEN + 42 THEN NULL WHEN - 80 THEN NULL ELSE 14 END ) AS col1, - 31 AS col0 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Wrong conversion type ``` ```sql -SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0 +SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2, + 77 / 37 + + + 90, + CASE - - MAX ( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM ( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST ( 16 AS INTEGER ) WH… -Expected: ["NULL"] but got ["1","33","82"] +Expected: ["2","92","NULL"] but got ["NULL","92.081"] ``` ```sql -SELECT DISTINCT col1 * + CAST ( cor0.col1 AS REAL ) FROM tab0 AS cor0 +SELECT - 37 AS col0, + MAX ( + - 74 ) * + - 55 / CAST ( - COUNT ( * ) AS INTEGER ) + 48 - - 10 + + 31 * - 27 * - 89 * - + 35 -Wrong conversion type +Expected: ["-37","-2611267"] but got ["-37","NULL"] ``` ```sql -SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +SELECT SUM ( + 73 ) * - CASE WHEN NOT ( NOT 27 BETWEEN 15 AND - NULLIF ( - 63, - 28 + + 76 ) ) THEN NULL ELSE + 77 * + 69 END / - CAST ( - 69 AS INTEGER ) AS col0 -Correct amount of values returned but hash was different than expected. +Cannot read property 'toString' of undefined ``` ```sql -SELECT col1 col0 FROM tab1 WHERE NOT col0 BETWEEN col1 AND col2 +SELECT ALL CAST ( - - CASE + 81 WHEN - 91 THEN + 37 END AS INTEGER ), + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) -Query was expected to return results (but did not) +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 cor1, tab0, tab2 AS cor2 +SELECT - 80 + - CASE - CASE + COUNT ( * ) WHEN - 92 THEN 44 ELSE - 5 + + 36 END WHEN + 95 THEN + + 70 + - 38 WHEN 17 THEN 50 END * + ( 86 ) AS col0, - CAST ( NULL AS INTEGER ) -45 results returned but expected 3645 +Expected: ["NULL","NULL"] but got ["NULL","0"] ``` ```sql -SELECT + 29 / - col0 + - col1 AS col1 FROM tab0 +SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2 -Expected: ["-87","-91","-97"] but got ["-87.208","-91.326","-97.829"] +Expected: ["-46","NULL"] but got ["NULL","NULL"] ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,377 failed -* 86% was OK +* 1,839 failed +* 81% was OK -Time: 20773.952ms +Time: 39115.517ms ---- ---- ---- ---- ---- ---- ---- -### 582/620 [`./test/random/select/slt_good_67.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_67.test) +### 159/190 [`./test/random/expr/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_1.test) _Mimic sqlite_ ```sql -SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 cor3 - -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… -``` - - -```sql -SELECT ALL - - col1 * - ( + col1 ) + col0 / + 98 AS col2 FROM tab2 AS cor0 +SELECT ALL CAST ( NULL AS INTEGER ) -Expected: ["-289","-3481","-961"] but got ["-288.194","-3480.204","-960.929"] +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT + CAST ( NULL AS INTEGER ) + 48 FROM tab2 AS cor0 +SELECT + CAST ( NULL AS REAL ) -Expected: ["NULL","NULL","NULL"] but got ["48","48","48"] +Wrong conversion type ``` ```sql -SELECT DISTINCT + col0 + - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 +SELECT ALL COUNT ( * ) AS col0, - 83 AS col0 -Expected: ["NULL"] but got ["7","78","79"] +Expected: ["1","-83"] but got ["-83"] ``` ```sql -SELECT DISTINCT - CAST ( - col1 AS REAL ) * col1 FROM tab1 AS cor0 +SELECT CAST ( - COUNT ( ALL 73 ) AS INTEGER ) -Wrong conversion type +g is not defined ``` ```sql -SELECT * FROM tab1, tab2 AS cor0, tab1 cor1, tab0, tab0 AS cor2 +SELECT - CASE WHEN NOT NULL BETWEEN NULL AND NULL THEN 17 ELSE NULL END + + 12 -Correct amount of values returned but hash was different than expected. +Cannot read property 'toString' of undefined ``` ```sql -SELECT ALL * FROM tab1 WHERE NOT + col0 + - col1 * + col0 + col2 IN ( - col1 ) +SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER ) -Query was expected to return results (but did not) +Expected: ["NULL","NULL"] but got ["0","-15"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab2 cor2 +SELECT + MIN ( + + 67 ), 63 / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 -45 results returned but expected 3645 +Expected: ["67","63"] but got ["67","NULL"] ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,354 failed -* 86% was OK +* 1,175 failed +* 88% was OK -Time: 27970.103ms +Time: 19132.749ms ---- ---- ---- ---- ---- ---- ---- -### 583/620 [`./test/random/select/slt_good_68.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_68.test) +### 160/190 [`./test/random/expr/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_2.test) _Mimic sqlite_ ```sql -SELECT - CAST ( NULL AS INTEGER ) + col0 FROM tab2 +SELECT + 62 / + SUM ( - 80 ) * + + 23 + + 38 + CAST ( + 31 AS INTEGER ) * + COUNT ( DISTINCT - 54 ) * + ( + 88 + - CAST ( 95 - COUNT ( * ) * 18 AS INTEGER ) ) -Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] +Expected: ["379"] but got ["2765.966"] ``` ```sql -SELECT ALL - ( + 2 ) * - col0 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 +SELECT ALL + CAST ( NULL AS INTEGER ), - 9 AS col0 -Wrong conversion type +Expected: ["NULL","-9"] but got ["0","-9"] ``` ```sql -SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2, tab0 AS cor3 +SELECT - ( - CAST ( + - SUM ( DISTINCT - - 53 ) AS INTEGER ) ) -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +g is not defined ``` ```sql -SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0 +SELECT - CAST ( NULL AS REAL ) -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT DISTINCT + col2 / + col0 + + col2 * + col1 FROM tab0 +SELECT + CASE + COUNT ( * ) WHEN + COALESCE ( + MAX ( DISTINCT - 17 ), 72 - + - 86 + + ( - CASE WHEN ( + CASE - 8 WHEN - 7 THEN NULL WHEN - 70 * + 18 THEN NULL ELSE 82 * + ( - - MIN ( + 47 ) ) + - SUM ( DISTINCT 97 ) END ) BETWEEN - 13 * + 57 AND - COUNT ( * ) * - 74 THEN 89 WHEN NOT - 12 >= NULL T… -Expected: ["2839","7462","97"] but got ["2839.375","7462.921","97.029"] +Cannot read property 'toString' of undefined ``` ```sql -SELECT DISTINCT + col0 * + col2 * CAST ( NULL AS INTEGER ) + - col2 * col1 AS col0 FROM tab0 AS cor0 +SELECT ALL - 76 / + ( - - 64 ), - ( - COUNT ( * ) ) + + CASE - 49 WHEN - 8 THEN + + ( + COALESCE ( - 57, + 78, + 48 ) ) * + - CAST ( 44 AS INTEGER ) + - + 5 END col1 -Expected: ["NULL"] but got ["-2838","-7462","-97"] +Expected: ["-1","NULL"] but got ["-1.188","NULL"] ``` ```sql -SELECT + col1 AS col0 FROM tab1 WHERE NOT col0 * col0 * - col2 IN ( + tab1.col2 + - col2 * col0 + - col1 ) +SELECT DISTINCT CASE WHEN NOT COUNT ( * ) IN ( + 75 ) THEN ( 79 ) WHEN + 9 IS NOT NULL THEN NULL END -Query was expected to return results (but did not) +Expected: ["79"] but got ["NULL"] ``` ```sql -SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + col0 + - col1 BETWEEN - col2 AND - col2 + col1 +SELECT + + 14 * 93 + + CAST ( NULL AS INTEGER ) * + 60 col0, CASE - 49 WHEN + NULLIF ( + - 64, ( + 20 ) ) * + 13 / COUNT ( * ) THEN 85 / - - COUNT ( DISTINCT - 96 ) + - 38 ELSE NULL END -6 results returned but expected 9 +Expected: ["NULL","NULL"] but got ["1302","NULL"] ``` -#### ☓ Ran 10,011 tests as _sqlite_ -* 1,386 failed -* 86% was OK +```sql +SELECT CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + + - CAST ( 14 AS INTEGER ) + +Expected: ["NULL","NULL"] but got ["0","-15"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 1,481 failed +* 85% was OK -Time: 24112.579ms +Time: 30900.084ms ---- ---- ---- ---- ---- ---- ---- -### 584/620 [`./test/random/select/slt_good_69.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_69.test) +### 161/190 [`./test/random/expr/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_3.test) _Mimic sqlite_ ```sql -SELECT + CAST ( NULL AS INTEGER ) * col2 * cor0.col2 AS col2 FROM tab2 AS cor0 +SELECT 0 AS col2, 27 AS col2 -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Expected: ["0","27"] but got ["27","27"] ``` ```sql -SELECT - col2 / 70 + col1 AS col2 FROM tab1 AS cor0 +SELECT ALL - CAST ( NULL AS INTEGER ) * 60 AS col2 -Expected: ["10","12","26"] but got ["11.629","25.229","9.186"] +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1 +SELECT DISTINCT - - COUNT ( * ), 43 + CAST ( NULL AS REAL ) AS col0 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Wrong conversion type ``` ```sql -SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0 +SELECT + 29 * - NULLIF ( + 80, + CAST ( + NULLIF ( + - 4, - + COUNT ( * ) ) AS INTEGER ) * - 44 * - ( COALESCE ( 0, + 36 * 1 ) ) ) AS col1 -Correct amount of values returned but hash was different than expected. +g is not defined ``` ```sql -SELECT DISTINCT - tab0.col2 - CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab0 +SELECT 30 / COALESCE ( - COALESCE ( + + CAST ( NULL AS INTEGER ), 86 + + 46 ), - - 46 ) -Wrong conversion type +Expected: ["0"] but got ["NULL"] ``` ```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 FROM tab2 cor0 +SELECT 6 * - 8 * CASE - MAX ( ALL - + 82 ) WHEN + COUNT ( * ) THEN + CASE WHEN NOT COUNT ( * ) BETWEEN 77 AND ( ( + COUNT ( - 48 ) ) ) THEN NULL WHEN NULL IS NULL THEN NULL ELSE - 98 END * 3 WHEN + 75 * COUNT ( * ) THEN NULL END * 62 -Expected: ["NULL"] but got ["-17","-31","-59"] +Cannot read property 'toString' of undefined ``` ```sql -SELECT DISTINCT - col1 + tab2.col1 FROM tab2 WHERE NOT col0 IN ( col1 + + col1 ) +SELECT 24 - - - CASE - + 7 WHEN - COUNT ( * ) THEN + SUM ( DISTINCT 34 ) WHEN + + 14 THEN + 3 / + 91 END col2, 1 * - CAST ( NULL AS INTEGER ) / - + 66, 61 col1 -Query was expected to return results (but did not) +Expected: ["NULL","NULL","61"] but got ["NULL","0","61"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 cor2 +SELECT - + 55 / + - 69, + 81 * 68 + + - ( CASE + 72 WHEN - 90 * + 85 + - COALESCE ( 84, - + ( + COUNT ( * ) ) + 60, + 25 / 41 ) THEN + - 72 * 22 - - 36 - - + 93 WHEN 15 THEN - 38 END ) * 22 AS col0 -36 results returned but expected 972 +Expected: ["0","NULL"] but got ["0.797","NULL"] ``` -#### ☓ Ran 10,010 tests as _sqlite_ - -* 1,403 failed -* 85% was OK - -Time: 21413.288ms - ----- ---- ---- ---- ---- ---- ---- -### 585/620 [`./test/random/select/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_7.test) - -_Mimic sqlite_ ```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col2 * cor0.col0 * col0 IN ( cor0.col0 ) +SELECT ALL CAST ( NULL AS INTEGER ), ( + CAST ( NULL AS INTEGER ) ) + + 79, - - 10 AS col1 -Query was expected to return results (but did not) +Expected: ["NULL","NULL","10"] but got ["0","79","10"] ``` +#### ☓ Ran 10,012 tests as _sqlite_ -```sql -SELECT DISTINCT - col0 / col2 FROM tab0 AS cor0 +* 2,064 failed +* 79% was OK -Expected: ["-1","-35","0"] but got ["-0.727","-1.085","-35"] -``` +Time: 32655.393ms + +---- ---- ---- ---- ---- ---- ---- +### 162/190 [`./test/random/expr/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_4.test) +_Mimic sqlite_ ```sql -SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2 +SELECT + ( - ( - 91 ) ) / - 94 * + - 88 AS col1 -Correct amount of values returned but hash was different than expected. +Expected: ["0"] but got ["0.011"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2 +SELECT + - 87 / - - 47 + + 6 + - CAST ( + COUNT ( * ) AS INTEGER ) -36 results returned but expected 972 +g is not defined ``` ```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab0 AS cor0 +SELECT + + 43 + - CAST ( NULL AS INTEGER ) AS col0 -Expected: ["NULL","NULL","NULL"] but got ["1","33","82"] +Expected: ["NULL"] but got ["43"] ``` ```sql -SELECT - + cor0.col1 / CAST ( - col1 AS REAL ) FROM tab2 AS cor0 +SELECT DISTINCT COALESCE ( + 51, + COUNT ( * ) / CASE WHEN NOT NULL NOT IN ( 95, 16, - CASE - 72 WHEN - 83 THEN - 70 * + + CAST ( NULL AS REAL ) / + + 81 WHEN CAST ( + COUNT ( * ) AS REAL ) THEN + - 13 ELSE NULL END * + 74 * + COUNT ( * ) ) THEN 69 END + 27 ) AS col0 Wrong conversion type ``` ```sql -SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) / col0 FROM tab0 cor0 +SELECT - CASE WHEN NOT + CASE + AVG ( ALL + + 26 ) WHEN ( + 47 ) + CAST ( + 26 AS INTEGER ) - - COUNT ( * ) * - COALESCE ( - - 44, + ( 80 ) ) + + + 47 THEN - 2 ELSE NULL END BETWEEN NULL AND - COUNT ( * ) THEN + + 25 WHEN 92 + + + COUNT ( * ) <= ( + ( + 40 ) + 67 ) THEN NULL END * - 82 + 89 -Expected: ["NULL"] but got ["24","35","89"] +Cannot read property 'toString' of undefined ``` ```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab1 AS cor2 +SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ), - 10 + - + SUM ( DISTINCT + 37 ) + - CAST ( NULL AS INTEGER ) + 89 * 62 AS col0 -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["NULL","NULL"] but got ["0","5471"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,283 failed -* 87% was OK - -Time: 20058.289ms - ----- ---- ---- ---- ---- ---- ---- -### 586/620 [`./test/random/select/slt_good_70.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_70.test) - -_Mimic sqlite_ ```sql -SELECT + col2 / + col0 + - CAST ( + ( + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 +SELECT ALL 38 * - COALESCE ( 52, - + 49 / - 55 * + + 18, NULLIF ( + + 67, - + 39 ) ) / ( + COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) AS col0 -Expected: ["-36","-57","-95"] but got ["-36","-56.109","-94.800"] +Expected: ["-1976"] but got ["NULL"] ``` ```sql -SELECT DISTINCT 40 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2 +SELECT ALL - 55 AS col1, - MAX ( ALL - 3 ) / MIN ( ALL + 53 ) * + CASE - - 47 WHEN - + 13 THEN AVG ( ALL - NULLIF ( 1, + + NULLIF ( - 69, 37 + 95 + - 77 ) ) ) ELSE NULL END * - 92 - 65 + - 51 * - 61 * 37 - COUNT ( * ) col1 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["-55","NULL"] but got ["NULL"] ``` ```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 FROM tab2 cor0 +SELECT + CAST ( NULL AS INTEGER ) AS col1, CASE + COUNT ( * ) WHEN - - 5 THEN + - 71 * + 32 / - 55 END / + 90 * - - 55 * - + NULLIF ( + - SUM ( ALL + 39 ), - 42 ) -Expected: ["NULL","NULL","NULL"] but got ["-17","-31","-59"] +Expected: ["NULL","NULL"] but got ["0","NULL"] ``` +#### ☓ Ran 10,012 tests as _sqlite_ -```sql -SELECT ALL - CAST ( NULL AS REAL ) * ( + col0 ) + 28 FROM tab2 cor0 - -Wrong conversion type -``` - +* 2,064 failed +* 79% was OK -```sql -SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 AS cor0 +Time: 40076.832ms -Correct amount of values returned but hash was different than expected. -``` +---- ---- ---- ---- ---- ---- ---- +### 163/190 [`./test/random/expr/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_5.test) +_Mimic sqlite_ ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * cor0.col1 / + col2 AS col2 FROM tab1 AS cor0 +SELECT 89 * + CASE 39 WHEN + - 14 THEN NULL ELSE - + ( - COUNT ( * ) ) - - - 28 END * - - CAST ( - 86 AS INTEGER ) - - CASE + AVG ( + 89 ) WHEN - CAST ( - 27 AS REAL ) THEN - 76 + + CAST ( NULL AS INTEGER ) + + - 31 + 22 * - 82 * + + COUNT ( - + ( + - ( 29 ) ) ) ELSE - 0 END + 94 -Expected: ["NULL"] but got ["0"] +Wrong conversion type ``` ```sql -SELECT DISTINCT * FROM tab0, tab1, tab0 cor0, tab2 AS cor1 +SELECT - 79 / 44 + + + 90 col1 -36 results returned but expected 972 +Expected: ["89"] but got ["88.205"] ``` ```sql -SELECT ALL - tab1.col2 * - col1 * + col0 AS col1 FROM tab1 WHERE NOT ( - col1 - + col0 ) BETWEEN + col0 + + col1 AND NULL +SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 9 -Query was expected to return results (but did not) +Expected: ["NULL"] but got ["0"] ``` -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,449 failed -* 85% was OK - -Time: 21064.831ms - ----- ---- ---- ---- ---- ---- ---- -### 587/620 [`./test/random/select/slt_good_71.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_71.test) - -_Mimic sqlite_ ```sql -SELECT ALL - CAST ( - 72 AS INTEGER ) / - col2 FROM tab0 cor0 +SELECT ALL CASE + - 88 WHEN - COALESCE ( - CAST ( - 37 AS INTEGER ), + 62 ) - + COUNT ( * ) / 56 THEN - 58 WHEN 41 THEN NULL END, 82 / 81 AS col0 -Expected: ["-2","-72","0"] but got ["-0.878","-2.182","-72"] +Expected: ["NULL","1"] but got ["NULL","1.012"] ``` ```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 67 AS col1 FROM tab2, tab2 AS cor0 +SELECT ALL - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0 -Expected: ["NULL"] but got ["67"] +g is not defined ``` ```sql -SELECT ALL + CAST ( NULL AS INTEGER ) + - cor0.col0 + cor0.col1 FROM tab2 AS cor0 +SELECT + CAST ( - + CASE WHEN NOT 4 NOT BETWEEN COUNT ( * ) AND NULL THEN + 22 END AS REAL ) * 73 * - 59 / - MAX ( DISTINCT - 71 ) -Expected: ["NULL","NULL","NULL"] but got ["-19","-62","24"] +Cannot read property 'toString' of undefined ``` ```sql -SELECT - + CAST ( NULL AS REAL ) * + col2 FROM tab2 AS cor0 +SELECT DISTINCT + MAX ( + - ( + 1 ) ) * 34 + + - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( DISTINCT - 24 ) / 41 + 68 * - CASE + 74 + - 34 * 20 WHEN 67 THEN NULL WHEN MIN ( + 97 ) + CAST ( - 84 - + 15 AS INTEGER ) * 27 THEN 56 ELSE NULL END -Wrong conversion type +Expected: ["NULL","NULL"] but got ["-34","NULL"] ``` ```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab1 AS cor2 +SELECT ( - 91 ) AS col0, - NULLIF ( + COUNT ( * ), ( + 67 ) * - CASE ( + COUNT ( * ) ) WHEN CASE + 85 WHEN + - 28 * - 66 THEN NULL WHEN + 94 THEN + 62 END + - 95 + CASE + + COALESCE ( - COALESCE ( 49, - ( - + ( + 72 ) ) / - + SUM ( 25 ), + 65, 15 * + NULLIF ( + - 36, + NULLIF ( NULLIF ( - COALESCE … -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["-91","-1"] but got ["-91","NULL"] ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1 +SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), ( - 87 ) / + COUNT ( * ) * - 62 * - 63 / + + 33 ) * 38, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + 52, + CAST ( NULL AS INTEGER ) + - NULLIF ( SUM ( ALL - - 73 ), + 53 - + 93 * - 72 + NULLIF ( - 49, + CAST ( NULL AS INTEGER ) ) + 30 ) col2 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL","NULL","NULL"] but got ["0","0","-73"] ``` ```sql -SELECT * FROM tab1 WHERE NOT - col0 IN ( + col2 + tab1.col2 ) +SELECT CASE ( - CASE - + ( + 60 ) WHEN - COALESCE ( - 43, + 42 ) + - - 23 THEN + - COUNT ( * ) ELSE - 44 * + 52 END ) WHEN - 44 THEN - 73 END + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * + 82 AS col0 -Query was expected to return results (but did not) +Expected: ["NULL","NULL"] but got ["0"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 cor2 +SELECT ALL + 65 AS col1, CASE + + 3 WHEN + + 8 THEN 69 ELSE NULL END col1 -45 results returned but expected 3645 +Expected: ["65","NULL"] but got ["NULL","NULL"] ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,400 failed -* 86% was OK +* 2,085 failed +* 79% was OK -Time: 26349.765ms +Time: 41577.278ms ---- ---- ---- ---- ---- ---- ---- -### 588/620 [`./test/random/select/slt_good_72.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_72.test) +### 164/190 [`./test/random/expr/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_6.test) _Mimic sqlite_ ```sql -SELECT - col2 + 4 / - col0 AS col1 FROM tab0 AS cor0 +SELECT ALL + 77 + - 25 + COALESCE ( 17, COUNT ( * ), - NULLIF ( + 14, + - ( - 78 ) * - COUNT ( * ) ) ) + CAST ( NULL AS REAL ) AS col2 -Expected: ["-1","-33","-82"] but got ["-1.114","-33.167","-82.045"] +Wrong conversion type ``` ```sql -SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 AS col0 FROM tab2 +SELECT 64 / - - 90 + + 22 * + ( - 0 ) AS col1 -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Expected: ["0"] but got ["0.711"] ``` ```sql -SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2 +SELECT 64 - + - CASE + 33 WHEN + 80 * 8 * - - 62 + + 88 + - + 5 * 63 / 11 THEN - + COALESCE ( - 93, - 63 ) ELSE NULL END + - - 51 - + + 99 AS col1, 79 AS col1 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["NULL","79"] but got ["79","79"] ``` ```sql -SELECT DISTINCT tab0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +SELECT + + 92 * NULLIF ( COALESCE ( + - 44, 60 * + 41 ), - - 77 ) * 82 * CAST ( NULLIF ( COUNT ( * ), - 7 * - 79 + + + 35 ) AS INTEGER ) + + + 48 -Expected: ["NULL"] but got ["0"] +g is not defined ``` ```sql -SELECT DISTINCT + cor0.col1 + CAST ( - col2 AS REAL ) FROM tab1 AS cor0 +SELECT 6 + - + 0 * + 51 / + ( CASE WHEN + 76 BETWEEN - 93 * + + CAST ( - - 7 AS INTEGER ) * 71 * + + 10 - + AVG ( DISTINCT - 95 ) AND - 61 THEN - - 39 WHEN 73 BETWEEN 8 AND - ( 25 ) + 86 THEN + COUNT ( * ) * AVG ( 33 ) END ) * 89 AS col1 -Wrong conversion type +Cannot read property 'toString' of undefined ``` ```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2 cor2 +SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, CASE - 45 WHEN 29 THEN + - COUNT ( * ) WHEN + 74 THEN NULL END AS col1 -36 results returned but expected 972 +Expected: ["NULL","NULL"] but got ["NULL"] ``` ```sql -SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2 cor1 +SELECT - 44 / - 97 - + + 36 + + 0 * 40 + + 15 * - MIN ( - 42 ) * + + 25 AS col1, - CASE - + 73 WHEN COALESCE ( - MAX ( ALL - - 70 ), + 94 * + COALESCE ( - 20, - 90 * - 32 + - 35 + - + 4, + 62 + - NULLIF ( + + ( 95 ), + 65 ), 26 ) * - 49 + + NULLIF ( 43, - 91 ) ) THEN - 62 * + 4 * + AVG ( 92 ) - - 7… -Correct amount of values returned but hash was different than expected. +Expected: ["15714","NULL"] but got ["15714.454","NULL"] ``` ```sql -SELECT * FROM tab1 WHERE NOT col2 * col0 + + col1 + + col1 * col2 IN ( tab1.col1 ) +SELECT + COALESCE ( - MAX ( + - 18 ), - - ( + COALESCE ( 15, - SUM ( ALL - + 6 ) ) ) ) / - - ( CAST ( + + MIN ( ALL - 30 ) AS INTEGER ) ) -Query was expected to return results (but did not) +Expected: ["0"] but got ["NULL"] +``` + + +```sql +SELECT DISTINCT - 69 + + CAST ( NULL AS INTEGER ) AS col1, - 40 - - 10 * + 5 AS col0, + SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 74 + +Expected: ["NULL","10","NULL"] but got ["-69","10","0"] ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,437 failed -* 85% was OK +* 2,043 failed +* 79% was OK -Time: 25445.324ms +Time: 36745.464ms ---- ---- ---- ---- ---- ---- ---- -### 589/620 [`./test/random/select/slt_good_73.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_73.test) +### 165/190 [`./test/random/expr/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_7.test) _Mimic sqlite_ ```sql -SELECT ALL col0 + 64 / col1 AS col2 FROM tab1 AS cor0 +SELECT ALL - 83 / - 36 AS col1 -Expected: ["5","70","84"] but got ["5.462","70.400","84.923"] +Expected: ["2"] but got ["2.306"] ``` ```sql -SELECT + CAST ( NULL AS INTEGER ) / col1 + col1 AS col1 FROM tab1 AS cor0 +SELECT CAST ( NULL AS INTEGER ) * - + 40 col2 -Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT ALL + 6 / + cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1 +SELECT - MIN ( + - 66 ) * + + 86 + + - SUM ( + 97 ) - - + 4 * ( + MAX ( - 8 ) ) * CASE 6 WHEN CAST ( + + 22 AS REAL ) THEN - 82 WHEN - 14 THEN NULL END AS col0 -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) * col2 FROM tab0 +SELECT - 33 AS col0, 3 / + COUNT ( * ) + - CASE - 63 WHEN + + 43 * + COUNT ( * ) THEN + 77 * + ( 69 ) WHEN - + ( + 24 ) + + 83 * - - 92 THEN + 91 END + - - 12 * + 64 col0 -Expected: ["NULL"] but got ["0"] +Expected: ["-33","NULL"] but got ["NULL"] ``` ```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3 +SELECT DISTINCT CASE WHEN NOT NULLIF ( 11, - 27 ) BETWEEN - 40 + + 42 AND - CASE CAST ( + 34 AS INTEGER ) WHEN ( 22 ) + + 40 THEN - 15 * 68 ELSE - 4 * 78 END THEN 72 END / COALESCE ( + 58, + MIN ( - 44 ) ) AS col2 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Cannot read property 'toString' of undefined ``` ```sql -SELECT DISTINCT + col2 + + CAST ( NULL AS REAL ) * - 28 - - cor0.col0 * - CAST ( - 50 + col1 AS INTEGER ) * 0 FROM tab2 AS cor0 +SELECT DISTINCT 27 col1, - CASE - + 30 WHEN + 37 THEN NULL WHEN + 0 + 2 * - 60 THEN + ( 95 ) / COALESCE ( - 40, 57 / - 17 ) WHEN - 64 - - 98 THEN NULL ELSE NULL END AS col1 -Wrong conversion type +Expected: ["27","NULL"] but got ["NULL","NULL"] ``` ```sql -SELECT ALL * FROM tab1 WHERE NOT + col1 / + col0 IN ( col1 ) +SELECT ALL + 99 * + CAST ( - + COUNT ( ALL - 18 ) AS INTEGER ) AS col2 -Query was expected to return results (but did not) +g is not defined ``` ```sql -SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab2 cor2 +SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ), 33 * + CAST ( - 13 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) / + + 12 * - 39 -45 results returned but expected 3645 +Expected: ["NULL","NULL"] but got ["-1","0"] ``` -#### ☓ Ran 10,010 tests as _sqlite_ -* 1,433 failed -* 85% was OK +```sql +SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0, 32 + + 91 + - 95 + - NULLIF ( + CASE + 52 WHEN - + 61 + - + 37 THEN + - 27 - + - 74 / MAX ( ALL + 70 ) WHEN - 37 THEN NULL WHEN + 66 THEN NULL WHEN + ( + MIN ( DISTINCT 35 ) ) + + 29 * - 72 THEN - MIN ( DISTINCT + - ( - 20 ) ) * - + 53… + +Expected: ["NULL","NULL"] but got ["0","NULL"] +``` + +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,097 failed +* 79% was OK -Time: 21876.474ms +Time: 36333.747ms ---- ---- ---- ---- ---- ---- ---- -### 590/620 [`./test/random/select/slt_good_74.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_74.test) +### 166/190 [`./test/random/expr/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_8.test) _Mimic sqlite_ ```sql -SELECT col1 / col2 + col2 AS col2 FROM tab0 +SELECT 48 / + + 76 + + - 81 + - 78 + + - 92 -Expected: ["35","83","98"] but got ["35.606","83.110","98"] +Expected: ["-251"] but got ["-250.368"] ``` ```sql -SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3 +SELECT ALL - ( - - CAST ( COUNT ( * ) AS INTEGER ) ) + 92 -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +g is not defined ``` ```sql -SELECT ALL + CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0 +SELECT ALL - 85 * - CAST ( NULL AS INTEGER ) AS col2, 26 -Wrong conversion type +Expected: ["NULL","26"] but got ["0","26"] ``` ```sql -SELECT + CAST ( NULL AS INTEGER ) * col0 + - col0 FROM tab2 AS cor0 +SELECT DISTINCT - 58 + + CAST ( NULL AS REAL ) - - 6 + + COUNT ( DISTINCT - 58 ) * + 23 * - COUNT ( * ) + 11 AS col2 -Expected: ["NULL","NULL","NULL"] but got ["-7","-78","-79"] +Wrong conversion type ``` ```sql -SELECT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab0 cor2 +SELECT COALESCE ( 8, - 90 ) * + 74, + CASE - COUNT ( * ) WHEN + - CASE WHEN - 50 NOT BETWEEN + ( - 5 ) + 1 * - 15 AND COUNT ( * ) THEN - 87 * + 60 END THEN NULL WHEN + 17 THEN 0 * CAST ( - CAST ( 8 AS INTEGER ) AS INTEGER ) END / 82 + - 48 * - 21 AS col1 -Correct amount of values returned but hash was different than expected. +Cannot read property 'toString' of undefined ``` ```sql -SELECT DISTINCT - + ( - col0 ) * - col2 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 +SELECT DISTINCT COUNT ( * ) / - COALESCE ( + + CAST ( NULL AS INTEGER ), + - 93 + - + 11 * + 76 ), 24 / ( 29 ) -Expected: ["NULL"] but got ["-189","-2028","-3002"] +Expected: ["0","0"] but got ["NULL","0.828"] ``` ```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col2 IN ( col0 ) +SELECT DISTINCT - CASE 14 WHEN 17 + 74 THEN NULL ELSE CASE 63 WHEN + 61 THEN 95 * - - COUNT ( * ) * COUNT ( * ) - + 76 ELSE NULL END + - + 2 + 90 - 20 - - 39 / + 45 * - 43 END col2, 38 -Query was expected to return results (but did not) +Expected: ["NULL","38"] but got ["38","NULL"] ``` ```sql -SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1, tab0, tab1 AS cor2 +SELECT ALL - - 54 / - - COALESCE ( + 56, - ( + 13 ), - 5 + - 84 * - COUNT ( * ) + - 93 ) + 54 + MAX ( ALL - - ( - 57 ) ) AS col1 -45 results returned but expected 3645 +Expected: ["-3"] but got ["-2.036"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,400 failed -* 86% was OK -Time: 20752.755ms +```sql +SELECT 57 + + CASE + COUNT ( * ) WHEN - 80 THEN + + 58 END - - 44 * + + 74 / - 67 + ( - COUNT ( * ) ) * + 48, CAST ( NULL AS INTEGER ) + - 20 AS col1 ----- ---- ---- ---- ---- ---- ---- -### 591/620 [`./test/random/select/slt_good_75.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_75.test) +Expected: ["NULL","NULL"] but got ["NULL","-20"] +``` -_Mimic sqlite_ ```sql -SELECT + col0 + tab0.col2 / - tab0.col1 FROM tab0 +SELECT CAST ( NULL AS INTEGER ) + 7 + - CAST ( - 45 AS INTEGER ) - - - 61 + - - 1 - 74, + AVG ( - - CAST ( NULL AS INTEGER ) ) + 63 AS col2 -Expected: ["24","35","89"] but got ["23.616","34.990","88.099"] +Expected: ["NULL","NULL"] but got ["-82","63"] ``` ```sql -SELECT col1 * - col2 * - col0 col0 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IN ( - cor0.col1 * col1 ) +SELECT ALL + 2 col0, ( 32 ) + - 3 + CASE - 81 WHEN - - 81 THEN 21 END + + 27 + + 93 AS col0 -Query was expected to return results (but did not) +Expected: ["2","NULL"] but got ["NULL","NULL"] ``` +#### ☓ Ran 10,012 tests as _sqlite_ + +* 2,139 failed +* 78% was OK + +Time: 30396.966ms + +---- ---- ---- ---- ---- ---- ---- +### 167/190 [`./test/random/expr/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/expr/slt_good_9.test) + +_Mimic sqlite_ ```sql -SELECT ALL - CAST ( NULL AS INTEGER ) * col2 col1 FROM tab1 cor0 +SELECT - NULLIF ( 52, 73 ) / - 38 AS col1 -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Expected: ["1"] but got ["1.368"] ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) * tab0.col2 FROM tab0, tab2 cor0, tab2 AS cor1 +SELECT ALL 8 + - CAST ( NULL AS INTEGER ) * ( - 85 ) AS col0 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL"] but got ["8"] ``` ```sql -SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0 +SELECT 22 col1, 35 * + CASE 28 WHEN 4 THEN NULL WHEN - 57 THEN 46 END * + 57 / - 91 AS col1 -Expected: ["NULL"] but got ["0"] +Expected: ["22","NULL"] but got ["NULL","NULL"] ``` ```sql -SELECT DISTINCT tab2.col1 - - tab2.col2 * CAST ( NULL AS REAL ) FROM tab2 +SELECT ALL - 53, 56 * ( + ( + ( - CAST ( NULL AS REAL ) ) ) ) + - + 68 - - - MIN ( - - ( - 69 ) ) * - 98 + + MAX ( + 97 ) * CASE - 4 WHEN - 23 * 97 + COUNT ( DISTINCT 40 ) THEN 80 WHEN 54 * 2 THEN - 96 ELSE - MAX ( 94 ) END AS col1 Wrong conversion type ``` ```sql -SELECT DISTINCT - 17 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2 +SELECT ALL + CAST ( + ( COUNT ( * ) ) AS INTEGER ) -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +g is not defined ``` ```sql -SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab0 cor2 +SELECT ALL + COUNT ( * ) AS col1, 53 / CASE - 61 WHEN 73 + COUNT ( * ) THEN COUNT ( * ) * - 10 + - - 16 + + + 38 / COUNT ( DISTINCT 78 ) + + 15 + 1 WHEN - + 91 THEN + COUNT ( * ) + 49 END + 14 / 6 col1 -45 results returned but expected 3645 +Expected: ["1","NULL"] but got ["NULL"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,336 failed -* 86% was OK -Time: 21664.426ms +```sql +SELECT CASE - COALESCE ( + 2, - CAST ( NULL AS INTEGER ) ) WHEN + + 11 * - + 93 * 31 THEN 1 + + 71 WHEN - 72 THEN NULL END - - CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN - 33 BETWEEN ( NULL ) AND - 14 THEN + 27 END - + 30 / - COALESCE ( 26, - NULLIF ( - 59, - COUNT ( * ) ) + + COUNT ( * ) + + 41… ----- ---- ---- ---- ---- ---- ---- -### 592/620 [`./test/random/select/slt_good_76.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_76.test) +Cannot read property 'toString' of undefined +``` -_Mimic sqlite_ ```sql -SELECT + col0 * - tab1.col0 + + col2 / col1 FROM tab1 +SELECT + + 74 col0, CASE WHEN NOT NULL >= ( NULL ) THEN NULL ELSE 80 END * - 68 -Expected: ["-4091","-6393","-7"] but got ["-4090.300","-6.923","-6392.615"] +Expected: ["74","-5440"] but got ["74","NULL"] ``` ```sql -SELECT - tab0.col0 + - CAST ( NULL AS REAL ) * - 77 FROM tab0 +SELECT - 12 * + ( - CAST ( NULL AS INTEGER ) ) AS col0, + CASE MAX ( - 48 ) WHEN 20 * - 45 THEN COUNT ( * ) WHEN - 8 THEN 60 ELSE NULL END AS col0 -Wrong conversion type +Expected: ["NULL","NULL"] but got ["NULL"] ``` ```sql -SELECT 57 col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2 +SELECT + ( + + 12 ) + - + 36 + - 83 * - 12 * ( - 71 ) * + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + ( + 21 ) ) * 16 + - 97, CAST ( NULL AS INTEGER ) * - 90 AS col2 -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["NULL","NULL"] but got ["-121","0"] ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 + cor0.col0 AS col1 FROM tab1 AS cor0 +SELECT + + COUNT ( * ) col1, 41 AS col1 -Expected: ["NULL"] but got ["3","64","80"] +Expected: ["1","41"] but got ["41"] ``` +#### ☓ Ran 10,012 tests as _sqlite_ -```sql -SELECT - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0 +* 2,046 failed +* 79% was OK -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] -``` +Time: 34360.426ms +---- ---- ---- ---- ---- ---- ---- +### 168/190 [`./test/random/groupby/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_0.test) + +_Mimic sqlite_ ```sql -SELECT DISTINCT * FROM tab0 WHERE NOT col0 / - col2 + + tab0.col0 IN ( - col0 ) +SELECT - tab1.col0 * 84 + + 38 AS col2 FROM tab1 GROUP BY tab1.col0 -Query was expected to return results (but did not) +Expected: ["-1810","-2314","-6850"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT ALL + 80 / - cor0.col2 FROM tab2, tab1 cor0 +SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0 Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab2, tab1 cor0, tab1, tab0 cor1 +SELECT - + cor0.col1 FROM tab0, tab0 cor0 GROUP BY cor0.col1 -36 results returned but expected 972 +Expected: ["-81","0"] but got ["NULL","NULL"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,440 failed -* 85% was OK -Time: 29072.108ms +```sql +SELECT DISTINCT + cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1 ----- ---- ---- ---- ---- ---- ---- -### 593/620 [`./test/random/select/slt_good_77.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_77.test) +Expected: ["41","59","61"] but got ["NULL"] +``` -_Mimic sqlite_ ```sql -SELECT + col2 * col2 / - 36 + + col0 AS col1 FROM tab2 AS cor0 +SELECT ALL 59 / 26 FROM tab2 AS cor0 GROUP BY cor0.col0 -Expected: ["-13","39","60"] but got ["-13.250","38.889","59.222"] +Expected: ["2","2","2"] but got ["2.269","2.269","2.269"] ``` ```sql -SELECT CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0 +SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2 Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT CAST ( NULL AS REAL ) * col1 + + col2 * - 5 AS col2 FROM tab2 AS cor0 +SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY col2 -Wrong conversion type +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT + cor0.col0 / + cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1 +SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 GROUP BY tab0.col1 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT DISTINCT col2 * - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 +SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2 cor0 GROUP BY cor0.col1 -Expected: ["NULL"] but got ["-2916","-3249","-9216"] +Wrong conversion type ``` ```sql -SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0, tab1 AS cor2 +SELECT ALL cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT ( cor0.col1 ) IS NULL -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 cor1, tab0, t ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Query was expected to return results (but did not) ``` ```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1 cor2 +SELECT + cor0.col2 - + 33 FROM tab0 AS cor0 GROUP BY col2 -36 results returned but expected 972 +Expected: ["-9","46","5"] but got ["NULL","NULL","NULL"] ``` +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,287 failed +* 57% was OK + +Time: 23856.100ms + +---- ---- ---- ---- ---- ---- ---- +### 169/190 [`./test/random/groupby/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_1.test) + +_Mimic sqlite_ ```sql -SELECT ALL col2 + col0 AS col2 FROM tab1 WHERE NOT - col0 + - col1 IN ( - tab1.col1 / col0 ) +SELECT 47 / + cor0.col1 FROM tab1 AS cor0 GROUP BY col1 -Query was expected to return results (but did not) +Expected: ["0","1","7"] but got ["NULL","NULL","NULL"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,415 failed -* 85% was OK -Time: 30178.911ms +```sql +SELECT DISTINCT + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col0 ----- ---- ---- ---- ---- ---- ---- -### 594/620 [`./test/random/select/slt_good_78.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_78.test) +Expected: ["0","81"] but got ["NULL"] +``` -_Mimic sqlite_ ```sql -SELECT col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 GROUP BY col0 -Expected: ["NULL","NULL","NULL"] but got ["3","64","80"] +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT ( - col0 ) / - col1 + 33 FROM tab0 +SELECT ALL + cor0.col1 + + ( col1 ) AS col1 FROM tab0 AS cor0 GROUP BY col1 -Expected: ["33","33","33"] but got ["33.279","33.361","33.978"] +Expected: ["0","162"] but got ["NULL","NULL"] ``` ```sql -SELECT + + col0 * CAST ( + col2 AS REAL ) AS col0 FROM tab2 AS cor0 +SELECT DISTINCT - NULLIF ( + cor0.col2 * cor0.col1, - cor0.col1 ) + - 31 * cor0.col2 - - col1 col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2 -Wrong conversion type +Expected: ["-2607","NULL"] but got ["NULL"] ``` ```sql -SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0 +SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY col0 Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT ALL + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2 +SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1 GROUP BY cor1.col1 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Wrong conversion type ``` ```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1, tab0 cor2 +SELECT DISTINCT 2 / + 19 FROM tab1 AS cor0 GROUP BY col0 -36 results returned but expected 972 +Expected: ["0"] but got ["0.105"] ``` ```sql -SELECT ALL - 92 / 11 FROM tab1, tab0 cor0, tab2, tab1 AS cor1 +SELECT + cor1.col0 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0, cor0.col2 Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT ALL col1 - col1 * col0 AS col0 FROM tab2 WHERE NOT ( col0 * col0 * col1 ) IN ( - tab2.col1 ) +SELECT ALL - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT ( cor0.col1 ) IS NULL Query was expected to return results (but did not) ``` -#### ☓ Ran 10,011 tests as _sqlite_ - -* 1,395 failed -* 86% was OK -Time: 23851.092ms +```sql +SELECT DISTINCT 69 * cor0.col0 FROM tab2 cor0 GROUP BY col0 ----- ---- ---- ---- ---- ---- ---- -### 595/620 [`./test/random/select/slt_good_79.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_79.test) +Expected: ["1035","6279","6348"] but got ["NULL"] +``` -_Mimic sqlite_ ```sql -SELECT DISTINCT col0 * col2 / col1 AS col0 FROM tab1 +SELECT + + CAST ( NULL AS INTEGER ) * 11 FROM tab0, tab2 AS cor0 GROUP BY tab0.col1 -Expected: ["364","590","6"] but got ["364.800","590.769","6.231"] +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT * FROM tab2 WHERE NOT col0 * + col1 IN ( col1 ) +SELECT ALL 86 + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor1.col0 -Query was expected to return results (but did not) +Expected: ["112","112","129","129","169","169"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT col0 * + col1 + CAST ( NULL AS REAL ) * - col2 FROM tab0 AS cor0 +SELECT ALL CASE - cor0.col1 WHEN cor0.col1 THEN NULL ELSE cor0.col1 END FROM tab0 cor0 GROUP BY cor0.col1 -Wrong conversion type +Expected: ["81","NULL"] but got ["NULL","NULL"] ``` ```sql -SELECT ALL + + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0 +SELECT DISTINCT cor1.col0 - + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0, cor1.col0 -Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] +1 results returned but expected 9 ``` ```sql -SELECT ALL - 87 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2 +SELECT NULLIF ( cor0.col1, cor0.col1 * 4 + - col1 ) * + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col1 -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["3483","NULL","NULL"] but got ["NULL","NULL","NULL"] ``` +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,144 failed +* 58% was OK + +Time: 25302.928ms + +---- ---- ---- ---- ---- ---- ---- +### 170/190 [`./test/random/groupby/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_2.test) + +_Mimic sqlite_ ```sql -SELECT * FROM tab0, tab0 cor0, tab1, tab2 cor1 +SELECT ALL - ( 50 ) + tab1.col2 AS col1 FROM tab1 GROUP BY col2 -Correct amount of values returned but hash was different than expected. +Expected: ["-42","-5","21"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 64 + col0 FROM tab2 AS cor0 +SELECT DISTINCT + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1 -Expected: ["NULL"] but got ["7","78","79"] +Expected: ["41","59","61"] but got ["NULL"] ``` ```sql -SELECT DISTINCT + col1 / tab1.col2 AS col1 FROM tab1 +SELECT - 66 + cor0.col1 FROM tab0 AS cor0 GROUP BY col1 -Expected: ["0"] but got ["0.135","0.175","0.481"] +Expected: ["-66","15"] but got ["NULL","NULL"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 AS cor1, tab0, tab0 AS cor2 +SELECT DISTINCT - 70 / - 15 + col1 AS col2 FROM tab0 GROUP BY tab0.col1 -45 results returned but expected 3645 +Expected: ["4","85"] but got ["4.667","85.667"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,395 failed -* 86% was OK -Time: 23913.871ms +```sql +SELECT NULLIF ( + col1, cor0.col1 * - ( cor0.col1 ) ) AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0 ----- ---- ---- ---- ---- ---- ---- -### 596/620 [`./test/random/select/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_8.test) +Expected: ["81","NULL","NULL"] but got ["0","0","81"] +``` -_Mimic sqlite_ ```sql -SELECT col0 / col2 AS col1 FROM tab0 +SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab0 cor0 GROUP BY cor0.col1 -Expected: ["0","1","35"] but got ["0.727","1.085","35"] +Wrong conversion type ``` ```sql -SELECT ALL * FROM tab0, tab1 AS cor0, tab0 cor1, tab2 cor2 +SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 GROUP BY cor0.col2 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT - 77 + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 +SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1 -Expected: ["NULL","NULL","NULL"] but got ["-77","-77","-77"] +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1 +SELECT ALL + cor0.col2 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor0.col2, cor1.col1 -36 results returned but expected 972 +Expected: ["58","58","79","79","87","87"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT - 46 col1 FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1, tab2 cor2 +SELECT ALL + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2, cor0.col1 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 cor1, tab2 co ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col0 FROM tab0 +SELECT - tab2.col2 FROM tab2 GROUP BY tab2.col2 HAVING + col2 IS NOT NULL -Expected: ["NULL"] but got ["-24","-35","-89"] +Query was expected to return results (but did not) ``` ```sql -SELECT ALL + CAST ( - col0 AS REAL ) * col2 * ( col0 ) col0 FROM tab0 +SELECT DISTINCT - cor0.col2 * - cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor0.col2, cor1.col0 -Wrong conversion type +1 results returned but expected 9 ``` ```sql -SELECT - col2 + col0 + - col1 * + col2 FROM tab2 WHERE NOT col2 + - col1 + + col0 BETWEEN col2 + + col2 AND ( - col1 ) +SELECT + cor0.col1 - + NULLIF ( cor0.col1, COALESCE ( - cor0.col1, - cor0.col0, cor0.col1 + 52 ) ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0 -Query was expected to return results (but did not) +Expected: ["0","NULL","NULL"] but got ["NULL","NULL","NULL"] ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,322 failed -* 86% was OK +* 4,198 failed +* 58% was OK -Time: 23879.636ms +Time: 25928.172ms ---- ---- ---- ---- ---- ---- ---- -### 597/620 [`./test/random/select/slt_good_80.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_80.test) +### 171/190 [`./test/random/groupby/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_3.test) _Mimic sqlite_ ```sql -SELECT cor0.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +SELECT 49 - - col2 * cor0.col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col2 -Expected: ["NULL","NULL","NULL"] but got ["24","35","89"] +Expected: ["1993","49","49"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT - col2 + col0 / - col2 AS col2 FROM tab0 AS cor0 +SELECT DISTINCT + tab1.col2 AS col1 FROM tab1 GROUP BY col2 -Expected: ["-33","-36","-83"] but got ["-33.727","-36","-83.085"] +Expected: ["45","71","8"] but got ["NULL"] ``` ```sql -SELECT + col1 * CAST ( cor0.col2 AS REAL ) AS col1 FROM tab2 AS cor0 +SELECT 82 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 -Wrong conversion type +Expected: ["0","6642"] but got ["NULL","NULL"] ``` ```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab2 +SELECT + 82 / 87 FROM tab0 GROUP BY tab0.col2 -Expected: ["NULL"] but got ["0"] +Expected: ["0","0","0"] but got ["0.943","0.943","0.943"] ``` ```sql -SELECT cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1 +SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 92 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0 -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Expected: ["NULL"] but got ["92"] ``` ```sql -SELECT ALL - ( 11 ) / - tab0.col0 AS col1 FROM tab0, tab0 cor0, tab0 cor1 +SELECT - CAST ( NULL AS INTEGER ) FROM tab1 GROUP BY col1 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 cor1, tab2 cor2 +SELECT CASE cor0.col0 WHEN cor0.col2 * + cor0.col2 THEN cor0.col2 WHEN - 42 / cor0.col2 + cor0.col0 THEN + ( - cor0.col0 ) WHEN - col2 + - cor0.col0 THEN NULL END + NULLIF ( + cor0.col2, + cor0.col0 ) FROM tab0 cor0 GROUP BY cor0.col0, col2 -36 results returned but expected 972 +Expected: ["53","NULL","NULL"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1 ) +SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1 -Query was expected to return results (but did not) +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT + + 49 + - col2 / col0 + col0 / - cor0.col0 FROM tab1 AS cor0 +SELECT ALL - cor1.col1 + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1, cor0.col0 -Expected: ["30","47","48"] but got ["30","46.800","47.109"] +Correct amount of values returned but hash was different than expected. ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,423 failed -* 85% was OK -Time: 35479.025ms +```sql +SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2 ----- ---- ---- ---- ---- ---- ---- -### 598/620 [`./test/random/select/slt_good_81.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_81.test) +Wrong conversion type +``` -_Mimic sqlite_ ```sql -SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 +SELECT tab1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 GROUP BY tab1.col2 HAVING NOT tab1.col2 IS NULL -Expected: ["NULL","NULL","NULL"] but got ["24","35","89"] +Query was expected to return results (but did not) ``` ```sql -SELECT DISTINCT - tab1.col1 + 57 / + col1 + tab1.col0 col0 FROM tab1 +SELECT cor1.col1 + - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor1.col1 -Expected: ["-21","59","71"] but got ["-20.808","59.700","71.385"] +Expected: ["-41","-59","-61","20","22","40"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT - CAST ( col0 AS REAL ) AS col1 FROM tab2 AS cor0 +SELECT - 26 + tab0.col0 AS col0 FROM tab0 GROUP BY tab0.col0 -Wrong conversion type +Expected: ["0","17","57"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 cor2 +SELECT DISTINCT + tab0.col2 / tab0.col2 FROM tab0 GROUP BY tab0.col2 -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 cor1, tab2 co ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["1"] but got ["NULL"] ``` +#### ☓ Ran 10,012 tests as _sqlite_ -```sql -SELECT ALL * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab2 cor2 +* 4,465 failed +* 55% was OK -Correct amount of values returned but hash was different than expected. -``` +Time: 26527.602ms + +---- ---- ---- ---- ---- ---- ---- +### 172/190 [`./test/random/groupby/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_4.test) +_Mimic sqlite_ ```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 cor1, tab1, tab1 AS cor2 +SELECT ALL - - ( - tab0.col0 ) FROM tab0 GROUP BY tab0.col0 -45 results returned but expected 3645 +Expected: ["-26","-43","-83"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * cor0.col0 AS col1 FROM tab1 AS cor0 +SELECT CAST ( NULL AS INTEGER ) + - 35 FROM tab1 AS cor0 GROUP BY cor0.col0 -Expected: ["NULL"] but got ["162","3648","7680"] +Expected: ["NULL","NULL","NULL"] but got ["-35","-35","-35"] ``` ```sql -SELECT * FROM tab1 WHERE NOT col0 BETWEEN + col1 + col1 AND col0 +SELECT DISTINCT - cor0.col0 * - cor0.col0 AS col1 FROM tab1 cor0 GROUP BY col0 -Query was expected to return results (but did not) +Expected: ["484","6724","784"] but got ["NULL"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,406 failed -* 85% was OK -Time: 27059.045ms +```sql +SELECT ALL cor0.col1 + col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1 ----- ---- ---- ---- ---- ---- ---- -### 599/620 [`./test/random/select/slt_good_82.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_82.test) +Expected: ["0","162"] but got ["NULL","NULL"] +``` -_Mimic sqlite_ ```sql -SELECT + col0 + - CAST ( NULL AS INTEGER ) / cor0.col2 AS col1 FROM tab2 AS cor0 +SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor0.col2, cor1.col1 -Expected: ["NULL","NULL","NULL"] but got ["7","78","79"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT - col1 * + col0 * CAST ( col1 AS INTEGER ) - col1 / col0 FROM tab1 AS cor0 +SELECT 12 / 68 FROM tab2 GROUP BY tab2.col2 -Expected: ["-13520","-2036","-6400"] but got ["-13520.163","-2036.667","-6400.156"] +Expected: ["0","0","0"] but got ["0.176","0.176","0.176"] ``` ```sql -SELECT ALL CAST ( col0 AS REAL ) * - col2 AS col1 FROM tab0 AS cor0 +SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 GROUP BY tab0.col1 -Wrong conversion type +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT + CAST ( NULL AS INTEGER ) / tab2.col0 FROM tab2, tab1 AS cor0 +SELECT NULLIF ( + 79, + cor0.col2 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1 -Correct amount of values returned but hash was different than expected. +Expected: ["79","79","NULL"] but got ["79","79","79"] ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 + + col2 FROM tab0 AS cor0 +SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY col1 -Expected: ["NULL"] but got ["1","33","82"] +Wrong conversion type ``` ```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2 +SELECT + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2, cor1.col1 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 cor1, tab0, tab0 cor2 +SELECT tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1 HAVING NOT ( tab1.col1 ) IS NULL -45 results returned but expected 3645 +Query was expected to return results (but did not) ``` ```sql -SELECT ALL * FROM tab2 WHERE NOT col0 * - tab2.col1 IN ( col2 - - col1 ) +SELECT ALL - + NULLIF ( tab0.col1, + 29 / - 88 ) AS col0 FROM tab0 GROUP BY tab0.col1 -Query was expected to return results (but did not) +Expected: ["-81","NULL"] but got ["NULL","NULL"] ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,379 failed -* 86% was OK +* 4,369 failed +* 56% was OK -Time: 24549.909ms +Time: 26061.075ms ---- ---- ---- ---- ---- ---- ---- -### 600/620 [`./test/random/select/slt_good_83.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_83.test) +### 173/190 [`./test/random/groupby/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_5.test) _Mimic sqlite_ ```sql -SELECT cor0.col0 * CAST ( NULL AS INTEGER ) * cor0.col1 + col1 - + ( col2 ) FROM tab0 AS cor0 +SELECT ALL + tab2.col1 col2 FROM tab2 GROUP BY col1 -Expected: ["NULL","NULL","NULL"] but got ["53","9","96"] +Expected: ["41","59","61"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT - col0 * ( + 95 ) / col1 + - ( - col2 ) - col1 FROM tab2 AS cor0 +SELECT ALL + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, col1 -Expected: ["-158","-25","-420"] but got ["-158.593","-25.452","-420.471"] +Expected: ["0","81"] but got ["NULL","NULL"] ``` ```sql -SELECT ALL - cor0.col1 + CAST ( + col1 * + col2 AS REAL ) FROM tab1 AS cor0 +SELECT DISTINCT - 0 / - cor0.col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2 -Wrong conversion type +Expected: ["0"] but got ["NULL"] ``` ```sql -SELECT DISTINCT col0 * col1 * - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 +SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY col1, cor0.col1 -Expected: ["NULL"] but got ["-7","-78","-79"] +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT ALL - 83 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2 +SELECT 3 / + 5 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["0","0","0"] but got ["0.600","0.600","0.600"] ``` ```sql -SELECT + col0 AS col0 FROM tab2 WHERE NOT col0 * + col1 IN ( col1 ) +SELECT - - CAST ( NULL AS REAL ) AS col2 FROM tab1 GROUP BY tab1.col2 -Query was expected to return results (but did not) +Wrong conversion type ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) - 15 AS col1 FROM tab0, tab1 AS cor0 +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 GROUP BY tab0.col2 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab1, tab2 AS cor0, tab1 cor1 +SELECT - col1 * - CAST ( NULL AS INTEGER ) + - 97 FROM tab0 GROUP BY tab0.col1 -36 results returned but expected 972 +Expected: ["NULL","NULL"] but got ["-97","-97"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,430 failed -* 85% was OK -Time: 25427.453ms +```sql +SELECT ALL - 90 / - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor1.col0 ----- ---- ---- ---- ---- ---- ---- -### 601/620 [`./test/random/select/slt_good_84.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_84.test) +Correct amount of values returned but hash was different than expected. +``` -_Mimic sqlite_ ```sql -SELECT DISTINCT - col0 * col2 + + col0 / col1 AS col2 FROM tab1 AS cor0 +SELECT - tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1 HAVING NOT + tab0.col1 IS NULL -Expected: ["-162","-3642","-7674"] but got ["-161.885","-3641.600","-7673.846"] +Query was expected to return results (but did not) ``` ```sql -SELECT ALL - col1 * col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +SELECT ALL + cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 -Expected: ["NULL","NULL","NULL"] but got ["-2838","-7462","-97"] +Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT ALL 35 / - tab2.col1 FROM tab2, tab2 AS cor0 +SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1, tab0 cor2 - -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab2 cor1, tab1, t ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +SELECT ALL + cor0.col2 * NULLIF ( - cor0.col1, cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1 + +Expected: ["-1944","NULL","NULL"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT col2 * - tab0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0 +SELECT cor0.col1 * + CASE cor0.col0 / + cor0.col2 WHEN + cor0.col0 / cor0.col0 THEN cor0.col1 * + cor0.col1 WHEN cor0.col0 / - cor0.col0 THEN NULL END FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2 -Expected: ["NULL"] but got ["0"] +Expected: ["205379","68921","NULL"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT ALL + col1 + CAST ( col0 AS REAL ) + + col1 AS col0 FROM tab2 AS cor0 +SELECT DISTINCT + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1 -Wrong conversion type +Expected: ["15","91","92"] but got ["NULL"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 cor1, tab0, tab0 cor2 +SELECT DISTINCT NULLIF ( cor0.col1, + cor0.col1 + + cor0.col1 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 -45 results returned but expected 3645 +Expected: ["81","NULL"] but got ["NULL"] ``` ```sql -SELECT ALL col2 + tab2.col1 FROM tab2 WHERE NOT + col1 IN ( - col2 ) +SELECT ALL cor0.col2 + col2 AS col1 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2 -Query was expected to return results (but did not) +Expected: ["158","48","76"] but got ["NULL","NULL","NULL"] ``` -#### ☓ Ran 10,011 tests as _sqlite_ +#### ☓ Ran 10,012 tests as _sqlite_ -* 1,451 failed -* 85% was OK +* 4,488 failed +* 55% was OK -Time: 31491.463ms +Time: 27797.941ms ---- ---- ---- ---- ---- ---- ---- -### 602/620 [`./test/random/select/slt_good_85.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_85.test) +### 174/190 [`./test/random/groupby/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_6.test) _Mimic sqlite_ ```sql -SELECT - - ( + 62 ) / col1 + 11 FROM tab0 AS cor0 +SELECT DISTINCT col0 * - cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0 -Expected: ["11","11","11"] but got ["11.639","11.681","11.721"] +Expected: ["-1806","-650","-6806"] but got ["NULL"] ``` ```sql -SELECT * FROM tab1 WHERE NOT col2 IN ( col1 * col0 ) +SELECT ALL - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col1, cor0.col1 -Query was expected to return results (but did not) +Expected: ["-41","-59","-61"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT ALL - 59 * cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0 +SELECT ALL + cor0.col1 * - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1 -Correct amount of values returned but hash was different than expected. +Expected: ["-6561","0"] but got ["NULL","NULL"] ``` ```sql -SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1 WHERE NULL BETWEEN NULL AND NULL +SELECT + 92 / + 53 FROM tab2 GROUP BY tab2.col2 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1 WHERE ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["1","1","1"] but got ["1.736","1.736","1.736"] ``` ```sql -SELECT col1 * - CAST ( NULL AS REAL ) col1 FROM tab2 +SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0 GROUP BY cor0.col1 -Wrong conversion type +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT - - CAST ( NULL AS INTEGER ) * 34 FROM tab2 cor0 +SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1 Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0 +SELECT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 -Expected: ["NULL"] but got ["1","33","82"] +Wrong conversion type ``` ```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab1 cor2 +SELECT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2, cor0.col0 -36 results returned but expected 972 +Correct amount of values returned but hash was different than expected. ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,433 failed -* 85% was OK -Time: 30959.542ms +```sql +SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2 ----- ---- ---- ---- ---- ---- ---- -### 603/620 [`./test/random/select/slt_good_86.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_86.test) +Expected: ["NULL"] but got ["0"] +``` -_Mimic sqlite_ ```sql -SELECT - CAST ( NULL AS REAL ) + + col1 * col2 * col0 FROM tab1 AS cor0 +SELECT + tab1.col1 FROM tab1 GROUP BY tab1.col1 HAVING tab1.col1 IS NOT NULL -Wrong conversion type +Query was expected to return results (but did not) ``` ```sql -SELECT - tab1.col2 / - 99 FROM tab1 +SELECT DISTINCT + cor0.col0 / + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0 -Expected: ["0","0","0"] but got ["0.545","0.576","0.970"] +Expected: ["1"] but got ["NULL"] ``` +#### ☓ Ran 10,012 tests as _sqlite_ + +* 4,625 failed +* 53% was OK + +Time: 24104.629ms + +---- ---- ---- ---- ---- ---- ---- +### 175/190 [`./test/random/groupby/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_7.test) + +_Mimic sqlite_ ```sql -SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0 +SELECT ALL + col2 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2 -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Expected: ["-1944","0","0"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT 56 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0, tab1 AS cor1 +SELECT - cor0.col1 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["-81","0"] but got ["NULL","NULL"] ``` ```sql -SELECT DISTINCT 68 + - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 +SELECT DISTINCT cor0.col2 + - cor0.col2 + + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2 -Expected: ["NULL"] but got ["68"] +Expected: ["41","59","61"] but got ["NULL"] ``` ```sql -SELECT * FROM tab0 WHERE NOT col2 + col1 IN ( col2 * col2 ) +SELECT - ( + cor0.col1 * CAST ( NULL AS REAL ) ) + + 69 * col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2 -Query was expected to return results (but did not) +Wrong conversion type ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0 +SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col1 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 cor1, tab2 AS cor2 +SELECT DISTINCT * FROM tab1 AS cor0 GROUP BY cor0.col0, col2, cor0.col1 -36 results returned but expected 972 +Correct amount of values returned but hash was different than expected. ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,378 failed -* 86% was OK -Time: 25446.248ms +```sql +SELECT - CAST ( NULL AS INTEGER ) * - 66 FROM tab0 AS cor0 GROUP BY cor0.col2 ----- ---- ---- ---- ---- ---- ---- -### 604/620 [`./test/random/select/slt_good_87.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_87.test) +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +``` -_Mimic sqlite_ ```sql -SELECT DISTINCT - col2 / + 81 FROM tab2 AS cor0 +SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0 -Expected: ["0"] but got ["-0.321","-0.333","-0.469"] +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1, tab0 AS cor0 +SELECT CAST ( - cor0.col1 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1 -Wrong conversion type +Expected: ["-44","-57","-6"] but got ["0","0","0"] ``` ```sql -SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2 +SELECT + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["0","0","0","81","81","81"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` ```sql -SELECT 69 * col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 +SELECT + NULLIF ( - COALESCE ( - cor0.col2, cor0.col1 ), 79 ) / cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1 -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Expected: ["1","1","NULL"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT + 92 / - 33 FROM tab2, tab0 AS cor0 +SELECT ALL tab0.col0 FROM tab0 GROUP BY tab0.col0 HAVING NOT tab0.col0 IS NULL -Correct amount of values returned but hash was different than expected. +Query was expected to return results (but did not) ``` ```sql -SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab1 cor1 +SELECT NULLIF ( cor0.col1, - cor0.col1 ) * - col1 FROM tab0 AS cor0 GROUP BY cor0.col1 -27 results returned but expected 243 +Expected: ["-6561","NULL"] but got ["NULL","NULL"] ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 51 AS col1 FROM tab2 +SELECT ALL - tab0.col2 * + 1 AS col0 FROM tab0 GROUP BY col2 -Expected: ["NULL"] but got ["-51"] +Expected: ["-24","-38","-79"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT - col1 * col1 col0 FROM tab1 WHERE NOT col0 BETWEEN ( col1 ) AND tab1.col2 * col2 +SELECT DISTINCT - NULLIF ( + cor0.col1, cor0.col1 / - 16 ) FROM tab0 AS cor0 GROUP BY cor0.col1 -Query was expected to return results (but did not) +Expected: ["-81","NULL"] but got ["NULL"] ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,377 failed -* 86% was OK +* 4,547 failed +* 54% was OK -Time: 24805.255ms +Time: 29897.149ms ---- ---- ---- ---- ---- ---- ---- -### 605/620 [`./test/random/select/slt_good_88.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_88.test) +### 176/190 [`./test/random/groupby/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_8.test) _Mimic sqlite_ ```sql -SELECT ALL - + cor0.col0 / col2 AS col1 FROM tab1 AS cor0 +SELECT - tab2.col2 / - tab2.col2 AS col1 FROM tab2 GROUP BY col2 -Expected: ["-1","0","0"] but got ["-0.056","-0.833","-1.123"] +Expected: ["1","1","1"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT + CAST ( NULL AS INTEGER ) * col0 + col2 FROM tab2 cor0 +SELECT DISTINCT + col1 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1 -Expected: ["NULL","NULL","NULL"] but got ["26","27","38"] +Expected: ["0","6561"] but got ["NULL"] ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 14 AS col2 FROM tab1 AS cor0 +SELECT - cor0.col1 * - cor0.col1 FROM tab0 AS cor0 GROUP BY col1 -Expected: ["NULL"] but got ["14"] +Expected: ["0","6561"] but got ["NULL","NULL"] ``` ```sql -SELECT cor0.col1 + + col0 * col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0 +SELECT - NULLIF ( cor0.col0, + 26 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0 -Wrong conversion type +Expected: ["-43","-83","NULL"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT CAST ( NULL AS INTEGER ) - 17 FROM tab1, tab1 AS cor0 +SELECT + - CAST ( NULL AS REAL ) * + tab0.col2 AS col0 FROM tab0 GROUP BY tab0.col2 -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT ALL + col0 * + tab0.col2 + col0 * + col2 FROM tab0 WHERE NOT - tab0.col2 - - col2 * col2 IN ( col1 * tab0.col0 - col1 ) +SELECT 65 / 40 AS col1 FROM tab1 GROUP BY tab1.col0 -Query was expected to return results (but did not) +Expected: ["1","1","1"] but got ["1.625","1.625","1.625"] ``` ```sql -SELECT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1 +SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 GROUP BY tab1.col1 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab1 cor2 +SELECT tab2.col2 FROM tab2 GROUP BY tab2.col2 HAVING NOT ( tab2.col2 ) IS NULL -36 results returned but expected 972 +Query was expected to return results (but did not) ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,429 failed -* 85% was OK - -Time: 30815.974ms - ----- ---- ---- ---- ---- ---- ---- -### 606/620 [`./test/random/select/slt_good_89.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_89.test) - -_Mimic sqlite_ ```sql -SELECT + cor0.col2 / + 96 AS col2 FROM tab0 AS cor0 +SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 -Expected: ["0","0","0"] but got ["0.010","0.344","0.854"] +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT DISTINCT tab0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 +SELECT - 58 * tab0.col0 FROM tab0 GROUP BY tab0.col0 -Expected: ["NULL"] but got ["0"] +Expected: ["-1508","-2494","-4814"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT DISTINCT + 54 AS col2 FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2 +SELECT + CAST ( NULL AS INTEGER ) * 22 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT + 52 / - cor0.col2 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 +SELECT ALL cor0.col2 + - 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor1.col2 Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT ALL - cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 +SELECT cor0.col2 * - ( + cor0.col2 ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2 -Expected: ["NULL","NULL","NULL"] but got ["-3","-64","-80"] +Expected: ["-3364","-3364","-6241","-6241","-7569","-7569"] but got ["NULL","NULL","NULL","NULL","NULL","NULL"] ``` +#### ☓ Ran 10,012 tests as _sqlite_ -```sql -SELECT ALL + - col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 +* 2,975 failed +* 70% was OK -Wrong conversion type -``` +Time: 24642.162ms +---- ---- ---- ---- ---- ---- ---- +### 177/190 [`./test/random/groupby/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/groupby/slt_good_9.test) + +_Mimic sqlite_ ```sql -SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( col0 ) +SELECT col1 AS col1 FROM tab1 GROUP BY col1 HAVING col1 IS NOT NULL Query was expected to return results (but did not) ``` ```sql -SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2 cor2 +SELECT col0, - col0 AS col0 FROM tab0 AS cor0 GROUP BY col0, col2 -36 results returned but expected 972 +Expected: ["26","-26","43","-43","83","-83"] but got ["26","43","83"] ``` -#### ☓ Ran 10,012 tests as _sqlite_ - -* 1,404 failed -* 85% was OK -Time: 33371.298ms +```sql +SELECT DISTINCT + cor0.col0 * 74 FROM tab0 AS cor0 GROUP BY cor0.col0 ----- ---- ---- ---- ---- ---- ---- -### 607/620 [`./test/random/select/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_9.test) +Expected: ["1924","3182","6142"] but got ["NULL"] +``` -_Mimic sqlite_ ```sql -SELECT + ( - col0 ) + - col2 * CAST ( - 77 AS REAL ) FROM tab1 AS cor0 +SELECT + cor0.col2 * 38 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2 -Wrong conversion type +Expected: ["1444","3002","912"] but got ["NULL","NULL","NULL"] ``` ```sql -SELECT + col0 / col2 + + col1 FROM tab0 cor0 +SELECT 67 + 43 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 -Expected: ["132","86","92"] but got ["132","86.727","92.085"] +Expected: ["3550","67"] but got ["NULL","NULL"] ``` ```sql -SELECT ALL * FROM tab0, tab2, tab1 cor0, tab1 +SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 91 * + cor0.col1 * - 95 FROM tab2 AS cor0 +SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1 -Expected: ["NULL"] but got ["-146965","-267995","-510055"] +Expected: ["NULL","NULL"] but got ["0","0"] ``` ```sql -SELECT - cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 +SELECT * FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1 -Expected: ["NULL","NULL","NULL"] but got ["-24","-35","-89"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1 +SELECT DISTINCT CAST ( NULL AS INTEGER ) * 93 FROM tab1 AS cor0 GROUP BY cor0.col1 -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2 AS cor2 +SELECT + CAST ( NULL AS REAL ) * ( + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0 -36 results returned but expected 972 +Wrong conversion type ``` ```sql -SELECT * FROM tab1 WHERE NOT - col2 * col2 + - col1 IN ( col0 ) +SELECT ALL col2 AS col1, - AVG ( - col2 ) AS col1, - col2 AS col1 FROM tab0 AS cor0 GROUP BY col2 -Query was expected to return results (but did not) +3 results returned but expected 9 ``` -#### ☓ Ran 10,010 tests as _sqlite_ +#### ☓ Ran 10,012 tests as _sqlite_ -* 1,295 failed -* 87% was OK +* 503 failed +* 94% was OK -Time: 26969.420ms +Time: 25792.024ms ---- ---- ---- ---- ---- ---- ---- -### 608/620 [`./test/random/select/slt_good_90.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_90.test) +### 178/190 [`./test/random/select/slt_good_0.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_0.test) _Mimic sqlite_ ```sql -SELECT DISTINCT + 86 / + col2 FROM tab1 cor0 +SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 -Expected: ["0","1"] but got ["0.896","1.509","1.593"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT - col0 * - CAST ( cor0.col0 AS REAL ) AS col0 FROM tab0 AS cor0 +SELECT DISTINCT * FROM tab2, tab2 cor0 -Wrong conversion type +18 results returned but expected 54 ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab0 AS cor0 +SELECT - col2 / - col0 - + 69 AS col0 FROM tab1 AS cor0 -Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] +Expected: ["-51","-68","-69"] but got ["-51","-67.800","-68.109"] ``` ```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 +SELECT DISTINCT + col0 + col1 / CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0 -Expected: ["NULL"] but got ["0"] +Wrong conversion type ``` ```sql -SELECT ALL - cor0.col1 / ( - cor0.col0 ) AS col0 FROM tab2, tab1 cor0 +SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT - 86 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1 +SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1 Parse error on line 1: -...cor0 CROSS JOIN tab1, tab0 AS cor1 +...cor0 CROSS JOIN tab1, tab2 AS cor1 -----------------------^ Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … ``` ```sql -SELECT * FROM tab2 WHERE NOT - col0 IN ( col1 ) +SELECT DISTINCT + 63 - 48 * col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0 -Query was expected to return results (but did not) +Expected: ["NULL"] but got ["63"] ``` ```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab2 cor2 +SELECT * FROM tab0 WHERE NOT ( - col2 * + col0 ) IN ( - col2 ) -45 results returned but expected 3645 +Query was expected to return results (but did not) ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,375 failed -* 86% was OK - -Time: 25303.313ms - ----- ---- ---- ---- ---- ---- ---- -### 609/620 [`./test/random/select/slt_good_91.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_91.test) - -_Mimic sqlite_ - -```sql -SELECT + + col1 + col2 / 86 FROM tab2 cor0 - -Expected: ["17","31","59"] but got ["17.442","31.314","59.302"] -``` - - -```sql -SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab2 cor2 +* 1,572 failed +* 84% was OK -45 results returned but expected 3645 -``` +Time: 25338.036ms +---- ---- ---- ---- ---- ---- ---- +### 179/190 [`./test/random/select/slt_good_1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_1.test) + +_Mimic sqlite_ ```sql -SELECT ALL + + 85 / - tab1.col2 FROM tab0, tab2, tab1 AS cor0, tab1 +SELECT ALL col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT ALL + cor0.col2 * CAST ( NULL AS INTEGER ) * - col2 - + col2 col1 FROM tab2 AS cor0 +SELECT - col2 + + ( 69 ) / - col2 FROM tab1 AS cor0 -Expected: ["NULL","NULL","NULL"] but got ["-26","-27","-38"] +Expected: ["-55","-58","-96"] but got ["-55.278","-58.211","-96.719"] ``` ```sql -SELECT ALL CAST ( NULL AS REAL ) * col1 FROM tab1 +SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1 -Wrong conversion type +27 results returned but expected 243 ``` ```sql -SELECT DISTINCT - cor0.col2 * - CAST ( NULL AS INTEGER ) + + col2 * + cor0.col1 AS col2 FROM tab1 AS cor0 +SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 -Expected: ["NULL"] but got ["1248","1404","570"] +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2 +SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1 Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS +...cor0 CROSS JOIN tab0, tab1 AS cor1 -----------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … ``` ```sql -SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 + col1 ) IN ( col1 ) +SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0 -Query was expected to return results (but did not) +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT + col2 * - col1 + - 87 / col2 FROM tab1 AS cor0 +SELECT * FROM tab0, tab1, tab2 AS cor0, tab2 -Expected: ["-1248","-1405","-571"] but got ["-1248.906","-1405.611","-571.526"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT ALL - - 85 / col0 AS col2 FROM tab1 AS cor0 +SELECT col0 FROM tab1 WHERE NOT ( col0 ) IN ( + col1 ) -Expected: ["1","1","28"] but got ["1.063","1.328","28.333"] +Query was expected to return results (but did not) ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,371 failed +* 1,338 failed * 86% was OK -Time: 30387.498ms +Time: 23577.029ms ---- ---- ---- ---- ---- ---- ---- -### 610/620 [`./test/random/select/slt_good_92.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_92.test) +### 180/190 [`./test/random/select/slt_good_2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_2.test) _Mimic sqlite_ ```sql -SELECT ALL 64 / 94 AS col2 FROM tab2, tab0 cor0, tab1 cor1 +SELECT DISTINCT + col2 * + tab0.col1 + - col0 / - col1 FROM tab0 -Correct amount of values returned but hash was different than expected. +Expected: ["2838","7462","97"] but got ["2838.279","7462.978","97.361"] ``` ```sql -SELECT DISTINCT col2 / + col0 - - col2 * col1 * cor0.col1 FROM tab2 AS cor0 +SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 + col0 AS col1 FROM tab0 AS cor0 -Expected: ["10982","25950","90506"] but got ["10982.481","25950.857","90506.333"] +Expected: ["NULL"] but got ["171","36","57"] ``` ```sql -SELECT ALL - - CAST ( - 42 AS REAL ) * cor0.col0 col1 FROM tab2 AS cor0 +SELECT CAST ( col1 AS REAL ) + - tab1.col0 FROM tab1 Wrong conversion type ``` ```sql -SELECT + col1 * col1 + CAST ( NULL AS INTEGER ) + + ( + col0 ) * cor0.col2 FROM tab1 AS cor0 +SELECT * FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1 -Expected: ["NULL","NULL","NULL"] but got ["3748","7849","838"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab0 AS cor2 +SELECT + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0 -36 results returned but expected 972 +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 cor0 +SELECT ALL 86 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1 -Expected: ["NULL"] but got ["0"] +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab2 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … ``` ```sql -SELECT DISTINCT + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1 +SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2 -Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +45 results returned but expected 3645 ``` ```sql -SELECT + col0 FROM tab0 WHERE NOT ( col2 ) BETWEEN col1 * tab0.col2 AND ( NULL ) +SELECT * FROM tab1 WHERE NOT ( col1 ) IN ( col2 + col0 ) Query was expected to return results (but did not) ``` + +```sql +SELECT - CAST ( NULL AS INTEGER ) - - col2 * - col2 * + 3 FROM tab2 + +Expected: ["NULL","NULL","NULL"] but got ["-2028","-2187","-4332"] +``` + #### ☓ Ran 10,012 tests as _sqlite_ -* 1,485 failed -* 85% was OK +* 1,291 failed +* 87% was OK -Time: 35825.161ms +Time: 24792.810ms ---- ---- ---- ---- ---- ---- ---- -### 611/620 [`./test/random/select/slt_good_93.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_93.test) +### 181/190 [`./test/random/select/slt_good_3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_3.test) _Mimic sqlite_ ```sql -SELECT ALL col0 / - cor0.col2 + 90 col1 FROM tab0 AS cor0 +SELECT 40 + ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 -Expected: ["55","89","90"] but got ["55","88.915","89.273"] +Expected: ["NULL","NULL","NULL"] but got ["40","40","40"] ``` ```sql -SELECT + + CAST ( NULL AS INTEGER ) * - col1 + col2 AS col0 FROM tab0 AS cor0 +SELECT ALL cor0.col0 + 94 / col2 FROM tab1 AS cor0 -Expected: ["NULL","NULL","NULL"] but got ["1","33","82"] +Expected: ["4","65","80"] but got ["4.741","65.649","80.979"] ``` ```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2 +SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +36 results returned but expected 972 ``` ```sql -SELECT ALL + CAST ( NULL AS REAL ) * - 26 FROM tab0 AS cor0 +SELECT + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab1 AS cor0 Wrong conversion type ``` ```sql -SELECT CAST ( NULL AS INTEGER ) + + ( cor0.col1 ) AS col1 FROM tab2, tab1 AS cor0 +SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0 Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) * col1 / col0 FROM tab1 AS cor0 +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 AS cor2 -Expected: ["NULL"] but got ["-3","-64","-80"] +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… ``` ```sql -SELECT tab0.col0 - col0 FROM tab0 WHERE NOT ( - col2 ) IN ( + col0 * col0 + - col2 * col2 + col1 ) +SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - ( + col2 ) * col2 + ( col1 * - col1 ) FROM tab0 AS cor0 -Query was expected to return results (but did not) +Expected: ["NULL"] but got ["-7396","-8281","-9409"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab0, tab0 AS cor2 +SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IN ( col0 + col0 * col0 ) -45 results returned but expected 3645 +Query was expected to return results (but did not) ``` -#### ☓ Ran 10,012 tests as _sqlite_ +#### ☓ Ran 10,011 tests as _sqlite_ -* 1,389 failed -* 86% was OK +* 1,258 failed +* 87% was OK -Time: 27956.519ms +Time: 23681.307ms ---- ---- ---- ---- ---- ---- ---- -### 612/620 [`./test/random/select/slt_good_94.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_94.test) +### 182/190 [`./test/random/select/slt_good_4.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_4.test) _Mimic sqlite_ ```sql -SELECT + - 13 + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 +SELECT ALL + - CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab0 AS cor0 -Expected: ["NULL","NULL","NULL"] but got ["-13","-13","-13"] +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT + + 3 / col2 AS col2 FROM tab1 AS cor0 +SELECT ALL + 60 / ( tab0.col0 + 64 ) FROM tab0 -Expected: ["0","0","0"] but got ["0.031","0.053","0.056"] +Expected: ["0","0","0"] but got ["0.392","0.606","0.682"] ``` ```sql -SELECT DISTINCT CAST ( + col1 AS REAL ) AS col0 FROM tab0 AS cor0 +SELECT ALL * FROM tab1, tab1 cor0, tab2 cor1 -Wrong conversion type +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) + - 20 AS col0 FROM tab1, tab2 AS cor0 +SELECT + col2 * + CAST ( col0 AS REAL ) + + col1 AS col0 FROM tab1 cor0 -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col2 + col1 AS col0 FROM tab1 cor0 +SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 -Expected: ["NULL"] but got ["10","13","26"] +Expected: ["NULL"] but got ["0"] ``` ```sql -SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2 +SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3 Parse error on line 1: -...cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 +...cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 -----------------------^ Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… ``` ```sql -SELECT ALL col1 AS col1 FROM tab1 WHERE NOT col1 BETWEEN NULL AND - col0 * - col0 +SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 -Query was expected to return results (but did not) +18 results returned but expected 54 ``` ```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab1, tab0 cor1 +SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN + col1 / - col2 AND col2 -36 results returned but expected 972 +Query was expected to return results (but did not) ``` -#### ☓ Ran 10,012 tests as _sqlite_ +#### ☓ Ran 10,011 tests as _sqlite_ -* 1,435 failed -* 85% was OK +* 1,317 failed +* 86% was OK -Time: 24759.894ms +Time: 25007.940ms ---- ---- ---- ---- ---- ---- ---- -### 613/620 [`./test/random/select/slt_good_95.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_95.test) +### 183/190 [`./test/random/select/slt_good_5.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_5.test) _Mimic sqlite_ ```sql -SELECT DISTINCT + col0 / col1 - + 8 AS col2 FROM tab0 AS cor0 +SELECT ALL * FROM tab0, tab0 cor0, tab2 cor1 -Expected: ["-8"] but got ["-7.022","-7.639","-7.721"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT 62 * - tab0.col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +SELECT DISTINCT + col1 / - 99 AS col1 FROM tab0 -Expected: ["NULL","NULL","NULL"] but got ["-5332","-5642","-6014"] +Expected: ["0"] but got ["-0.869","-0.919","-0.980"] ``` ```sql -SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col2 + col1 + + col2 col2 FROM tab1 AS cor0 +SELECT CAST ( 24 + - col2 AS REAL ) AS col0 FROM tab2 -Expected: ["NULL"] but got ["109","67","80"] +Wrong conversion type ``` ```sql -SELECT + cor0.col2 / cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 +SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 cor1 -Correct amount of values returned but hash was different than expected. +18 results returned but expected 54 ``` ```sql -SELECT + CAST ( NULL AS REAL ) * - 98 col1 FROM tab1 AS cor0 +SELECT + col1 - - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0 -Wrong conversion type +Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] ``` ```sql -SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 cor2 +SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 * col1 / 84 FROM tab2 AS cor0 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab0 cor1, tab0 co ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["NULL"] but got ["18.262","7.690","9.964"] ``` ```sql -SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 cor1, tab0, tab1 AS cor2 +SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2 -45 results returned but expected 3645 +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… ``` ```sql -SELECT ALL * FROM tab2 WHERE NOT ( col2 ) IN ( col0 + col0 * - col0 - - col2 * tab2.col2 * col2 ) +SELECT ALL - col0 * + col1 AS col2 FROM tab2 WHERE NOT - col1 * tab2.col1 IN ( col2 ) Query was expected to return results (but did not) ``` -#### ☓ Ran 10,011 tests as _sqlite_ +#### ☓ Ran 10,012 tests as _sqlite_ -* 1,399 failed +* 1,323 failed * 86% was OK -Time: 29720.538ms +Time: 30203.790ms ---- ---- ---- ---- ---- ---- ---- -### 614/620 [`./test/random/select/slt_good_96.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_96.test) +### 184/190 [`./test/random/select/slt_good_6.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_6.test) _Mimic sqlite_ ```sql -SELECT - col1 / 22 FROM tab2 +SELECT + col0 / - col1 + - ( - col2 ) col0 FROM tab2 AS cor0 -Expected: ["-1","-2","0"] but got ["-0.773","-1.409","-2.682"] +Expected: ["25","27","34"] but got ["24.678","26.774","33.353"] ``` ```sql -SELECT + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 +SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IN ( - col0 ) OR NULL BETWEEN NULL AND NULL - -Query was expected to return results (but did not) -``` - - -```sql -SELECT ALL - CAST ( NULL AS INTEGER ) + + 94 AS col2 FROM tab1 cor0 +SELECT + CAST ( NULL AS INTEGER ) FROM tab1 -Expected: ["NULL","NULL","NULL"] but got ["94","94","94"] +Expected: ["NULL","NULL","NULL"] but got ["0","0","0"] ``` ```sql -SELECT ALL CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0 +SELECT col2 + + col2 / + CAST ( NULL AS REAL ) FROM tab0 Wrong conversion type ``` ```sql -SELECT 27 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1 +SELECT ALL 43 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3 Parse error on line 1: -...cor0 CROSS JOIN tab0, tab1 AS cor1 +...cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 -----------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… ``` ```sql -SELECT DISTINCT + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 +SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2 -Expected: ["NULL"] but got ["0"] +45 results returned but expected 3645 ``` ```sql -SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1, tab0 cor2 +SELECT DISTINCT CAST ( NULL AS INTEGER ) + 35 FROM tab2 AS cor0 -36 results returned but expected 972 +Expected: ["NULL"] but got ["35"] ``` ```sql -SELECT + col2 / - col1 col2 FROM tab1 AS cor0 +SELECT ALL tab2.col1 * tab2.col0 FROM tab2 WHERE NOT ( + col0 ) IN ( col1 + + col2 ) -Expected: ["-2","-5","-7"] but got ["-2.077","-5.700","-7.385"] +Query was expected to return results (but did not) ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,324 failed +* 1,345 failed * 86% was OK -Time: 35043.031ms +Time: 22792.686ms ---- ---- ---- ---- ---- ---- ---- -### 615/620 [`./test/random/select/slt_good_97.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_97.test) +### 185/190 [`./test/random/select/slt_good_7.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_7.test) _Mimic sqlite_ ```sql -SELECT + - col1 * + col2 + col0 + + col0 / cor0.col2 FROM tab0 AS cor0 +SELECT * FROM tab2 AS cor0 WHERE NOT col2 * cor0.col0 * col0 IN ( cor0.col0 ) -Expected: ["-27","-2814","-7372"] but got ["-27","-2813.273","-7371.915"] +Query was expected to return results (but did not) ``` ```sql -SELECT cor0.col2 * CAST ( NULL AS INTEGER ) + - col2 * col1 * 99 FROM tab1 cor0 +SELECT DISTINCT - col0 / col2 FROM tab0 AS cor0 -Expected: ["NULL","NULL","NULL"] but got ["-123552","-138996","-56430"] +Expected: ["-1","-35","0"] but got ["-0.727","-1.085","-35"] ``` ```sql -SELECT ALL + cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1 +SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2 -Parse error on line 1: -...cor0 CROSS JOIN tab1, tab2 AS cor1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT - - CAST ( + col2 AS REAL ) AS col0 FROM tab0 AS cor0 +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2 -Wrong conversion type +36 results returned but expected 972 ``` ```sql -SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 + col0 AS col2 FROM tab0 AS cor0 +SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab0 AS cor0 -Expected: ["NULL"] but got ["24","35","89"] +Expected: ["NULL","NULL","NULL"] but got ["1","33","82"] ``` ```sql -SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1 +SELECT - + cor0.col1 / CAST ( - col1 AS REAL ) FROM tab2 AS cor0 -Correct amount of values returned but hash was different than expected. +Wrong conversion type ``` ```sql -SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab0 cor2 +SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) / col0 FROM tab0 cor0 -45 results returned but expected 3645 +Expected: ["NULL"] but got ["24","35","89"] ``` ```sql -SELECT DISTINCT + col0 * - col2 - - col0 FROM tab2 WHERE NOT ( - col1 * col2 ) IN ( + col1 ) +SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab1 AS cor2 -Query was expected to return results (but did not) +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,412 failed -* 85% was OK +* 1,283 failed +* 87% was OK -Time: 25163.935ms +Time: 36043.689ms ---- ---- ---- ---- ---- ---- ---- -### 616/620 [`./test/random/select/slt_good_98.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_98.test) +### 186/190 [`./test/random/select/slt_good_8.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_8.test) _Mimic sqlite_ ```sql -SELECT DISTINCT + col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +SELECT col0 / col2 AS col1 FROM tab0 -Expected: ["NULL"] but got ["10","13","26"] +Expected: ["0","1","35"] but got ["0.727","1.085","35"] ``` ```sql -SELECT - col1 / ( + col0 ) - - col2 col1 FROM tab0 AS cor0 +SELECT ALL * FROM tab0, tab1 AS cor0, tab0 cor1, tab2 cor2 -Expected: ["-1","30","81"] but got ["-1.771","29.417","80.978"] +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3 +SELECT - 77 + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["NULL","NULL","NULL"] but got ["-77","-77","-77"] ``` ```sql -SELECT - - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 +SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1 -Expected: ["NULL","NULL","NULL"] but got ["10","13","26"] +36 results returned but expected 972 ``` ```sql -SELECT DISTINCT + + CAST ( NULL AS REAL ) + col0 / col0 AS col1 FROM tab0 AS cor0 +SELECT - 46 col1 FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1, tab2 cor2 -Wrong conversion type +Parse error on line 1: +...cor0 CROSS JOIN tab2, tab0 cor1, tab2 co +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… ``` ```sql -SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab0 cor2 +SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col0 FROM tab0 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL"] but got ["-24","-35","-89"] ``` ```sql -SELECT DISTINCT * FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab2 cor2 +SELECT ALL + CAST ( - col0 AS REAL ) * col2 * ( col0 ) col0 FROM tab0 -45 results returned but expected 3645 +Wrong conversion type ``` ```sql -SELECT ALL col0 * - col0 AS col2 FROM tab2 WHERE NOT col2 * col0 IN ( tab2.col1 ) +SELECT - col2 + col0 + - col1 * + col2 FROM tab2 WHERE NOT col2 + - col1 + + col0 BETWEEN col2 + + col2 AND ( - col1 ) Query was expected to return results (but did not) ``` #### ☓ Ran 10,012 tests as _sqlite_ -* 1,404 failed -* 85% was OK +* 1,322 failed +* 86% was OK -Time: 22269.385ms +Time: 24202.927ms ---- ---- ---- ---- ---- ---- ---- -### 617/620 [`./test/random/select/slt_good_99.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_99.test) +### 187/190 [`./test/random/select/slt_good_9.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/random/select/slt_good_9.test) _Mimic sqlite_ ```sql -SELECT DISTINCT ( + tab1.col1 ) / + 96 + col0 * - col2 FROM tab1 +SELECT + ( - col0 ) + - col2 * CAST ( - 77 AS REAL ) FROM tab1 AS cor0 -Expected: ["-162","-3648","-7680"] but got ["-161.729","-3647.896","-7679.865"] +Wrong conversion type ``` ```sql -SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + + col2 * + col2 * col1 FROM tab0 AS cor0 +SELECT + col0 / col2 + + col1 FROM tab0 cor0 -Expected: ["NULL","NULL","NULL"] but got ["611884","93654","97"] +Expected: ["132","86","92"] but got ["132","86.727","92.085"] ``` ```sql -SELECT - + col2 * + CAST ( - col2 AS REAL ) * - col2 AS col0 FROM tab2 AS cor0 +SELECT ALL * FROM tab0, tab2, tab1 cor0, tab1 -Wrong conversion type +Correct amount of values returned but hash was different than expected. ``` ```sql -SELECT ALL 9 col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2 +SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 91 * + cor0.col1 * - 95 FROM tab2 AS cor0 -Parse error on line 1: -...cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 ------------------------^ -Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'S… +Expected: ["NULL"] but got ["-146965","-267995","-510055"] ``` ```sql -SELECT 80 / - 39 FROM tab1, tab1 cor0, tab2 AS cor1 +SELECT - cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 -Correct amount of values returned but hash was different than expected. +Expected: ["NULL","NULL","NULL"] but got ["-24","-35","-89"] ``` ```sql -SELECT DISTINCT - + col1 + + CAST ( NULL AS INTEGER ) + + 56 FROM tab0 AS cor0 +SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1 -Expected: ["NULL"] but got ["-30","-35","-41"] +Parse error on line 1: +...cor0 CROSS JOIN tab0, tab1 AS cor1 +-----------------------^ +Expecting 'LITERAL', 'BRALITERAL', 'EOF', 'WITH', 'AS', 'RPAR', 'PIVOT', 'UNPIVOT', 'ORDER', 'WHERE', 'UNION', 'INTERSECT', 'EXCEPT', 'CROSS', 'OUTER', 'NATURAL', 'JOIN', 'INNER', 'LEFT', 'RIGHT', 'FULL', 'SEMI', … ``` ```sql -SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( + col1 * col1 ) +SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2 AS cor2 -Query was expected to return results (but did not) +36 results returned but expected 972 ``` ```sql -SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1, tab2 cor2 +SELECT * FROM tab1 WHERE NOT - col2 * col2 + - col1 IN ( col0 ) -36 results returned but expected 972 +Query was expected to return results (but did not) ``` -#### ☓ Ran 10,012 tests as _sqlite_ +#### ☓ Ran 10,010 tests as _sqlite_ -* 1,382 failed -* 86% was OK +* 1,295 failed +* 87% was OK -Time: 21806.945ms +Time: 27512.752ms ---- ---- ---- ---- ---- ---- ---- -### 618/620 [`./test/select1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select1.test) +### 188/190 [`./test/select1.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select1.test) #### ★ Assuming all 1,031 tests still passes as _sqlite_ -Time: 0.442ms +Time: 0.675ms ---- ---- ---- ---- ---- ---- ---- -### 619/620 [`./test/select2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select2.test) +### 189/190 [`./test/select2.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select2.test) _Mimic sqlite_ @@ -36089,10 +6931,10 @@ Correct amount of values returned but hash was different than expected. * 104 failed * 89% was OK -Time: 10367.363ms +Time: 11224.017ms ---- ---- ---- ---- ---- ---- ---- -### 620/620 [`./test/select3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select3.test) +### 190/190 [`./test/select3.test`](https://github.com/mathiasrw/alasql-logictest/blob/master/sqllogic/./test/select3.test) _Mimic sqlite_ @@ -36128,19 +6970,19 @@ Expected: ["184","195","225"] but got ["155","166","184","195","225"] * 358 failed * 89% was OK -Time: 41305.936ms +Time: 41612.974ms ----------------------------- ## Final result -* Total tested: 4,632,007 -* Failed tests: 688,764 +* Total tested: 1,007,187 +* Failed tests: 114,412 * Skipped tests: 53,316 -* Assumed still OK: 1,309,487 -* Final score: 87 % was OK +* Assumed still OK: 676,454 +* Final score: 90 % was OK -Total script time: 21627669.610ms +Total script time: 8254745.990ms _Please note that repetetive errors are not always printed again_ From 401b0493cf1d82e4d5564f4c159326fda608024d Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 4 Mar 2016 22:28:56 +0100 Subject: [PATCH 53/54] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f3681c72c4..1d436b912f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![bitHound Score](https://www.bithound.io/github/agershun/alasql/badges/score.svg?123)](https://www.bithound.io/github/agershun/alasql) [![Build status](https://api.travis-ci.org/agershun/alasql.svg)](https://travis-ci.org/agershun/alasql?123) [![NPM downloads](http://img.shields.io/npm/dm/alasql.svg?style=flat&label=npm%20downloads)](https://npmjs.org/package/alasql?) +[![ghit.me](https://ghit.me/badge.svg?repo=agershun/alasql)](https://ghit.me/repo/agershun/alasql) [![Inline docs](http://inch-ci.org/github/agershun/alasql.svg?branch=develop)](http://inch-ci.org/github/agershun/alasql) ![Stars](https://img.shields.io/github/stars/agershun/alasql.svg?label=Github%20%E2%98%85&a) ![Release](https://img.shields.io/github/release/agershun/alasql.svg?label=Last%20release&a) @@ -631,7 +632,6 @@ and other people for useful tools, which make our work much easier. * [AlaMDX](http://github.com/agershun/alamdx) - JavaScript MDX OLAP library (work in progress) * [Other similar projects](http://github.com/agershun/alasql/wiki/Similar-Projects.md) - list of databases on JavaScript -[![ghit.me](https://ghit.me/badge.svg?repo=agershun/alasql)](https://ghit.me/repo/agershun/alasql) ---- From 575f593c895658c8dea1dfeb18ef5a4ef2c98cb5 Mon Sep 17 00:00:00 2001 From: Mathias Rangel Wulff Date: Fri, 4 Mar 2016 23:02:05 +0100 Subject: [PATCH 54/54] Updated version in files to 0.2.4 --- CHANGELOG.md | 9 +++++++-- bower.json | 2 +- dist/alasql-worker.js | 4 ++-- dist/alasql-worker.min.js | 2 +- dist/alasql.js | 8 ++++---- dist/alasql.min.js | 20 ++++++++++---------- package.json | 24 ++++++++++++------------ partners/meteor/.versions | 4 ++-- partners/meteor/package.js | 2 +- test/test429.json | 2 +- 10 files changed, 41 insertions(+), 36 deletions(-) mode change 100755 => 100644 dist/alasql.js mode change 100755 => 100644 dist/alasql.min.js diff --git a/CHANGELOG.md b/CHANGELOG.md index a65123b1be..c5ce16da7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,12 @@ # Changelog * Check https://trello.com/b/qxz65pVi/alasql-roadmap for roadmap - -### _0.2.4 "Exogi" (xx.xx.2016)_ + +### 0.2.5 "......" (xx.04.2016) +* ... +* ... + + +### 0.2.4 "Exogi" (04.03.2016) * Added: Central enviroment detection * Added: SELECT * FROM ? GROUP BY a works as FIRST(*) * Added: Better detection for browserify, phonegap and cordova diff --git a/bower.json b/bower.json index 6ffa88517e..aada3af119 100644 --- a/bower.json +++ b/bower.json @@ -58,5 +58,5 @@ "bin", "lib" ], - "version": "0.2.3" + "version": "0.2.4" } diff --git a/dist/alasql-worker.js b/dist/alasql-worker.js index f4966ab889..206e054019 100644 --- a/dist/alasql-worker.js +++ b/dist/alasql-worker.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1206 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.4 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1206 +@version 0.2.4 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff diff --git a/dist/alasql-worker.min.js b/dist/alasql-worker.min.js index d90f0f9ccb..401c405849 100644 --- a/dist/alasql-worker.min.js +++ b/dist/alasql-worker.min.js @@ -1,2 +1,2 @@ -//! AlaSQL v0.2.3-develop-1206 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.4 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT !function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?module.exports=r():e.alasql=r()}(this,function(){function e(r,t,s){var a=e.lastid++;e.buffer[a]=s,e.webworker.postMessage({id:a,sql:r,params:t})}return"object"!=typeof exports&&(e.worker=function(r,t,s){if(r===!0&&(r=void 0),"undefined"==typeof r)for(var a=document.getElementsByTagName("script"),o=0;o1){var f="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");e(f,[],s)}}else if(r===!1)return void delete e.webworker}),e.lastid=0,e.buffer={},e.worker(),e}); \ No newline at end of file diff --git a/dist/alasql.js b/dist/alasql.js old mode 100755 new mode 100644 index 5811192db0..b2769497af --- a/dist/alasql.js +++ b/dist/alasql.js @@ -1,7 +1,7 @@ -//! AlaSQL v0.2.3-develop-1206 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +//! AlaSQL v0.2.4 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT /* @module alasql -@version 0.2.3-develop-1206 +@version 0.2.4 AlaSQL - JavaScript SQL database © 2014-2016 Andrey Gershun & Mathias Rangel Wulff @@ -126,7 +126,7 @@ var alasql = function alasql(sql, params, cb, scope) { Current version of alasql @constant {string} */ -alasql.version = '0.2.3-develop-1206'; +alasql.version = '0.2.4'; /** Debug flag @@ -10146,7 +10146,7 @@ stdlib.ABS = function(a) {return 'Math.abs('+a+')'}; stdlib.CLONEDEEP = function(a) {return 'alasql.utils.cloneDeep('+a+')'}; stdfn.CONCAT = function(){ - return Array.prototype.slice.call(arguments).join(' '); + return Array.prototype.slice.call(arguments).join(''); }; stdlib.EXP = function(a) {return 'Math.pow(Math.E,'+a+')'}; diff --git a/dist/alasql.min.js b/dist/alasql.min.js old mode 100755 new mode 100644 index c227fb3f47..d969906369 --- a/dist/alasql.min.js +++ b/dist/alasql.min.js @@ -1,14 +1,14 @@ -//! AlaSQL v0.2.3-develop-1206 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),(0==e.sources.length||0===s)&&(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,("OUTER"==r.joinmode||"RIGHT"==r.joinmode||"ANTI"==r.joinmode)&&(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
    ',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
    "):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

    "+fe(e)+"

    ";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.3-develop-1206",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ -trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:("XLSX"==h||"JSON"==h)&&(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] +//! AlaSQL v0.2.4 | © 2014-2016 Andrey Gershun & Mathias Rangel Wulff | License: MIT +!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.alasql=t()}(this,function(){function e(e){return"(y="+e+",y===y?y:undefined)"}function t(e,t){return"(y="+e+',typeof y=="undefined"?undefined:'+t+")"}function n(){return!0}function r(){}function a(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function i(e,t,n){function r(e,n,a){var o,u,c,l=e[n],h=1e5;if(l.selid){if("PATH"===l.selid){for(var d=[{node:a,stack:[]}],f={},p=T.databases[T.useid].objects;d.length>0;){var b=d.shift(),g=b.node,m=b.stack,c=r(l.args,0,g);if(c.length>0){if(n+1+1>e.length)return m;var v=[];return m&&m.length>0&&m.forEach(function(t){v=v.concat(r(e,n+1,t))}),v}"undefined"==typeof f[g.$id]&&(f[g.$id]=!0,g.$out&&g.$out.length>0&&g.$out.forEach(function(e){var t=p[e],n=m.concat(t);n.push(p[t.$out[0]]),d.push({node:p[t.$out[0]],stack:n})}))}return[]}if("NOT"===l.selid){var u=r(l.args,0,a);return u.length>0?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("DISTINCT"===l.selid){var u;if(u="undefined"==typeof l.args||0===l.args.length?X(a):r(l.args,0,a),0===u.length)return[];var E=X(u);return n+1+1>e.length?E:r(e,n+1,E)}if("AND"===l.selid){var E=!0;return l.args.forEach(function(e){E=E&&r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("OR"===l.selid){var E=!1;return l.args.forEach(function(e){E=E||r(e,0,a).length>0}),E?n+1+1>e.length?[a]:r(e,n+1,a):[]}if("ALL"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("ANY"===l.selid){var u=r(l.args[0],0,a);return 0===u.length?[]:n+1+1>e.length?[u[0]]:r(e,n+1,[u[0]])}if("UNIONALL"===l.selid){var u=[];return l.args.forEach(function(e){u=u.concat(r(e,0,a))}),0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("UNION"===l.selid){var u=[];l.args.forEach(function(e){u=u.concat(r(e,0,a))});var u=X(u);return 0===u.length?[]:n+1+1>e.length?u:r(e,n+1,u)}if("IF"===l.selid){var u=r(l.args,0,a);return 0===u.length?[]:n+1+1>e.length?[a]:r(e,n+1,a)}if("REPEAT"===l.selid){var y,S,w=l.args[0].value;S=l.args[1]?l.args[1].value:w,l.args[2]&&(y=l.args[2].variable);var x=[];if(0===w&&(n+1+1>e.length?x=[a]:(y&&(T.vars[y]=0),x=x.concat(r(e,n+1,a)))),S>0)for(var A=[{value:a,lvl:1}],C=0;A.length>0;){var u=A[0];if(A.shift(),u.lvl<=S){y&&(T.vars[y]=u.lvl);var k=r(l.sels,0,u.value);k.forEach(function(e){A.push({value:e,lvl:u.lvl+1})}),u.lvl>=w&&(n+1+1>e.length?x=x.concat(k):k.forEach(function(t){x=x.concat(r(e,n+1,t))}))}if(C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("OF"===l.selid){if(n+1+1>e.length)return[a];var O=[];return Object.keys(a).forEach(function(t){T.vars[l.args[0].variable]=t,O=O.concat(r(e,n+1,a[t]))}),O}if("TO"===l.selid){var R=T.vars[l.args[0]],N=[];if(N=void 0!==R?R.slice(0):[],N.push(a),n+1+1>e.length)return[a];T.vars[l.args[0]]=N;var O=r(e,n+1,a);return T.vars[l.args[0]]=R,O}if("ARRAY"===l.selid){var u=r(l.args,0,a);return u.length>0?(o=u,n+1+1>e.length?[o]:r(e,n+1,o)):[]}if("SUM"===l.selid){var u=r(l.args,0,a);if(!(u.length>0))return[];var o=u.reduce(function(e,t){return e+t},0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("AVG"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.reduce(function(e,t){return e+t},0)/u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("COUNT"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u.length,n+1+1>e.length?[o]:r(e,n+1,o)):[];if("FIRST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[0],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("LAST"===l.selid)return u=r(l.args,0,a),u.length>0?(o=u[u.length-1],n+1+1>e.length?[o]:r(e,n+1,o)):[];if("MIN"===l.selid){if(u=r(l.args,0,a),0===u.length)return[];var o=u.reduce(function(e,t){return Math.min(e,t)},1/0);return n+1+1>e.length?[o]:r(e,n+1,o)}if("MAX"===l.selid){var u=r(l.args,0,a);if(0===u.length)return[];var o=u.reduce(function(e,t){return Math.max(e,t)},-(1/0));return n+1+1>e.length?[o]:r(e,n+1,o)}if("PLUS"===l.selid){var x=[],A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A.shift();if(u=r(l.args,0,u),A=A.concat(u),n+1+1>e.length?x=x.concat(u):u.forEach(function(t){var a=r(e,n+1,t);x=x.concat(a)}),C++,C>h)throw new Error("Security brake. Number of iterations = "+C)}return x}if("STAR"===l.selid){var x=[];x=r(e,n+1,a);var A=r(l.args,0,a).slice();n+1+1>e.length?x=x.concat(A):A.forEach(function(t){x=x.concat(r(e,n+1,t))});for(var C=0;A.length>0;){var u=A[0];if(A.shift(),u=r(l.args,0,u),A=A.concat(u),n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),C++,C>h)throw new Error("Loop brake. Number of iterations = "+C)}return x}if("QUESTION"===l.selid){var x=[];x=x.concat(r(e,n+1,a));var u=r(l.args,0,a);return n+1+1<=e.length&&u.forEach(function(t){x=x.concat(r(e,n+1,t))}),x}if("WITH"!==l.selid){if("ROOT"===l.selid)return n+1+1>e.length?[a]:r(e,n+1,s);throw new Error("Wrong selector "+l.selid)}var u=r(l.args,0,a);if(0===u.length)return[];var c={status:1,values:u}}else{if(!l.srchid)throw new Error("Selector not found");var c=T.srch[l.srchid.toUpperCase()](a,l.args,i,t)}"undefined"==typeof c&&(c={status:1,values:[a]});var E=[];if(1===c.status){var $=c.values;if(n+1+1>e.length)E=$;else for(var C=0;C0&&(o&&o[0]&&"PROP"===o[0].srchid&&o[0].args&&o[0].args[0]&&("XML"===o[0].args[0].toUpperCase()?(i.mode="XML",o.shift()):"HTML"===o[0].args[0].toUpperCase()?(i.mode="HTML",o.shift()):"JSON"===o[0].args[0].toUpperCase()&&(i.mode="JSON",o.shift())),o.length>0&&"VALUE"===o[0].srchid&&(i.value=!0,o.shift())),this.from instanceof ne.Column){var u=this.from.databaseid||e;s=T.databases[u].tables[this.from.columnid].data}else if(this.from instanceof ne.FuncValue&&T.from[this.from.funcid.toUpperCase()]){var c=this.from.args.map(function(e){var n=e.toJS(),r=new Function("params,alasql","var y;return "+n).bind(this);return r(t,T)});s=T.from[this.from.funcid.toUpperCase()].apply(this,c)}else if("undefined"==typeof this.from)s=T.databases[e].objects;else{var l=new Function("params,alasql","var y;return "+this.from.toJS());s=l(t,T),"object"==typeof Mongo&&"object"!=typeof Mongo.Collection&&s instanceof Mongo.Collection&&(s=s.find().fetch())}if(a=void 0!==o&&o.length>0?r(o,0,s):s,this.into){var h,d;"undefined"!=typeof this.into.args[0]&&(h=new Function("params,alasql","var y;return "+this.into.args[0].toJS())(t,T)),"undefined"!=typeof this.into.args[1]&&(d=new Function("params,alasql","var y;return "+this.into.args[1].toJS())(t,T)),a=T.into[this.into.funcid.toUpperCase()](h,d,a,[],n)}else i.value&&a.length>0&&(a=a[0]),n&&(a=n(a));return a}function o(e,t,n,r,a){e.sources.length;e.sourceslen=e.sources.length;var s=e.sourceslen;e.query=e,e.A=r,e.B=a,e.cb=n,e.oldscope=t,e.queriesfn&&(e.sourceslen+=e.queriesfn.length,s+=e.queriesfn.length,e.queriesdata=[],e.queriesfn.forEach(function(t,n){t.query.params=e.params,u([],-n-1,e)}));var i;i=t?H(t):{},e.scope=i;var o;return e.sources.forEach(function(t,n){t.query=e;var r=t.datafn(e,e.params,u,n,T);void 0!==typeof r&&((e.intofn||e.intoallfn)&&r instanceof Array&&(r=r.length),o=r),t.queriesdata=e.queriesdata}),0!=e.sources.length&&0!==s||(o=c(e)),o}function u(e,t,n){if(t>=0){var r=n.sources[t];r.data=e,"function"==typeof r.data&&(r.getfn=r.data,r.dontcache=r.getfn.dontcache,"OUTER"!=r.joinmode&&"RIGHT"!=r.joinmode&&"ANTI"!=r.joinmode||(r.dontcache=!1),r.data={})}else n.queriesdata[-t-1]=K(e);return n.sourceslen--,n.sourceslen>0?void 0:c(n)}function c(e){var t=e.scope;preIndex(e),e.data=[],e.xgroups={},e.groups=[];var n=0;if(d(e,t,n),e.groupfn){if(e.data=[],0===e.groups.length){var r={};e.selectGroup.length>0&&e.selectGroup.forEach(function(e){"COUNT"==e.aggregatorid||"SUM"==e.aggregatorid?r[e.nick]=0:r[e.nick]=void 0}),e.groups=[r]}if(e.aggrKeys.length>0){var a="";e.aggrKeys.forEach(function(e){a+="g['"+e.nick+"']=alasql.aggr['"+e.funcid+"'](undefined,g['"+e.nick+"'],3);"});var s=new Function("g,params,alasql","var y;"+a)}for(var i=0,o=e.groups.length;o>i;i++){var r=e.groups[i];if(s&&s(r,e.params,T),!e.havingfn||e.havingfn(r,e.params,T)){var u=e.selectgfn(r,e.params,T);e.data.push(u)}}}if(h(e),e.unionallfn){var c,f;if(e.corresponding)e.unionallfn.query.modifier||(e.unionallfn.query.modifier=void 0),c=e.unionallfn(e.params);else{e.unionallfn.query.modifier||(e.unionallfn.query.modifier="RECORDSET"),f=e.unionallfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=e.data.concat(c)}else if(e.unionfn){if(e.corresponding)e.unionfn.query.modifier||(e.unionfn.query.modifier="ARRAY"),c=e.unionfn(e.params);else{e.unionfn.query.modifier||(e.unionfn.query.modifier="RECORDSET"),f=e.unionfn(e.params),c=[],o=f.data.length;for(var i=0;o>i;i++){p={},g=Math.min(e.columns.length,f.columns.length);for(var b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=B(e.data,c)}else if(e.exceptfn){if(e.corresponding){e.exceptfn.query.modifier||(e.exceptfn.query.modifier="ARRAY");var c=e.exceptfn(e.params)}else{e.exceptfn.query.modifier||(e.exceptfn.query.modifier="RECORDSET");for(var f=e.exceptfn(e.params),c=[],i=0,o=f.data.length;o>i;i++){for(var p={},b=0,g=Math.min(e.columns.length,f.columns.length);g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}}e.data=G(e.data,c)}else if(e.intersectfn){if(e.corresponding)e.intersectfn.query.modifier||(e.intersectfn.query.modifier=void 0),c=e.intersectfn(e.params);else for(e.intersectfn.query.modifier||(e.intersectfn.query.modifier="RECORDSET"),f=e.intersectfn(e.params),c=[],o=f.data.length,i=0;o>i;i++){for(p={},g=Math.min(e.columns.length,f.columns.length),b=0;g>b;b++)p[e.columns[b].columnid]=f.data[i][f.columns[b].columnid];c.push(p)}e.data=J(e.data,c)}if(e.orderfn){if(e.explain)var m=Date.now();e.data=e.data.sort(e.orderfn),e.explain&&e.explaination.push({explid:e.explid++,description:"QUERY BY",ms:Date.now()-m})}if(l(e),"undefined"!=typeof angular&&e.removeKeys.push("$$hashKey"),e.removeKeys.length>0){var v=e.removeKeys;if(g=v.length,g>0)for(o=e.data.length,i=0;o>i;i++)for(b=0;g>b;b++)delete e.data[i][v[b]];e.columns.length>0&&(e.columns=e.columns.filter(function(e){var t=!1;return v.forEach(function(n){e.columnid==n&&(t=!0)}),!t}))}if("undefined"!=typeof e.removeLikeKeys&&e.removeLikeKeys.length>0){for(var E=e.removeLikeKeys,i=0,o=e.data.length;o>i;i++){p=e.data[i];for(var y in p)for(b=0;b0&&(e.columns=e.columns.filter(function(e){var t=!1;return E.forEach(function(n){T.utils.like(n,e.columnid)&&(t=!0)}),!t}))}if(e.pivotfn&&e.pivotfn(),e.unpivotfn&&e.unpivotfn(),e.intoallfn){var S=e.intoallfn(e.columns,e.cb,e.params,e.alasql);return S}if(e.intofn){for(o=e.data.length,i=0;o>i;i++)e.intofn(e.data[i],i,e.params,e.alasql);return e.cb&&e.cb(e.data.length,e.A,e.B),e.data.length}return S=e.data,e.cb&&(S=e.cb(e.data,e.A,e.B)),S}function l(e){if(e.limit){var t=0;e.offset&&(t=(0|e.offset)-1||0);var n;n=e.percent?(e.data.length*e.limit/100|0)+t:(0|e.limit)+t,e.data=e.data.slice(t,n)}}function h(e){if(e.distinct){for(var t={},n=0,r=e.data.length;r>n;n++){var a=Object.keys(e.data[n]).map(function(t){return e.data[n][t]}).join("`");t[a]=e.data[n]}e.data=[];for(var s in t)e.data.push(t[s])}}function d(e,t,n){if(n>=e.sources.length)e.wherefn(t,e.params,T)&&(e.groupfn?e.groupfn(t,e.params,T):e.data.push(e.selectfn(t,e.params,T)));else if(e.sources[n].applyselect){var r=e.sources[n];r.applyselect(e.params,function(a){if(a.length>0)for(var s=0;sc;)u||!r.getfn||r.dontcache||(o[c]=l),t[s]=l,r.onleftfn&&r.onleftfn(t,e.params,T)!=r.onrightfn(t,e.params,T)||r.onmiddlefn(t,e.params,T)&&("SEMI"!=r.joinmode&&"ANTI"!=r.joinmode&&d(e,t,n+1),"LEFT"!=r.joinmode&&"INNER"!=r.joinmode&&(l._rightjoin=!0),i=!0),c++;if("LEFT"!=r.joinmode&&"OUTER"!=r.joinmode&&"SEMI"!=r.joinmode||i||(t[s]={},d(e,t,n+1)),n+1f;)a.getfn&&!a.dontcache&&(a.data[f]=l),l._rightjoin?delete l._rightjoin:0==n&&(t[a.alias]=l,d(e,t,n+2)),f++}t[s]=void 0}}function f(e,t){if("undefined"==typeof t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t)return t;var n=e.modifier||T.options.modifier,r=e.columns;if("undefined"==typeof r||0==r.length)if(t.length>0){for(var a={},s=0;s0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0],t=t[0][i]}else t=void 0;else if("ROW"===n)if(t.length>0){var i,o=[];for(var i in t[0])o.push(t[0][i]);t=o}else t=void 0;else if("COLUMN"===n){var u=[];if(t.length>0){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)u.push(t[s][i])}t=u}else if("MATRIX"===n){for(var u=[],s=0;s0)i=r[0].columnid,d=r[1].columnid;else{var f=Object.keys(t[0]);i=f[0],d=f[1]}for(var s=0,c=t.length;c>s;s++)u[t[s][i]]=t[s][d];t=u}else if("RECORDSET"===n)t=new T.Recordset({data:t,columns:r});else if("TEXTSTRING"===n){var i;i=r&&r.length>0?r[0].columnid:Object.keys(t[0])[0];for(var s=0,c=t.length;c>s;s++)t[s]=t[s][i];t=t.join("\n")}return t}function p(e,t,n){var r="",a=[];e.ixsources={},e.sources.forEach(function(t){e.ixsources[t.alias]=t});var s;if(e.ixsources[t])var s=e.ixsources[t].columns;return n&&"json"==T.options.joinstar&&(r+="r['"+t+"']={};"),s&&s.length>0?s.forEach(function(s){n&&"underscore"==T.options.joinstar?a.push("'"+t+"_"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"):n&&"json"==T.options.joinstar?r+="r['"+t+"']['"+s.columnid+"']=p['"+t+"']['"+s.columnid+"'];":a.push("'"+s.columnid+"':p['"+t+"']['"+s.columnid+"']"),e.selectColumns[A(s.columnid)]=!0;var i={columnid:s.columnid,dbtypeid:s.dbtypeid,dbsize:s.dbsize,dbprecision:s.dbprecision,dbenum:s.dbenum};e.columns.push(i),e.xcolumns[i.columnid]=i}):(r+='var w=p["'+t+'"];for(var k in w){r[k]=w[k]};',e.dirtyColumns=!0),{s:a.join(","),sp:r}}function b(e,t){if(e instanceof Array){for(var n=[[]],r=0;ra;a++)t+=""+(a+1),n.forEach(function(n){t+=" ",+e[a][n]===+e[a][n]?(t+='
    ',t+="undefined"==typeof e[a][n]?"NULL":e[a][n],t+="
    "):t+="undefined"==typeof e[a][n]?"NULL":"string"==typeof e[a][n]?e[a][n]:fe(e[a][n])});t+=""}else t+="

    "+fe(e)+"

    ";return t}function E(e,t,n){if(!(0>=n)){var r=t-e.scrollTop,a=r/n*10;setTimeout(function(){e.scrollTop!==t&&(e.scrollTop=e.scrollTop+a,E(e,t,n-10))},10)}}function y(e,t,n,r,a,s){var i={};n=n||{},T.utils.extend(i,n),"undefined"==typeof i.headers&&(i.headers=!0);var o;return T.utils.loadBinaryFile(t,!!r,function(t){var n,o=e.read(t,{type:"binary"});n="undefined"==typeof i.sheetid?o.SheetNames[0]:i.sheetid;var u;"undefined"==typeof i.range?u=o.Sheets[n]["!ref"]:(u=i.range,o.Sheets[n][u]&&(u=o.Sheets[n][u]));for(var c=u.split(":"),l=c[0].match(/[A-Z]+/)[0],h=+c[0].match(/[0-9]+/)[0],d=c[1].match(/[A-Z]+/)[0],f=+c[1].match(/[0-9]+/)[0],p={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);i.headers&&o.Sheets[n][g+""+h]?p[g]=o.Sheets[n][g+""+h].v:p[g]=g}var m=[];i.headers&&h++;for(var v=h;f>=v;v++){for(var E={},b=T.utils.xlscn(l);b<=T.utils.xlscn(d);b++){var g=T.utils.xlsnc(b);o.Sheets[n][g+""+v]&&(E[p[g]]=o.Sheets[n][g+""+v].v)}m.push(E)}m.length>0&&m[m.length-1]&&0==Object.keys(m[m.length-1]).length&&m.pop(),r&&(m=r(m,a,s))},function(e){throw e}),o}function S(e){function t(){return{declaration:n(),root:r()}}function n(){var e=o(/^<\?xml\s*/);if(e){for(var t={attributes:{}};!u()&&!c("?>");){var n=s();if(!n)return t;t.attributes[n.name]=n.value}return o(/\?>\s*/),t}}function r(){var e=o(/^<([\w-:.]+)\s*/);if(e){for(var t={name:e[1],attributes:{},children:[]};!(u()||c(">")||c("?>")||c("/>"));){var n=s();if(!n)return t;t.attributes[n.name]=n.value}if(o(/^\s*\/>\s*/))return t;o(/\??>\s*/),t.content=a();for(var i;i=r();)t.children.push(i);return o(/^<\/[\w-:.]+>\s*/),t}}function a(){var e=o(/^([^<]*)/);return e?e[1]:""}function s(){var e=o(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:i(e[2])}}function i(e){return e.replace(/^['"]|['"]$/g,"")}function o(t){var n=e.match(t);if(n)return e=e.slice(n[0].length),n}function u(){return 0==e.length}function c(t){return 0==e.indexOf(t)}return e=e.trim(),e=e.replace(//g,""),t()}var T=function Se(e,t,n,r){if("function"==typeof importScripts||!Se.webworker){if(0===arguments.length)return new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});if(1===arguments.length&&"object"==typeof e&&e instanceof Array){var a=new ne.Select({columns:[new ne.Column({columnid:"*"})],from:[new ne.ParamValue({param:0})]});return a.preparams=[e],a}return"string"==typeof e&&"#"===e[0]&&"object"==typeof document?e=document.querySelector(e).textContent:"object"==typeof e&&e instanceof HTMLElement?e=e.textContent:"function"==typeof e&&(e=e.toString().slice(14,-3)),Se.exec(e,t,n,r)}var s=Se.lastid++;Se.buffer[s]=n,Se.webworker.postMessage({id:s,sql:e,params:t})};T.version="0.2.4",T.debug=void 0;var w=function(){function e(){this.yy={}}var t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[2,10],r=[1,102],a=[1,103],s=[1,6],i=[1,42],o=[1,78],u=[1,75],c=[1,94],l=[1,93],h=[1,68],d=[1,101],f=[1,85],p=[1,70],b=[1,83],g=[1,65],m=[1,69],v=[1,63],E=[1,67],y=[1,60],S=[1,73],w=[1,61],x=[1,66],A=[1,82],C=[1,76],O=[1,84],R=[1,86],N=[1,87],$=[1,80],D=[1,81],I=[1,79],L=[1,88],q=[1,89],U=[1,90],F=[1,91],M=[1,92],V=[1,98],j=[1,64],P=[1,77],_=[1,71],B=[1,96],G=[1,97],J=[1,62],H=[1,72],W=[1,106],X=[1,107],Y=[8,297,509,510],K=[8,297,301,509,510],Q=[1,114],z=[1,115],Z=[1,116],ee=[1,117],te=[1,118],ne=[127,343,399],re=[1,126],ae=[1,125],se=[1,131],ie=[1,159],oe=[1,170],ue=[1,173],ce=[1,168],le=[1,176],he=[1,180],de=[1,177],fe=[1,164],pe=[1,166],be=[1,169],ge=[1,178],me=[1,161],ve=[1,187],Ee=[1,183],ye=[1,184],Se=[1,188],Te=[1,189],we=[1,190],xe=[1,191],Ae=[1,192],Ce=[1,193],ke=[1,194],Oe=[1,195],Re=[1,196],Ne=[1,171],$e=[1,172],De=[1,174],Ie=[1,175],Le=[1,181],qe=[1,179],Ue=[1,182],Fe=[1,165],Me=[1,167],Ve=[1,186],je=[1,197],Pe=[4,5],_e=[2,455],Be=[1,200],Ge=[1,205],Je=[1,214],He=[1,210],We=[8,69,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Xe=[4,5,8,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],Ye=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ke=[1,244],Qe=[1,251],ze=[1,260],Ze=[1,265],et=[1,264],tt=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,165,166,176,177,178,180,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],nt=[2,158],rt=[1,276],at=[8,71,75,297,301,496,509,510],st=[4,5,8,69,74,75,90,95,104,115,125,128,129,134,140,142,149,151,153,159,161,165,166,176,177,178,180,182,184,192,195,229,242,244,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,301,307,319,410,414,509,510],it=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,190,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,360,363,364,376,378,385,389,390,391,392,393,394,395,397,398,406,407,408,410,414,416,418,424,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,505,506,507,508,509,510],ot=[4,5,8,51,69,86,121,143,153,186,262,283,297,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],ut=[1,289],ct=[1,291],lt=[2,487],ht=[1,296],dt=[1,307],ft=[1,310],pt=[1,311],bt=[8,75,86,129,134,143,186,289,297,301,461,509,510],gt=[8,71,297,301,509,510],mt=[2,552],vt=[1,327],Et=[4,5,153],yt=[1,364],St=[1,336],Tt=[1,370],wt=[1,371],xt=[1,344],At=[1,355],Ct=[1,342],kt=[1,350],Ot=[1,343],Rt=[1,351],Nt=[1,353],$t=[1,345],Dt=[1,346],It=[1,365],Lt=[1,362],qt=[1,363],Ut=[1,339],Ft=[1,341],Mt=[1,334],Vt=[1,335],jt=[1,337],Pt=[1,338],_t=[1,340],Bt=[1,347],Gt=[1,348],Jt=[1,352],Ht=[1,354],Wt=[1,356],Xt=[1,357],Yt=[1,358],Kt=[1,359],Qt=[1,360],zt=[1,366],Zt=[1,367],en=[1,368],tn=[1,369],nn=[2,283],rn=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],an=[2,351],sn=[1,392],on=[1,402],un=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],cn=[1,418],ln=[1,426],hn=[1,425],dn=[4,5,8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],fn=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn=[2,198],bn=[1,448],gn=[8,69,75,90,95,115,125,159,165,166,180,229,242,244,297,301,509,510],mn=[2,159],vn=[1,451],En=[4,5,109],yn=[1,464],Sn=[1,483],Tn=[1,463],wn=[1,462],xn=[1,457],An=[1,458],Cn=[1,460],kn=[1,461],On=[1,465],Rn=[1,466],Nn=[1,467],$n=[1,468],Dn=[1,469],In=[1,470],Ln=[1,471],qn=[1,472],Un=[1,473],Fn=[1,474],Mn=[1,475],Vn=[1,476],jn=[1,477],Pn=[1,478],_n=[1,479],Bn=[1,480],Gn=[1,482],Jn=[1,484],Hn=[1,485],Wn=[1,486],Xn=[1,487],Yn=[1,488],Kn=[1,489],Qn=[1,490],zn=[1,493],Zn=[1,494],er=[1,495],tr=[1,496],nr=[1,497],rr=[1,498],ar=[1,499],sr=[1,500],ir=[1,501],or=[1,502],ur=[1,503],cr=[1,504],lr=[71,86,186],hr=[8,71,75,151,184,227,290,297,301,333,346,358,359,363,364,509,510],dr=[1,521],fr=[8,71,75,297,301,509,510],pr=[1,522],br=[1,530],gr=[4,5,74,128,129,134,140,142,149,151,153,176,177,178,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,307,319,410,414],mr=[8,69,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],vr=[4,5,129,289],Er=[1,564],yr=[8,71,73,75,297,301,509,510],Sr=[2,722],Tr=[8,71,73,75,129,136,138,142,149,297,301,410,414,509,510],wr=[2,878],xr=[8,71,73,75,136,138,142,149,297,301,410,414,509,510],Ar=[8,71,73,75,136,138,142,297,301,410,414,509,510],Cr=[8,71,75,136,138,297,301,509,510],kr=[8,75,86,129,143,186,289,297,301,461,509,510],Or=[326,329,330],Rr=[2,748],Nr=[1,589],$r=[1,590],Dr=[1,591],Ir=[1,592],Lr=[1,596],qr=[1,597],Ur=[161,163,325],Fr=[2,434],Mr=[1,651],Vr=[4,5,74,128,153,283,284,285,286],jr=[1,666],Pr=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],_r=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Br=[2,366],Gr=[1,673],Jr=[297,299,301],Hr=[71,418],Wr=[71,416,418],Xr=[1,680],Yr=[4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Kr=[71,416],Qr=[8,69,75,90,95,115,125,159,165,166,229,242,244,297,301,509,510],zr=[1,717],Zr=[8,69,75,297,301,509,510],ea=[1,723],ta=[1,724],na=[1,725],ra=[4,5,8,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],aa=[1,775],sa=[1,774],ia=[1,788],oa=[8,69,71,75,90,95,104,115,125,159,165,166,180,195,229,242,244,297,301,509,510],ua=[1,819],ca=[8,75,86,143,186,297,301,461,509,510],la=[1,839],ha=[1,838],da=[1,837],fa=[1,850],pa=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ba=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,305,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ga=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],ma=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,121,125,126,127,128,129,131,132,134,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],va=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ea=[2,396],ya=[4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Sa=[2,281],Ta=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],wa=[1,886],xa=[8,75,297,301,509,510],Aa=[1,897],Ca=[8,69,75,115,125,159,165,166,229,242,244,297,301,509,510],ka=[8,69,71,75,90,95,115,125,159,165,166,180,195,229,242,244,297,301,509,510],Oa=[4,5,69,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Ra=[4,5,69,71,73,74,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Na=[2,802],$a=[4,5,69,71,73,74,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,182,184,273,274,275,276,277,278,279,280,281,410,414],Da=[1,949],Ia=[8,71,75,125,297,299,301,455,509,510],La=[1,958],qa=[1,957],Ua=[2,569],Fa=[1,979],Ma=[73,136],Va=[2,708],ja=[1,996],Pa=[1,997],_a=[4,5,8,51,69,73,86,121,143,153,186,227,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ba=[1,1004],Ga=[1,1005],Ja=[2,322],Ha=[1,1023],Wa=[1,1033],Xa=[8,71,75,297,299,301,455,509,510],Ya=[1,1036],Ka=[8,69,71,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],Qa=[8,297,299,301,455,509,510],za=[8,69,75,115,159,165,166,229,242,244,297,301,509,510],Za=[1,1051],es=[1,1055],ts=[1,1056],ns=[1,1058],rs=[1,1059],as=[1,1060],ss=[1,1061],is=[1,1062],os=[1,1063],us=[1,1064],cs=[1,1065],ls=[1,1090],hs=[71,75],ds=[112,113,121],fs=[1,1149],ps=[8,69,75,115,159,165,166,242,244,297,301,509,510],bs=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],gs=[1,1190],ms=[1,1192],vs=[4,5,74,140,142,149,153,178,283,284,285,286,293,410,414],Es=[1,1206],ys=[8,69,71,75,159,165,166,242,244,297,301,509,510],Ss=[1,1225],Ts=[1,1227],ws=[1,1228],xs=[1,1224],As=[1,1223],Cs=[1,1222],ks=[1,1229],Os=[1,1219],Rs=[1,1220],Ns=[1,1221],$s=[1,1246],Ds=[4,5,8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Is=[4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],Ls=[1,1260],qs=[1,1268],Us=[1,1267],Fs=[8,69,75,159,165,166,242,244,297,301,509,510],Ms=[8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],Vs=[4,5,8,69,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],js=[1,1325],Ps=[1,1327],_s=[1,1324],Bs=[1,1326],Gs=[184,190,358,359,360,363],Js=[2,499],Hs=[1,1332],Ws=[1,1353],Xs=[8,69,75,159,165,166,297,301,509,510],Ys=[1,1363],Ks=[1,1364],Qs=[1,1365],zs=[1,1384],Zs=[4,8,240,297,301,333,346,509,510],ei=[1,1433],ti=[8,69,71,75,115,159,165,166,236,242,244,297,301,509,510],ni=[4,5,74],ri=[1,1527],ai=[1,1539],si=[1,1558],ii=[8,69,75,159,165,166,297,301,404,509,510],oi=[8,71,75,227,297,301,509,510],ui={ +trace:function(){},yy:{},symbols_:{error:2,Literal:3,LITERAL:4,BRALITERAL:5,main:6,Statements:7,EOF:8,Statements_group0:9,AStatement:10,ExplainStatement:11,EXPLAIN:12,QUERY:13,PLAN:14,Statement:15,AlterTable:16,AttachDatabase:17,Call:18,CreateDatabase:19,CreateIndex:20,CreateGraph:21,CreateTable:22,CreateView:23,CreateEdge:24,CreateVertex:25,Declare:26,Delete:27,DetachDatabase:28,DropDatabase:29,DropIndex:30,DropTable:31,DropView:32,If:33,Insert:34,Merge:35,Reindex:36,RenameTable:37,Select:38,ShowCreateTable:39,ShowColumns:40,ShowDatabases:41,ShowIndex:42,ShowTables:43,TruncateTable:44,WithSelect:45,CreateTrigger:46,DropTrigger:47,BeginTransaction:48,CommitTransaction:49,RollbackTransaction:50,EndTransaction:51,UseDatabase:52,Update:53,Help:54,JavaScript:55,Source:56,Assert:57,While:58,Continue:59,Break:60,BeginEnd:61,Print:62,Require:63,SetVariable:64,ExpressionStatement:65,AddRule:66,Query:67,Echo:68,WITH:69,WithTablesList:70,COMMA:71,WithTable:72,AS:73,LPAR:74,RPAR:75,SelectClause:76,Select_option0:77,IntoClause:78,FromClause:79,Select_option1:80,WhereClause:81,GroupClause:82,OrderClause:83,LimitClause:84,UnionClause:85,SEARCH:86,Select_repetition0:87,Select_option2:88,PivotClause:89,PIVOT:90,Expression:91,FOR:92,PivotClause_option0:93,PivotClause_option1:94,UNPIVOT:95,IN:96,ColumnsList:97,PivotClause_option2:98,PivotClause2:99,AsList:100,AsLiteral:101,AsPart:102,RemoveClause:103,REMOVE:104,RemoveClause_option0:105,RemoveColumnsList:106,RemoveColumn:107,Column:108,LIKE:109,StringValue:110,ArrowDot:111,ARROW:112,DOT:113,SearchSelector:114,ORDER:115,BY:116,OrderExpressionsList:117,SearchSelector_option0:118,DOTDOT:119,CARET:120,EQ:121,SearchSelector_repetition_plus0:122,SearchSelector_repetition_plus1:123,SearchSelector_option1:124,WHERE:125,OF:126,CLASS:127,NUMBER:128,STRING:129,SLASH:130,VERTEX:131,EDGE:132,EXCLAMATION:133,SHARP:134,MODULO:135,GT:136,LT:137,GTGT:138,LTLT:139,DOLLAR:140,Json:141,AT:142,SET:143,SetColumnsList:144,TO:145,VALUE:146,ROW:147,ExprList:148,COLON:149,PlusStar:150,NOT:151,SearchSelector_repetition2:152,IF:153,SearchSelector_repetition3:154,Aggregator:155,SearchSelector_repetition4:156,SearchSelector_group0:157,SearchSelector_repetition5:158,UNION:159,SearchSelectorList:160,ALL:161,SearchSelector_repetition6:162,ANY:163,SearchSelector_repetition7:164,INTERSECT:165,EXCEPT:166,AND:167,OR:168,PATH:169,RETURN:170,ResultColumns:171,REPEAT:172,SearchSelector_repetition8:173,SearchSelectorList_repetition0:174,SearchSelectorList_repetition1:175,PLUS:176,STAR:177,QUESTION:178,SearchFrom:179,FROM:180,SelectModifier:181,DISTINCT:182,TopClause:183,UNIQUE:184,SelectClause_option0:185,SELECT:186,COLUMN:187,MATRIX:188,TEXTSTRING:189,INDEX:190,RECORDSET:191,TOP:192,NumValue:193,TopClause_option0:194,INTO:195,Table:196,FuncValue:197,ParamValue:198,VarValue:199,FromTablesList:200,JoinTablesList:201,ApplyClause:202,CROSS:203,APPLY:204,OUTER:205,FromTable:206,FromTable_option0:207,FromTable_option1:208,INDEXED:209,INSERTED:210,FromString:211,JoinTable:212,JoinMode:213,JoinTableAs:214,OnClause:215,JoinTableAs_option0:216,JoinTableAs_option1:217,JoinModeMode:218,NATURAL:219,JOIN:220,INNER:221,LEFT:222,RIGHT:223,FULL:224,SEMI:225,ANTI:226,ON:227,USING:228,GROUP:229,GroupExpressionsList:230,HavingClause:231,GroupExpression:232,GROUPING:233,ROLLUP:234,CUBE:235,HAVING:236,CORRESPONDING:237,OrderExpression:238,DIRECTION:239,COLLATE:240,NOCASE:241,LIMIT:242,OffsetClause:243,OFFSET:244,LimitClause_option0:245,FETCH:246,LimitClause_option1:247,LimitClause_option2:248,LimitClause_option3:249,ResultColumn:250,Star:251,AggrValue:252,Op:253,LogicValue:254,NullValue:255,ExistsValue:256,CaseValue:257,CastClause:258,NewClause:259,Expression_group0:260,CURRENT_TIMESTAMP:261,JAVASCRIPT:262,NEW:263,CAST:264,ColumnType:265,CONVERT:266,PrimitiveValue:267,OverClause:268,OVER:269,OverPartitionClause:270,OverOrderByClause:271,PARTITION:272,SUM:273,COUNT:274,MIN:275,MAX:276,AVG:277,FIRST:278,LAST:279,AGGR:280,ARRAY:281,FuncValue_option0:282,REPLACE:283,DATEADD:284,DATEDIFF:285,INTERVAL:286,TRUE:287,FALSE:288,NSTRING:289,NULL:290,EXISTS:291,ParamValue_group0:292,BRAQUESTION:293,CASE:294,WhensList:295,ElseClause:296,END:297,When:298,WHEN:299,THEN:300,ELSE:301,REGEXP:302,GLOB:303,ESCAPE:304,NOT_LIKE:305,BARBAR:306,MINUS:307,AMPERSAND:308,BAR:309,GE:310,LE:311,EQEQ:312,EQEQEQ:313,NE:314,NEEQEQ:315,NEEQEQEQ:316,CondOp:317,AllSome:318,TILDA:319,ColFunc:320,BETWEEN:321,NOT_BETWEEN:322,IS:323,DOUBLECOLON:324,SOME:325,UPDATE:326,SetColumn:327,SetColumn_group0:328,DELETE:329,INSERT:330,Into:331,ValuesListsList:332,DEFAULT:333,ValuesList:334,Value:335,DateValue:336,CREATE:337,TemporaryClause:338,TableClass:339,IfNotExists:340,CreateTableDefClause:341,CreateTableOptionsClause:342,TABLE:343,CreateTableOptions:344,CreateTableOption:345,IDENTITY:346,TEMP:347,ColumnDefsList:348,ConstraintsList:349,Constraint:350,ConstraintName:351,PrimaryKey:352,ForeignKey:353,UniqueKey:354,IndexKey:355,Check:356,CONSTRAINT:357,CHECK:358,PRIMARY:359,KEY:360,PrimaryKey_option0:361,ColsList:362,FOREIGN:363,REFERENCES:364,ForeignKey_option0:365,OnForeignKeyClause:366,ParColsList:367,OnDeleteClause:368,OnUpdateClause:369,NO:370,ACTION:371,UniqueKey_option0:372,UniqueKey_option1:373,ColumnDef:374,ColumnConstraintsClause:375,ColumnConstraints:376,NumberMax:377,ENUM:378,MAXNUM:379,ColumnConstraintsList:380,ColumnConstraint:381,ParLiteral:382,ColumnConstraint_option0:383,ColumnConstraint_option1:384,DROP:385,DropTable_group0:386,IfExists:387,TablesList:388,ALTER:389,RENAME:390,ADD:391,MODIFY:392,ATTACH:393,DATABASE:394,DETACH:395,AsClause:396,USE:397,SHOW:398,VIEW:399,CreateView_option0:400,CreateView_option1:401,SubqueryRestriction:402,READ:403,ONLY:404,OPTION:405,HELP:406,SOURCE:407,ASSERT:408,JsonObject:409,ATLBRA:410,JsonArray:411,JsonValue:412,JsonPrimitiveValue:413,LCUR:414,JsonPropertiesList:415,RCUR:416,JsonElementsList:417,RBRA:418,JsonProperty:419,OnOff:420,AtDollar:421,SetPropsList:422,SetProp:423,OFF:424,COMMIT:425,TRANSACTION:426,ROLLBACK:427,BEGIN:428,ElseStatement:429,WHILE:430,CONTINUE:431,BREAK:432,PRINT:433,REQUIRE:434,StringValuesList:435,PluginsList:436,Plugin:437,ECHO:438,DECLARE:439,DeclaresList:440,DeclareItem:441,TRUNCATE:442,MERGE:443,MergeInto:444,MergeUsing:445,MergeOn:446,MergeMatchedList:447,OutputClause:448,MergeMatched:449,MergeNotMatched:450,MATCHED:451,MergeMatchedAction:452,MergeNotMatchedAction:453,TARGET:454,OUTPUT:455,CreateVertex_option0:456,CreateVertex_option1:457,CreateVertex_option2:458,CreateVertexSet:459,SharpValue:460,CONTENT:461,CreateEdge_option0:462,GRAPH:463,GraphList:464,GraphVertexEdge:465,GraphElement:466,GraphVertexEdge_option0:467,GraphVertexEdge_option1:468,GraphElementVar:469,GraphVertexEdge_option2:470,GraphVertexEdge_option3:471,GraphVertexEdge_option4:472,GraphVar:473,GraphAsClause:474,GraphAtClause:475,GraphElement2:476,GraphElement2_option0:477,GraphElement2_option1:478,GraphElement2_option2:479,GraphElement2_option3:480,GraphElement_option0:481,GraphElement_option1:482,GraphElement_option2:483,SharpLiteral:484,GraphElement_option3:485,GraphElement_option4:486,GraphElement_option5:487,ColonLiteral:488,DeleteVertex:489,DeleteVertex_option0:490,DeleteEdge:491,DeleteEdge_option0:492,DeleteEdge_option1:493,DeleteEdge_option2:494,Term:495,COLONDASH:496,TermsList:497,QUESTIONDASH:498,CALL:499,TRIGGER:500,BeforeAfter:501,InsertDeleteUpdate:502,CreateTrigger_option0:503,CreateTrigger_option1:504,BEFORE:505,AFTER:506,INSTEAD:507,REINDEX:508,SEMICOLON:509,GO:510,PERCENT:511,ROWS:512,NEXT:513,FuncValue_option0_group0:514,$accept:0,$end:1},terminals_:{2:"error",4:"LITERAL",5:"BRALITERAL",8:"EOF",12:"EXPLAIN",13:"QUERY",14:"PLAN",51:"EndTransaction",69:"WITH",71:"COMMA",73:"AS",74:"LPAR",75:"RPAR",86:"SEARCH",90:"PIVOT",92:"FOR",95:"UNPIVOT",96:"IN",104:"REMOVE",109:"LIKE",112:"ARROW",113:"DOT",115:"ORDER",116:"BY",119:"DOTDOT",120:"CARET",121:"EQ",125:"WHERE",126:"OF",127:"CLASS",128:"NUMBER",129:"STRING",130:"SLASH",131:"VERTEX",132:"EDGE",133:"EXCLAMATION",134:"SHARP",135:"MODULO",136:"GT",137:"LT",138:"GTGT",139:"LTLT",140:"DOLLAR",142:"AT",143:"SET",145:"TO",146:"VALUE",147:"ROW",149:"COLON",151:"NOT",153:"IF",159:"UNION",161:"ALL",163:"ANY",165:"INTERSECT",166:"EXCEPT",167:"AND",168:"OR",169:"PATH",170:"RETURN",172:"REPEAT",176:"PLUS",177:"STAR",178:"QUESTION",180:"FROM",182:"DISTINCT",184:"UNIQUE",186:"SELECT",187:"COLUMN",188:"MATRIX",189:"TEXTSTRING",190:"INDEX",191:"RECORDSET",192:"TOP",195:"INTO",203:"CROSS",204:"APPLY",205:"OUTER",209:"INDEXED",210:"INSERTED",219:"NATURAL",220:"JOIN",221:"INNER",222:"LEFT",223:"RIGHT",224:"FULL",225:"SEMI",226:"ANTI",227:"ON",228:"USING",229:"GROUP",233:"GROUPING",234:"ROLLUP",235:"CUBE",236:"HAVING",237:"CORRESPONDING",239:"DIRECTION",240:"COLLATE",241:"NOCASE",242:"LIMIT",244:"OFFSET",246:"FETCH",261:"CURRENT_TIMESTAMP",262:"JAVASCRIPT",263:"NEW",264:"CAST",266:"CONVERT",269:"OVER",272:"PARTITION",273:"SUM",274:"COUNT",275:"MIN",276:"MAX",277:"AVG",278:"FIRST",279:"LAST",280:"AGGR",281:"ARRAY",283:"REPLACE",284:"DATEADD",285:"DATEDIFF",286:"INTERVAL",287:"TRUE",288:"FALSE",289:"NSTRING",290:"NULL",291:"EXISTS",293:"BRAQUESTION",294:"CASE",297:"END",299:"WHEN",300:"THEN",301:"ELSE",302:"REGEXP",303:"GLOB",304:"ESCAPE",305:"NOT_LIKE",306:"BARBAR",307:"MINUS",308:"AMPERSAND",309:"BAR",310:"GE",311:"LE",312:"EQEQ",313:"EQEQEQ",314:"NE",315:"NEEQEQ",316:"NEEQEQEQ",319:"TILDA",321:"BETWEEN",322:"NOT_BETWEEN",323:"IS",324:"DOUBLECOLON",325:"SOME",326:"UPDATE",329:"DELETE",330:"INSERT",333:"DEFAULT",336:"DateValue",337:"CREATE",343:"TABLE",346:"IDENTITY",347:"TEMP",357:"CONSTRAINT",358:"CHECK",359:"PRIMARY",360:"KEY",363:"FOREIGN",364:"REFERENCES",370:"NO",371:"ACTION",376:"ColumnConstraints",378:"ENUM",379:"MAXNUM",385:"DROP",389:"ALTER",390:"RENAME",391:"ADD",392:"MODIFY",393:"ATTACH",394:"DATABASE",395:"DETACH",397:"USE",398:"SHOW",399:"VIEW",403:"READ",404:"ONLY",405:"OPTION",406:"HELP",407:"SOURCE",408:"ASSERT",410:"ATLBRA",414:"LCUR",416:"RCUR",418:"RBRA",424:"OFF",425:"COMMIT",426:"TRANSACTION",427:"ROLLBACK",428:"BEGIN",430:"WHILE",431:"CONTINUE",432:"BREAK",433:"PRINT",434:"REQUIRE",438:"ECHO",439:"DECLARE",442:"TRUNCATE",443:"MERGE",451:"MATCHED",454:"TARGET",455:"OUTPUT",461:"CONTENT",463:"GRAPH",496:"COLONDASH",498:"QUESTIONDASH",499:"CALL",500:"TRIGGER",505:"BEFORE",506:"AFTER",507:"INSTEAD",508:"REINDEX",509:"SEMICOLON",510:"GO",511:"PERCENT",512:"ROWS",513:"NEXT"},productions_:[0,[3,1],[3,1],[6,2],[7,3],[7,1],[7,1],[11,2],[11,4],[10,1],[15,0],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[45,3],[70,3],[70,1],[72,5],[38,10],[38,4],[89,8],[89,11],[99,4],[101,2],[101,1],[100,3],[100,1],[102,1],[102,3],[103,3],[106,3],[106,1],[107,1],[107,2],[111,1],[111,1],[114,1],[114,5],[114,5],[114,1],[114,2],[114,1],[114,2],[114,2],[114,3],[114,4],[114,4],[114,4],[114,4],[114,4],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,2],[114,2],[114,1],[114,1],[114,1],[114,1],[114,1],[114,1],[114,2],[114,3],[114,4],[114,3],[114,1],[114,4],[114,2],[114,2],[114,4],[114,4],[114,4],[114,4],[114,4],[114,5],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,4],[114,6],[160,3],[160,1],[150,1],[150,1],[150,1],[179,2],[76,4],[76,4],[76,4],[76,3],[181,1],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[181,2],[183,3],[183,4],[183,0],[78,0],[78,2],[78,2],[78,2],[78,2],[78,2],[79,2],[79,3],[79,5],[79,0],[202,6],[202,7],[202,6],[202,7],[200,1],[200,3],[206,4],[206,5],[206,3],[206,3],[206,2],[206,3],[206,1],[206,3],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,1],[206,2],[206,3],[206,1],[206,2],[206,3],[211,1],[196,3],[196,1],[201,2],[201,2],[201,1],[201,1],[212,3],[214,1],[214,2],[214,3],[214,3],[214,2],[214,3],[214,4],[214,5],[214,1],[214,2],[214,3],[214,1],[214,2],[214,3],[213,1],[213,2],[218,1],[218,2],[218,2],[218,3],[218,2],[218,3],[218,2],[218,3],[218,2],[218,2],[218,2],[215,2],[215,2],[215,0],[81,0],[81,2],[82,0],[82,4],[230,1],[230,3],[232,5],[232,4],[232,4],[232,1],[231,0],[231,2],[85,0],[85,2],[85,3],[85,2],[85,2],[85,3],[85,4],[85,3],[85,3],[83,0],[83,3],[117,1],[117,3],[238,1],[238,2],[238,3],[238,4],[84,0],[84,3],[84,8],[243,0],[243,2],[171,3],[171,1],[250,3],[250,2],[250,3],[250,2],[250,3],[250,2],[250,1],[251,5],[251,3],[251,1],[108,5],[108,3],[108,3],[108,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,3],[91,3],[91,3],[91,1],[91,1],[55,1],[259,2],[259,2],[258,6],[258,8],[258,6],[258,8],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[267,1],[252,5],[252,6],[252,6],[268,0],[268,4],[268,4],[268,5],[270,3],[271,3],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[155,1],[197,5],[197,3],[197,4],[197,4],[197,8],[197,8],[197,8],[197,8],[197,3],[148,1],[148,3],[193,1],[254,1],[254,1],[110,1],[110,1],[255,1],[199,2],[256,4],[198,2],[198,2],[198,1],[198,1],[257,5],[257,4],[295,2],[295,1],[298,4],[296,2],[296,0],[253,3],[253,3],[253,3],[253,5],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,5],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,3],[253,6],[253,6],[253,3],[253,3],[253,2],[253,2],[253,2],[253,2],[253,2],[253,3],[253,5],[253,6],[253,5],[253,6],[253,4],[253,5],[253,3],[253,4],[253,3],[253,4],[253,3],[253,3],[253,3],[253,3],[253,3],[320,1],[320,1],[320,4],[317,1],[317,1],[317,1],[317,1],[317,1],[317,1],[318,1],[318,1],[318,1],[53,6],[53,4],[144,1],[144,3],[327,3],[327,4],[27,5],[27,3],[34,5],[34,7],[34,5],[34,5],[34,8],[34,4],[34,6],[34,7],[331,0],[331,1],[332,3],[332,1],[332,1],[332,5],[332,3],[332,3],[334,1],[334,3],[335,1],[335,1],[335,1],[335,1],[335,1],[335,1],[97,1],[97,3],[22,9],[22,5],[339,1],[339,1],[342,0],[342,1],[344,2],[344,1],[345,1],[345,3],[345,3],[345,3],[338,0],[338,1],[340,0],[340,3],[341,3],[341,1],[341,2],[349,1],[349,3],[350,2],[350,2],[350,2],[350,2],[350,2],[351,0],[351,2],[356,4],[352,6],[353,9],[367,3],[366,0],[366,2],[368,4],[369,4],[354,6],[355,5],[355,5],[362,1],[362,1],[362,3],[362,3],[348,1],[348,3],[374,3],[374,2],[374,1],[265,6],[265,7],[265,4],[265,5],[265,1],[265,2],[265,4],[377,1],[377,1],[375,0],[375,1],[380,2],[380,1],[382,3],[381,2],[381,5],[381,3],[381,6],[381,1],[381,2],[381,4],[381,2],[381,1],[381,2],[381,1],[381,1],[381,3],[381,5],[31,4],[388,3],[388,1],[387,0],[387,2],[16,6],[16,6],[16,6],[16,8],[16,6],[37,5],[17,4],[17,7],[17,6],[17,9],[28,3],[19,4],[19,6],[19,9],[19,6],[396,0],[396,2],[52,3],[52,2],[29,4],[29,5],[29,5],[20,8],[20,9],[30,3],[41,2],[41,4],[41,3],[41,5],[43,2],[43,4],[43,4],[43,6],[40,4],[40,6],[42,4],[42,6],[39,4],[39,6],[23,11],[23,8],[402,3],[402,3],[402,5],[32,4],[54,2],[54,1],[65,2],[56,2],[57,2],[57,2],[57,4],[141,4],[141,2],[141,2],[141,2],[141,2],[141,1],[141,2],[141,2],[412,1],[412,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,1],[413,3],[409,3],[409,4],[409,2],[411,2],[411,3],[411,1],[415,3],[415,1],[419,3],[419,3],[419,3],[417,3],[417,1],[64,3],[64,5],[64,6],[421,1],[421,1],[422,3],[422,2],[423,1],[423,1],[423,3],[420,1],[420,1],[49,2],[50,2],[48,2],[33,4],[33,3],[429,2],[58,3],[59,1],[60,1],[61,3],[62,2],[62,2],[63,2],[63,2],[437,1],[437,1],[68,2],[435,3],[435,1],[436,3],[436,1],[26,2],[440,1],[440,3],[441,3],[441,4],[441,5],[441,6],[44,3],[35,6],[444,1],[444,2],[445,2],[446,2],[447,2],[447,2],[447,1],[447,1],[449,4],[449,6],[452,1],[452,3],[450,5],[450,7],[450,7],[450,9],[450,7],[450,9],[453,3],[453,6],[453,3],[453,6],[448,0],[448,2],[448,5],[448,4],[448,7],[25,6],[460,2],[459,0],[459,2],[459,2],[459,1],[24,8],[21,3],[21,4],[464,3],[464,1],[465,3],[465,7],[465,6],[465,3],[465,4],[469,1],[469,1],[473,2],[474,3],[475,2],[476,4],[466,4],[466,3],[466,2],[466,1],[488,2],[484,2],[484,2],[489,4],[491,6],[66,3],[66,2],[497,3],[497,1],[495,1],[495,4],[67,2],[18,2],[46,9],[46,8],[46,9],[501,0],[501,1],[501,1],[501,1],[501,2],[502,1],[502,1],[502,1],[47,3],[36,2],[9,1],[9,1],[77,0],[77,1],[80,0],[80,1],[87,0],[87,2],[88,0],[88,1],[93,0],[93,1],[94,0],[94,1],[98,0],[98,1],[105,0],[105,1],[118,0],[118,1],[122,1],[122,2],[123,1],[123,2],[124,0],[124,1],[152,0],[152,2],[154,0],[154,2],[156,0],[156,2],[157,1],[157,1],[158,0],[158,2],[162,0],[162,2],[164,0],[164,2],[173,0],[173,2],[174,0],[174,2],[175,0],[175,2],[185,0],[185,1],[194,0],[194,1],[207,0],[207,1],[208,0],[208,1],[216,0],[216,1],[217,0],[217,1],[245,0],[245,1],[247,0],[247,1],[248,0],[248,1],[249,0],[249,1],[260,1],[260,1],[514,1],[514,1],[282,0],[282,1],[292,1],[292,1],[328,1],[328,1],[361,0],[361,1],[365,0],[365,1],[372,0],[372,1],[373,0],[373,1],[383,0],[383,1],[384,0],[384,1],[386,1],[386,1],[400,0],[400,1],[401,0],[401,1],[456,0],[456,1],[457,0],[457,1],[458,0],[458,1],[462,0],[462,1],[467,0],[467,1],[468,0],[468,1],[470,0],[470,1],[471,0],[471,1],[472,0],[472,1],[477,0],[477,1],[478,0],[478,1],[479,0],[479,1],[480,0],[480,1],[481,0],[481,1],[482,0],[482,1],[483,0],[483,1],[485,0],[485,1],[486,0],[486,1],[487,0],[487,1],[490,0],[490,2],[492,0],[492,2],[493,0],[493,2],[494,0],[494,2],[503,0],[503,1],[504,0],[504,1]],performAction:function(e,t,n,r,a,s,i){var o=s.length-1;switch(a){case 1:r.casesensitive?this.$=s[o]:this.$=s[o].toLowerCase();break;case 2:this.$=k(s[o].substr(1,s[o].length-2));break;case 3:return new r.Statements({statements:s[o-1]});case 4:this.$=s[o-2],s[o]&&s[o-2].push(s[o]);break;case 5:case 6:case 66:case 76:case 81:case 139:case 173:case 201:case 202:case 238:case 257:case 269:case 346:case 363:case 441:case 458:case 459:case 463:case 471:case 512:case 513:case 551:case 636:case 643:case 667:case 669:case 671:case 685:case 686:case 716:case 740:this.$=[s[o]];break;case 7:this.$=s[o],s[o].explain=!0;break;case 8:this.$=s[o],s[o].explain=!0;break;case 9:this.$=s[o],r.exists&&(this.$.exists=r.exists),delete r.exists,r.queries&&(this.$.queries=r.queries),delete r.queries;break;case 10:case 158:case 168:case 233:case 234:case 236:case 244:case 246:case 255:case 263:case 266:case 366:case 475:case 485:case 487:case 499:case 505:case 506:case 552:this.$=void 0;break;case 64:this.$=new r.WithSelect({withs:s[o-1],select:s[o]});break;case 65:case 550:s[o-2].push(s[o]),this.$=s[o-2];break;case 67:this.$={name:s[o-4],select:s[o-1]};break;case 68:r.extend(this.$,s[o-9]),r.extend(this.$,s[o-8]),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]),this.$=s[o-9];break;case 69:this.$=new r.Search({selectors:s[o-2],from:s[o]}),r.extend(this.$,s[o-1]);break;case 70:this.$={pivot:{expr:s[o-5],columnid:s[o-3],inlist:s[o-2],as:s[o]}};break;case 71:this.$={unpivot:{tocolumnid:s[o-8],forcolumnid:s[o-6],inlist:s[o-3],as:s[o]}};break;case 72:case 504:case 534:case 570:case 606:case 624:case 627:case 646:this.$=s[o-1];break;case 73:case 74:case 82:case 143:case 181:case 243:case 276:case 284:case 285:case 286:case 287:case 288:case 289:case 290:case 291:case 292:case 293:case 294:case 295:case 296:case 297:case 299:case 312:case 313:case 314:case 315:case 316:case 317:case 365:case 430:case 431:case 432:case 433:case 434:case 435:case 500:case 531:case 533:case 610:case 611:case 612:case 613:case 614:case 615:case 619:case 621:case 622:case 631:case 644:case 645:case 707:case 722:case 723:case 725:case 726:case 732:case 733:this.$=s[o];break;case 75:case 80:case 715:case 739:this.$=s[o-2],this.$.push(s[o]);break;case 77:this.$={expr:s[o]};break;case 78:this.$={expr:s[o-2],as:s[o]};break;case 79:this.$={removecolumns:s[o]};break;case 83:this.$={like:s[o]};break;case 86:case 100:this.$={srchid:"PROP",args:[s[o]]};break;case 87:this.$={srchid:"ORDERBY",args:s[o-1]};break;case 88:var u=s[o-1];u||(u="ASC"),this.$={srchid:"ORDERBY",args:[{expression:new r.Column({columnid:"_"}),direction:u}]};break;case 89:this.$={srchid:"PARENT"};break;case 90:this.$={srchid:"APROP",args:[s[o]]};break;case 91:this.$={selid:"ROOT"};break;case 92:this.$={srchid:"EQ",args:[s[o]]};break;case 93:this.$={srchid:"LIKE",args:[s[o]]};break;case 94:case 95:this.$={selid:"WITH",args:s[o-1]};break;case 96:this.$={srchid:s[o-3].toUpperCase(),args:s[o-1]};break;case 97:this.$={srchid:"WHERE",args:[s[o-1]]};break;case 98:this.$={selid:"OF",args:[s[o-1]]};break;case 99:this.$={srchid:"CLASS",args:[s[o-1]]};break;case 101:this.$={srchid:"NAME",args:[s[o].substr(1,s[o].length-2)]};break;case 102:this.$={srchid:"CHILD"};break;case 103:this.$={srchid:"VERTEX"};break;case 104:this.$={srchid:"EDGE"};break;case 105:this.$={srchid:"REF"};break;case 106:this.$={srchid:"SHARP",args:[s[o]]};break;case 107:this.$={srchid:"ATTR",args:"undefined"==typeof s[o]?void 0:[s[o]]};break;case 108:this.$={srchid:"ATTR"};break;case 109:this.$={srchid:"OUT"};break;case 110:this.$={srchid:"IN"};break;case 111:this.$={srchid:"OUTOUT"};break;case 112:this.$={srchid:"ININ"};break;case 113:this.$={srchid:"CONTENT"};break;case 114:this.$={srchid:"EX",args:[new r.Json({value:s[o]})]};break;case 115:this.$={srchid:"AT",args:[s[o]]};break;case 116:this.$={srchid:"AS",args:[s[o]]};break;case 117:this.$={srchid:"SET",args:s[o-1]};break;case 118:this.$={selid:"TO",args:[s[o]]};break;case 119:this.$={srchid:"VALUE"};break;case 120:this.$={srchid:"ROW",args:s[o-1]};break;case 121:this.$={srchid:"CLASS",args:[s[o]]};break;case 122:this.$={selid:s[o],args:[s[o-1]]};break;case 123:this.$={selid:"NOT",args:s[o-1]};break;case 124:this.$={selid:"IF",args:s[o-1]};break;case 125:this.$={selid:s[o-3],args:s[o-1]};break;case 126:this.$={selid:"DISTINCT",args:s[o-1]};break;case 127:this.$={selid:"UNION",args:s[o-1]};break;case 128:this.$={selid:"UNIONALL",args:s[o-1]};break;case 129:this.$={selid:"ALL",args:[s[o-1]]};break;case 130:this.$={selid:"ANY",args:[s[o-1]]};break;case 131:this.$={selid:"INTERSECT",args:s[o-1]};break;case 132:this.$={selid:"EXCEPT",args:s[o-1]};break;case 133:this.$={selid:"AND",args:s[o-1]};break;case 134:this.$={selid:"OR",args:s[o-1]};break;case 135:this.$={selid:"PATH",args:[s[o-1]]};break;case 136:this.$={srchid:"RETURN",args:s[o-1]};break;case 137:this.$={selid:"REPEAT",sels:s[o-3],args:s[o-1]};break;case 138:this.$=s[o-2],this.$.push(s[o]);break;case 140:this.$="PLUS";break;case 141:this.$="STAR";break;case 142:this.$="QUESTION";break;case 144:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 145:this.$=new r.Select({columns:s[o],distinct:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 146:this.$=new r.Select({columns:s[o],all:!0}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-1]);break;case 147:s[o]?(this.$=new r.Select({columns:s[o]}),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1])):this.$=new r.Select({columns:[new r.Column({columnid:"_"})],modifier:"COLUMN"});break;case 148:"SELECT"==s[o]?this.$=void 0:this.$={modifier:s[o]};break;case 149:this.$={modifier:"VALUE"};break;case 150:this.$={modifier:"ROW"};break;case 151:this.$={modifier:"COLUMN"};break;case 152:this.$={modifier:"MATRIX"};break;case 153:this.$={modifier:"TEXTSTRING"};break;case 154:this.$={modifier:"INDEX"};break;case 155:this.$={modifier:"RECORDSET"};break;case 156:this.$={top:s[o-1],percent:"undefined"!=typeof s[o]?!0:void 0};break;case 157:this.$={top:s[o-1]};break;case 159:case 322:case 507:case 508:case 708:this.$=void 0;break;case 160:case 161:case 162:case 163:this.$={into:s[o]};break;case 164:var c=s[o];c=c.substr(1,c.length-2);var l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();"#"==c[0]?this.$={into:new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLS"==l||"CSV"==l||"TAB"==l?this.$={into:new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}:"XLSX"!=h&&"JSON"!=h||(this.$={into:new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})});break;case 165:this.$={from:s[o]};break;case 166:this.$={from:s[o-1],joins:s[o]};break;case 167:this.$={from:s[o-2],joins:s[o-1]};break;case 169:this.$=new r.Apply({select:s[o-2],applymode:"CROSS",as:s[o]});break;case 170:this.$=new r.Apply({select:s[o-3],applymode:"CROSS",as:s[o]});break;case 171:this.$=new r.Apply({select:s[o-2],applymode:"OUTER",as:s[o]});break;case 172:this.$=new r.Apply({select:s[o-3],applymode:"OUTER",as:s[o]});break;case 174:case 239:case 442:case 514:case 515:this.$=s[o-2],s[o-2].push(s[o]);break;case 175:this.$=s[o-2],this.$.as=s[o];break;case 176:this.$=s[o-3],this.$.as=s[o];break;case 177:this.$=s[o-1],this.$.as="default";break;case 178:this.$=new r.Json({value:s[o-2]}),s[o-2].as=s[o];break;case 179:this.$=s[o-1],s[o-1].as=s[o];break;case 180:this.$=s[o-2],s[o-2].as=s[o];break;case 182:case 625:case 628:this.$=s[o-2];break;case 183:case 187:case 191:case 194:this.$=s[o-1],s[o-1].as=s[o];break;case 184:case 188:case 192:case 195:this.$=s[o-2],s[o-2].as=s[o];break;case 185:case 186:case 190:case 193:this.$=s[o],s[o].as="default";break;case 189:this.$={inserted:!0},s[o].as="default";break;case 196:var c=s[o];c=c.substr(1,c.length-2);var d,l=c.substr(-3).toUpperCase(),h=c.substr(-4).toUpperCase();if("#"==c[0])d=new r.FuncValue({funcid:"HTML",args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else if("XLS"==l||"CSV"==l||"TAB"==l)d=new r.FuncValue({funcid:l,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]});else{if("XLSX"!=h&&"JSON"!=h)throw new Error("Unknown string in FROM clause");d=new r.FuncValue({funcid:h,args:[new r.StringValue({value:c}),new r.Json({value:{headers:!0}})]})}this.$=d;break;case 197:"INFORMATION_SCHEMA"==s[o-2]?this.$=new r.FuncValue({funcid:s[o-2],args:[new r.StringValue({value:s[o]})]}):this.$=new r.Table({databaseid:s[o-2],tableid:s[o]});break;case 198:this.$=new r.Table({tableid:s[o]});break;case 199:case 200:this.$=s[o-1],s[o-1].push(s[o]);break;case 203:this.$=new r.Join(s[o-2]),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 204:this.$={table:s[o]};break;case 205:this.$={table:s[o-1],as:s[o]};break;case 206:this.$={table:s[o-2],as:s[o]};break;case 207:this.$={json:new r.Json({value:s[o-2],as:s[o]})};break;case 208:this.$={param:s[o-1],as:s[o]};break;case 209:this.$={param:s[o-2],as:s[o]};break;case 210:this.$={select:s[o-3],as:s[o]};break;case 211:this.$={select:s[o-4],as:s[o]};break;case 212:this.$={funcid:s[o],as:"default"};break;case 213:this.$={funcid:s[o-1],as:s[o]};break;case 214:this.$={funcid:s[o-2],as:s[o]};break;case 215:this.$={variable:s[o],as:"default"};break;case 216:this.$={variable:s[o-1],as:s[o]};break;case 217:this.$={variable:s[o-2],as:s[o]};break;case 218:this.$={joinmode:s[o]};break;case 219:this.$={joinmode:s[o-1],natural:!0};break;case 220:case 221:this.$="INNER";break;case 222:case 223:this.$="LEFT";break;case 224:case 225:this.$="RIGHT";break;case 226:case 227:this.$="OUTER";break;case 228:this.$="SEMI";break;case 229:this.$="ANTI";break;case 230:this.$="CROSS";break;case 231:this.$={on:s[o]};break;case 232:case 681:this.$={using:s[o]};break;case 235:this.$={where:new r.Expression({expression:s[o]})};break;case 237:this.$={group:s[o-1]},r.extend(this.$,s[o]);break;case 240:this.$=new r.GroupExpression({type:"GROUPING SETS",group:s[o-1]});break;case 241:this.$=new r.GroupExpression({type:"ROLLUP",group:s[o-1]});break;case 242:this.$=new r.GroupExpression({type:"CUBE",group:s[o-1]});break;case 245:this.$={having:s[o]};break;case 247:this.$={union:s[o]};break;case 248:this.$={unionall:s[o]};break;case 249:this.$={except:s[o]};break;case 250:this.$={intersect:s[o]};break;case 251:this.$={union:s[o],corresponding:!0};break;case 252:this.$={unionall:s[o],corresponding:!0};break;case 253:this.$={except:s[o],corresponding:!0};break;case 254:this.$={intersect:s[o],corresponding:!0};break;case 256:this.$={order:s[o]};break;case 258:this.$=s[o-2],s[o-2].push(s[o]);break;case 259:this.$=new r.Expression({expression:s[o],direction:"ASC"});break;case 260:this.$=new r.Expression({expression:s[o-1],direction:s[o].toUpperCase()});break;case 261:this.$=new r.Expression({expression:s[o-2],direction:"ASC",nocase:!0});break;case 262:this.$=new r.Expression({expression:s[o-3],direction:s[o].toUpperCase(),nocase:!0});break;case 264:this.$={limit:s[o-1]},r.extend(this.$,s[o]);break;case 265:this.$={limit:s[o-2],offset:s[o-6]};break;case 267:this.$={offset:s[o]};break;case 268:case 493:case 517:case 635:case 642:case 666:case 668:case 672:s[o-2].push(s[o]),this.$=s[o-2];break;case 270:case 272:case 274:s[o-2].as=s[o],this.$=s[o-2];break;case 271:case 273:case 275:s[o-1].as=s[o],this.$=s[o-1];break;case 277:this.$=new r.Column({columid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 278:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 279:this.$=new r.Column({columnid:s[o]});break;case 280:this.$=new r.Column({columnid:s[o],tableid:s[o-2],databaseid:s[o-4]});break;case 281:case 282:this.$=new r.Column({columnid:s[o],tableid:s[o-2]});break;case 283:this.$=new r.Column({columnid:s[o]});break;case 298:this.$=new r.Json({value:s[o]});break;case 300:case 301:case 302:r.queries||(r.queries=[]),r.queries.push(s[o-1]),s[o-1].queriesidx=r.queries.length,this.$=s[o-1];break;case 303:this.$=s[o];break;case 304:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 305:this.$=new r.JavaScript({value:s[o].substr(2,s[o].length-4)});break;case 306:this.$=new r.FuncValue({funcid:s[o],newid:!0});break;case 307:this.$=s[o],r.extend(this.$,{newid:!0});break;case 308:this.$=new r.Convert({expression:s[o-3]}),r.extend(this.$,s[o-1]);break;case 309:this.$=new r.Convert({expression:s[o-5],style:s[o-1]}),r.extend(this.$,s[o-3]);break;case 310:this.$=new r.Convert({expression:s[o-1]}),r.extend(this.$,s[o-3]);break;case 311:this.$=new r.Convert({expression:s[o-3],style:s[o-1]}),r.extend(this.$,s[o-5]);break;case 318:this.$=new r.FuncValue({funcid:"CURRENT_TIMESTAMP"});break;case 319:s[o-2].length>1&&("MAX"==s[o-4].toUpperCase()||"MIN"==s[o-4].toUpperCase())?this.$=new r.FuncValue({funcid:s[o-4],args:s[o-2]}):this.$=new r.AggrValue({aggregatorid:s[o-4].toUpperCase(),expression:s[o-2].pop(),over:s[o]});break;case 320:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],distinct:!0,over:s[o]});break;case 321:this.$=new r.AggrValue({aggregatorid:s[o-5].toUpperCase(),expression:s[o-2],over:s[o]});break;case 323:case 324:this.$=new r.Over,r.extend(this.$,s[o-1]);break;case 325:this.$=new r.Over,r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 326:this.$={partition:s[o]};break;case 327:this.$={order:s[o]};break;case 328:this.$="SUM";break;case 329:this.$="COUNT";break;case 330:this.$="MIN";break;case 331:case 529:this.$="MAX";break;case 332:this.$="AVG";break;case 333:this.$="FIRST";break;case 334:this.$="LAST";break;case 335:this.$="AGGR";break;case 336:this.$="ARRAY";break;case 337:var f=s[o-4],p=s[o-1];p.length>1&&("MIN"==f.toUpperCase()||"MAX"==f.toUpperCase())?this.$=new r.FuncValue({funcid:f,args:p}):T.aggr[s[o-4]]?this.$=new r.AggrValue({aggregatorid:"REDUCE",funcid:f,expression:p.pop(),distinct:"DISTINCT"==s[o-2]}):this.$=new r.FuncValue({funcid:f,args:p});break;case 338:this.$=new r.FuncValue({funcid:s[o-2]});break;case 339:this.$=new r.FuncValue({funcid:"IIF",args:s[o-1]});break;case 340:this.$=new r.FuncValue({funcid:"REPLACE",args:s[o-1]});break;case 341:this.$=new r.FuncValue({funcid:"DATEADD",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 342:this.$=new r.FuncValue({funcid:"DATEADD",args:[s[o-5],s[o-3],s[o-1]]});break;case 343:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[new r.StringValue({value:s[o-5]}),s[o-3],s[o-1]]});break;case 344:this.$=new r.FuncValue({funcid:"DATEDIFF",args:[s[o-5],s[o-3],s[o-1]] });break;case 345:this.$=new r.FuncValue({funcid:"INTERVAL",args:[s[o-1],new r.StringValue({value:s[o].toLowerCase()})]});break;case 347:s[o-2].push(s[o]),this.$=s[o-2];break;case 348:this.$=new r.NumValue({value:+s[o]});break;case 349:this.$=new r.LogicValue({value:!0});break;case 350:this.$=new r.LogicValue({value:!1});break;case 351:this.$=new r.StringValue({value:s[o].substr(1,s[o].length-2).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 352:this.$=new r.StringValue({value:s[o].substr(2,s[o].length-3).replace(/(\\\')/g,"'").replace(/(\'\')/g,"'")});break;case 353:this.$=new r.NullValue({value:void 0});break;case 354:this.$=new r.VarValue({variable:s[o]});break;case 355:r.exists||(r.exists=[]),this.$=new r.ExistsValue({value:s[o-1],existsidx:r.exists.length}),r.exists.push(s[o-1]);break;case 356:case 357:this.$=new r.ParamValue({param:s[o]});break;case 358:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++});break;case 359:"undefined"==typeof r.question&&(r.question=0),this.$=new r.ParamValue({param:r.question++,array:!0});break;case 360:this.$=new r.CaseValue({expression:s[o-3],whens:s[o-2],elses:s[o-1]});break;case 361:this.$=new r.CaseValue({whens:s[o-2],elses:s[o-1]});break;case 362:case 683:case 684:this.$=s[o-1],this.$.push(s[o]);break;case 364:this.$={when:s[o-2],then:s[o]};break;case 367:this.$=new r.Op({left:s[o-2],op:"REGEXP",right:s[o]});break;case 368:this.$=new r.Op({left:s[o-2],op:"GLOB",right:s[o]});break;case 369:this.$=new r.Op({left:s[o-2],op:"LIKE",right:s[o]});break;case 370:this.$=new r.Op({left:s[o-4],op:"LIKE",right:s[o-2],escape:s[o]});break;case 371:this.$=new r.Op({left:s[o-2],op:"NOT LIKE",right:s[o]});break;case 372:this.$=new r.Op({left:s[o-4],op:"NOT LIKE",right:s[o-2],escape:s[o]});break;case 373:this.$=new r.Op({left:s[o-2],op:"||",right:s[o]});break;case 374:this.$=new r.Op({left:s[o-2],op:"+",right:s[o]});break;case 375:this.$=new r.Op({left:s[o-2],op:"-",right:s[o]});break;case 376:this.$=new r.Op({left:s[o-2],op:"*",right:s[o]});break;case 377:this.$=new r.Op({left:s[o-2],op:"/",right:s[o]});break;case 378:this.$=new r.Op({left:s[o-2],op:"%",right:s[o]});break;case 379:this.$=new r.Op({left:s[o-2],op:"^",right:s[o]});break;case 380:this.$=new r.Op({left:s[o-2],op:">>",right:s[o]});break;case 381:this.$=new r.Op({left:s[o-2],op:"<<",right:s[o]});break;case 382:this.$=new r.Op({left:s[o-2],op:"&",right:s[o]});break;case 383:this.$=new r.Op({left:s[o-2],op:"|",right:s[o]});break;case 384:case 385:case 387:this.$=new r.Op({left:s[o-2],op:"->",right:s[o]});break;case 386:this.$=new r.Op({left:s[o-4],op:"->",right:s[o-1]});break;case 388:case 389:case 391:this.$=new r.Op({left:s[o-2],op:"!",right:s[o]});break;case 390:this.$=new r.Op({left:s[o-4],op:"!",right:s[o-1]});break;case 392:this.$=new r.Op({left:s[o-2],op:">",right:s[o]});break;case 393:this.$=new r.Op({left:s[o-2],op:">=",right:s[o]});break;case 394:this.$=new r.Op({left:s[o-2],op:"<",right:s[o]});break;case 395:this.$=new r.Op({left:s[o-2],op:"<=",right:s[o]});break;case 396:this.$=new r.Op({left:s[o-2],op:"=",right:s[o]});break;case 397:this.$=new r.Op({left:s[o-2],op:"==",right:s[o]});break;case 398:this.$=new r.Op({left:s[o-2],op:"===",right:s[o]});break;case 399:this.$=new r.Op({left:s[o-2],op:"!=",right:s[o]});break;case 400:this.$=new r.Op({left:s[o-2],op:"!==",right:s[o]});break;case 401:this.$=new r.Op({left:s[o-2],op:"!===",right:s[o]});break;case 402:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 403:this.$=new r.Op({left:s[o-5],op:s[o-4],allsome:s[o-3],right:s[o-1]});break;case 404:"BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"BETWEEN",right1:s[o-2].right,right2:s[o]}):"NOT BETWEEN1"==s[o-2].op?"AND"==s[o-2].left.op?this.$=new r.Op({left:s[o-2].left.left,op:"AND",right:new r.Op({left:s[o-2].left.right,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]})}):this.$=new r.Op({left:s[o-2].left,op:"NOT BETWEEN",right1:s[o-2].right,right2:s[o]}):this.$=new r.Op({left:s[o-2],op:"AND",right:s[o]});break;case 405:this.$=new r.Op({left:s[o-2],op:"OR",right:s[o]});break;case 406:this.$=new r.UniOp({op:"NOT",right:s[o]});break;case 407:this.$=new r.UniOp({op:"-",right:s[o]});break;case 408:this.$=new r.UniOp({op:"+",right:s[o]});break;case 409:this.$=new r.UniOp({op:"~",right:s[o]});break;case 410:this.$=new r.UniOp({op:"#",right:s[o]});break;case 411:this.$=new r.UniOp({right:s[o-1]});break;case 412:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 413:r.queries||(r.queries=[]),this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1],queriesidx:r.queries.length}),r.queries.push(s[o-1]);break;case 414:this.$=new r.Op({left:s[o-4],op:"IN",right:s[o-1]});break;case 415:this.$=new r.Op({left:s[o-5],op:"NOT IN",right:s[o-1]});break;case 416:this.$=new r.Op({left:s[o-3],op:"IN",right:[]});break;case 417:this.$=new r.Op({left:s[o-4],op:"NOT IN",right:[]});break;case 418:case 420:this.$=new r.Op({left:s[o-2],op:"IN",right:s[o]});break;case 419:case 421:this.$=new r.Op({left:s[o-3],op:"NOT IN",right:s[o]});break;case 422:this.$=new r.Op({left:s[o-2],op:"BETWEEN1",right:s[o]});break;case 423:this.$=new r.Op({left:s[o-2],op:"NOT BETWEEN1",right:s[o]});break;case 424:this.$=new r.Op({op:"IS",left:s[o-2],right:s[o]});break;case 425:this.$=new r.Op({op:"IS",left:s[o-2],right:new r.UniOp({op:"NOT",right:new r.NullValue({value:void 0})})});break;case 426:this.$=new r.Convert({expression:s[o-2]}),r.extend(this.$,s[o]);break;case 427:case 428:this.$=s[o];break;case 429:this.$=s[o-1];break;case 436:this.$="ALL";break;case 437:this.$="SOME";break;case 438:this.$="ANY";break;case 439:this.$=new r.Update({table:s[o-4],columns:s[o-2],where:s[o]});break;case 440:this.$=new r.Update({table:s[o-2],columns:s[o]});break;case 443:this.$=new r.SetColumn({column:s[o-2],expression:s[o]});break;case 444:this.$=new r.SetColumn({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 445:this.$=new r.Delete({table:s[o-2],where:s[o]});break;case 446:this.$=new r.Delete({table:s[o]});break;case 447:this.$=new r.Insert({into:s[o-2],values:s[o]});break;case 448:case 449:this.$=new r.Insert({into:s[o-2],values:s[o],orreplace:!0});break;case 450:this.$=new r.Insert({into:s[o-2],"default":!0});break;case 451:this.$=new r.Insert({into:s[o-5],columns:s[o-3],values:s[o]});break;case 452:this.$=new r.Insert({into:s[o-1],select:s[o]});break;case 453:this.$=new r.Insert({into:s[o-1],select:s[o],orreplace:!0});break;case 454:this.$=new r.Insert({into:s[o-4],columns:s[o-2],select:s[o]});break;case 457:this.$=[s[o-1]];break;case 460:this.$=s[o-4],s[o-4].push(s[o-1]);break;case 461:case 462:case 464:case 472:this.$=s[o-2],s[o-2].push(s[o]);break;case 473:this.$=new r.CreateTable({table:s[o-4]}),r.extend(this.$,s[o-7]),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-5]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o]);break;case 474:this.$=new r.CreateTable({table:s[o]}),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,s[o-1]);break;case 476:this.$={"class":!0};break;case 486:this.$={temporary:!0};break;case 488:this.$={ifnotexists:!0};break;case 489:this.$={columns:s[o-2],constraints:s[o]};break;case 490:this.$={columns:s[o]};break;case 491:this.$={as:s[o]};break;case 492:case 516:this.$=[s[o]];break;case 494:case 495:case 496:case 497:case 498:s[o].constraintid=s[o-1],this.$=s[o];break;case 501:this.$={type:"CHECK",expression:s[o-1]};break;case 502:this.$={type:"PRIMARY KEY",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 503:this.$={type:"FOREIGN KEY",columns:s[o-5],fktable:s[o-2],fkcolumns:s[o-1]};break;case 509:this.$={type:"UNIQUE",columns:s[o-1],clustered:(s[o-3]+"").toUpperCase()};break;case 518:this.$=new r.ColumnDef({columnid:s[o-2]}),r.extend(this.$,s[o-1]),r.extend(this.$,s[o]);break;case 519:this.$=new r.ColumnDef({columnid:s[o-1]}),r.extend(this.$,s[o]);break;case 520:this.$=new r.ColumnDef({columnid:s[o],dbtypeid:""});break;case 521:this.$={dbtypeid:s[o-5],dbsize:s[o-3],dbprecision:+s[o-1]};break;case 522:this.$={dbtypeid:s[o-6]+(s[o-5]?" "+s[o-5]:""),dbsize:s[o-3],dbprecision:+s[o-1]};break;case 523:this.$={dbtypeid:s[o-3],dbsize:s[o-1]};break;case 524:this.$={dbtypeid:s[o-4]+(s[o-3]?" "+s[o-3]:""),dbsize:s[o-1]};break;case 525:this.$={dbtypeid:s[o]};break;case 526:this.$={dbtypeid:s[o-1]+(s[o]?" "+s[o]:"")};break;case 527:this.$={dbtypeid:"ENUM",enumvalues:s[o-1]};break;case 528:case 734:this.$=+s[o];break;case 530:this.$=void 0;break;case 532:r.extend(s[o-1],s[o]),this.$=s[o-1];break;case 535:this.$={primarykey:!0};break;case 536:case 537:this.$={foreignkey:{table:s[o-1],columnid:s[o]}};break;case 538:this.$={identity:{value:s[o-3],step:s[o-1]}};break;case 539:this.$={identity:{value:1,step:1}};break;case 540:case 542:this.$={"default":s[o]};break;case 541:this.$={"default":s[o-1]};break;case 543:this.$={"null":!0};break;case 544:this.$={notnull:!0};break;case 545:this.$={check:s[o]};break;case 546:this.$={unique:!0};break;case 547:this.$={onupdate:s[o]};break;case 548:this.$={onupdate:s[o-1]};break;case 549:this.$=new r.DropTable({tables:s[o],type:s[o-2]}),r.extend(this.$,s[o-1]);break;case 553:this.$={ifexists:!0};break;case 554:this.$=new r.AlterTable({table:s[o-3],renameto:s[o]});break;case 555:this.$=new r.AlterTable({table:s[o-3],addcolumn:s[o]});break;case 556:this.$=new r.AlterTable({table:s[o-3],modifycolumn:s[o]});break;case 557:this.$=new r.AlterTable({table:s[o-5],renamecolumn:s[o-2],to:s[o]});break;case 558:this.$=new r.AlterTable({table:s[o-3],dropcolumn:s[o]});break;case 559:this.$=new r.AlterTable({table:s[o-2],renameto:s[o]});break;case 560:this.$=new r.AttachDatabase({databaseid:s[o],engineid:s[o-2].toUpperCase()});break;case 561:this.$=new r.AttachDatabase({databaseid:s[o-3],engineid:s[o-5].toUpperCase(),args:s[o-1]});break;case 562:this.$=new r.AttachDatabase({databaseid:s[o-2],engineid:s[o-4].toUpperCase(),as:s[o]});break;case 563:this.$=new r.AttachDatabase({databaseid:s[o-5],engineid:s[o-7].toUpperCase(),as:s[o],args:s[o-3]});break;case 564:this.$=new r.DetachDatabase({databaseid:s[o]});break;case 565:this.$=new r.CreateDatabase({databaseid:s[o]}),r.extend(this.$,s[o]);break;case 566:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),databaseid:s[o-1],as:s[o]}),r.extend(this.$,s[o-2]);break;case 567:this.$=new r.CreateDatabase({engineid:s[o-7].toUpperCase(),databaseid:s[o-4],args:s[o-2],as:s[o]}),r.extend(this.$,s[o-5]);break;case 568:this.$=new r.CreateDatabase({engineid:s[o-4].toUpperCase(),as:s[o],args:[s[o-1]]}),r.extend(this.$,s[o-2]);break;case 569:this.$=void 0;break;case 571:case 572:this.$=new r.UseDatabase({databaseid:s[o]});break;case 573:this.$=new r.DropDatabase({databaseid:s[o]}),r.extend(this.$,s[o-1]);break;case 574:case 575:this.$=new r.DropDatabase({databaseid:s[o],engineid:s[o-3].toUpperCase()}),r.extend(this.$,s[o-1]);break;case 576:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1]});break;case 577:this.$=new r.CreateIndex({indexid:s[o-5],table:s[o-3],columns:s[o-1],unique:!0});break;case 578:this.$=new r.DropIndex({indexid:s[o]});break;case 579:this.$=new r.ShowDatabases;break;case 580:this.$=new r.ShowDatabases({like:s[o]});break;case 581:this.$=new r.ShowDatabases({engineid:s[o-1].toUpperCase()});break;case 582:this.$=new r.ShowDatabases({engineid:s[o-3].toUpperCase(),like:s[o]});break;case 583:this.$=new r.ShowTables;break;case 584:this.$=new r.ShowTables({like:s[o]});break;case 585:this.$=new r.ShowTables({databaseid:s[o]});break;case 586:this.$=new r.ShowTables({like:s[o],databaseid:s[o-2]});break;case 587:this.$=new r.ShowColumns({table:s[o]});break;case 588:this.$=new r.ShowColumns({table:s[o-2],databaseid:s[o]});break;case 589:this.$=new r.ShowIndex({table:s[o]});break;case 590:this.$=new r.ShowIndex({table:s[o-2],databaseid:s[o]});break;case 591:this.$=new r.ShowCreateTable({table:s[o]});break;case 592:this.$=new r.ShowCreateTable({table:s[o-2],databaseid:s[o]});break;case 593:this.$=new r.CreateTable({table:s[o-6],view:!0,select:s[o-1],viewcolumns:s[o-4]}),r.extend(this.$,s[o-9]),r.extend(this.$,s[o-7]);break;case 594:this.$=new r.CreateTable({table:s[o-3],view:!0,select:s[o-1]}),r.extend(this.$,s[o-6]),r.extend(this.$,s[o-4]);break;case 598:this.$=new r.DropTable({tables:s[o],view:!0}),r.extend(this.$,s[o-1]);break;case 599:this.$=new r.Help({subject:s[o].value.toUpperCase()});break;case 600:this.$=new r.Help;break;case 601:case 744:this.$=new r.ExpressionStatement({expression:s[o]});break;case 602:this.$=new r.Source({url:s[o].value});break;case 603:this.$=new r.Assert({value:s[o]});break;case 604:this.$=new r.Assert({value:s[o].value});break;case 605:this.$=new r.Assert({value:s[o],message:s[o-2]});break;case 607:case 618:case 620:this.$=s[o].value;break;case 608:case 616:this.$=+s[o].value;break;case 609:this.$=!!s[o].value;break;case 617:this.$=""+s[o].value;break;case 623:this.$=s[o-1];break;case 626:this.$={};break;case 629:this.$=[];break;case 630:r.extend(s[o-2],s[o]),this.$=s[o-2];break;case 632:this.$={},this.$[s[o-2].substr(1,s[o-2].length-2)]=s[o];break;case 633:case 634:this.$={},this.$[s[o-2]]=s[o];break;case 637:this.$=new r.SetVariable({variable:s[o-1].toLowerCase(),value:s[o]});break;case 638:this.$=new r.SetVariable({variable:s[o-2],expression:s[o],method:s[o-3]});break;case 639:this.$=new r.SetVariable({variable:s[o-3],props:s[o-2],expression:s[o],method:s[o-4]});break;case 640:this.$="@";break;case 641:this.$="$";break;case 647:this.$=!0;break;case 648:this.$=!1;break;case 649:this.$=new r.CommitTransaction;break;case 650:this.$=new r.RollbackTransaction;break;case 651:this.$=new r.BeginTransaction;break;case 652:this.$=new r.If({expression:s[o-2],thenstat:s[o-1],elsestat:s[o]}),s[o-1].exists&&(this.$.exists=s[o-1].exists),s[o-1].queries&&(this.$.queries=s[o-1].queries);break;case 653:this.$=new r.If({expression:s[o-1],thenstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 654:this.$=s[o];break;case 655:this.$=new r.While({expression:s[o-1],loopstat:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 656:this.$=new r.Continue;break;case 657:this.$=new r.Break;break;case 658:this.$=new r.BeginEnd({statements:s[o-1]});break;case 659:this.$=new r.Print({exprs:s[o]});break;case 660:this.$=new r.Print({select:s[o]});break;case 661:this.$=new r.Require({paths:s[o]});break;case 662:this.$=new r.Require({plugins:s[o]});break;case 663:case 664:this.$=s[o].toUpperCase();break;case 665:this.$=new r.Echo({expr:s[o]});break;case 670:this.$=new r.Declare({declares:s[o]});break;case 673:this.$={variable:s[o-1]},r.extend(this.$,s[o]);break;case 674:this.$={variable:s[o-2]},r.extend(this.$,s[o]);break;case 675:this.$={variable:s[o-3],expression:s[o]},r.extend(this.$,s[o-2]);break;case 676:this.$={variable:s[o-4],expression:s[o]},r.extend(this.$,s[o-2]);break;case 677:this.$=new r.TruncateTable({table:s[o]});break;case 678:this.$=new r.Merge,r.extend(this.$,s[o-4]),r.extend(this.$,s[o-3]),r.extend(this.$,s[o-2]),r.extend(this.$,{matches:s[o-1]}),r.extend(this.$,s[o]);break;case 679:case 680:this.$={into:s[o]};break;case 682:this.$={on:s[o]};break;case 687:this.$={matched:!0,action:s[o]};break;case 688:this.$={matched:!0,expr:s[o-2],action:s[o]};break;case 689:this.$={"delete":!0};break;case 690:this.$={update:s[o]};break;case 691:case 692:this.$={matched:!1,bytarget:!0,action:s[o]};break;case 693:case 694:this.$={matched:!1,bytarget:!0,expr:s[o-2],action:s[o]};break;case 695:this.$={matched:!1,bysource:!0,action:s[o]};break;case 696:this.$={matched:!1,bysource:!0,expr:s[o-2],action:s[o]};break;case 697:this.$={insert:!0,values:s[o]};break;case 698:this.$={insert:!0,values:s[o],columns:s[o-3]};break;case 699:this.$={insert:!0,defaultvalues:!0};break;case 700:this.$={insert:!0,defaultvalues:!0,columns:s[o-3]};break;case 702:this.$={output:{columns:s[o]}};break;case 703:this.$={output:{columns:s[o-3],intovar:s[o],method:s[o-1]}};break;case 704:this.$={output:{columns:s[o-2],intotable:s[o]}};break;case 705:this.$={output:{columns:s[o-5],intotable:s[o-3],intocolumns:s[o-1]}};break;case 706:this.$=new r.CreateVertex({"class":s[o-3],sharp:s[o-2],name:s[o-1]}),r.extend(this.$,s[o]);break;case 709:this.$={sets:s[o]};break;case 710:this.$={content:s[o]};break;case 711:this.$={select:s[o]};break;case 712:this.$=new r.CreateEdge({from:s[o-3],to:s[o-1],name:s[o-5]}),r.extend(this.$,s[o]);break;case 713:this.$=new r.CreateGraph({graph:s[o]});break;case 714:this.$=new r.CreateGraph({from:s[o]});break;case 717:this.$=s[o-2],s[o-1]&&(this.$.json=new r.Json({value:s[o-1]})),s[o]&&(this.$.as=s[o]);break;case 718:this.$={source:s[o-6],target:s[o]},s[o-3]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-2]&&(this.$.as=s[o-2]),r.extend(this.$,s[o-4]);break;case 719:this.$={source:s[o-5],target:s[o]},s[o-2]&&(this.$.json=new r.Json({value:s[o-3]})),s[o-1]&&(this.$.as=s[o-2]);break;case 720:this.$={source:s[o-2],target:s[o]};break;case 724:this.$={vars:s[o],method:s[o-1]};break;case 727:case 728:var b=s[o-1];this.$={prop:s[o-3],sharp:s[o-2],name:"undefined"==typeof b?void 0:b.substr(1,b.length-2),"class":s[o]};break;case 729:var g=s[o-1];this.$={sharp:s[o-2],name:"undefined"==typeof g?void 0:g.substr(1,g.length-2),"class":s[o]};break;case 730:var m=s[o-1];this.$={name:"undefined"==typeof m?void 0:m.substr(1,m.length-2),"class":s[o]};break;case 731:this.$={"class":s[o]};break;case 737:this.$=new r.AddRule({left:s[o-2],right:s[o]});break;case 738:this.$=new r.AddRule({right:s[o]});break;case 741:this.$=new r.Term({termid:s[o]});break;case 742:this.$=new r.Term({termid:s[o-3],args:s[o-1]});break;case 745:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-5],action:s[o-4],table:s[o-2],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 746:this.$=new r.CreateTrigger({trigger:s[o-5],when:s[o-4],action:s[o-3],table:s[o-1],funcid:s[o]});break;case 747:this.$=new r.CreateTrigger({trigger:s[o-6],when:s[o-4],action:s[o-3],table:s[o-5],statement:s[o]}),s[o].exists&&(this.$.exists=s[o].exists),s[o].queries&&(this.$.queries=s[o].queries);break;case 748:case 749:case 751:this.$="AFTER";break;case 750:this.$="BEFORE";break;case 752:this.$="INSTEADOF";break;case 753:this.$="INSERT";break;case 754:this.$="DELETE";break;case 755:this.$="UPDATE";break;case 756:this.$=new r.DropTrigger({trigger:s[o]});break;case 757:this.$=new r.Reindex({indexid:s[o]});break;case 764:case 784:case 786:case 788:case 792:case 794:case 796:case 798:case 800:case 802:this.$=[];break;case 765:case 779:case 781:case 785:case 787:case 789:case 793:case 795:case 797:case 799:case 801:case 803:s[o-1].push(s[o]);break;case 778:case 780:this.$=[s[o]]}},table:[t([8,509,510],n,{6:1,7:2,10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{1:[3]},{8:[1,104],9:105,509:W,510:X},t(Y,[2,5]),t(Y,[2,6]),t(K,[2,9]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:108,4:r,5:a,13:[1,109],51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,11]),t(K,[2,12]),t(K,[2,13]),t(K,[2,14]),t(K,[2,15]),t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),t(K,[2,19]),t(K,[2,20]),t(K,[2,21]),t(K,[2,22]),t(K,[2,23]),t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),t(K,[2,33]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),t(K,[2,38]),t(K,[2,39]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,59]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),{343:[1,110]},{3:111,4:r,5:a},{3:113,4:r,5:a,153:Q,197:112,283:z,284:Z,285:ee,286:te},t(ne,[2,485],{3:120,338:124,4:r,5:a,131:re,132:ae,184:[1,122],190:[1,121],347:[1,128],394:[1,119],463:[1,123],500:[1,127]}),{142:se,440:129,441:130},{180:[1,132]},{394:[1,133]},{3:135,4:r,5:a,127:[1,141],190:[1,136],343:[1,140],386:137,394:[1,134],399:[1,138],500:[1,139]},{3:163,4:r,5:a,55:160,74:ie,91:142,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,_e,{331:198,168:[1,199],195:Be}),t(Pe,_e,{331:201,195:Be}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,195:[1,204],196:207,197:209,198:208,199:211,206:203,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je,444:202},{3:215,4:r,5:a},{343:[1,216]},t(We,[2,760],{77:217,103:218,104:[1,219]}),t(Xe,[2,764],{87:220}),{3:224,4:r,5:a,187:[1,222],190:[1,225],337:[1,221],343:[1,226],394:[1,223]},{343:[1,227]},{3:230,4:r,5:a,70:228,72:229},t([297,509,510],n,{10:3,11:4,15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,7:232,4:r,5:a,12:s,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,426:[1,231],427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{426:[1,233]},{426:[1,234]},{3:236,4:r,5:a,394:[1,235]},{3:238,4:r,5:a,196:237},t(K,[2,600],{110:239,129:ue,289:De}),t(Ye,[2,305]),{110:240,129:ue,289:De},{3:113,4:r,5:a,110:246,128:oe,129:[1,243],140:le,141:241,142:Ke,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:242,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:252,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,656]),t(K,[2,657]),{3:163,4:r,5:a,38:254,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:253,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:261,4:r,5:a,110:258,129:ue,289:De,435:256,436:257,437:259,438:ze},{3:262,4:r,5:a,140:Ze,142:et,421:263},{3:163,4:r,5:a,55:160,74:ie,91:266,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{496:[1,267]},{3:100,4:r,5:a,495:269,497:268},{3:113,4:r,5:a,153:Q,197:270,283:z,284:Z,285:ee,286:te},{3:163,4:r,5:a,55:160,74:ie,91:271,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(tt,nt,{183:275,161:[1,274],182:[1,272],184:[1,273],192:rt}),t(at,[2,741],{74:[1,277]}),t(st,[2,148],{146:[1,278],147:[1,279],187:[1,280],188:[1,281],189:[1,282],190:[1,283],191:[1,284]}),t(it,[2,1]),t(it,[2,2]),{1:[2,3]},t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:285,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(ot,[2,758]),t(ot,[2,759]),t(Y,[2,7]),{14:[1,286]},{3:238,4:r,5:a,196:287},{394:[1,288]},t(K,[2,744]),{74:ut},{74:[1,290]},{74:ct},{74:[1,292]},{74:[1,293]},{3:163,4:r,5:a,55:160,74:ie,91:294,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Pe,lt,{340:295,153:ht}),{394:[1,297]},{3:298,4:r,5:a},{190:[1,299]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,180:[1,301],421:312,464:300,465:302,466:303,469:304,473:309,484:306,488:308},{127:[1,316],339:313,343:[1,315],399:[1,314]},{110:318,129:ue,180:[2,858],289:De,462:317},t(bt,[2,852],{456:319,3:320,4:r,5:a}),{3:321,4:r,5:a},t(ne,[2,486]),t(K,[2,670],{71:[1,322]}),t(gt,[2,671]),{3:323,4:r,5:a},{3:238,4:r,5:a,196:324},{3:325,4:r,5:a},t(Pe,mt,{387:326,153:vt}),{394:[1,328]},{3:329,4:r,5:a},t(Pe,mt,{387:330,153:vt}),t(Pe,mt,{387:331,153:vt}),{3:332,4:r,5:a},t(Et,[2,846]),t(Et,[2,847]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:333,111:349,317:361,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ye,[2,284]),t(Ye,[2,285]),t(Ye,[2,286]),t(Ye,[2,287]),t(Ye,[2,288]),t(Ye,[2,289]),t(Ye,[2,290]),t(Ye,[2,291]),t(Ye,[2,292]),t(Ye,[2,293]),t(Ye,[2,294]),t(Ye,[2,295]),t(Ye,[2,296]),t(Ye,[2,297]),t(Ye,[2,298]),t(Ye,[2,299]),{3:163,4:r,5:a,24:378,25:377,34:373,38:372,55:160,74:ie,76:74,86:u,91:375,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,260:374,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:[1,376],284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,330:m,337:[1,379],409:185,410:Ve,414:je},t(Ye,[2,303]),t(Ye,[2,304]),{74:[1,380]},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:[1,381]}),{3:163,4:r,5:a,55:160,74:ie,91:382,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:383,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:384,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:385,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185, 410:Ve,414:je},t(Ye,[2,279]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,246,261,262,263,264,266,273,274,275,276,277,278,279,280,281,283,284,285,286,287,288,289,290,291,293,294,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,319,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,404,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510,511,512],[2,348]),t(rn,[2,349]),t(rn,[2,350]),t(rn,an),t(rn,[2,352]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,353]),{3:388,4:r,5:a,128:[1,389],292:387},{3:390,4:r,5:a},t(rn,[2,358]),t(rn,[2,359]),{3:391,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{74:[1,398]},{3:163,4:r,5:a,55:160,74:ie,91:399,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,295:400,298:401,299:on,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,403]},{74:[1,404]},t(un,[2,611]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,411:405,412:408,413:410,414:je,417:406,418:[1,407]},{3:420,4:r,5:a,153:Q,197:421,283:z,284:Z,285:ee,286:te},{74:[2,328]},{74:[2,329]},{74:[2,330]},{74:[2,331]},{74:[2,332]},{74:[2,333]},{74:[2,334]},{74:[2,335]},{74:[2,336]},{3:427,4:r,5:a,128:ln,129:hn,415:422,416:[1,423],419:424},{3:238,4:r,5:a,196:428},{283:[1,429]},t(Pe,[2,456]),{3:238,4:r,5:a,196:430},{228:[1,432],445:431},{228:[2,679]},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:433,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{38:434,76:74,86:u,181:99,186:d},t(dn,[2,808],{207:435,73:[1,436]}),t(fn,[2,181],{3:437,4:r,5:a,73:[1,438],151:[1,439]}),t(fn,[2,185],{3:440,4:r,5:a,73:[1,441]}),t(fn,[2,186],{3:442,4:r,5:a,73:[1,443]}),t(fn,[2,189]),t(fn,[2,190],{3:444,4:r,5:a,73:[1,445]}),t(fn,[2,193],{3:446,4:r,5:a,73:[1,447]}),t([4,5,8,69,71,73,75,90,95,115,125,151,159,165,166,180,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],pn,{74:ut,113:bn}),t([4,5,8,69,71,73,75,90,95,115,125,159,165,166,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,297,301,509,510],[2,196]),t(K,[2,757]),{3:238,4:r,5:a,196:449},t(gn,mn,{78:450,195:vn}),t(We,[2,761]),t(En,[2,774],{105:452,187:[1,453]}),t([8,75,180,297,301,509,510],mn,{409:185,78:454,114:455,3:456,111:459,141:481,155:491,157:492,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,195:vn,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),{343:[1,505]},{180:[1,506]},t(K,[2,579],{109:[1,507]}),{394:[1,508]},{180:[1,509]},t(K,[2,583],{109:[1,510],180:[1,511]}),{3:238,4:r,5:a,196:512},{38:513,71:[1,514],76:74,86:u,181:99,186:d},t(lr,[2,66]),{73:[1,515]},t(K,[2,651]),{9:105,297:[1,516],509:W,510:X},t(K,[2,649]),t(K,[2,650]),{3:517,4:r,5:a},t(K,[2,572]),{143:[1,518]},t([4,5,8,51,69,71,73,74,75,86,92,121,125,143,145,146,151,153,180,184,186,227,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],pn,{113:bn}),t(K,[2,599]),t(K,[2,602]),t(K,[2,603]),t(K,[2,604]),t(K,an,{71:[1,519]}),{74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},t(hr,[2,312]),t(hr,[2,313]),t(hr,[2,314]),t(hr,[2,315]),t(hr,[2,316]),t(hr,[2,317]),t(hr,[2,318]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,111:349,317:361,10:520,4:r,5:a,51:i,69:o,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:At,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:l,151:It,153:h,167:Lt,168:qt,176:Ut,177:Ft,186:d,262:f,283:p,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,659],{71:dr}),t(K,[2,660]),t(fr,[2,346],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,661],{71:[1,523]}),t(K,[2,662],{71:[1,524]}),t(gt,[2,667]),t(gt,[2,669]),t(gt,[2,663]),t(gt,[2,664]),{227:[1,526],420:525,424:[1,527]},{3:528,4:r,5:a},t(Pe,[2,640]),t(Pe,[2,641]),t(K,[2,601],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:100,4:r,5:a,495:269,497:529},t(K,[2,738],{71:br}),t(fr,[2,740]),t(K,[2,743]),t(K,[2,665],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gr,nt,{183:531,192:rt}),t(gr,nt,{183:532,192:rt}),t(gr,nt,{183:533,192:rt}),t(mr,[2,804],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,185:534,171:535,250:536,91:537,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{74:[1,539],128:oe,193:538},{3:100,4:r,5:a,495:269,497:540},t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(st,[2,153]),t(st,[2,154]),t(st,[2,155]),t(Y,[2,4]),t(Y,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:541,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),{385:[1,545],390:[1,542],391:[1,543],392:[1,544]},{3:546,4:r,5:a},t(gr,[2,828],{282:547,514:549,75:[1,548],161:[1,551],182:[1,550]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:552,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:553,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:554,4:r,5:a,129:[1,555]},{3:556,4:r,5:a,129:[1,557]},{3:558,4:r,5:a,96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:559,4:r,5:a},{151:[1,560]},t(vr,lt,{340:561,153:ht}),{227:[1,562]},{3:563,4:r,5:a},t(K,[2,713],{71:Er}),{3:163,4:r,5:a,55:160,74:ie,91:565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(fr,[2,716]),t(yr,[2,860],{409:185,467:566,141:567,136:Sr,138:Sr,142:Ke,410:Ve,414:je}),{136:[1,568],138:[1,569]},t(Tr,wr,{481:571,484:572,74:[1,570],134:ft}),t(xr,[2,884],{485:573,129:[1,574]}),t(Ar,[2,888],{487:575,488:576,149:pt}),t(Ar,[2,731]),t(Cr,[2,723]),{3:577,4:r,5:a,128:[1,578]},{3:579,4:r,5:a},{3:580,4:r,5:a},t(Pe,lt,{340:581,153:ht}),t(Pe,lt,{340:582,153:ht}),t(Et,[2,475]),t(Et,[2,476]),{180:[1,583]},{180:[2,859]},t(kr,[2,854],{457:584,460:585,134:[1,586]}),t(bt,[2,853]),t(Or,Rr,{501:587,92:Nr,227:[1,588],505:$r,506:Dr,507:Ir}),{142:se,441:593},{4:Lr,73:[1,595],265:594,378:qr},t(K,[2,446],{125:[1,598]}),t(K,[2,564]),{3:599,4:r,5:a},{291:[1,600]},t(vr,mt,{387:601,153:vt}),t(K,[2,578]),{3:238,4:r,5:a,196:603,388:602},{3:238,4:r,5:a,196:603,388:604},t(K,[2,756]),t(Y,[2,653],{429:605,301:[1,606]}),{3:163,4:r,5:a,55:160,74:ie,91:607,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:608,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:609,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:610,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:611,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:612,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:613,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:614,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:615,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:616,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:617,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:618,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:619,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:620,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:621,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:622,4:r,5:a,74:[1,624],128:oe,153:Q,193:623,197:625,283:z,284:Z,285:ee,286:te},{3:626,4:r,5:a,74:[1,628],128:oe,153:Q,193:627,197:629,283:z,284:Z,285:ee,286:te},t(Ur,[2,430],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:630,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,431],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:631,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,432],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:632,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,[2,433],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:633,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:634,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:635,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:636,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,[2,435],{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:637,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{3:163,4:r,5:a,55:160,74:ie,91:638,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:639,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{161:[1,641],163:[1,643],318:640,325:[1,642]},{3:163,4:r,5:a,55:160,74:ie,91:644,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:645,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:419,4:r,5:a,74:[1,646],108:649,142:Mr,153:Q,197:650,199:648,283:z,284:Z,285:ee,286:te,320:647},{96:[1,652],290:[1,653]},{3:163,4:r,5:a,55:160,74:ie,91:654,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:655,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:656,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:657,378:qr},t(Vr,[2,84]),t(Vr,[2,85]),{75:[1,658]},{75:[1,659]},{75:[1,660]},{75:[1,661],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Pe,_e,{331:201,74:ct,195:Be}),{75:[2,824]},{75:[2,825]},{131:re,132:ae},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:662,149:de,151:fe,153:Q,155:162,161:[1,664],176:pe,177:be,178:ge,182:[1,663],193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:665,4:r,5:a,146:jr,177:[1,667]},t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,406],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(Pr,[2,407],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,408],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(_r,[2,409],{111:349,317:361,306:Pt}),t(_r,[2,410],{111:349,317:361,306:Pt}),t(rn,[2,356]),t(rn,[2,830]),t(rn,[2,831]),t(rn,[2,357]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,228,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,354]),{3:163,4:r,5:a,55:160,74:ie,91:668,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,607]),t(un,[2,608]),t(un,[2,609]),t(un,[2,610]),t(un,[2,612]),{38:669,76:74,86:u,181:99,186:d},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,295:670,298:401,299:on,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{296:671,297:Br,298:672,299:on,301:Gr},t(Jr,[2,363]),{3:163,4:r,5:a,55:160,74:ie,91:674,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:675,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:676,378:qr},t(un,[2,613]),{71:[1,678],418:[1,677]},t(un,[2,629]),t(Hr,[2,636]),t(Wr,[2,614]),t(Wr,[2,615]),t(Wr,[2,616]),t(Wr,[2,617]),t(Wr,[2,618]),t(Wr,[2,619]),t(Wr,[2,620]),t(Wr,[2,621]),t(Wr,[2,622]),{3:163,4:r,5:a,55:160,74:ie,91:679,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,416,418,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],nn,{74:ut,113:Xr}),t(Yr,[2,306],{74:ut}),t(Ye,[2,307]),{71:[1,682],416:[1,681]},t(un,[2,626]),t(Kr,[2,631]),{149:[1,683]},{149:[1,684]},{149:[1,685]},{38:689,74:[1,688],76:74,86:u,146:[1,686],181:99,186:d,333:[1,687]},t(Pe,_e,{331:690,195:Be}),{146:[1,691]},{227:[1,693],446:692},{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:694,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{228:[2,680]},{75:[1,695]},t(fn,[2,810],{208:696,3:697,4:r,5:a}),t(dn,[2,809]),t(fn,[2,179]),{3:698,4:r,5:a},{209:[1,699]},t(fn,[2,183]),{3:700,4:r,5:a},t(fn,[2,187]),{3:701,4:r,5:a},t(fn,[2,191]),{3:702,4:r,5:a},t(fn,[2,194]),{3:703,4:r,5:a},{3:704,4:r,5:a},{145:[1,705]},t(Qr,[2,168],{79:706,180:[1,707]}),{3:213,4:r,5:a,129:[1,712],140:le,142:[1,713],149:de,153:Q,178:ge,196:708,197:709,198:710,199:711,283:z,284:Z,285:ee,286:te,293:qe},{3:718,4:r,5:a,106:714,107:715,108:716,109:zr},t(En,[2,775]),t(Zr,[2,766],{88:719,179:720,180:[1,721]}),t(Xe,[2,765],{150:722,176:ea,177:ta,178:na}),t([4,5,8,69,71,73,75,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,86],{ 74:[1,726]}),{116:[1,727]},t(ra,[2,89]),{3:728,4:r,5:a},t(ra,[2,91]),{3:163,4:r,5:a,55:160,74:ie,91:729,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:730,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:732,115:xn,119:An,120:Cn,121:kn,122:731,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{74:[1,733]},{74:[1,734]},{74:[1,735]},{74:[1,736]},t(ra,[2,100]),t(ra,[2,101]),t(ra,[2,102]),t(ra,[2,103]),t(ra,[2,104]),t(ra,[2,105]),{3:737,4:r,5:a},{3:738,4:r,5:a,130:[1,739]},t(ra,[2,109]),t(ra,[2,110]),t(ra,[2,111]),t(ra,[2,112]),t(ra,[2,113]),t(ra,[2,114]),{3:740,4:r,5:a,74:sn,110:393,128:oe,129:ue,140:le,149:de,178:ge,193:394,198:396,254:395,287:Ne,288:$e,289:De,293:qe,409:397,414:je},{142:[1,741]},{74:[1,742]},{142:[1,743]},t(ra,[2,119]),{74:[1,744]},{3:745,4:r,5:a},{74:[1,746]},{74:[1,747]},{74:[1,748]},{74:[1,749]},{74:[1,750],161:[1,751]},{74:[1,752]},{74:[1,753]},{74:[1,754]},{74:[1,755]},{74:[1,756]},{74:[1,757]},{74:[1,758]},{74:[1,759]},{74:[1,760]},{74:[2,790]},{74:[2,791]},{3:238,4:r,5:a,196:761},{3:238,4:r,5:a,196:762},{110:763,129:ue,289:De},t(K,[2,581],{109:[1,764]}),{3:238,4:r,5:a,196:765},{110:766,129:ue,289:De},{3:767,4:r,5:a},t(K,[2,677]),t(K,[2,64]),{3:230,4:r,5:a,72:768},{74:[1,769]},t(K,[2,658]),t(K,[2,571]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:770,327:771,328:773},{141:776,142:Ke,409:185,410:Ve,414:je},t(K,[2,655]),{3:163,4:r,5:a,55:160,74:ie,91:777,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ur,Fr,{252:143,197:144,253:145,108:146,251:147,193:148,254:149,110:150,255:151,198:152,199:153,256:154,257:155,258:156,141:157,259:158,55:160,155:162,3:163,409:185,91:778,4:r,5:a,74:ie,128:oe,129:ue,134:ce,140:le,142:he,149:de,151:fe,153:Q,176:pe,177:be,178:ge,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,410:Ve,414:je}),{110:779,129:ue,289:De},{3:261,4:r,5:a,437:780,438:ze},t(K,[2,637]),t(K,[2,647]),t(K,[2,648]),{111:783,112:Tt,113:wt,121:[1,781],422:782},t(K,[2,737],{71:br}),{3:100,4:r,5:a,495:784},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:785,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:786,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:787,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(mr,[2,147]),t(mr,[2,805],{71:ia}),t(oa,[2,269]),t(oa,[2,276],{111:349,317:361,3:790,110:792,4:r,5:a,73:[1,789],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,128:[1,791],129:ue,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,289:De,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(tt,[2,806],{194:793,511:[1,794]}),{128:oe,193:795},{71:br,75:[1,796]},t(Y,[2,8]),{145:[1,797],187:[1,798]},{187:[1,799]},{187:[1,800]},{187:[1,801]},t(K,[2,560],{73:[1,803],74:[1,802]}),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:804,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(rn,[2,338]),t(gr,[2,829]),t(gr,[2,826]),t(gr,[2,827]),{71:dr,75:[1,805]},{71:dr,75:[1,806]},{71:[1,807]},{71:[1,808]},{71:[1,809]},{71:[1,810]},t(rn,[2,345]),t(K,[2,565]),{291:[1,811]},{3:812,4:r,5:a,110:813,129:ue,289:De},{3:238,4:r,5:a,196:814},{227:[1,815]},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,465:816,466:303,469:304,473:309,484:306,488:308},t(K,[2,714],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(fr,[2,862],{468:817,474:818,73:ua}),t(yr,[2,861]),{3:822,4:r,5:a,129:dt,134:ft,141:821,142:Ke,149:pt,409:185,410:Ve,414:je,466:820,484:306,488:308},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:823,473:309,484:306,488:308},{3:305,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,464:825,465:302,466:303,469:304,473:309,484:306,488:308},t(xr,[2,880],{482:826,129:[1,827]}),t(Tr,[2,879]),t(Ar,[2,886],{486:828,488:829,149:pt}),t(xr,[2,885]),t(Ar,[2,730]),t(Ar,[2,889]),t(Tr,[2,733]),t(Tr,[2,734]),t(Ar,[2,732]),t(Cr,[2,724]),{3:238,4:r,5:a,196:830},{3:238,4:r,5:a,196:831},{3:163,4:r,5:a,55:160,74:ie,91:832,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ca,[2,856],{458:833,110:834,129:ue,289:De}),t(kr,[2,855]),{3:835,4:r,5:a},{326:la,329:ha,330:da,502:836},{3:238,4:r,5:a,196:840},t(Or,[2,749]),t(Or,[2,750]),t(Or,[2,751]),{126:[1,841]},t(gt,[2,672]),t(gt,[2,673],{121:[1,842]}),{4:Lr,265:843,378:qr},t([5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,525],{4:[1,845],74:[1,844]}),{74:[1,846]},{3:163,4:r,5:a,55:160,74:ie,91:847,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,573]),t(vr,[2,553]),{3:848,4:r,5:a,110:849,129:ue,289:De},t(K,[2,549],{71:fa}),t(gt,[2,551]),t(K,[2,598],{71:fa}),t(K,[2,652]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:851,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(pa,[2,367],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,368],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,369],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,852],306:Pt,307:_t,308:Bt,309:Gt}),t(ba,[2,371],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,304:[1,853],306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,373],{111:349,317:361}),t(Pr,[2,374],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(Pr,[2,375],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,177:Ft,306:Pt}),t(ga,[2,376],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,377],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t(ga,[2,378],{111:349,317:361,112:Tt,113:wt,120:xt,133:kt,306:Pt}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,109,115,119,120,121,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,302,303,304,305,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,379],{111:349,317:361,112:Tt,113:wt,133:kt,306:Pt}),t(ma,[2,380],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,381],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,382],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(ma,[2,383],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,176:Ut,177:Ft,306:Pt,307:_t}),t(Yr,[2,384],{74:ut}),t(Ye,[2,385]),{3:163,4:r,5:a,55:160,74:ie,91:854,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,387]),t(Yr,[2,388],{74:ut}),t(Ye,[2,389]),{3:163,4:r,5:a,55:160,74:ie,91:855,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,391]),t(va,[2,392],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,393],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,394],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,395],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t([4,5,8,51,69,86,96,121,136,137,143,151,153,167,168,186,262,283,297,301,310,311,312,313,314,315,316,321,322,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,397],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,398],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,399],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,400],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(va,[2,401],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),{74:[1,856]},{74:[2,436]},{74:[2,437]},{74:[2,438]},t(ya,[2,404],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,104,115,119,125,126,127,128,129,131,132,134,140,142,143,145,146,147,149,153,159,161,163,165,166,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,405],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en}),{3:163,4:r,5:a,38:857,55:160,74:ie,75:[1,859],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:858,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,418]),t(Ye,[2,420]),t(Ye,[2,427]),t(Ye,[2,428]),{3:391,4:r,5:a,74:[1,860]},{3:419,4:r,5:a,74:[1,861],108:649,142:Mr,153:Q,197:650,199:863,283:z,284:Z,285:ee,286:te,320:862},t(Ye,[2,425]),t(ya,[2,422],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t(ya,[2,423],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,323:en}),t([4,5,8,51,69,71,73,74,75,86,90,92,95,96,104,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,297,299,300,301,304,310,311,312,313,314,315,316,321,322,323,324,326,329,330,337,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,424],{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,426]),t(Ye,[2,300]),t(Ye,[2,301]),t(Ye,[2,302]),t(Ye,[2,411]),{71:dr,75:[1,864]},{3:163,4:r,5:a,55:160,74:ie,91:865,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:866,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,Sa),t(Ta,[2,282]),t(Ye,[2,278]),{75:[1,868],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,869]},{296:870,297:Br,298:672,299:on,301:Gr},{297:[1,871]},t(Jr,[2,362]),{3:163,4:r,5:a,55:160,74:ie,91:872,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,873],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{73:[1,874],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,875]},t(un,[2,627]),{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:877,413:410,414:je,418:[1,876]},{75:[1,878],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:879,4:r,5:a,146:jr},t(un,[2,624]),{3:427,4:r,5:a,128:ln,129:hn,416:[1,880],419:881},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:882,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:883,413:410,414:je},{3:419,4:r,5:a,74:cn,108:414,110:412,128:oe,129:ue,140:le,141:409,142:Ke,149:de,153:Q,178:ge,193:411,197:417,198:416,254:413,255:415,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe,409:185,410:Ve,412:884,413:410,414:je},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:885,409:185,410:Ve,414:je},{146:[1,889]},{3:718,4:r,5:a,97:890,108:891},t(xa,[2,452]),{3:238,4:r,5:a,196:892},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:893,409:185,410:Ve,414:je},{299:Aa,447:894,449:895,450:896},{3:163,4:r,5:a,55:160,74:ie,91:898,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{227:[2,681]},t(fn,[2,177],{3:899,4:r,5:a,73:[1,900]}),t(fn,[2,178]),t(fn,[2,811]),t(fn,[2,180]),t(fn,[2,182]),t(fn,[2,184]),t(fn,[2,188]),t(fn,[2,192]),t(fn,[2,195]),t([4,5,8,51,69,71,73,74,75,86,90,92,95,115,121,125,143,145,146,151,153,159,165,166,180,184,186,203,205,219,220,221,222,223,224,225,226,227,228,229,242,244,262,283,290,297,301,326,329,330,333,337,346,358,359,363,364,385,389,390,391,392,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,505,506,507,508,509,510],[2,197]),{3:901,4:r,5:a},t(Ca,[2,762],{80:902,89:903,90:[1,904],95:[1,905]}),{3:213,4:r,5:a,74:[1,907],129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,200:906,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(gn,[2,160]),t(gn,[2,161]),t(gn,[2,162]),t(gn,[2,163]),t(gn,[2,164]),{3:391,4:r,5:a},t(We,[2,79],{71:[1,909]}),t(ka,[2,81]),t(ka,[2,82]),{110:910,129:ue,289:De},t([8,69,71,75,90,95,115,121,125,159,165,166,180,195,203,205,219,220,221,222,223,224,225,226,229,242,244,297,301,509,510],nn,{113:Xr}),t(Zr,[2,69]),t(Zr,[2,767]),{3:163,4:r,5:a,55:160,74:ie,91:911,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,122]),t(ra,[2,140]),t(ra,[2,141]),t(ra,[2,142]),{3:163,4:r,5:a,55:160,74:ie,75:[2,782],91:255,108:146,110:150,124:912,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:913,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,914]},t(ra,[2,90]),t([4,5,8,69,71,73,74,75,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,92],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t([4,5,8,69,71,73,74,75,109,115,119,121,125,126,127,128,129,131,132,134,136,137,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,178,180,182,184,195,273,274,275,276,277,278,279,280,281,297,301,410,414,509,510],[2,93],{111:349,317:361,96:yt,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,915],109:wn,111:459,112:Tt,113:wt,114:916,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,778],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:918,115:xn,119:An,120:Cn,121:kn,123:917,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:919,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:920,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:921,4:r,5:a},t(ra,[2,106]),t(ra,[2,107]),t(ra,[2,108]),t(ra,[2,115]),{3:922,4:r,5:a},{3:718,4:r,5:a,108:772,140:aa,142:sa,144:923,327:771,328:773},{3:924,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:925,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,121]),t(Oa,[2,784],{152:926}),t(Oa,[2,786],{154:927}),t(Oa,[2,788],{156:928}),t(Oa,[2,792],{158:929}),t(Ra,Na,{160:930,175:931}),{74:[1,932]},t(Oa,[2,794],{162:933}),t(Oa,[2,796],{164:934}),t(Ra,Na,{175:931,160:935}),t(Ra,Na,{175:931,160:936}),t(Ra,Na,{175:931,160:937}),t(Ra,Na,{175:931,160:938}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:939,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:940,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,798],{173:941}),t(K,[2,591],{180:[1,942]}),t(K,[2,587],{180:[1,943]}),t(K,[2,580]),{110:944,129:ue,289:De},t(K,[2,589],{180:[1,945]}),t(K,[2,584]),t(K,[2,585],{109:[1,946]}),t(lr,[2,65]),{38:947,76:74,86:u,181:99,186:d},t(K,[2,440],{71:Da,125:[1,948]}),t(Ia,[2,441]),{121:[1,950]},{3:951,4:r,5:a},t(Pe,[2,832]),t(Pe,[2,833]),t(K,[2,605]),t(fr,[2,347],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(va,Ea,{111:349,317:361,109:St,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,323:en}),t(gt,[2,666]),t(gt,[2,668]),{3:163,4:r,5:a,55:160,74:ie,91:952,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{111:954,112:Tt,113:wt,121:[1,953]},{3:956,4:r,5:a,74:La,128:qa,423:955},t(fr,[2,739]),t(mr,[2,144],{71:ia}),t(mr,[2,145],{71:ia}),t(mr,[2,146],{71:ia}),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:959,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:960,4:r,5:a,110:962,128:[1,961],129:ue,289:De},t(oa,[2,271]),t(oa,[2,273]),t(oa,[2,275]),t(tt,[2,156]),t(tt,[2,807]),{75:[1,963]},t(at,[2,742]),{3:964,4:r,5:a},{3:965,4:r,5:a},{3:967,4:r,5:a,374:966},{3:967,4:r,5:a,374:968},{3:969,4:r,5:a},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:970,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:971,4:r,5:a},{71:dr,75:[1,972]},t(rn,[2,339]),t(rn,[2,340]),{3:163,4:r,5:a,55:160,74:ie,91:973,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z, 285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:974,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:975,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:976,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(vr,[2,488]),t(K,Ua,{396:977,73:Fa,74:[1,978]}),t(K,Ua,{396:980,73:Fa}),{74:[1,981]},{3:238,4:r,5:a,196:982},t(fr,[2,715]),t(fr,[2,717]),t(fr,[2,863]),{140:Ze,142:et,421:983},t(Ma,[2,864],{409:185,470:984,141:985,142:Ke,410:Ve,414:je}),{73:ua,136:[2,868],472:986,474:987},t([8,71,73,75,129,136,142,149,297,301,410,414,509,510],wr,{481:571,484:572,134:ft}),t(fr,[2,720]),t(fr,Sr),{71:Er,75:[1,988]},t(Ar,[2,882],{483:989,488:990,149:pt}),t(xr,[2,881]),t(Ar,[2,729]),t(Ar,[2,887]),t(K,[2,474],{74:[1,991]}),{73:[1,993],74:[1,992]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,145:[1,994],151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(xa,Va,{76:74,181:99,459:995,38:998,86:u,143:ja,186:d,461:Pa}),t(ca,[2,857]),t(kr,[2,707]),{227:[1,999]},t(_a,[2,753]),t(_a,[2,754]),t(_a,[2,755]),t(Or,Rr,{501:1e3,92:Nr,505:$r,506:Dr,507:Ir}),t(Or,[2,752]),{3:163,4:r,5:a,55:160,74:ie,91:1001,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(gt,[2,674],{121:[1,1002]}),{128:Ba,377:1003,379:Ga},t([4,5,8,51,69,71,73,75,86,90,92,95,96,104,109,112,113,115,119,120,121,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,145,146,147,149,151,153,159,161,163,165,166,167,168,169,170,172,176,177,178,180,182,184,186,195,203,205,219,220,221,222,223,224,225,226,227,229,236,239,240,242,244,262,273,274,275,276,277,278,279,280,281,283,289,290,297,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,321,322,323,324,326,329,330,333,337,346,358,359,363,364,385,389,390,393,395,397,398,406,407,408,410,414,425,427,428,430,431,432,433,434,438,439,442,443,455,461,496,498,499,508,509,510],[2,526],{74:[1,1006]}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1007,409:185,410:Ve,414:je},t(K,[2,445],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(K,[2,574]),t(K,[2,575]),{3:238,4:r,5:a,196:1009},t(K,[2,654]),{3:163,4:r,5:a,55:160,74:ie,91:1010,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1011,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1012],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1013],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,38:1014,55:160,74:ie,76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1015,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1016]},{71:dr,75:[1,1017]},t(Ye,[2,416]),{3:163,4:r,5:a,55:160,74:ie,91:1018,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,38:1019,55:160,74:ie,75:[1,1021],76:74,86:u,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1020,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,181:99,186:d,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,419]),t(Ye,[2,421]),t(Ye,Ja,{268:1022,269:Ha}),{75:[1,1024],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1025],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a,177:[1,1027]},t(un,[2,606]),t(Ye,[2,355]),{297:[1,1028]},t(Ye,[2,361]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,297:[2,365],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:163,4:r,5:a,55:160,74:ie,91:1029,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{4:Lr,265:1030,378:qr},{3:163,4:r,5:a,55:160,74:ie,91:1031,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(un,[2,628]),t(Hr,[2,635]),t(Wr,[2,623]),t(Ta,Sa),t(un,[2,625]),t(Kr,[2,630]),t(Kr,[2,632]),t(Kr,[2,633]),t(Kr,[2,634]),t(xa,[2,447],{71:Wa}),{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1034,409:185,410:Ve,414:je},t(Xa,[2,458]),t(Xa,[2,459]),t(xa,[2,450]),{71:Ya,75:[1,1035]},t(Ka,[2,471]),{38:1038,76:74,86:u,146:[1,1037],181:99,186:d},t(xa,[2,449],{71:Wa}),t(K,[2,701],{448:1039,449:1040,450:1041,299:Aa,455:[1,1042]}),t(Qa,[2,685]),t(Qa,[2,686]),{151:[1,1044],451:[1,1043]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,299:[2,682],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(fn,[2,175]),{3:1045,4:r,5:a},t(K,[2,559]),t(za,[2,234],{81:1046,125:[1,1047]}),t(Ca,[2,763]),{74:[1,1048]},{74:[1,1049]},t(Qr,[2,165],{201:1050,212:1052,202:1053,213:1054,218:1057,71:Za,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,38:434,74:Ge,76:74,86:u,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,181:99,186:d,196:207,197:209,198:208,199:211,200:1066,206:908,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(Ka,[2,173]),{3:718,4:r,5:a,107:1067,108:716,109:zr},t(ka,[2,83]),t(Zr,[2,143],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1068]},{71:dr,75:[2,783]},{3:163,4:r,5:a,55:160,74:ie,75:[2,776],91:1073,108:146,110:150,117:1069,118:1070,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,239:[1,1072],251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,94]),t(Oa,[2,779],{150:722,176:ea,177:ta,178:na}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1074],109:wn,111:459,112:Tt,113:wt,114:1075,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},t(Oa,[2,780],{150:722,176:ea,177:ta,178:na}),{75:[1,1076],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1077],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1078]},t(ra,[2,116]),{71:Da,75:[1,1079]},t(ra,[2,118]),{71:dr,75:[1,1080]},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1081],109:wn,111:459,112:Tt,113:wt,114:1082,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1083],109:wn,111:459,112:Tt,113:wt,114:1084,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1085],109:wn,111:459,112:Tt,113:wt,114:1086,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1087],109:wn,111:459,112:Tt,113:wt,114:1088,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1089]},t(hs,[2,139],{409:185,3:456,111:459,141:481,155:491,157:492,114:1091,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(Ra,Na,{175:931,160:1092}),{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1093],109:wn,111:459,112:Tt,113:wt,114:1094,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:456,4:r,5:a,69:yn,73:Sn,74:Tn,75:[1,1095],109:wn,111:459,112:Tt,113:wt,114:1096,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{71:ls,75:[1,1097]},{71:ls,75:[1,1098]},{71:ls,75:[1,1099]},{71:ls,75:[1,1100]},{75:[1,1101],150:722,176:ea,177:ta,178:na},{71:ia,75:[1,1102]},{3:456,4:r,5:a,69:yn,71:[1,1103],73:Sn,74:Tn,109:wn,111:459,112:Tt,113:wt,114:1104,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,141:481,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,155:491,157:492,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,409:185,410:Ve,414:je},{3:1105,4:r,5:a},{3:1106,4:r,5:a},t(K,[2,582]),{3:1107,4:r,5:a},{110:1108,129:ue,289:De},{75:[1,1109]},{3:163,4:r,5:a,55:160,74:ie,91:1110,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,108:772,140:aa,142:sa,327:1111,328:773},{3:163,4:r,5:a,55:160,74:ie,91:1112,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{121:[1,1113]},t(K,[2,638],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1114,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:956,4:r,5:a,74:La,128:qa,423:1115},t(ds,[2,643]),t(ds,[2,644]),t(ds,[2,645]),{3:163,4:r,5:a,55:160,74:ie,91:1116,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(oa,[2,268]),t(oa,[2,270]),t(oa,[2,272]),t(oa,[2,274]),t(tt,[2,157]),t(K,[2,554]),{145:[1,1117]},t(K,[2,555]),t(fr,[2,520],{265:1118,4:Lr,376:[1,1119],378:qr}),t(K,[2,556]),t(K,[2,558]),{71:dr,75:[1,1120]},t(K,[2,562]),t(rn,[2,337]),{71:[1,1121],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1122],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1123],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{71:[1,1124],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,[2,566]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1125,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1126,4:r,5:a},t(K,[2,568]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1127,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1128]},{3:1129,4:r,5:a},{73:ua,136:[2,866],471:1130,474:1131},t(Ma,[2,865]),{136:[1,1132]},{136:[2,869]},t(fr,[2,721]),t(Ar,[2,728]),t(Ar,[2,883]),{3:967,4:r,5:a,73:[1,1135],341:1133,348:1134,374:1136},{3:718,4:r,5:a,97:1137,108:891},{38:1138,76:74,86:u,181:99,186:d},{3:163,4:r,5:a,55:160,74:ie,91:1139,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,706]),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1140,327:771,328:773},{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1141,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(xa,[2,711]),{3:238,4:r,5:a,196:1142},{326:la,329:ha,330:da,502:1143},t(gt,[2,675],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1144,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:[1,1145],75:[1,1146]},t(hs,[2,528]),t(hs,[2,529]),{128:Ba,377:1147,379:Ga},{71:fs,75:[1,1148]},t(hs,[2,463],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(gt,[2,550]),t(pa,[2,370],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(pa,[2,372],{111:349,317:361,112:Tt,113:wt,120:xt,130:Ct,133:kt,135:Ot,138:$t,139:Dt,176:Ut,177:Ft,306:Pt,307:_t,308:Bt,309:Gt}),t(Ye,[2,386]),t(Ye,[2,390]),{75:[1,1150]},{71:dr,75:[1,1151]},t(Ye,[2,412]),t(Ye,[2,414]),{75:[1,1152],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1153]},{71:dr,75:[1,1154]},t(Ye,[2,417]),t(Ye,[2,319]),{74:[1,1155]},t(Ye,Ja,{268:1156,269:Ha}),t(Ye,Ja,{268:1157,269:Ha}),t(Ta,[2,280]),t(Ye,[2,277]),t(Ye,[2,360]),t(Jr,[2,364],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:[1,1159],75:[1,1158]},{71:[1,1161],75:[1,1160],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1026,4:r,5:a},{74:[1,1162],140:le,141:1163,142:Ke,149:de,178:ge,198:1164,293:qe,409:185,410:Ve,414:je},{71:fs,75:[1,1165]},{38:1167,76:74,86:u,146:[1,1166],181:99,186:d},{3:718,4:r,5:a,108:1168},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1169,409:185,410:Ve,414:je},t(xa,[2,453]),t(K,[2,678]),t(Qa,[2,683]),t(Qa,[2,684]),{3:163,4:r,5:a,55:160,74:ie,91:537,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,171:1170,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,250:536,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{167:[1,1172],300:[1,1171]},{451:[1,1173]},t(fn,[2,176]),t(ps,[2,236],{82:1174,229:[1,1175]}),{3:163,4:r,5:a,55:160,74:ie,91:1176,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1177,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1178,4:r,5:a},t(Qr,[2,166],{213:1054,218:1057,212:1179,202:1180,203:es,205:ts,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs}),{3:213,4:r,5:a,74:Ge,129:Je,140:le,141:206,142:he,149:de,153:Q,178:ge,196:207,197:209,198:208,199:211,206:1181,210:He,211:212,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},t(bs,[2,201]),t(bs,[2,202]),{3:213,4:r,5:a,74:[1,1186],140:le,141:1184,142:he,149:de,153:Q,178:ge,196:1183,197:1187,198:1185,199:1188,214:1182,283:z,284:Z,285:ee,286:te,293:qe,409:185,410:Ve,414:je},{204:[1,1189],220:gs},{204:[1,1191],220:ms},t(vs,[2,218]),{203:[1,1195],205:[1,1194],218:1193,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(vs,[2,220]),{220:[1,1196]},{205:[1,1198],220:[1,1197]},{205:[1,1200],220:[1,1199]},{205:[1,1201]},{220:[1,1202]},{220:[1,1203]},{71:Za,201:1204,202:1053,203:es,205:ts,212:1052,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ka,[2,80]),t(ra,[2,96]),{71:Es,75:[1,1205]},{75:[1,1207]},t(ys,[2,257]),{75:[2,777]},t(ys,[2,259],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,239:[1,1208],240:[1,1209],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ra,[2,95]),t(Oa,[2,781],{150:722,176:ea,177:ta,178:na}),t(ra,[2,97]),t(ra,[2,98]),t(ra,[2,99]),t(ra,[2,117]),t(ra,[2,120]),t(ra,[2,123]),t(Oa,[2,785],{150:722,176:ea,177:ta,178:na}),t(ra,[2,124]),t(Oa,[2,787],{150:722,176:ea,177:ta,178:na}),t(ra,[2,125]),t(Oa,[2,789],{150:722,176:ea,177:ta,178:na}),t(ra,[2,126]),t(Oa,[2,793],{150:722,176:ea,177:ta,178:na}),t(ra,[2,127]),t(Ra,[2,800],{174:1210}),t(Ra,[2,803],{150:722,176:ea,177:ta,178:na}),{71:ls,75:[1,1211]},t(ra,[2,129]),t(Oa,[2,795],{150:722,176:ea,177:ta,178:na}),t(ra,[2,130]),t(Oa,[2,797],{150:722,176:ea,177:ta,178:na}),t(ra,[2,131]),t(ra,[2,132]),t(ra,[2,133]),t(ra,[2,134]),t(ra,[2,135]),t(ra,[2,136]),{3:163,4:r,5:a,55:160,74:ie,91:255,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,148:1212,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t($a,[2,799],{150:722,176:ea,177:ta,178:na}),t(K,[2,592]),t(K,[2,588]),t(K,[2,590]),t(K,[2,586]),t(lr,[2,67]),t(K,[2,439],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(Ia,[2,442]),t(Ia,[2,443],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1213,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,639],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,642]),{75:[1,1214],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{3:1215,4:r,5:a},t(fr,[2,530],{375:1216,380:1217,381:1218,356:1226,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(fr,[2,519]),t(K,[2,561],{73:[1,1230]}),{3:163,4:r,5:a,55:160,74:ie,91:1231,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144, -198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:((null===v||"undefined"==typeof v)&&(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column -},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&"undefined"!=typeof process&&process.browser};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?(("\n"===e[s+1]||"\r"===e[s+1])&&(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ -s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=H(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var ae=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof ne.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof ne.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(ae(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},ne.Select=function(e){return ne.extend(this,e)},ne.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof ne.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},ne.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},ne.Select.prototype.compile=function(e){var t=T.databases[e],n=new te;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof ne.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof ne.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof ne.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof ne.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},ne.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.ExistsValue=function(e){return ne.extend(this,e)},ne.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},ne.ExistsValue.prototype.toType=function(){return"boolean"},ne.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},ne.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},ne.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},ne.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof ne.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof ne.Select)e.aliases[r]={type:"subquery"};else if(t instanceof ne.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof ne.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof ne.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof ne.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof ne.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof ne.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof ne.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof ne.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof ne.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},ne.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof ne.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=_(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof ne.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},ne.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileWhereJoins=function(e){},ne.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=j(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=P(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="",c="";"undefined"!=typeof e.groupStar&&(c+="for(var f in p['"+e.groupStar+"']) {g[f]=p['"+e.groupStar+"'][f];};"),s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof ne.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));"+c+"} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof ne.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},ne.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof ne.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof ne.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},ne.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof ne.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},ne.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(n instanceof ne.Column&&"*"===n.columnid)e.groupStar=n.tableid||"default";else{var a;a=A(n instanceof ne.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},ne.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof ne.Column&&"*"===n.columnid)return r+="for(var k in g) {r[k]=g[k]};","";var a=n.as;void 0===a&&(a=n instanceof ne.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof ne.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},ne.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},ne.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof ne.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof ne.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;("DATE"==l||"DATETIME"==l||"DATETIME2"==l)&&(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},ne.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[]; -if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=H(p);n.columnid=t,e.columns.push(n)})}},ne.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var se=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof ne.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},ne.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},ne.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},ne.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof ne.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},ne.VarValue=function(e){return ne.extend(this,e)},ne.VarValue.prototype.toString=function(){return"@"+this.variable},ne.VarValue.prototype.toType=function(){return"unknown"},ne.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},ne.NumValue=function(e){return ne.extend(this,e)},ne.NumValue.prototype.toString=function(){return this.value.toString()},ne.NumValue.prototype.toType=function(){return"number"},ne.NumValue.prototype.toJS=function(){return""+this.value},ne.StringValue=function(e){return ne.extend(this,e)},ne.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},ne.StringValue.prototype.toType=function(){return"string"},ne.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},ne.LogicValue=function(e){return ne.extend(this,e)},ne.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},ne.LogicValue.prototype.toType=function(){return"boolean"},ne.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},ne.NullValue=function(e){return ne.extend(this,e)},ne.NullValue.prototype.toString=function(){return"NULL"},ne.NullValue.prototype.toJS=function(){return"undefined"},ne.ParamValue=function(e){return ne.extend(this,e)},ne.ParamValue.prototype.toString=function(){return"$"+this.param},ne.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},ne.UniOp=function(e){return ne.extend(this,e)},ne.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},ne.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},ne.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},ne.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof ne.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},ne.Column=function(e){return ne.extend(this,e)},ne.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},ne.AggrValue=function(e){return ne.extend(this,e)},ne.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},ne.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},ne.OrderExpression=function(e){return ne.extend(this,e)},ne.OrderExpression.prototype.toString=ne.Expression.prototype.toString,ne.GroupExpression=function(e){return ne.extend(this,e)},ne.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},ne.FromData=function(e){return ne.extend(this,e)},ne.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},ne.FromData.prototype.toJS=function(){},ne.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=V(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},ne.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new ne.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new ne.Column({columnid:"*",func:t,param:n}))}}),e},ne.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new ne.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new ne.Table({tableid:e}))}return t},ne.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new ne.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new ne.OrderExpression({expression:n,direction:"ASC"}))}),e},ne.Select.prototype.Top=function(e){var t=this;return t.top=new ne.NumValue({value:e}),t},ne.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new ne.Column({columnid:t});e.group.push(n)}),e},ne.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},ne.FuncValue=function(e){return ne.extend(this,e)},ne.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},ne.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},ne.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},ne.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ce=T.stdlib={},le=T.stdfn={};ce.ABS=function(e){return"Math.abs("+e+")"},ce.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},le.CONCAT=function(){return Array.prototype.slice.call(arguments).join(" ")},ce.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ce.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ce.IFNULL=function(e,t){return"("+e+"||"+t+")"},ce.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ce.LEN=ce.LENGTH=function(e){return t(e,"y.length")},ce.LOWER=ce.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ce.MAX=ce.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ce.MIN=ce.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ce.SUBSTRING=ce.SUBSTR=ce.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},le.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ce.ISNULL=ce.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ce.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ce.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ce.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},ce.CEIL=ce.CEILING=function(e){return"Math.ceil("+e+")"},ce.FLOOR=function(e){return"Math.floor("+e+")"},ce.ROWNUM=function(){return"1"},ce.ROW_NUMBER=function(){return"1"},ce.SQRT=function(e){return"Math.sqrt("+e+")"},ce.TRIM=function(e){return t(e,"y.trim()")},ce.UPPER=ce.UCASE=function(e){return t(e,"String(y).toUpperCase()")},le.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},le.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var he=[],de=0;256>de;de++)he[de]=(16>de?"0":"")+de.toString(16);le.NEWID=le.UUID=le.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return he[255&e]+he[e>>8&255]+he[e>>16&255]+he[e>>24&255]+"-"+he[255&t]+he[t>>8&255]+"-"+he[t>>16&15|64]+he[t>>24&255]+"-"+he[63&n|128]+he[n>>8&255]+"-"+he[n>>16&255]+he[n>>24&255]+he[255&r]+he[r>>8&255]+he[r>>16&255]+he[r>>24&255]},ne.CaseValue=function(e){return ne.extend(this,e)},ne.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},ne.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},ne.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},ne.Json=function(e){return ne.extend(this,e)},ne.Json.prototype.toString=function(){var e="";return e+=fe(this.value),e+=""};var fe=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return fe(e)}).join(",")+"]";else if(!e.toJS||e instanceof ne.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+fe(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};ne.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},ne.Convert=function(e){return ne.extend(this,e)},ne.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},ne.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},ne.ColumnDef=function(e){return ne.extend(this,e)},ne.ColumnDef.prototype.toString=function(){var 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},ne.CreateTable=function(e){return ne.extend(this,e)},ne.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},ne.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=V(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=V(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid); -return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=V(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=V(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=H(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,le.EXTEND=T.utils.extend,le.CHAR=String.fromCharCode.bind(String),le.ASCII=function(e){return e.charCodeAt(0)},le.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},ne.CreateEdge=function(e){return ne.extend(this,e)},ne.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.CreateGraph=function(e){return ne.extend(this,e)},ne.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&Y(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&Y(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},ne.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.AlterTable=function(e){return ne.extend(this,e)},ne.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},ne.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},ne.CreateIndex=function(e){return ne.extend(this,e)},ne.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},ne.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=V(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},ne.Reindex=function(e){return ne.extend(this,e)},ne.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},ne.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},ne.DropIndex=function(e){return ne.extend(this,e)},ne.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},ne.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},ne.WithSelect=function(e){return ne.extend(this,e)},ne.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},ne.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new ee({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},ne.If=function(e){return ne.extend(this,e)},ne.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},ne.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},ne.While=function(e){return ne.extend(this,e)},ne.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},ne.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},ne.Break=function(e){return ne.extend(this,e)},ne.Break.prototype.toString=function(){var e="BREAK";return e},ne.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.Continue=function(e){return ne.extend(this,e)},ne.Continue.prototype.toString=function(){var e="CONTINUE";return e},ne.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.BeginEnd=function(e){return ne.extend(this,e)},ne.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},ne.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=H(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},ne.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.CreateTrigger=function(e){return ne.extend(this,e)},ne.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()},ne.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},ne.DropTrigger=function(e){return ne.extend(this,e)},ne.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},ne.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},ne.Delete=function(e){return ne.extend(this,e)},ne.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},ne.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},ne.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Update=function(e){return ne.extend(this,e)},ne.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()),e},ne.SetColumn=function(e){return ne.extend(this,e)},ne.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},ne.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)(!n||n(o.data[c],r,T))&&(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},ne.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Merge=function(e){return ne.extend(this,e)},ne.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},ne.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},ne.CreateDatabase=function(e){return ne.extend(this,e)},ne.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},ne.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},ne.AttachDatabase=function(e){return ne.extend(this,e)},ne.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},ne.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},ne.DetachDatabase=function(e){return ne.extend(this,e); -},ne.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid},ne.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.UseDatabase=function(e){return ne.extend(this,e)},ne.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},ne.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},ne.DropDatabase=function(e){return ne.extend(this,e)},ne.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},ne.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.Declare=function(e){return ne.extend(this,e)},ne.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},ne.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},ne.ShowDatabases=function(e){return ne.extend(this,e)},ne.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},ne.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},ne.ShowTables=function(e){return ne.extend(this,e)},ne.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},ne.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},ne.ShowColumns=function(e){return ne.extend(this,e)},ne.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},ne.ShowIndex=function(e){return ne.extend(this,e)},ne.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},ne.ShowCreateTable=function(e){return ne.extend(this,e)},ne.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},ne.SetVariable=function(e){return ne.extend(this,e)},ne.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},ne.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;x.isNode&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(fe(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="
    "+T.pretty(e)+"
    "),a instanceof Array)if(0===a.length)i+="

    [ ]

    ";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

    "+m(a[o])+"

    ";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

    '+(Date.now()-a)+" ms

    ")}catch(s){T.write("

    "+olduseid+"> "+sql+"

    "),T.write('

    '+s+"

    ")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

    '+(Date.now()-i)+" ms

    ")}catch(o){T.write("

    "+s+"> "+T.pretty(a,!1)+"

    "),T.write('

    '+o+"

    ")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},ne.BeginTransaction=function(e){return ne.extend(this,e)},ne.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},ne.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},ne.CommitTransaction=function(e){return ne.extend(this,e)},ne.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},ne.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},ne.RollbackTransaction=function(e){return ne.extend(this,e)},ne.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},ne.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?("STRING"==e.typeid||"VARCHAR"==e.typeid||"NVARCHAR"==e.typeid||"CHAR"==e.typeid||"NCHAR"==e.typeid)&&(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&Y(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=V(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&Y(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(Y(s,h.row),h.rows&&h.rows[a]&&Y(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
    "}return o+="
    ",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library not found");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library not found");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},ne.Help=function(e){return ne.extend(this,e)},ne.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],ne.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},ne.Print=function(e){return ne.extend(this,e)},ne.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},ne.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return fe(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(fe(i))}else console.log();return n&&(a=n(a)),a},ne.Source=function(e){return ne.extend(this,e)},ne.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},ne.Source.prototype.execute=function(e,t,n){var r;return M(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},ne.Require=function(e){return ne.extend(this,e)},ne.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},ne.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){M(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||M(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},ge.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},ge.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?((!n||n(t.value,r))&&(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},ge.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var me=T.engines.LOCALSTORAGE=function(){};me.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},me.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},me.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,me.set(n.lsdbid+"."+t,a)},me.restoreTable=function(e,t){var n=T.databases[e],r=me.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},me.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},me.createDatabase=function(e,t,n,r,a){var s=1,i=me.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,me.set("alasql",i),me.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},me.dropDatabase=function(e,t,n){var r=1,a=me.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],me.set("alasql",a);var s=me.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=me.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)me.restoreTable(t,o);return a&&(s=a(s)),s},me.showDatabases=function(e,t){var n=[],r=me.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},me.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=me.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=me.get(s);T.databases[e].tables[t];return o.tables[t]=!0,me.set(s,o),me.storeTable(e,t),r&&r(a),a},me.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=me.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],me.set(s,i),me.removeTable(e,t),r&&r(a),a},me.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,me.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},me.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=me.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),me.storeTable(e,t),a&&a(s),s},me.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;me.restoreTable(e,t)},me.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;me.storeTable(r,t),n.tables[t].data=void 0},me.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,me.storeTable(e,s);return me.set(r,a),1},me.begin=me.commit,me.rollback=function(e,t){return};var ve=T.engines.SQLITE=function(){};ve.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},ve.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof ne.StringValue||n[0]instanceof ne.ParamValue){if(n[0]instanceof ne.StringValue)var i=n[0].value;else if(n[0]instanceof ne.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},ve.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var Ee=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(Ee.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},Ee.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},Ee.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,M(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},Ee.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],Ee.updateFile(e),r&&r(i),i},Ee.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){Ee.updateFile(e)},50)}))},Ee.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],Ee.updateFile(e),r&&r(a),a},Ee.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},Ee.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),Ee.updateFile(e),a&&a(i),i},Ee.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},Ee.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,Ee.updateFile(e)},Ee.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return Ee.updateFile(e),1},Ee.begin=Ee.commit,Ee.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});Y(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),Y(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},x.isBrowser&&!x.isWebWorker){var ye=ye||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if((v||!h)&&(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=ye:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return ye}),T.utils.saveAs=ye}return new z("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file +198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1232,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1233,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1234,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:dr,75:[1,1235]},t(K,[2,570]),{71:Es,75:[1,1236]},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1237,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t([8,71,75,136,297,301,509,510],[2,725]),{136:[1,1238]},{136:[2,867]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1239,473:309,484:306,488:308},{75:[1,1240]},{71:[1,1241],75:[2,490]},{38:1242,76:74,86:u,181:99,186:d},t(hs,[2,516]),{71:Ya,75:[1,1243]},t(K,[2,850],{401:1244,402:1245,69:$s}),t(xa,Va,{76:74,181:99,111:349,317:361,38:998,459:1247,86:u,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,143:ja,151:It,167:Lt,168:qt,176:Ut,177:Ft,186:d,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn,461:Pa}),t(xa,[2,709],{71:Da}),t(xa,[2,710],{71:dr}),t([8,51,69,86,121,143,153,186,262,283,297,301,326,329,330,337,385,389,390,393,395,397,398,406,407,408,425,427,428,430,431,432,433,434,438,439,442,443,496,498,499,508,509,510],[2,898],{503:1248,3:1249,4:r,5:a,73:[1,1250]}),t(Ds,[2,900],{504:1251,73:[1,1252]}),t(gt,[2,676],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{128:[1,1253]},t(Is,[2,523]),{71:[1,1254],75:[1,1255]},t(Is,[2,527]),{3:163,4:r,5:a,55:160,74:ie,91:1256,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,402]),t(Ye,[2,403]),t(Ye,[2,429]),t(Ye,[2,413]),t(Ye,[2,415]),{115:Ls,270:1257,271:1258,272:[1,1259]},t(Ye,[2,320]),t(Ye,[2,321]),t(Ye,[2,308]),{128:[1,1261]},t(Ye,[2,310]),{128:[1,1262]},{3:163,4:r,5:a,55:160,74:ie,91:1008,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,334:1263,409:185,410:Ve,414:je},t(Xa,[2,461]),t(Xa,[2,462]),t(Xa,[2,457]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1264,409:185,410:Ve,414:je},t(xa,[2,454]),t(Ka,[2,472]),t(xa,[2,448],{71:Wa}),t(K,[2,702],{71:ia,195:[1,1265]}),{326:qs,329:Us,452:1266},{3:163,4:r,5:a,55:160,74:ie,91:1269,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{116:[1,1271],167:[1,1272],300:[1,1270]},t(Fs,[2,255],{83:1273,115:[1,1274]}),{116:[1,1275]},t(za,[2,235],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{92:[1,1276],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{92:[1,1277]},t(bs,[2,199]),t(bs,[2,200]),t(Ka,[2,174]),t(bs,[2,233],{215:1278,227:[1,1279],228:[1,1280]}),t(Ms,[2,204],{3:1281,4:r,5:a,73:[1,1282]}),t(Vs,[2,812],{216:1283,73:[1,1284]}),{3:1285,4:r,5:a,73:[1,1286]},{38:1287,76:74,86:u,181:99,186:d},t(Ms,[2,212],{3:1288,4:r,5:a,73:[1,1289]}),t(Ms,[2,215],{3:1290,4:r,5:a,73:[1,1291]}),{74:[1,1292]},t(vs,[2,230]),{74:[1,1293]},t(vs,[2,226]),t(vs,[2,219]),{220:ms},{220:gs},t(vs,[2,221]),t(vs,[2,222]),{220:[1,1294]},t(vs,[2,224]),{220:[1,1295]},{220:[1,1296]},t(vs,[2,228]),t(vs,[2,229]),{75:[1,1297],202:1180,203:es,205:ts,212:1179,213:1054,218:1057,219:ns,220:rs,221:as,222:ss,223:is,224:os,225:us,226:cs},t(ra,[2,87]),{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1298,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ra,[2,88]),t(ys,[2,260]),{241:[1,1299]},t(hs,[2,138],{409:185,3:456,111:459,141:481,155:491,157:492,114:1300,4:r,5:a,69:yn,73:Sn,74:Tn,109:wn,112:Tt,113:wt,115:xn,119:An,120:Cn,121:kn,125:On,126:Rn,127:Nn,128:$n,129:Dn,130:In,131:Ln,132:qn,133:Un,134:Fn,135:Mn,136:Vn,137:jn,138:Pn,139:_n,140:Bn,142:Gn,143:Jn,145:Hn,146:Wn,147:Xn,149:Yn,151:Kn,153:Qn,159:zn,161:Zn,163:er,165:tr,166:nr,167:rr,168:ar,169:sr,170:ir,172:or,182:ur,184:cr,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,410:Ve,414:je}),t(ra,[2,128]),{71:dr,75:[1,1301]},t(Ia,[2,444],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(ds,[2,646]),t(K,[2,557]),t(fr,[2,518]),t(fr,[2,531],{356:1226,381:1302,151:Ss,184:Ts,227:ws,290:xs,333:As,346:Cs,358:ks,359:Os,363:Rs,364:Ns}),t(hr,[2,533]),{360:[1,1303]},{360:[1,1304]},{3:238,4:r,5:a,196:1305},t(hr,[2,539],{74:[1,1306]}),{3:113,4:r,5:a,74:[1,1308],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:1309,198:249,254:247,255:248,261:Qe,267:1307,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},t(hr,[2,543]),{290:[1,1310]},t(hr,[2,545]),t(hr,[2,546]),{326:[1,1311]},{74:[1,1312]},{3:1313,4:r,5:a},{75:[1,1314],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1315],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1316],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{75:[1,1317],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(K,Ua,{396:1318,73:Fa}),t(K,[2,576]),{71:Es,75:[1,1319]},{3:822,4:r,5:a,129:dt,134:ft,140:Ze,142:et,149:pt,421:312,466:824,469:1320,473:309,484:306,488:308},t(fr,[2,719]),t(K,[2,477],{342:1321,344:1322,345:1323,4:js,240:Ps,333:_s,346:Bs}),t(Gs,Js,{3:967,349:1328,374:1329,350:1330,351:1331,4:r,5:a,357:Hs}),{75:[2,491]},{73:[1,1333]},t(K,[2,594]),t(K,[2,851]),{358:[1,1335],403:[1,1334]},t(xa,[2,712]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1336,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(K,[2,746]),t(Ds,[2,899]),t(K,n,{15:5,16:7,17:8,18:9,19:10,20:11,21:12,22:13,23:14,24:15,25:16,26:17,27:18,28:19,29:20,30:21,31:22,32:23,33:24,34:25,35:26,36:27,37:28,38:29,39:30,40:31,41:32,42:33,43:34,44:35,45:36,46:37,47:38,48:39,49:40,50:41,52:43,53:44,54:45,55:46,56:47,57:48,58:49,59:50,60:51,61:52,62:53,63:54,64:55,65:56,66:57,67:58,68:59,76:74,495:95,181:99,3:100,10:1337,4:r,5:a,51:i,69:o,86:u,121:c,143:l,153:h,186:d,262:f,283:p,326:b,329:g,330:m,337:v,385:E,389:y,390:S,393:w,395:x,397:A,398:C,406:O,407:R,408:N,425:$,427:D,428:I,430:L,431:q,432:U,433:F,434:M,438:V,439:j,442:P,443:_,496:B,498:G,499:J,508:H}),t(Ds,[2,901]),{75:[1,1338]},{128:[1,1339]},t(Is,[2,524]),t(hs,[2,464],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[1,1340],115:Ls,271:1341},{75:[1,1342]},{116:[1,1343]},{116:[1,1344]},{75:[1,1345]},{75:[1,1346]},{71:fs,75:[1,1347]},t(xa,[2,451],{71:Wa}),{3:238,4:r,5:a,140:Ze,142:et,196:1349,421:1348},t(Qa,[2,687]),t(Qa,[2,689]),{143:[1,1350]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1351],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},{330:Ws,453:1352},{407:[1,1355],454:[1,1354]},{3:163,4:r,5:a,55:160,74:ie,91:1356,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Xs,[2,263],{84:1357,242:[1,1358],244:[1,1359]}),{116:[1,1360]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1361,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1367,4:r,5:a},{3:1368,4:r,5:a},t(bs,[2,203]),{3:163,4:r,5:a,55:160,74:ie,91:1369,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1370,108:891},t(Ms,[2,205]),{3:1371,4:r,5:a},t(Ms,[2,814],{217:1372,3:1373,4:r,5:a}),t(Vs,[2,813]),t(Ms,[2,208]),{3:1374,4:r,5:a},{75:[1,1375]},t(Ms,[2,213]),{3:1376,4:r,5:a},t(Ms,[2,216]),{3:1377,4:r,5:a},{38:1378,76:74,86:u,181:99,186:d},{38:1379,76:74,86:u,181:99,186:d},t(vs,[2,223]),t(vs,[2,225]),t(vs,[2,227]),t(Qr,[2,167]),t(ys,[2,258]),t(ys,[2,261],{239:[1,1380]}),t(Ra,[2,801],{150:722,176:ea,177:ta,178:na}),t(ra,[2,137]),t(hr,[2,532]),t(hr,[2,535]),{364:[1,1381]},t(hr,[2,844],{384:1382,382:1383,74:zs}),{128:oe,193:1385},t(hr,[2,540]),{3:163,4:r,5:a,55:160,74:ie,91:1386,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(hr,[2,542]),t(hr,[2,544]),{3:113,4:r,5:a,74:[1,1388],110:246,128:oe,129:ue,140:le,149:de,153:Q,178:ge,193:245,197:250,198:249,254:247,255:248,261:Qe,267:1387,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,293:qe},{3:163,4:r,5:a,55:160,74:ie,91:1389,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(K,[2,563]),t(rn,[2,341]),t(rn,[2,342]),t(rn,[2,343]),t(rn,[2,344]),t(K,[2,567]),t(K,[2,577]),t(fr,[2,718]),t(K,[2,473]),t(K,[2,478],{345:1390,4:js,240:Ps,333:_s,346:Bs}),t(Zs,[2,480]),t(Zs,[2,481]),{121:[1,1391]},{121:[1,1392]},{121:[1,1393]},{71:[1,1394],75:[2,489]},t(hs,[2,517]),t(hs,[2,492]),{184:[1,1402],190:[1,1403],352:1395,353:1396,354:1397,355:1398,356:1399,358:ks,359:[1,1400],360:[1,1404],363:[1,1401]},{3:1405,4:r,5:a},{38:1406,76:74,86:u,181:99,186:d},{404:[1,1407]},{405:[1,1408]},t(K,[2,745]),t(K,[2,747]),t(Is,[2,521]),{75:[1,1409]},t(Ye,[2,323]),{75:[1,1410]},t(Ye,[2,324]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1411,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1412,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(Ye,[2,309]),t(Ye,[2,311]),t(Xa,[2,460]),{3:1413,4:r,5:a},t(K,[2,704],{74:[1,1414]}),{3:718,4:r,5:a,108:772,140:aa,142:sa,144:1415,327:771,328:773},{326:qs,329:Us,452:1416},t(Qa,[2,691]),{74:[1,1418],146:[1,1417],333:[1,1419]},{167:[1,1421],300:[1,1420]},{167:[1,1423],300:[1,1422]},{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1424],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zr,[2,246],{85:1425,159:[1,1426],165:[1,1428],166:[1,1427]}),{128:oe,193:1429},{128:oe,193:1430},{3:163,4:r,5:a,55:160,74:ie,91:1073,108:146,110:150,117:1431,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,238:1071,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},t(ps,[2,244],{231:1432,71:ei,236:[1,1434]}),t(ti,[2,238]),{143:[1,1435]},{74:[1,1436]},{74:[1,1437]},t(ti,[2,243],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{75:[2,768],93:1438,96:[1,1440],99:1439},{96:[1,1441]},t(bs,[2,231],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),t(bs,[2,232],{71:Ya}),t(Ms,[2,206]),t(Ms,[2,207]),t(Ms,[2,815]),t(Ms,[2,209]),{3:1442,4:r,5:a,73:[1,1443]},t(Ms,[2,214]),t(Ms,[2,217]),{75:[1,1444]},{75:[1,1445]},t(ys,[2,262]),{3:238,4:r,5:a,196:1446},t(hr,[2,537]),t(hr,[2,845]),{3:1447,4:r,5:a},{71:[1,1448]},{75:[1,1449],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,547]),{3:163,4:r,5:a,55:160,74:ie,91:1450,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1451],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Zs,[2,479]),{3:1452,4:r,5:a},{128:oe,193:1453},{3:1454,4:r,5:a},t(Gs,Js,{351:1331,350:1455,357:Hs}),t(fr,[2,494]),t(fr,[2,495]),t(fr,[2,496]),t(fr,[2,497]),t(fr,[2,498]),{360:[1,1456]},{360:[1,1457]},t(ni,[2,838],{372:1458,360:[1,1459]}),{3:1460,4:r,5:a},{3:1461,4:r,5:a},t(Gs,[2,500]),t(K,[2,848],{400:1462,402:1463,69:$s}),t(K,[2,595]),t(K,[2,596],{357:[1,1464]}),t(Is,[2,522]),t(Ye,[2,325]),t([75,115],[2,326],{71:ei}),{71:Es,75:[2,327]},t(K,[2,703]),{3:718,4:r,5:a,97:1465,108:891},t(Qa,[2,690],{71:Da}),t(Qa,[2,688]),{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1466,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1467,108:891},{146:[1,1468]},{330:Ws,453:1469},{3:163,4:r,5:a,55:160,74:ie,91:1470,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1471},{3:163,4:r,5:a,55:160,74:ie,91:1472,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{330:Ws,453:1473},t(Zr,[2,68]),{38:1474,76:74,86:u,161:[1,1475],181:99,186:d,237:[1,1476]},{38:1477,76:74,86:u,181:99,186:d,237:[1,1478]},{38:1479,76:74,86:u,181:99,186:d,237:[1,1480]},t(Xs,[2,266],{243:1481,244:[1,1482]}),{245:1483,246:[2,816],512:[1,1484]},t(Fs,[2,256],{71:Es}),t(ps,[2,237]),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,232:1485,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1486,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{74:[1,1487]},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1488,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1489,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{75:[1,1490]},{75:[2,769]},{74:[1,1491]},{74:[1,1492]},t(Ms,[2,210]),{3:1493,4:r,5:a},{3:1494,4:r,5:a,73:[1,1495]},{3:1496,4:r,5:a,73:[1,1497]},t(hr,[2,842],{383:1498,382:1499,74:zs}),{75:[1,1500]},{128:oe,193:1501},t(hr,[2,541]),{75:[1,1502],96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(hr,[2,501]),t(Zs,[2,482]),t(Zs,[2,483]),t(Zs,[2,484]),t(hs,[2,493]),{3:1504,4:r,5:a,74:[2,834],361:1503},{74:[1,1505]},{3:1507,4:r,5:a,74:[2,840],373:1506},t(ni,[2,839]),{74:[1,1508]},{74:[1,1509]},t(K,[2,593]),t(K,[2,849]),t(Gs,Js,{351:1331,350:1510,357:Hs}),{71:Ya,75:[1,1511]},t(Qa,[2,697],{71:Wa}),{71:Ya,75:[1,1512]},t(Qa,[2,699]),t(Qa,[2,692]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1513],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,695]),{96:yt,109:St,111:349,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,300:[1,1514],302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,317:361,321:zt,322:Zt,323:en,324:tn},t(Qa,[2,693]),t(Zr,[2,247]),{38:1515,76:74,86:u,181:99,186:d,237:[1,1516]},{38:1517,76:74,86:u,181:99,186:d},t(Zr,[2,249]),{38:1518,76:74,86:u,181:99,186:d},t(Zr,[2,250]),{38:1519,76:74,86:u,181:99,186:d},t(Xs,[2,264]),{128:oe,193:1520},{246:[1,1521]},{246:[2,817]},t(ti,[2,239]),t(ps,[2,245],{111:349,317:361,96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{3:163,4:r,5:a,55:160,74:ie,91:1366,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,230:1522,232:1362,233:Ys,234:Ks,235:Qs,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{71:ei,75:[1,1523]},{71:ei,75:[1,1524]},t(Ca,[2,770],{94:1525,101:1526,3:1528,4:r,5:a,73:ri}),{3:163,4:r,5:a,55:160,74:ie,91:1531,100:1529,102:1530,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:718,4:r,5:a,97:1532,108:891},t(Ms,[2,211]),t(bs,[2,169]),{3:1533,4:r,5:a},t(bs,[2,171]),{3:1534,4:r,5:a},t(hr,[2,536]),t(hr,[2,843]),t(hr,[2,534]),{75:[1,1535]},t(hr,[2,548]),{74:[1,1536]},{74:[2,835]},{3:1538,4:r,5:a,129:ai,362:1537},{74:[1,1540]},{74:[2,841]},{3:718,4:r,5:a,97:1541,108:891},{3:718,4:r,5:a,97:1542,108:891},t(K,[2,597]),t(K,[2,705]),{146:[1,1543],333:[1,1544]},{330:Ws,453:1545},{326:qs,329:Us,452:1546},t(Zr,[2,248]),{38:1547,76:74,86:u,181:99,186:d},t(Zr,[2,251]),t(Zr,[2,253]),t(Zr,[2,254]),t(Xs,[2,267]),{128:[2,818],247:1548,513:[1,1549]},{71:ei,75:[1,1550]},t(ti,[2,241]),t(ti,[2,242]),t(Ca,[2,70]),t(Ca,[2,771]),{3:1551,4:r,5:a},t(Ca,[2,74]),{71:[1,1553],75:[1,1552]},t(hs,[2,76]),t(hs,[2,77],{111:349,317:361,73:[1,1554],96:yt,109:St,112:Tt,113:wt,120:xt,121:pr,130:Ct,133:kt,135:Ot,136:Rt,137:Nt,138:$t,139:Dt,151:It,167:Lt,168:qt,176:Ut,177:Ft,302:Mt,303:Vt,305:jt,306:Pt,307:_t,308:Bt,309:Gt,310:Jt,311:Ht,312:Wt,313:Xt,314:Yt,315:Kt,316:Qt,321:zt,322:Zt,323:en,324:tn}),{71:Ya,75:[1,1555]},t(bs,[2,170]),t(bs,[2,172]),t(hr,[2,538]),{3:1538,4:r,5:a,129:ai,362:1556},{71:si,75:[1,1557]},t(hs,[2,512]),t(hs,[2,513]),{3:718,4:r,5:a,97:1559,108:891},{71:Ya,75:[1,1560]},{71:Ya,75:[1,1561]},{74:wa,140:le,141:887,142:Ke,149:de,178:ge,198:888,293:qe,332:1562,409:185,410:Ve,414:je},{146:[1,1563]},t(Qa,[2,694]),t(Qa,[2,696]),t(Zr,[2,252]),{128:oe,193:1564},{128:[2,819]},t(ti,[2,240]),t(Ca,[2,73]),{75:[2,72]},{3:163,4:r,5:a,55:160,74:ie,91:1531,102:1565,108:146,110:150,128:oe,129:ue,134:ce,140:le,141:157,142:he,149:de,151:fe,153:Q,155:162,176:pe,177:be,178:ge,193:148,197:144,198:152,199:153,251:147,252:143,253:145,254:149,255:151,256:154,257:155,258:156,259:158,261:me,262:f,263:ve,264:Ee,266:ye,273:Se,274:Te,275:we,276:xe,277:Ae,278:Ce,279:ke,280:Oe,281:Re,283:z,284:Z,285:ee,286:te,287:Ne,288:$e,289:De,290:Ie,291:Le,293:qe,294:Ue,307:Fe,319:Me,409:185,410:Ve,414:je},{3:1566,4:r,5:a},{75:[1,1567]},{71:si,75:[1,1568]},{364:[1,1569]},{3:1570,4:r,5:a,129:[1,1571]},{71:Ya,75:[1,1572]},t(fr,[2,510]),t(fr,[2,511]),t(Qa,[2,698],{71:Wa}),t(Qa,[2,700]),t(ii,[2,820],{248:1573,512:[1,1574]}),t(hs,[2,75]),t(hs,[2,78]),t(Ca,[2,772],{3:1528,98:1575,101:1576,4:r,5:a,73:ri}),t(fr,[2,502]),{3:238,4:r,5:a,196:1577},t(hs,[2,514]),t(hs,[2,515]),t(fr,[2,509]),t(Xs,[2,822],{249:1578,404:[1,1579]}),t(ii,[2,821]),t(Ca,[2,71]),t(Ca,[2,773]),t(oi,[2,836],{365:1580,367:1581,74:[1,1582]}),t(Xs,[2,265]),t(Xs,[2,823]),t(fr,[2,505],{366:1583,368:1584,227:[1,1585]}),t(oi,[2,837]),{3:1538,4:r,5:a,129:ai,362:1586},t(fr,[2,503]),{227:[1,1588],369:1587},{329:[1,1589]},{71:si,75:[1,1590]},t(fr,[2,506]),{326:[1,1591]},{370:[1,1592]},t(oi,[2,504]),{370:[1,1593]},{371:[1,1594]},{371:[1,1595]},{227:[2,507]},t(fr,[2,508])],defaultActions:{104:[2,3],188:[2,328],189:[2,329],190:[2,330],191:[2,331],192:[2,332],193:[2,333],194:[2,334],195:[2,335],196:[2,336],203:[2,679],318:[2,859],377:[2,824],378:[2,825],433:[2,680],503:[2,790],504:[2,791],641:[2,436],642:[2,437],643:[2,438],694:[2,681],987:[2,869],1072:[2,777],1131:[2,867],1242:[2,491],1439:[2,769],1484:[2,817],1504:[2,835],1507:[2,841],1549:[2,819],1552:[2,72],1594:[2,507]},parseError:function(e,t){function n(e,t){this.message=e,this.hash=t}if(!t.recoverable)throw n.prototype=new Error,new n(e,t);this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],a=[],s=this.table,i="",o=0,u=0,c=0,l=2,h=1,d=a.slice.call(arguments,1),f=Object.create(this.lexer),p={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p.yy[b]=this.yy[b]);f.setInput(e,p.yy),p.yy.lexer=f,p.yy.parser=this,"undefined"==typeof f.yylloc&&(f.yylloc={});var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,E,y,S,T,w,x,A,C,k=function(){var e;return e=f.lex()||h,"number"!=typeof e&&(e=t.symbols_[e]||e),e},O={};;){if(y=n[n.length-1],this.defaultActions[y]?S=this.defaultActions[y]:(null!==v&&"undefined"!=typeof v||(v=k()),S=s[y]&&s[y][v]),"undefined"==typeof S||!S.length||!S[0]){var R="";C=[];for(w in s[y])this.terminals_[w]&&w>l&&C.push("'"+this.terminals_[w]+"'");R=f.showPosition?"Parse error on line "+(o+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(o+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(R,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:g,expected:C})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+v);switch(S[0]){case 1:n.push(v),r.push(f.yytext),a.push(f.yylloc),n.push(S[1]),v=null,E?(v=E,E=null):(u=f.yyleng,i=f.yytext,o=f.yylineno,g=f.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[S[1]][1],O.$=r[r.length-x],O._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column +},m&&(O._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(O,[i,u,o,p.yy,S[1],r,a].concat(d)),"undefined"!=typeof T)return T;x&&(n=n.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),n.push(this.productions_[S[1]][0]),r.push(O.$),a.push(O._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}},ci=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var a=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in a)this[s]=a[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;st[0].length)){if(t=n,r=s,this.options.backtrack_lexer){if(e=this.test_match(n,a[s]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),e!==!1?e:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 262;case 1:return 293;case 2:return 410;case 3:return 5;case 4:return 5;case 5:return 289;case 6:return 289;case 7:return 129;case 8:return 129;case 9:return;case 10:break;case 11:return 306;case 12:return 309;case 13:return t.yytext="VALUE",86;case 14:return t.yytext="VALUE",186;case 15:return t.yytext="ROW",186;case 16:return t.yytext="COLUMN",186;case 17:return t.yytext="MATRIX",186;case 18:return t.yytext="INDEX",186;case 19:return t.yytext="RECORDSET",186;case 20:return t.yytext="TEXT",186;case 21:return t.yytext="SELECT",186;case 22:return"ABSOLUTE";case 23:return 371;case 24:return 391;case 25:return 506;case 26:return 280;case 27:return 161;case 28:return 389;case 29:return 167;case 30:return 226;case 31:return 163;case 32:return 204;case 33:return 281;case 34:return 73;case 35:return 408;case 36:return 239;case 37:return 393;case 38:return 346;case 39:return 277;case 40:return 505;case 41:return 428;case 42:return 321;case 43:return 432;case 44:return 322;case 45:return 305;case 46:return 116;case 47:return 499;case 48:return 294;case 49:return 264;case 50:return 358;case 51:return 127;case 52:return"CLOSE";case 53:return 240;case 54:return 187;case 55:return 187;case 56:return 425;case 57:return 357;case 58:return 461;case 59:return 431;case 60:return 266;case 61:return 237;case 62:return 274;case 63:return 337;case 64:return 203;case 65:return 235;case 66:return 261;case 67:return"CURSOR";case 68:return 394;case 69:return 284;case 70:return 285;case 71:return 439;case 72:return 333;case 73:return 329;case 74:return"DELETED";case 75:return 239;case 76:return 395;case 77:return 182;case 78:return 385;case 79:return 438;case 80:return 132;case 81:return 297;case 82:return 378;case 83:return 301;case 84:return 304;case 85:return 166;case 86:return 499;case 87:return 499;case 88:return 291;case 89:return 12;case 90:return 288;case 91:return 246;case 92:return 278;case 93:return 92;case 94:return 363;case 95:return 180;case 96:return 224;case 97:return 303;case 98:return 510;case 99:return 463;case 100:return 229;case 101:return 233;case 102:return 236;case 103:return 406;case 104:return 153;case 105:return 346;case 106:return 323;case 107:return 96;case 108:return 190;case 109:return 209;case 110:return 221;case 111:return 507;case 112:return 330;case 113:return 210;case 114:return 165;case 115:return 286;case 116:return 195;case 117:return 220;case 118:return 360;case 119:return 279;case 120:return"LET";case 121:return 222;case 122:return 109;case 123:return 242;case 124:return 451;case 125:return 188;case 126:return 276;case 127:return 379;case 128:return 275;case 129:return 443;case 130:return 166;case 131:return 392;case 132:return 219;case 133:return 513;case 134:return 263;case 135:return 241;case 136:return 370;case 137:return 151;case 138:return 290;case 139:return 424;case 140:return 227;case 141:return 404;case 142:return 126;case 143:return 244;case 144:return"OPEN";case 145:return 405;case 146:return 168;case 147:return 115;case 148:return 205;case 149:return 269;case 150:return 169;case 151:return 272;case 152:return 511;case 153:return 90;case 154:return 14;case 155:return 359;case 156:return 433;case 157:return"PRIOR";case 158:return 13;case 159:return 403;case 160:return 191;case 161:return"REDUCE";case 162:return 364;case 163:return 302;case 164:return 508;case 165:return"RELATIVE";case 166:return 104;case 167:return 390;case 168:return 172;case 169:return 283;case 170:return 434;case 171:return"RESTORE";case 172:return 170;case 173:return 170;case 174:return 223;case 175:return 427;case 176:return 234;case 177:return 147;case 178:return 512;case 179:return 394;case 180:return 86;case 181:return 225;case 182:return 143;case 183:return 143;case 184:return 398;case 185:return 325;case 186:return 407;case 187:return"STRATEGY";case 188:return"STORE";case 189:return 273;case 190:return 343;case 191:return 343;case 192:return 454;case 193:return 347;case 194:return 347;case 195:return 189;case 196:return 300;case 197:return"TIMEOUT";case 198:return 145;case 199:return 192;case 200:return 426;case 201:return 426;case 202:return 500;case 203:return 287;case 204:return 442;case 205:return 159;case 206:return 184;case 207:return 95;case 208:return 326;case 209:return 397;case 210:return 228;case 211:return 146;case 212:return 131;case 213:return 399;case 214:return 299;case 215:return 125;case 216:return 430;case 217:return 69;case 218:return 426;case 219:return 128;case 220:return 128;case 221:return 112;case 222:return 134;case 223:return 176;case 224:return 307;case 225:return 177;case 226:return 130;case 227:return 135;case 228:return 316;case 229:return 313;case 230:return 315;case 231:return 312;case 232:return 310;case 233:return 308;case 234:return 309;case 235:return 139;case 236:return 138;case 237:return 136;case 238:return 311;case 239:return 314;case 240:return 137;case 241:return 121;case 242:return 314;case 243:return 74;case 244:return 75;case 245:return 142;case 246:return 414;case 247:return 416;case 248:return 418;case 249:return 496;case 250:return 498;case 251:return 119;case 252:return 113;case 253:return 71;case 254:return 324;case 255:return 149;case 256:return 509;case 257:return 140;case 258:return 178;case 259:return 133;case 260:return 120;case 261:return 319;case 262:return 4;case 263:return 8;case 264:return"INVALID"}},rules:[/^(?:``([^\`])+``)/i,/^(?:\[\?\])/i,/^(?:@\[)/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,/^(?: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,/^(?:CALL\b)/i,/^(?:CASE\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,/^(?:CURSOR\b)/i,/^(?:DATABASE(S)?)/i,/^(?:DATEADD\b)/i,/^(?:DATEDIFF\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,/^(?:GLOB\b)/i,/^(?:GO\b)/i,/^(?:GRAPH\b)/i,/^(?:GROUP\b)/i,/^(?:GROUPING\b)/i,/^(?:HAVING\b)/i,/^(?:HELP\b)/i,/^(?:IF\b)/i,/^(?:IDENTITY\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,/^(?:JOIN\b)/i,/^(?:KEY\b)/i,/^(?:LAST\b)/i,/^(?:LET\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,/^(?: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,/^(?: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,/^(?:REFERENCES\b)/i,/^(?:REGEXP\b)/i,/^(?:REINDEX\b)/i,/^(?:RELATIVE\b)/i,/^(?:REMOVE\b)/i,/^(?:RENAME\b)/i,/^(?:REPEAT\b)/i,/^(?:REPLACE\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,/^(?:SET\b)/i,/^(?:SETS\b)/i,/^(?:SHOW\b)/i,/^(?:SOME\b)/i,/^(?:SOURCE\b)/i,/^(?:STRATEGY\b)/i,/^(?:STORE\b)/i,/^(?:SUM\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(S)?)/i,/^(?:VERTEX\b)/i,/^(?:VIEW\b)/i,/^(?:WHEN\b)/i,/^(?:WHERE\b)/i,/^(?:WHILE\b)/i,/^(?:WITH\b)/i,/^(?:WORK\b)/i,/^(?:(\d*[.])?\d+[eE]\d+)/i,/^(?:(\d*[.])?\d+)/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,/^(?:[a-zA-Z_][a-zA-Z_0-9]*)/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],inclusive:!0}}};return e}();return ui.lexer=ci,e.prototype=ui,ui.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=w,exports.Parser=w.Parser,exports.parse=function(){return w.parse.apply(w,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),T.prettyflag=!1,T.pretty=function(e,t){var n=T.prettyflag;T.prettyflag=!t;var r=T.parse(e).toString();return T.prettyflag=n,r};var x=T.utils={},A=x.escapeq=function(e){return e.replace(/\'/g,"\\'")},C=x.undoubleq=function(e){return e.replace(/(\')/g,"''")},k=x.doubleq=function(e){return e.replace(/(\'\')/g,"\\'")},O=(x.doubleqq=function(e){return e.replace(/\'/g,"'")},function(e){return e[0]===String.fromCharCode(65279)&&(e=e.substr(1)),e}),R=function(){try{return Function("return this")()}catch(e){var t=self||window||t;if(t)return t;throw new Error("Unable to locate global object")}};x.global=R();var N=(x.isNativeFunction=function(e){return"function"==typeof e&&!!~e.toString().indexOf("[native code]")},function(){try{var e=x.global.importScripts;return x.isNativeFunction(e)}catch(t){return!1}});x.isWebWorker=N();var $=function(){try{return x.isNativeFunction(x.global.process.reallyExit)}catch(e){return!1}};x.isNode=$();var D=function(){try{return x.isNativeFunction(x.global.location.reload)}catch(e){return!1}};x.isBrowser=D();var I=function(){return x.isBrowser&&"undefined"!=typeof process&&process.browser};x.isBrowserify=I();var L=function(){return"undefined"!=typeof Meteor&&Meteor.release};x.isMeteor=L();var q=x.isMeteorClient=function(){return x.isMeteor&&Meteor.isClient};x.isMeteorClient=q();var U=function(){return x.isMeteor&&Meteor.isServer};x.isMeteorServer=U();var F=function(){return"object"==typeof cordova};x.isCordova=F();var M=x.loadFile=function(e,t,n,r){var a,s;if(x.isNode||x.isMeteorServer)if(s=x.isMeteor?Npm.require("fs"):require("fs"),"undefined"==typeof e){var i="";process.stdin.setEncoding("utf8"),process.stdin.on("readable",function(){var e=process.stdin.read();null!==e&&(i+=e.toString())}),process.stdin.on("end",function(){n(O(i))})}else if(/^[a-z]+:\/\//i.test(e)){var o=require("request");o(e,function(e,t,r){if(e)throw e;n(O(r.toString()))})}else t?s.readFile(e,function(e,t){if(e)throw e;n(O(t.toString()))}):(a=s.readFileSync(e),n(O(a.toString())));else if(x.isCordova)x.global.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(e,{create:!1},function(e){e.file(function(e){var t=new FileReader;t.onloadend=function(e){n(O(this.result))},t.readAsText(e)})})});else if("string"==typeof e)if("#"===e.substr(0,1)&&"undefined"!=typeof document)a=document.querySelector(e).textContent,n(a);else{var u=new XMLHttpRequest;u.onreadystatechange=function(){u.readyState===XMLHttpRequest.DONE&&(200===u.status?n&&n(O(u.responseText)):r&&r(u))},u.open("GET",e,t),u.responseType="text",u.send()}else if(e instanceof Event){var c=e.target.files,l=new FileReader;c[0].name;l.onload=function(e){var t=e.target.result;n(O(t))},l.readAsText(c[0])}},V=(x.loadBinaryFile=function(e,t,n,r){var a;if(x.isNode||x.isMeteorServer)if(a=x.isMeteor?Npm.require("fs"):require("fs"),/^[a-z]+:\/\//i.test(e)){var s=require("request");s({url:e,encoding:null},function(e,t,r){if(e)throw e;for(var a=[],s=0;sn;n++){var a;a="object"==typeof e[n]?Object.keys(e[n]).sort().map(function(t){return t+"`"+e[n][t]}).join("`"):e[n],t[a]=e[n]}var s=[];for(var i in t)s.push(t[i]);return s},Y=x.extend=function(e,t){e=e||{};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},K=x.flatArray=function(e){if(!e||0===e.length)return[];if("object"==typeof e&&e instanceof T.Recordset)return e.data.map(function(t){return t[e.columns[0].columnid]});var t=Object.keys(e[0])[0];return void 0===t?[]:e.map(function(e){return e[t]})};x.arrayOfArrays=function(e){return e.map(function(e){var t=[];for(var n in e)t.push(e[n]);return t})},x.xlsnc=function(e){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)),t},x.xlscn=function(e){var t=e.charCodeAt(0)-65;return e.length>1&&(t=26*(t+1)+e.charCodeAt(1)-65,e.length>2&&(t=26*(t+1)+e.charCodeAt(2)-65)),t},x.domEmptyChildren=function(e){for(var t=e.childNodes.length;t--;)e.removeChild(e.lastChild)},x.like=function(e,t,n){n||(n="");for(var r=0,a="^";r-1?"\\"+s:s,r++}return a+="$",(""+(t||"")).toUpperCase().search(RegExp(a.toUpperCase()))>-1};if(x.glob=function(e,t){for(var n=0,r="^";n-1?"\\"+a:a,n++}return r+="$",(""+(e||"")).toUpperCase().search(RegExp(r.toUpperCase()))>-1},x.findAlaSQLPath=function(){if(x.isWebWorker)return"";if(x.isNode)return __dirname;if(x.isMeteorClient)return"/packages/dist/";if(x.isMeteorServer)return"assets/packages/dist/";if(x.isBrowser)for(var e=document.getElementsByTagName("script"),t=0;ts;s++){var o="\\"!==e[s-1]||"\\"===e[s-2];n?e[s]===t&&o&&(n=!1):r?"*"===e[s]&&"/"===e[s+1]?(e[s]=e[s+1]="",r=!1,s++):e[s]="":a?("\n"!==e[s+1]&&"\r"!==e[s+1]||(a=!1),e[s]=""):'"'===e[s]||"'"===e[s]?(n=!0,t=e[s]):"["===e[s]&&"@"!==e[s-1]?(n=!0,t="]"):"/"===e[s]&&"*"===e[s+1]&&(e[s]="",r=!0)}return e=e.join("").slice(2,-2)},T.parser=w,T.parser.parseError=function(e,t){throw new Error("Have you used a reserved keyword without `escaping` it?\n"+e)},T.parse=function(e){return w.parse(T.utils.uncomment(e))},T.engines={},T.databases={},T.databasenum=0,T.options={},T.options.errorlog=!1,T.options.valueof=!1,T.options.dropifnotexists=!1,T.options.datetimeformat="sql",T.options.casesensitive=!0,T.options.logtarget="output",T.options.logprompt=!0,T.options.modifier=void 0,T.options.columnlookup=10,T.options.autovertex=!0,T.options.usedbo=!0,T.options.autocommit=!0,T.options.cache=!0,T.options.tsql=!0,T.options.mysql=!0,T.options.postgres=!0,T.options.oracle=!0,T.options.sqlite=!0,T.options.orientdb=!0,T.options.nocount=!1,T.options.nan=!1,T.options.joinstar="overwrite",T.vars={},T.declares={},T.prompthistory=[],T.plugins={},T.from={},T.into={},T.fn={},T.aggr={},T.busy=0,T.MAXSQLCACHESIZE=1e4,T.DEFAULTDATABASEID="alasql",T.lastid=0,T.buffer={},T.use=function(e){if(e||(e=T.DEFAULTDATABASEID),T.useid!==e){T.useid=e;var t=T.databases[T.useid];T.tables=t.tables,t.resetSqlCache(),T.options.usedbo&&(T.databases.dbo=t)}},T.exec=function(e,t,n,r){if(delete T.error,t=t||{},!T.options.errorlog)return T.dexec(T.useid,e,t,n,r);try{return T.dexec(T.useid,e,t,n,r)}catch(a){T.error=a,n&&n(null,T.error)}},T.dexec=function(e,t,n,r,a){var s,i=T.databases[e];if(T.options.cache){s=V(t);var o=i.sqlCache[s];if(o&&i.dbversion===o.dbversion)return o(n,r)}var u=T.parse(t);if(u.statements){if(0===u.statements.length)return 0;if(1===u.statements.length){if(u.statements[0].compile){var o=u.statements[0].compile(e);if(!o)return;o.sql=t,o.dbversion=i.dbversion,T.options.cache&&(i.sqlCacheSize>T.MAXSQLCACHESIZE&&i.resetSqlCache(),i.sqlCacheSize++,i.sqlCache[s]=o);var c=T.res=o(n,r,a);return c}T.precompile(u.statements[0],T.useid,n);var c=T.res=u.statements[0].execute(e,n,r,a);return c}return r?void T.adrun(e,u,n,r,a):T.drun(e,u,n,r,a)}},T.drun=function(e,t,n,r,a){var s=T.useid;s!==e&&T.use(e);for(var i=[],o=0,u=t.statements.length;u>o;o++)if(t.statements[o])if(t.statements[o].compile){var c=t.statements[o].compile(T.useid);i.push(T.res=c(n,null,a))}else T.precompile(t.statements[o],T.useid,n),i.push(T.res=t.statements[o].execute(T.useid,n));return s!==e&&T.use(s),r&&r(i),T.res=i,i},T.adrun=function(e,t,n,r,a){function s(u){void 0!==u&&o.push(u);var c=t.statements.shift();if(c)if(c.compile){var l=c.compile(T.useid);l(n,s,a)}else T.precompile(t.statements[0],T.useid,n),c.execute(T.useid,n,s);else i!==e&&T.use(i),r(o)}var i=T.useid;i!==e&&T.use(e);var o=[];s()},T.compile=function(e,t){t=t||T.useid;var n=T.parse(e);if(1===n.statements.length){var r=n.statements[0].compile(t);return r.promise=function(e){return new Q(function(t,n){r(e,function(e,r){r?n(r):t(e)})})},r}throw new Error("Cannot compile, because number of statements in SQL is not equal to 1")},"object"==typeof x.global.Promise)var Q=x.global.Promise;else if(x.isNode)var Q=require("es6-promise").Promise;T.promise=function(e,t){if(!x.global.Promise)throw new Error("Please include a Promise library");return new Q(function(n,r){T(e,t,function(e,t){t?r(t):n(e)})})};var z=T.Database=function(e){var t=this;if(t===T)if(e){if(t=T.databases[e],T.databases[e]=t,!t)throw new Error('Database "'+e+'" not found')}else t=T.databases.alasql,T.options.tsql&&(T.databases.tempdb=T.databases.alasql);return e||(e="db"+T.databasenum++),t.databaseid=e,T.databases[e]=t,t.dbversion=0,t.tables={},t.views={},t.triggers={},t.indices={},t.objects={},t.counter=0,t.resetSqlCache(),t};z.prototype.resetSqlCache=function(){this.sqlCache={},this.sqlCacheSize=0},z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},z.prototype.transaction=function(e){var t=new T.Transaction(this.databaseid),n=e(t);return n};var Z=T.Transaction=function(e){return this.transactionid=Date.now(),this.databaseid=e,this.commited=!1,this.dbversion=T.databases[e].dbversion,this.bank=JSON.stringify(T.databases[e]),this};Z.prototype.commit=function(){this.commited=!0,T.databases[this.databaseid].dbversion=Date.now(),delete this.bank},Z.prototype.rollback=function(){if(this.commited)throw new Error("Transaction already commited");T.databases[this.databaseid]=JSON.parse(this.bank),delete this.bank},Z.prototype.exec=function(e,t,n){return T.dexec(this.databaseid,e,t,n)},Z.prototype.executeSQL=Z.prototype.exec;var ee=T.Table=function(e){this.data=[],this.columns=[],this.xcolumns={},this.inddefs={},this.indices={},this.uniqs={},this.uniqdefs={},this.identities={},this.checkfn=[],this.checkfns=[],this.beforeinsert={},this.afterinsert={},this.insteadofinsert={},this.beforedelete={},this.afterdelete={},this.insteadofdelete={},this.beforeupdate={},this.afterupdate={},this.insteadofupdate={},Y(this,e)};ee.prototype.indexColumns=function(){var e=this;e.xcolumns={},e.columns.forEach(function(t){e.xcolumns[t.columnid]=t})};var te=(T.View=function(e){this.columns=[],this.xcolumns={},this.query=[],Y(this,e)},T.Query=function(e){this.alasql=T,this.columns=[],this.xcolumns={},this.selectGroup=[],this.groupColumns={},Y(this,e)}),ne=(T.Recordset=function(e){Y(this,e)},w.yy=T.yy={});ne.extend=Y,ne.casesensitive=T.options.casesensitive;var re=ne.Base=function(e){return ne.extend(this,e)};re.prototype.toString=function(){},re.prototype.toType=function(){},re.prototype.toJS=function(){},re.prototype.compile=r,re.prototype.exec=function(){},re.prototype.compile=r,re.prototype.exec=function(){},ne.Statements=function(e){return ne.extend(this,e)},ne.Statements.prototype.toString=function(){return this.statements.map(function(e){return e.toString()}).join("; ")},ne.Statements.prototype.compile=function(e){var t=this.statements.map(function(t){return t.compile(e)});return 1===t.length?t[0]:function(e,n){var r=t.map(function(t){return t(e)});return n&&n(r),r}},ne.Search=function(e){return ne.extend(this,e)},ne.Search.prototype.toString=function(){var e="SEARCH ";return this.selectors&&(e+=this.selectors.toString()),this.from&&(e+="FROM "+this.from.toString()),e},ne.Search.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.Search.prototype.compile=function(e){var t=e,n=this,r=function(e,a){var s;return i.bind(n)(t,e,function(e){ +s=f(r.query,e),a&&(s=a(s))}),s};return r.query={},r},T.srch={},T.srch.PROP=function(e,t,n){if("XML"===n.mode){var r=[];return e.children.forEach(function(e){e.name.toUpperCase()===t[0].toUpperCase()&&r.push(e)}),r.length>0?{status:1,values:r}:{status:-1,values:[]}}return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:-1,values:[]}:{status:1,values:[e[t[0]]]}},T.srch.APROP=function(e,t){return"object"!=typeof e||null===e||"object"!=typeof t||"undefined"==typeof e[t[0]]?{status:1,values:[void 0]}:{status:1,values:[e[t[0]]]}},T.srch.EQ=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e===s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.LIKE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return e.toUpperCase().match(new RegExp("^"+s(e,T,r).toUpperCase().replace(/%/g,".*").replace(/\?|_/g,".")+"$"),"g")?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.ATTR=function(e,t,n){if("XML"===n.mode)return"undefined"==typeof t?{status:1,values:[e.attributes]}:"object"==typeof e&&"object"==typeof e.attributes&&"undefined"!=typeof e.attributes[t[0]]?{status:1,values:[e.attributes[t[0]]]}:{status:-1,values:[]};throw new Error("ATTR is not using in usual mode")},T.srch.CONTENT=function(e,t,n){if("XML"===n.mode)return{status:1,values:[e.content]};throw new Error("ATTR is not using in usual mode")},T.srch.SHARP=function(e,t){var n=T.databases[T.useid].objects[t[0]];return"undefined"!=typeof e&&e===n?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.PARENT=function(){return console.log("PARENT not implemented"),{status:-1,values:[]}},T.srch.CHILD=function(e,t,n){return"object"==typeof e?e instanceof Array?{status:1,values:e}:"XML"===n.mode?{status:1,values:Object.keys(e.children).map(function(t){return e.children[t]})}:{status:1,values:Object.keys(e).map(function(t){return e[t]})}:{status:1,values:[]}},T.srch.KEYS=function(e){return"object"==typeof e&&null!==e?{status:1,values:Object.keys(e)}:{status:1,values:[]}},T.srch.WHERE=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return s(e,T,r)?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.NAME=function(e,t){return e.name===t[0]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.CLASS=function(e,t){return e.$class==t?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.VERTEX=function(e){return"VERTEX"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.INSTANCEOF=function(e,t){return e instanceof T.fn[t[0]]?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EDGE=function(e){return"EDGE"===e.$node?{status:1,values:[e]}:{status:-1,values:[]}},T.srch.EX=function(e,t,n,r){var a=t[0].toJS("x",""),s=new Function("x,alasql,params","return "+a);return{status:1,values:[s(e,T,r)]}},T.srch.RETURN=function(e,t,n,r){var a={};return t&&t.length>0&&t.forEach(function(t){var n=t.toJS("x",""),s=new Function("x,alasql,params","return "+n);"undefined"==typeof t.as&&(t.as=t.toString()),a[t.as]=s(e,T,r)}),{status:1,values:[a]}},T.srch.REF=function(e){return{status:1,values:[T.databases[T.useid].objects[e]]}},T.srch.OUT=function(e){if(e.$out&&e.$out.length>0){var t=e.$out.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.OUTOUT=function(e){if(e.$out&&e.$out.length>0){var t=[];return e.$out.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$out&&n.$out.length>0&&n.$out.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.IN=function(e){if(e.$in&&e.$in.length>0){var t=e.$in.map(function(e){return T.databases[T.useid].objects[e]});return{status:1,values:t}}return{status:-1,values:[]}},T.srch.ININ=function(e){if(e.$in&&e.$in.length>0){var t=[];return e.$in.forEach(function(e){var n=T.databases[T.useid].objects[e];n&&n.$in&&n.$in.length>0&&n.$in.forEach(function(e){t=t.concat(T.databases[T.useid].objects[e])})}),{status:1,values:t}}return{status:-1,values:[]}},T.srch.AS=function(e,t){return T.vars[t[0]]=e,{status:1,values:[e]}},T.srch.AT=function(e,t){var n=T.vars[t[0]];return{status:1,values:[n]}},T.srch.CLONEDEEP=function(e){var t=H(e);return{status:1,values:[t]}},T.srch.SET=function(e,t,n,r){var a=t.map(function(e){return"@"===e.method?"alasql.vars['"+e.variable+"']="+e.expression.toJS("x",""):"$"===e.method?"params['"+e.variable+"']="+e.expression.toJS("x",""):"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",a);return s(e,r,T),{status:1,values:[e]}},T.srch.ROW=function(e,t,n,r){var a="var y;return [";a+=t.map(function(e){return e.toJS("x","")}).join(","),a+="]";var s=new Function("x,params,alasql",a),i=s(e,r,T);return{status:1,values:[i]}},T.srch.D3=function(e){return"VERTEX"!==e.$node&&"EDGE"===e.$node&&(e.source=e.$in[0],e.target=e.$out[0]),{status:1,values:[e]}};var ae=function(e){if(e){if(e&&1===e.length&&e[0].expression&&"function"==typeof e[0].expression){var t=e[0].expression;return function(e,n){var r=t(e),a=t(n);return r>a?1:r===a?0:-1}}var n="",r="";return e.forEach(function(e){var t="";if(e.expression instanceof ne.NumValue&&(e.expression=self.columns[e.expression.value-1]),e.expression instanceof ne.Column){var a=e.expression.columnid;T.options.valueof&&(t=".valueOf()"),e.nocase&&(t+=".toUpperCase()"),"_"===a?(n+="if(a"+t+("ASC"===e.direction?">":"<")+"b"+t+")return 1;",n+="if(a"+t+"==b"+t+"){"):(n+="if((a['"+a+"']||'')"+t+("ASC"===e.direction?">":"<")+"(b['"+a+"']||'')"+t+")return 1;",n+="if((a['"+a+"']||'')"+t+"==(b['"+a+"']||'')"+t+"){")}else t=".valueOf()",e.nocase&&(t+=".toUpperCase()"),n+="if(("+e.toJS("a","")+"||'')"+t+("ASC"===e.direction?">(":"<(")+e.toJS("b","")+"||'')"+t+")return 1;",n+="if(("+e.toJS("a","")+"||'')"+t+"==("+e.toJS("b","")+"||'')"+t+"){";r+="}"}),n+="return 0;",n+=r+"return -1",new Function("a,b",n)}};T.srch.ORDERBY=function(e,t){var n=e.sort(ae(t));return{status:1,values:n}},preIndex=function(e){for(var t=0,n=e.sources.length;n>t;t++){var r=e.sources[t];if(delete r.ix,t>0&&"ix"==r.optimization&&r.onleftfn&&r.onrightfn){if(r.databaseid&&T.databases[r.databaseid].tables[r.tableid]){T.databases[r.databaseid].tables[r.tableid].indices||(e.database.tables[r.tableid].indices={});var a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)];!T.databases[r.databaseid].tables[r.tableid].dirty&&a&&(r.ix=a)}if(!r.ix){r.ix={};for(var s,i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;){if(r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=s,r.srcwherefn(i,e.params,T)){var c=r.onrightfn(i,e.params,T),l=r.ix[c];l||(l=r.ix[c]=[]),l.push(s)}o++}r.databaseid&&T.databases[r.databaseid].tables[r.tableid]&&(T.databases[r.databaseid].tables[r.tableid].indices[V(r.onrightfns+"`"+r.srcwherefns)]=r.ix)}}else if(r.wxleftfn){if(T.databases[r.databaseid].engineid||(a=T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]),!T.databases[r.databaseid].tables[r.tableid].dirty&&a)r.ix=a,r.data=r.ix[r.wxrightfn(null,e.params,T)];else{for(r.ix={},i={},o=0,u=r.data.length;(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias||r.tableid]=r.data[o],c=r.wxleftfn(i,e.params,T),l=r.ix[c],l||(l=r.ix[c]=[]),l.push(r.data[o]),o++;T.databases[r.databaseid].engineid||(T.databases[r.databaseid].tables[r.tableid].indices[V(r.wxleftfns+"`")]=r.ix)}r.srcwherefns&&(r.data?(i={},r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)})):r.data=[])}else if(r.srcwherefns&&!r.dontcache)if(r.data){var i={};r.data=r.data.filter(function(t){return i[r.alias]=t,r.srcwherefn(i,e.params,T)}),i={},o=0,u=r.data.length;for(var h=[];(s=r.data[o])||r.getfn&&(s=r.getfn(o))||u>o;)r.getfn&&!r.dontcache&&(r.data[o]=s),i[r.alias]=s,r.srcwherefn(i,e.params,T)&&h.push(s),o++;r.data=h}else r.data=[];r.databaseid&&T.databases[r.databaseid].tables[r.tableid]}},ne.Select=function(e){return ne.extend(this,e)},ne.Select.prototype.toString=function(){var e="";return this.explain&&(e+="EXPLAIN "),e+="SELECT ",this.modifier&&(e+=this.modifier+" "),this.top&&(e+="TOP "+this.top.value+" ",this.percent&&(e+="PERCENT ")),e+=this.columns.map(function(e){var t=e.toString();return"undefined"!=typeof e.as&&(t+=" AS "+e.as),t}).join(", "),this.from&&(e+=" FROM "+this.from.map(function(e){var t=e.toString();return e.as&&(t+=" AS "+e.as),t}).join(",")),this.joins&&(e+=this.joins.map(function(e){var t=" ";if(e.joinmode&&(t+=e.joinmode+" "),e.table)t+="JOIN "+e.table.toString();else{if(!(e instanceof ne.Apply))throw new Error("Wrong type in JOIN mode");t+=e.toString()}return e.using&&(t+=" USING "+e.using.toString()),e.on&&(t+=" ON "+e.on.toString()),t})),this.where&&(e+=" WHERE "+this.where.toString()),this.group&&this.group.length>0&&(e+=" GROUP BY "+this.group.map(function(e){return e.toString()}).join(", ")),this.having&&(e+=" HAVING "+this.having.toString()),this.order&&this.order.length>0&&(e+=" ORDER BY "+this.order.map(function(e){return e.toString()}).join(", ")),this.limit&&(e+=" LIMIT "+this.limit.value),this.offset&&(e+=" OFFSET "+this.offset.value),this.union&&(e+=" UNION "+(this.corresponding?"CORRESPONDING ":"")+this.union.toString()),this.unionall&&(e+=" UNION ALL "+(this.corresponding?"CORRESPONDING ":"")+this.unionall.toString()),this.except&&(e+=" EXCEPT "+(this.corresponding?"CORRESPONDING ":"")+this.except.toString()),this.intersect&&(e+=" INTERSECT "+(this.corresponding?"CORRESPONDING ":"")+this.intersect.toString()),e},ne.Select.prototype.toJS=function(e){var t="alasql.utils.flatArray(this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+"))[0]";return t},ne.Select.prototype.compile=function(e){var t=T.databases[e],n=new te;if(n.removeKeys=[],n.aggrKeys=[],n.explain=this.explain,n.explaination=[],n.explid=1,n.modifier=this.modifier,n.database=t,this.compileWhereExists(n),this.compileQueries(n),n.defcols=this.compileDefCols(n,e),n.fromfn=this.compileFrom(n),this.joins&&this.compileJoins(n),n.rownums=[],this.compileSelectGroup0(n),this.group||n.selectGroup.length>0?n.selectgfns=this.compileSelectGroup1(n):n.selectfns=this.compileSelect1(n),this.compileRemoveColumns(n),this.where&&this.compileWhereJoins(n),n.wherefn=this.compileWhere(n),(this.group||n.selectGroup.length>0)&&(n.groupfn=this.compileGroup(n)),this.having&&(n.havingfn=this.compileHaving(n)),this.order&&(n.orderfn=this.compileOrder(n)),this.group||n.selectGroup.length>0?n.selectgfn=this.compileSelectGroup2(n):n.selectfn=this.compileSelect2(n),n.distinct=this.distinct,this.pivot&&(n.pivotfn=this.compilePivot(n)),this.unpivot&&(n.pivotfn=this.compileUnpivot(n)),this.top?n.limit=this.top.value:this.limit&&(n.limit=this.limit.value,this.offset&&(n.offset=this.offset.value)),n.percent=this.percent,n.corresponding=this.corresponding,this.union?(n.unionfn=this.union.compile(e),this.union.order?n.orderfn=this.union.compileOrder(n):n.orderfn=null):this.unionall?(n.unionallfn=this.unionall.compile(e),this.unionall.order?n.orderfn=this.unionall.compileOrder(n):n.orderfn=null):this.except?(n.exceptfn=this.except.compile(e),this.except.order?n.orderfn=this.except.compileOrder(n):n.orderfn=null):this.intersect&&(n.intersectfn=this.intersect.compile(e),this.intersect.order?n.intersectfn=this.intersect.compileOrder(n):n.orderfn=null),this.into){if(this.into instanceof ne.Table)T.options.autocommit&&T.databases[this.into.databaseid||e].engineid?n.intoallfns='return alasql.engines["'+T.databases[this.into.databaseid||e].engineid+'"].intoTable("'+(this.into.databaseid||e)+'","'+this.into.tableid+'",this.data, columns, cb);':n.intofns="alasql.databases['"+(this.into.databaseid||e)+"'].tables['"+this.into.tableid+"'].data.push(r);";else if(this.into instanceof ne.VarValue)n.intoallfns='alasql.vars["'+this.into.variable+'"]=this.data;res=this.data.length;if(cb)res=cb(res);return res;';else if(this.into instanceof ne.FuncValue){var r="return alasql.into['"+this.into.funcid.toUpperCase()+"'](";this.into.args&&this.into.args.length>0?(r+=this.into.args[0].toJS()+",",r+=this.into.args.length>1?this.into.args[1].toJS()+",":"undefined,"):r+="undefined, undefined,",n.intoallfns=r+"this.data,columns,cb)"}else this.into instanceof ne.ParamValue&&(n.intofns="params['"+this.into.param+"'].push(r)");n.intofns?n.intofn=new Function("r,i,params,alasql","var y;"+n.intofns):n.intoallfns&&(n.intoallfn=new Function("columns,cb,params,alasql","var y;"+n.intoallfns))}var a=function(e,t,r){n.params=e;var a=o(n,r,function(e){if(n.rownums.length>0)for(var r=0,a=e.length;a>r;r++)for(var s=0,i=n.rownums.length;i>s;s++)e[r][n.rownums[s]]=r+1;var o=f(n,e);return t&&t(o),o});return a};return a.query=n,a},ne.Select.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.ExistsValue=function(e){return ne.extend(this,e)},ne.ExistsValue.prototype.toString=function(){return"EXISTS("+this.value.toString()+")"},ne.ExistsValue.prototype.toType=function(){return"boolean"},ne.ExistsValue.prototype.toJS=function(e,t,n){return"this.existsfn["+this.existsidx+"](params,null,"+e+").data.length"},ne.Select.prototype.compileWhereExists=function(e){this.exists&&(e.existsfn=this.exists.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},ne.Select.prototype.compileQueries=function(e){this.queries&&(e.queriesfn=this.queries.map(function(t){var n=t.compile(e.database.databaseid);return n.query.modifier="RECORDSET",n}))},T.precompile=function(e,t,n){e&&(e.params=n,e.queries&&(e.queriesfn=e.queries.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})),e.exists&&(e.existsfn=e.exists.map(function(n){var r=n.compile(t||e.database.databaseid);return r.query.modifier="RECORDSET",r})))},ne.Select.prototype.compileFrom=function(e){var t=this;e.sources=[],e.aliases={},t.from&&(t.from.forEach(function(t){var r=t.as||t.tableid;if(t instanceof ne.Table)e.aliases[r]={tableid:t.tableid,databaseid:t.databaseid||e.database.databaseid,type:"table"};else if(t instanceof ne.Select)e.aliases[r]={type:"subquery"};else if(t instanceof ne.Search)e.aliases[r]={type:"subsearch"};else if(t instanceof ne.ParamValue)e.aliases[r]={type:"paramvalue"};else if(t instanceof ne.FuncValue)e.aliases[r]={type:"funcvalue"};else if(t instanceof ne.VarValue)e.aliases[r]={type:"varvalue"};else if(t instanceof ne.FromData)e.aliases[r]={type:"fromdata"};else if(t instanceof ne.Json)e.aliases[r]={type:"json"};else{if(!t.inserted)throw new Error("Wrong table at FROM");e.aliases[r]={type:"inserted"}}var a={alias:r,databaseid:t.databaseid||e.database.databaseid,tableid:t.tableid,joinmode:"INNER",onmiddlefn:n,srcwherefns:"",srcwherefn:n};if(t instanceof ne.Table)a.columns=T.databases[a.databaseid].tables[a.tableid].columns,T.options.autocommit&&T.databases[a.databaseid].engineid?a.datafn=function(e,t,n,r,s){return s.engines[s.databases[a.databaseid].engineid].fromTable(a.databaseid,a.tableid,n,r,e)}:T.databases[a.databaseid].tables[a.tableid].view?a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].select(t);return n&&(i=n(i,r,e)),i}:a.datafn=function(e,t,n,r,s){var i=s.databases[a.databaseid].tables[a.tableid].data;return n&&(i=n(i,r,e)),i};else if(t instanceof ne.Select)a.subquery=t.compile(e.database.databaseid),"undefined"==typeof a.subquery.query.modifier&&(a.subquery.query.modifier="RECORDSET"),a.columns=a.subquery.query.columns,a.datafn=function(e,t,n,r,s){var i;return a.subquery(e.params,function(t){return i=t.data,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.Search)a.subsearch=t,a.columns=[],a.datafn=function(e,t,n,r,s){var i;return a.subsearch.execute(e.database.databaseid,e.params,function(t){return i=t,n&&(i=n(i,r,e)),i}),i};else if(t instanceof ne.ParamValue){var s="var res = alasql.prepareFromData(params['"+t.param+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t.inserted){var s="var res = alasql.prepareFromData(alasql.inserted";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.Json){var s="var res = alasql.prepareFromData("+t.toJS();t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.VarValue){var s="var res = alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(s+=",true"),s+=");if(cb)res=cb(res,idx,query);return res",a.datafn=new Function("query,params,cb,idx,alasql",s)}else if(t instanceof ne.FuncValue){var i="var res=alasql.from['"+t.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(i+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",i+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):i+="null,null,",i+="cb,idx,query",i+=");/*if(cb)res=cb(res,idx,query);*/return res",a.datafn=new Function("query, params, cb, idx, alasql",i)}else{if(!(t instanceof ne.FromData))throw new Error("Wrong table at FROM");a.datafn=function(e,n,r,a,s){var i=t.data;return r&&(i=r(i,a,e)),i}}e.sources.push(a)}),e.defaultTableid=e.sources[0].alias)},T.prepareFromData=function(e,t){var n=e;if("string"==typeof e){if(n=e.split(/\r?\n/),t)for(var r=0,a=n.length;a>r;r++)n[r]=[n[r]]}else if(t){n=[];for(var r=0,a=e.length;a>r;r++)n.push([e[r]])}else if("object"==typeof e&&!(e instanceof Array))if("undefined"!=typeof Mongo&&"undefined"!=typeof Mongo.Collection&&e instanceof Mongo.Collection)n=e.find().fetch();else{n=[];for(var s in e)e.hasOwnProperty(s)&&n.push([s,e[s]])}return n},ne.Select.prototype.compileJoins=function(e){this.joins.forEach(function(t){if("CROSS"==t.joinmode){if(t.using||t.on)throw new Error("CROSS JOIN cannot have USING or ON clauses");"INNER"==t.joinmode}var r,a;if(t instanceof ne.Apply)r={alias:t.as,applymode:t.applymode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.applyselect=t.select.compile(e.database.databaseid),r.columns=r.applyselect.query.columns,r.datafn=function(e,t,n,r,a){var s;return n&&(s=n(s,r,e)),s},e.sources.push(r);else{if(t.table){if(a=t.table,r={alias:t.as||a.tableid,databaseid:a.databaseid||e.database.databaseid,tableid:a.tableid,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},!T.databases[r.databaseid].tables[r.tableid])throw new Error("Table '"+r.tableid+"' is not exists in database '"+r.databaseid)+"'";r.columns=T.databases[r.databaseid].tables[r.tableid].columns,T.options.autocommit&&T.databases[r.databaseid].engineid?r.datafn=function(e,t,n,a,s){return s.engines[s.databases[r.databaseid].engineid].fromTable(r.databaseid,r.tableid,n,a,e)}:T.databases[r.databaseid].tables[r.tableid].view?r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].select(t);return n&&(i=n(i,a,e)),i}:r.datafn=function(e,t,n,a,s){var i=s.databases[r.databaseid].tables[r.tableid].data;return n&&(i=n(i,a,e)),i},e.aliases[r.alias]={tableid:a.tableid,databaseid:a.databaseid||e.database.databaseid}}else if(t.select){var a=t.select;r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n,columns:[]},r.subquery=a.compile(e.database.databaseid),"undefined"==typeof r.subquery.query.modifier&&(r.subquery.query.modifier="RECORDSET"),r.columns=r.subquery.query.columns,r.datafn=function(e,t,n,a,s){return r.subquery(e.params,null,n,a).data},e.aliases[r.alias]={type:"subquery"}}else if(t.param){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var s=t.param.param,i="var res=alasql.prepareFromData(params['"+s+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"paramvalue"}}else if(t.variable){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var i="var res=alasql.prepareFromData(alasql.vars['"+t.variable+"']";t.array&&(i+=",true"),i+=");if(cb)res=cb(res, idx, query);return res",r.datafn=new Function("query,params,cb,idx, alasql",i),e.aliases[r.alias]={type:"varvalue"}}else if(t.funcid){r={alias:t.as,joinmode:t.joinmode,onmiddlefn:n,srcwherefns:"",srcwherefn:n};var o="var res=alasql.from['"+js.funcid.toUpperCase()+"'](";t.args&&t.args.length>0?(o+=t.args[0]?t.args[0].toJS("query.oldscope")+",":"null,",o+=t.args[1]?t.args[1].toJS("query.oldscope")+",":"null,"):o+="null,null,",o+="cb,idx,query",o+=");/*if(cb)res=cb(res,idx,query);*/return res",r.datafn=new Function("query, params, cb, idx, alasql",o),e.aliases[r.alias]={type:"funcvalue"}}var u=r.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){var c=e.sources[e.sources.length-1],l=T.databases[c.databaseid].tables[c.tableid],h=T.databases[r.databaseid].tables[r.tableid];if(!l||!h)throw new Error("In this version of Alasql NATURAL JOIN works for tables with predefined columns only");var d=l.columns.map(function(e){return e.columnid}),f=h.columns.map(function(e){return e.columnid});t.using=_(d,f).map(function(e){return{columnid:e}})}}if(t.using){var c=e.sources[e.sources.length-1];r.onleftfns=t.using.map(function(e){return"p['"+(c.alias||c.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfns=t.using.map(function(e){return"p['"+(r.alias||r.tableid)+"']['"+e.columnid+"']"}).join('+"`"+'),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.optimization="ix"}else if(t.on)if(t.on instanceof ne.Op&&"="==t.on.op&&!t.on.allsome){r.optimization="ix";var p="",b="",g="",m=!1,v=t.on.left.toJS("p",e.defaultTableid,e.defcols),E=t.on.right.toJS("p",e.defaultTableid,e.defcols);v.indexOf("p['"+u+"']")>-1&&!(E.indexOf("p['"+u+"']")>-1)?(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=v:m=!0:!(v.indexOf("p['"+u+"']")>-1)&&E.indexOf("p['"+u+"']")>-1&&(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=v:m=!0,E.indexOf("p['"+u+"']")>-1&&!(v.indexOf("p['"+u+"']")>-1)?(E.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?b=E:m=!0:!(E.indexOf("p['"+u+"']")>-1)&&v.indexOf("p['"+u+"']")>-1&&(v.match(/p\[\'.*?\'\]/g)||[]).every(function(e){return e=="p['"+u+"']"})?p=E:m=!0,m&&(b="",p="",g=t.on.toJS("p",e.defaultTableid,e.defcols),r.optimization="no"),r.onleftfns=p,r.onrightfns=b,r.onmiddlefns=g||"true",r.onleftfn=new Function("p,params,alasql","var y;return "+r.onleftfns),r.onrightfn=new Function("p,params,alasql","var y;return "+r.onrightfns),r.onmiddlefn=new Function("p,params,alasql","var y;return "+r.onmiddlefns)}else r.optimization="no",r.onmiddlefns=t.on.toJS("p",e.defaultTableid,e.defcols),r.onmiddlefn=new Function("p,params,alasql","var y;return "+t.on.toJS("p",e.defaultTableid,e.defcols));e.sources.push(r)}})},ne.Select.prototype.compileWhere=function(e){return this.where?"function"==typeof this.where?this.where:(s=this.where.toJS("p",e.defaultTableid,e.defcols),e.wherefns=s,new Function("p,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileWhereJoins=function(e){},ne.Select.prototype.compileGroup=function(e){if(e.sources.length>0)var t=e.sources[0].alias;else var t="";var n=e.defcols,r=[[]];this.group&&(r=b(this.group,e));var a=[];r.forEach(function(e){a=j(a,e)}),e.allgroups=a,e.ingroup=[];var s="";return r.forEach(function(r){s+="var g=this.xgroups[";var i=r.map(function(t){var n=t.split(" ")[0],r=t.split(" ")[1];return""===n?"1":(e.ingroup.push(n),r)});0===i.length&&(i=["''"]),s+=i.join('+"`"+'),s+="];if(!g) {this.groups.push((g=this.xgroups[",s+=i.join('+"`"+'),s+="] = {",s+=r.map(function(e){var t=e.split(" ")[0],n=e.split(" ")[1];return""===t?"":"'"+t+"':"+n+","}).join("");var o=P(a,r);s+=o.map(function(e){var t=e.split(" ")[0];return"'"+t+"':null,"}).join("");var u="",c="";"undefined"!=typeof e.groupStar&&(c+="for(var f in p['"+e.groupStar+"']) {g[f]=p['"+e.groupStar+"'][f];};"),s+=e.selectGroup.map(function(r){var a=r.expression.toJS("p",t,n),s=r.nick;return r instanceof ne.AggrValue?(r.distinct&&(u+=",g['$$_VALUES_"+s+"']={},g['$$_VALUES_"+s+"']["+a+"]=true"),"SUM"===r.aggregatorid?"'"+s+"':("+a+")||0,":"MIN"===r.aggregatorid||"MAX"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid?"'"+s+"':"+a+",":"ARRAY"===r.aggregatorid?"'"+s+"':["+a+"],":"COUNT"===r.aggregatorid?"*"===r.expression.columnid?"'"+s+"':1,":"'"+s+"':(typeof "+a+' != "undefined")?1:0,':"AVG"===r.aggregatorid?(e.removeKeys.push("_SUM_"+s),e.removeKeys.push("_COUNT_"+s),"'"+s+"':"+a+",'_SUM_"+s+"':("+a+")||0,'_COUNT_"+s+"':(typeof "+a+' != "undefined")?1:0,'):"AGGR"===r.aggregatorid?(u+=",g['"+s+"']="+r.expression.toJS("g",-1),""):"REDUCE"===r.aggregatorid?(e.aggrKeys.push(r),"'"+s+"':alasql.aggr['"+r.funcid+"']("+a+",undefined,1),"):""):""}).join(""),s+="}"+u+",g));"+c+"} else {",s+=e.selectGroup.map(function(e){var r=e.nick,a=e.expression.toJS("p",t,n);if(e instanceof ne.AggrValue){var s="",i="";if(e.distinct)var s="if(typeof "+a+'!="undefined" && (!g[\'$$_VALUES_'+r+"']["+a+"])) {",i="g['$$_VALUES_"+r+"']["+a+"]=true;}";return"SUM"===e.aggregatorid?s+"g['"+r+"']+=("+a+"||0);"+i:"COUNT"===e.aggregatorid?"*"===e.expression.columnid?s+"g['"+r+"']++;"+i:s+"if(typeof "+a+'!="undefined") g[\''+r+"']++;"+i:"ARRAY"===e.aggregatorid?s+"g['"+r+"'].push("+a+");"+i:"MIN"===e.aggregatorid?s+"g['"+r+"']=Math.min(g['"+r+"'],"+a+");"+i:"MAX"===e.aggregatorid?s+"g['"+r+"']=Math.max(g['"+r+"'],"+a+");"+i:"FIRST"===e.aggregatorid?"":"LAST"===e.aggregatorid?s+"g['"+r+"']="+a+";"+i:"AVG"===e.aggregatorid?""+s+"g['_SUM_"+r+"']+=(y="+a+")||0;g['_COUNT_"+r+"']+=(typeof y!=\"undefined\")?1:0;g['"+r+"']=g['_SUM_"+r+"']/g['_COUNT_"+r+"'];"+i:"AGGR"===e.aggregatorid?""+s+"g['"+r+"']="+e.expression.toJS("g",-1)+";"+i:"REDUCE"===e.aggregatorid?""+s+"g['"+r+"']=alasql.aggr."+e.funcid+"("+a+",g['"+r+"'],2);"+i:""}return""}).join(""),s+="}"}),new Function("p,params,alasql","var y;"+s)},ne.Select.prototype.compileSelect1=function(t){var n=this;t.columns=[],t.xcolumns={},t.selectColumns={},t.dirtyColumns=!1;var r="var r={",a="",s=[];return this.columns.forEach(function(r){if(r instanceof ne.Column)if("*"===r.columnid)if(r.func)a+="r=params['"+r.param+"'](p['"+t.sources[0].alias+"'],p,params,alasql);";else if(r.tableid){var i=p(t,r.tableid,!1);i.s&&(s=s.concat(i.s)),a+=i.sp}else for(var o in t.aliases){var i=p(t,o,!0);i.s&&(s=s.concat(i.s)),a+=i.sp}else{var u=r.tableid,c=r.databaseid||t.sources[0].databaseid||t.database.databaseid;if(u||(u=t.defcols[r.columnid]),u||(u=t.defaultTableid),"_"!==r.columnid?s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']['"+r.columnid+"']"):s.push("'"+A(r.as||r.columnid)+"':p['"+u+"']"),t.selectColumns[A(r.as||r.columnid)]=!0,t.aliases[u]&&"table"===t.aliases[u].type){if(!T.databases[c].tables[t.aliases[u].tableid])throw new Error("Table '"+u+"' does not exists in database");var l=T.databases[c].tables[t.aliases[u].tableid].columns,h=T.databases[c].tables[t.aliases[u].tableid].xcolumns;if(h&&l.length>0){var d=h[r.columnid],f={columnid:r.as||r.columnid,dbtypeid:d.dbtypeid,dbsize:d.dbsize,dbpecision:d.dbprecision,dbenum:d.dbenum};t.columns.push(f),t.xcolumns[f.columnid]=f}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f,t.dirtyColumns=!0}}else{var f={columnid:r.as||r.columnid};t.columns.push(f),t.xcolumns[f.columnid]=f}}else if(r instanceof ne.AggrValue){n.group||(n.group=[""]),r.as||(r.as=A(r.toString())),"SUM"===r.aggregatorid||"MAX"===r.aggregatorid||"MIN"===r.aggregatorid||"FIRST"===r.aggregatorid||"LAST"===r.aggregatorid||"AVG"===r.aggregatorid||"ARRAY"===r.aggregatorid||"REDUCE"===r.aggregatorid?s.push("'"+A(r.as)+"':"+e(r.expression.toJS("p",t.defaultTableid,t.defcols))):"COUNT"===r.aggregatorid&&s.push("'"+A(r.as)+"':1");var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}else{s.push("'"+A(r.as||r.columnid||r.toString())+"':"+e(r.toJS("p",t.defaultTableid,t.defcols))),t.selectColumns[A(r.as||r.columnid||r.toString())]=!0;var f={columnid:r.as||r.columnid||r.toString()};t.columns.push(f),t.xcolumns[f.columnid]=f}}),r+=s.join(",")+"};"+a},ne.Select.prototype.compileSelect2=function(e){var t=e.selectfns;return this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(n,r){var a="$$$"+r;t+=n instanceof ne.Column&&e.xcolumns[n.columnid]?"r['"+a+"']=r['"+n.columnid+"'];":"r['"+a+"']="+n.toJS("p",e.defaultTableid,e.defcols)+";",e.removeKeys.push(a)}),new Function("p,params,alasql","var y;"+t+"return r")},ne.Select.prototype.compileSelectGroup0=function(e){var t=this;t.columns.forEach(function(n,r){if(n instanceof ne.Column&&"*"===n.columnid)e.groupStar=n.tableid||"default";else{var a;a=A(n instanceof ne.Column?n.columnid:n.toString(!0));for(var s=0;r>s;s++)if(a===t.columns[s].nick){a=t.columns[s].nick+":"+r;break}n.nick=a,!n.funcid||"ROWNUM"!==n.funcid.toUpperCase()&&"ROW_NUMBER"!==n.funcid.toUpperCase()||e.rownums.push(n.as)}}),this.columns.forEach(function(t){t.findAggregator&&t.findAggregator(e)}),this.having&&this.having.findAggregator&&this.having.findAggregator(e)},ne.Select.prototype.compileSelectGroup1=function(t){var n=this,r="var r = {};";return n.columns.forEach(function(n){if(n instanceof ne.Column&&"*"===n.columnid)return r+="for(var k in g) {r[k]=g[k]};","";var a=n.as;void 0===a&&(a=n instanceof ne.Column?A(n.columnid):n.nick),t.groupColumns[a]=n.nick,r+="r['"+a+"']=",r+=e(n.toJS("g",""))+";";for(var s=0;s-1&&(n+="r['"+(t.as||t.nick)+"']=g['"+t.nick+"'];")}),this.orderColumns&&this.orderColumns.length>0&&this.orderColumns.forEach(function(t,r){var a="$$$"+r;n+=t instanceof ne.Column&&e.groupColumns[t.columnid]?"r['"+a+"']=r['"+t.columnid+"'];":"r['"+a+"']="+t.toJS("g","")+";",e.removeKeys.push(a)}),new Function("g,params,alasql","var y;"+n+"return r")},ne.Select.prototype.compileRemoveColumns=function(e){"undefined"!=typeof this.removecolumns&&(e.removeKeys=e.removeKeys.concat(this.removecolumns.filter(function(e){return"undefined"==typeof e.like}).map(function(e){return e.columnid})),e.removeLikeKeys=this.removecolumns.filter(function(e){return"undefined"!=typeof e.like}).map(function(e){return e.like.value}))},ne.Select.prototype.compileHaving=function(e){return this.having?(s=this.having.toJS("g",-1),e.havingfns=s,new Function("g,params,alasql","var y;return "+s)):function(){return!0}},ne.Select.prototype.compileOrder=function(e){var t=this;if(t.orderColumns=[],this.order){if(this.order&&1==this.order.length&&this.order[0].expression&&"function"==typeof this.order[0].expression){var n=this.order[0].expression;return function(e,t){var r=n(e),a=n(t);return r>a?1:r==a?0:-1}}var r="",a="";return this.order.forEach(function(n,s){if(n.expression instanceof ne.NumValue)var i=t.columns[n.expression.value-1];else var i=n.expression;t.orderColumns.push(i);var o="$$$"+s,u="";if(n.expression instanceof ne.Column){var c=n.expression.columnid;if(e.xcolumns[c]){var l=e.xcolumns[c].dbtypeid;"DATE"!=l&&"DATETIME"!=l&&"DATETIME2"!=l||(u=".valueOf()")}else T.options.valueof&&(u=".valueOf()")}n.nocase&&(u+=".toUpperCase()"),r+="if((a['"+o+"']||'')"+u+("ASC"==n.direction?">":"<")+"(b['"+o+"']||'')"+u+")return 1;",r+="if((a['"+o+"']||'')"+u+"==(b['"+o+"']||'')"+u+"){",a+="}"}),r+="return 0;",r+=a+"return -1",e.orderfns=r,new Function("a,b","var y;"+r)}},ne.Select.prototype.compilePivot=function(e){var t=this,n=t.pivot.columnid,r=t.pivot.expr.expression.columnid,a=t.pivot.expr.aggregatorid,s=t.pivot.inlist;return s&&(s=s.map(function(e){return e.expr.columnid})),function(){var e=this,t=e.columns.filter(function(e){return e.columnid!=n&&e.columnid!=r}).map(function(e){return e.columnid}),i=[],o={},u={},c={},l=[]; +if(e.data.forEach(function(e){if(!s||s.indexOf(e[n])>-1){var h=t.map(function(t){return e[t]}).join("`"),d=u[h];if(d||(d={},u[h]=d,l.push(d),t.forEach(function(t){d[t]=e[t]})),c[h]||(c[h]={}),c[h][e[n]]?c[h][e[n]]++:c[h][e[n]]=1,o[e[n]]||(o[e[n]]=!0,i.push(e[n])),"SUM"==a||"AVG"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]+=e[r];else if("COUNT"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=0),d[e[n]]++;else if("MIN"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=1/0),e[r]d[e[n]]&&(d[e[n]]=e[r]);else if("FIRST"==a)"undefined"==typeof d[e[n]]&&(d[e[n]]=e[r]);else if("LAST"==a)d[e[n]]=e[r];else{if(!T.aggr[a])throw new Error("Wrong aggregator in PIVOT clause");T.aggr[a](d[e[n]],e[r])}}}),"AVG"==a)for(var h in u){var d=u[h];for(var f in d)-1==t.indexOf(f)&&f!=r&&(d[f]=d[f]/c[h][f])}e.data=l,s&&(i=s);var p=e.columns.filter(function(e){return e.columnid==r})[0];e.columns=e.columns.filter(function(e){return!(e.columnid==n||e.columnid==r)}),i.forEach(function(t){var n=H(p);n.columnid=t,e.columns.push(n)})}},ne.Select.prototype.compileUnpivot=function(e){var t=this,n=t.unpivot.tocolumnid,r=t.unpivot.forcolumnid,a=t.unpivot.inlist.map(function(e){return e.columnid});return function(){var t=[],s=e.columns.map(function(e){return e.columnid}).filter(function(e){return-1==a.indexOf(e)&&e!=r&&e!=n});e.data.forEach(function(e){a.forEach(function(a){var i={};s.forEach(function(t){i[t]=e[t]}),i[r]=a,i[n]=e[a],t.push(i)})}),e.data=t}};var se=function(e,t){for(var n=[],r=0,a=e.length,s=0;a+1>s;s++){for(var i=[],o=0;a>o;o++){if(e[o]instanceof ne.Column){e[o].nick=A(e[o].columnid),t.groupColumns[A(e[o].columnid)]=e[o].nick;var u=e[o].nick+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}else{t.groupColumns[A(e[o].toString())]=A(e[o].toString());var u=A(e[o].toString())+" "+e[o].toJS("p",t.sources[0].alias,t.defcols)}r&1<a;a++){for(var s=[],i=0;r>i;i++)a&1<"===this.op||"!"===this.op){var e=this.left.toString()+this.op;return"string"!=typeof this.right&&"number"!=typeof this.right&&(e+="("),e+=this.right.toString(),"string"!=typeof this.right&&"number"!=typeof this.right&&(e+=")"),e}return this.left.toString()+" "+this.op+" "+(this.allsome?this.allsome+" ":"")+this.right.toString()},ne.Op.prototype.findAggregator=function(e){this.left&&this.left.findAggregator&&this.left.findAggregator(e),this.right&&this.right.findAggregator&&!this.allsome&&this.right.findAggregator(e)},ne.Op.prototype.toType=function(e){if(["-","*","/","%","^"].indexOf(this.op)>-1)return"number";if(["||"].indexOf(this.op)>-1)return"string";if("+"===this.op){if("string"===this.left.toType(e)||"string"===this.right.toType(e))return"string";if("number"===this.left.toType(e)||"number"===this.right.toType(e))return"number"}return["AND","OR","NOT","=","==","===","!=","!==","!===",">",">=","<","<=","IN","NOT IN","LIKE","NOT LIKE","REGEXP","GLOB"].indexOf(this.op)>-1?"boolean":"BETWEEN"===this.op||"NOT BETWEEN"===this.op||"IS NULL"===this.op||"IS NOT NULL"===this.op?"boolean":this.allsome?"boolean":this.op?"unknown":this.left.toType()},ne.Op.prototype.toJS=function(e,t,n){var r,a=this.op,s=this,i=function(){return s.left.toJS(e,t,n)},o=function(){return s.right.toJS(e,t,n)};if("="===this.op?a="===":"<>"===this.op?a="!=":"OR"===this.op&&(a="||"),"->"===this.op){var u="("+i()+"||{})";if("string"==typeof this.right)return u+'["'+this.right+'"]';if("number"==typeof this.right)return u+"["+this.right+"]";if(this.right instanceof ne.FuncValue){var c=[];if(this.right.args&&0!==this.right.args.length)var c=this.right.args.map(function(r){return r.toJS(e,t,n)});return""+u+"['"+this.right.funcid+"']("+c.join(",")+")"}return""+u+"["+o()+"]"}if("!"===this.op&&"string"==typeof this.right)return"alasql.databases[alasql.useid].objects["+i()+']["'+this.right+'"]';if("IS"===this.op)return"((typeof "+i()+"==='undefined') === (typeof "+o()+"==='undefined'))";if("=="===this.op)return"alasql.utils.deepEqual("+i()+","+o()+")";if("==="===this.op||"!==="===this.op)return"("+("!==="===this.op?"!":"")+"(("+i()+").valueOf()===("+o()+").valueOf()))";if("!=="===this.op)return"(!alasql.utils.deepEqual("+i()+","+o()+"))";if("||"===this.op)return"(''+("+i()+"||'')+("+o()+'||""))';if("LIKE"===this.op||"NOT LIKE"===this.op){var r="("+("NOT LIKE"===this.op?"!":"")+"alasql.utils.like("+o()+","+i();return this.escape&&(r+=","+this.escape.toJS(e,t,n)),r+="))"}if("REGEXP"===this.op)return"alasql.stdfn.REGEXP_LIKE("+i()+","+o()+")";if("GLOB"===this.op)return"alasql.utils.glob("+i()+","+o()+")";if("BETWEEN"===this.op||"NOT BETWEEN"===this.op)return"("+("NOT BETWEEN"===this.op?"!":"")+"(("+this.right1.toJS(e,t,n)+"<="+i()+") && ("+i()+"<="+this.right2.toJS(e,t,n)+")))";if("IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,"+e+"))",r+=".indexOf(",r+=i()+")>-1)"):r=this.right instanceof Array?"(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf("+i()+")>-1)":"("+o()+".indexOf("+i()+")>-1)";if("NOT IN"===this.op)return this.right instanceof ne.Select?(r="(",r+="alasql.utils.flatArray(this.queriesfn["+this.queriesidx+"](params,null,p))",r+=".indexOf(",r+=i()+")<0)"):this.right instanceof Array?(r="(["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].indexOf(",r+=i()+")<0)"):(r="("+o()+".indexOf(",r+=i()+")==-1)");if("ALL"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".every(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].every(function(b){return (",r+=i()+")"+a+"b})";throw new Error("NOT IN operator without SELECT")}if("SOME"===this.allsome||"ANY"===this.allsome){var r;if(this.right instanceof ne.Select)return r="alasql.utils.flatArray(this.query.queriesfn["+this.queriesidx+"](params,null,p))",r+=".some(function(b){return (",r+=i()+")"+a+"b})";if(this.right instanceof Array)return r="["+this.right.map(function(r){return r.toJS(e,t,n)}).join(",")+"].some(function(b){return (",r+=i()+")"+a+"b})";throw new Error("SOME/ANY operator without SELECT")}if("AND"===this.op){if(this.left.reduced)return this.right.reduced?"true":o();if(this.right.reduced)return i();a="&&"}return"(("+i()+")"+a+"("+o()+"))"},ne.VarValue=function(e){return ne.extend(this,e)},ne.VarValue.prototype.toString=function(){return"@"+this.variable},ne.VarValue.prototype.toType=function(){return"unknown"},ne.VarValue.prototype.toJS=function(){return"alasql.vars['"+this.variable+"']"},ne.NumValue=function(e){return ne.extend(this,e)},ne.NumValue.prototype.toString=function(){return this.value.toString()},ne.NumValue.prototype.toType=function(){return"number"},ne.NumValue.prototype.toJS=function(){return""+this.value},ne.StringValue=function(e){return ne.extend(this,e)},ne.StringValue.prototype.toString=function(){return"'"+this.value.toString()+"'"},ne.StringValue.prototype.toType=function(){return"string"},ne.StringValue.prototype.toJS=function(){return"'"+A(this.value)+"'"},ne.LogicValue=function(e){return ne.extend(this,e)},ne.LogicValue.prototype.toString=function(){return this.value?"TRUE":"FALSE"},ne.LogicValue.prototype.toType=function(){return"boolean"},ne.LogicValue.prototype.toJS=function(){return this.value?"true":"false"},ne.NullValue=function(e){return ne.extend(this,e)},ne.NullValue.prototype.toString=function(){return"NULL"},ne.NullValue.prototype.toJS=function(){return"undefined"},ne.ParamValue=function(e){return ne.extend(this,e)},ne.ParamValue.prototype.toString=function(){return"$"+this.param},ne.ParamValue.prototype.toJS=function(){return"string"==typeof this.param?"params['"+this.param+"']":"params["+this.param+"]"},ne.UniOp=function(e){return ne.extend(this,e)},ne.UniOp.prototype.toString=function(){return"~"===this.op?this.op+this.right.toString():"-"===this.op?this.op+this.right.toString():"+"===this.op?this.op+this.right.toString():"#"===this.op?this.op+this.right.toString():"NOT"===this.op?this.op+"("+this.right.toString()+")":null==this.op?"("+this.right.toString()+")":void 0},ne.UniOp.prototype.findAggregator=function(e){this.right.findAggregator&&this.right.findAggregator(e)},ne.UniOp.prototype.toType=function(){return"-"===this.op?"number":"+"===this.op?"number":"NOT"===this.op?"boolean":void 0},ne.UniOp.prototype.toJS=function(e,t,n){return"~"===this.op?"(~("+this.right.toJS(e,t,n)+"))":"-"===this.op?"(-("+this.right.toJS(e,t,n)+"))":"+"===this.op?"("+this.right.toJS(e,t,n)+")":"NOT"===this.op?"!("+this.right.toJS(e,t,n)+")":"#"===this.op?this.right instanceof ne.Column?"(alasql.databases[alasql.useid].objects['"+this.right.columnid+"'])":"(alasql.databases[alasql.useid].objects["+this.right.toJS(e,t,n)+"])":null==this.op?"("+this.right.toJS(e,t,n)+")":void 0},ne.Column=function(e){return ne.extend(this,e)},ne.Column.prototype.toString=function(e){var t;return t=this.columnid===+this.columnid?"["+this.columnid+"]":this.columnid,this.tableid&&(t=+this.columnid===this.columnid?this.tableid+t:this.tableid+"."+t,this.databaseid&&(t=this.databaseid+"."+t)),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.Column.prototype.toJS=function(e,t,n){var r="";if(this.tableid||""!==t||n)if("g"===e)r="g['"+this.nick+"']";else if(this.tableid)r="_"!==this.columnid?e+"['"+this.tableid+"']['"+this.columnid+"']":"g"===e?"g['_']":e+"['"+this.tableid+"']";else if(n){var a=n[this.columnid];if("-"===a)throw new Error('Cannot resolve column "'+this.columnid+'" because it exists in two source tables');r=a?"_"!==this.columnid?e+"['"+a+"']['"+this.columnid+"']":e+"['"+a+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']"}else r=-1===t?e+"['"+this.columnid+"']":"_"!==this.columnid?e+"['"+(this.tableid||t)+"']['"+this.columnid+"']":e+"['"+(this.tableid||t)+"']";else r="_"!==this.columnid?e+"['"+this.columnid+"']":"g"===e?"g['_']":e;return r},ne.AggrValue=function(e){return ne.extend(this,e)},ne.AggrValue.prototype.toString=function(e){var t="";return t+="REDUCE"===this.aggregatorid?this.funcid+"(":this.aggregatorid+"(",this.distinct&&(t+="DISTINCT "),this.expression&&(t+=this.expression.toString()),t+=")",this.over&&(t+=" "+this.over.toString()),this.alias&&!e&&(t+=" AS "+this.alias),t},ne.AggrValue.prototype.findAggregator=function(e){var t=A(this.toString())+":"+e.selectGroup.length,n=!1;if(!n){if(!this.nick){this.nick=t;for(var n=!1,r=0;r-1?"number":["ARRAY"].indexOf(this.aggregatorid)>-1?"array":["FIRST","LAST"].indexOf(this.aggregatorid)>-1?this.expression.toType():void 0},ne.AggrValue.prototype.toJS=function(){var e=this.nick;return void 0===e&&(e=this.toString()),"g['"+e+"']"},ne.OrderExpression=function(e){return ne.extend(this,e)},ne.OrderExpression.prototype.toString=ne.Expression.prototype.toString,ne.GroupExpression=function(e){return ne.extend(this,e)},ne.GroupExpression.prototype.toString=function(){return this.type+"("+this.group.toString()+")"},ne.FromData=function(e){return ne.extend(this,e)},ne.FromData.prototype.toString=function(){return this.data?"DATA("+(1e16*Math.random()|0)+")":"?"},ne.FromData.prototype.toJS=function(){},ne.Select.prototype.exec=function(e,t){this.preparams&&(e=this.preparams.concat(e));var n=T.useid;db=T.databases[n];var r=this.toString(),a=V(r),s=this.compile(n);if(s){s.sql=r,s.dbversion=db.dbversion,db.sqlCacheSize>T.MAXSQLCACHESIZE&&db.resetSqlCache(),db.sqlCacheSize++,db.sqlCache[a]=s;var i=T.res=s(e,t);return i}},ne.Select.prototype.Select=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.columns=[],args.forEach(function(t){if("string"==typeof t)e.columns.push(new ne.Column({columnid:t}));else if("function"==typeof t){var n=0;e.preparams?n=e.preparams.length:e.preparams=[],e.preparams.push(t),e.columns.push(new ne.Column({columnid:"*",func:t,param:n}))}}),e},ne.Select.prototype.From=function(e){var t=this;if(t.from||(t.from=[]),e instanceof Array){var n=0;t.preparams?n=t.preparams.length:t.preparams=[],t.preparams.push(e),t.from.push(new ne.ParamValue({param:n}))}else{if("string"!=typeof e)throw new Error("Unknown arguments in From() function");t.from.push(new ne.Table({tableid:e}))}return t},ne.Select.prototype.OrderBy=function(){var e=this;if(e.order=[],0==arguments.length)args=["_"];else if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return args.length>0&&args.forEach(function(t){var n=new ne.Column({columnid:t});"function"==typeof t&&(n=t),e.order.push(new ne.OrderExpression({expression:n,direction:"ASC"}))}),e},ne.Select.prototype.Top=function(e){var t=this;return t.top=new ne.NumValue({value:e}),t},ne.Select.prototype.GroupBy=function(){var e=this;if(arguments.length>1)args=Array.prototype.slice.call(arguments);else{if(1!=arguments.length)throw new Error("Wrong number of arguments of Select() function");arguments[0]instanceof Array?args=arguments[0]:args=[arguments[0]]}return e.group=[],args.forEach(function(t){var n=new ne.Column({columnid:t});e.group.push(n)}),e},ne.Select.prototype.Where=function(e){var t=this;return"function"==typeof e&&(t.where=e),t},ne.FuncValue=function(e){return ne.extend(this,e)},ne.FuncValue.prototype.toString=function(e){var t="";return T.fn[this.funcid]?t+=this.funcid:T.aggr[this.funcid]?t+=this.funcid:(T.stdlib[this.funcid.toUpperCase()]||T.stdfn[this.funcid.toUpperCase()])&&(t+=this.funcid.toUpperCase()),t+="(",this.args&&this.args.length>0&&(t+=this.args.map(function(e){return e.toString()}).join(",")),t+=")",this.as&&!e&&(t+=" AS "+this.as.toString()),t},ne.FuncValue.prototype.execute=function(e,t,n){var r=1;T.precompile(this,e,t);var a=new Function("params,alasql","var y;return "+this.toJS("","",null));return a(t,T),n&&(r=n(r)),r},ne.FuncValue.prototype.findAggregator=function(e){this.args&&this.args.length>0&&this.args.forEach(function(t){t.findAggregator&&t.findAggregator(e)})},ne.FuncValue.prototype.toJS=function(e,t,n){var r="",a=this.funcid;return T.fn[a]?(this.newid&&(r+="new "),r+="alasql.fn."+this.funcid+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"):T.stdlib[a.toUpperCase()]?r+=this.args&&this.args.length>0?T.stdlib[a.toUpperCase()].apply(this,this.args.map(function(n){return n.toJS(e,t)})):T.stdlib[a.toUpperCase()]():T.stdfn[a.toUpperCase()]&&(this.newid&&(r+="new "),r+="alasql.stdfn."+this.funcid.toUpperCase()+"(",this.args&&this.args.length>0&&(r+=this.args.map(function(r){return r.toJS(e,t,n)}).join(",")),r+=")"),r};var ce=T.stdlib={},le=T.stdfn={};ce.ABS=function(e){return"Math.abs("+e+")"},ce.CLONEDEEP=function(e){return"alasql.utils.cloneDeep("+e+")"},le.CONCAT=function(){return Array.prototype.slice.call(arguments).join("")},ce.EXP=function(e){return"Math.pow(Math.E,"+e+")"},ce.IIF=function(e,t,n){if(3==arguments.length)return"(("+e+")?("+t+"):("+n+"))";throw new Error("Number of arguments of IFF is not equals to 3")},ce.IFNULL=function(e,t){return"("+e+"||"+t+")"},ce.INSTR=function(e,t){return"(("+e+").indexOf("+t+")+1)"},ce.LEN=ce.LENGTH=function(e){return t(e,"y.length")},ce.LOWER=ce.LCASE=function(e){return t(e,"String(y).toLowerCase()")},ce.MAX=ce.GREATEST=function(){return"Math.max("+Array.prototype.join.call(arguments,",")+")"},ce.MIN=ce.LEAST=function(){return"Math.min("+Array.prototype.join.call(arguments,",")+")"},ce.SUBSTRING=ce.SUBSTR=ce.MID=function(e,n,r){return 2==arguments.length?t(e,"y.substr("+n+"-1)"):3==arguments.length?t(e,"y.substr("+n+"-1,"+r+")"):void 0},le.REGEXP_LIKE=function(e,t,n){return(e||"").search(RegExp(t,n))>-1},ce.ISNULL=ce.NULLIF=function(e,t){return"("+e+"=="+t+"?undefined:"+e+")"},ce.POWER=function(e,t){return"Math.pow("+e+","+t+")"},ce.RANDOM=function(e){return 0==arguments.length?"Math.random()":"(Math.random()*("+e+")|0)"},ce.ROUND=function(e,t){return 2==arguments.length?"Math.round(("+e+")*Math.pow(10,("+t+")))/Math.pow(10,("+t+"))":"Math.round("+e+")"},ce.CEIL=ce.CEILING=function(e){return"Math.ceil("+e+")"},ce.FLOOR=function(e){return"Math.floor("+e+")"},ce.ROWNUM=function(){return"1"},ce.ROW_NUMBER=function(){return"1"},ce.SQRT=function(e){return"Math.sqrt("+e+")"},ce.TRIM=function(e){return t(e,"y.trim()")},ce.UPPER=ce.UCASE=function(e){return t(e,"String(y).toUpperCase()")},le.CONCAT_WS=function(){return args=Array.prototype.slice.call(arguments),args.slice(1,args.length).join(args[0])},T.aggr.GROUP_CONCAT=function(e,t,n){return 1==n?e:2==n?t+","+e:void 0},T.aggr.MEDIAN=function(e,t,n){if(1==n)return[e];if(2==n)return t.push(e),t;var r=t.sort();return r[r.length/2|0]},T.aggr.VAR=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r-1},T.aggr.STDEV=function(e,t,n){return 1==n||2==n?T.aggr.VAR(e,t,n):Math.sqrt(T.aggr.VAR(e,t,n))},T.aggr.VARP=function(e,t,n){if(1==n)return{arr:[e],sum:e};if(2==n)return t.arr.push(e),t.sum+=e,t;for(var r=t.arr.length,a=t.sum/r,s=0,i=0;r>i;i++)s+=(t.arr[i]-a)*(t.arr[i]-a);return s/=r},T.aggr.STD=T.aggr.STDDEV=T.aggr.STDEVP=function(e,t,n){return 1==n||2==n?T.aggr.VARP(e,t,n):Math.sqrt(T.aggr.VARP(e,t,n))},le.REPLACE=function(e,t,n){return(e||"").split(t).join(n)};for(var he=[],de=0;256>de;de++)he[de]=(16>de?"0":"")+de.toString(16);le.NEWID=le.UUID=le.GEN_RANDOM_UUID=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return he[255&e]+he[e>>8&255]+he[e>>16&255]+he[e>>24&255]+"-"+he[255&t]+he[t>>8&255]+"-"+he[t>>16&15|64]+he[t>>24&255]+"-"+he[63&n|128]+he[n>>8&255]+"-"+he[n>>16&255]+he[n>>24&255]+he[255&r]+he[r>>8&255]+he[r>>16&255]+he[r>>24&255]},ne.CaseValue=function(e){return ne.extend(this,e)},ne.CaseValue.prototype.toString=function(){var e="CASE ";return this.expression&&(e+=this.expression.toString()),this.whens&&(e+=this.whens.map(function(e){return" WHEN "+e.when.toString()+" THEN "+e.then.toString()}).join()),e+=" END"},ne.CaseValue.prototype.findAggregator=function(e){this.expression&&this.expression.findAggregator&&this.expression.findAggregator(e),this.whens&&this.whens.length>0&&this.whens.forEach(function(t){t.when.findAggregator&&t.when.findAggregator(e),t.then.findAggregator&&t.then.findAggregator(e)}),this.elses&&this.elses.findAggregator&&this.elses.findAggregator(e)},ne.CaseValue.prototype.toJS=function(e,t,n){var r="((function("+e+",params,alasql){var r;";return this.expression?(r+="v="+this.expression.toJS(e,t,n)+";",r+=(this.whens||[]).map(function(r){return" if(v=="+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")):(r+=(this.whens||[]).map(function(r){return" if("+r.when.toJS(e,t,n)+") {r="+r.then.toJS(e,t,n)+"}"}).join(" else "),this.elses&&(r+=" else {r="+this.elses.toJS(e,t,n)+"}")),r+=";return r;}).bind(this))("+e+",params,alasql)"},ne.Json=function(e){return ne.extend(this,e)},ne.Json.prototype.toString=function(){var e="";return e+=fe(this.value),e+=""};var fe=T.utils.JSONtoString=function(e){var t="";if("string"==typeof e)t='"'+e+'"';else if("number"==typeof e)t=e;else if("boolean"==typeof e)t=e;else{if("object"!=typeof e)throw new Error("2Can not show JSON object "+JSON.stringify(e));if(e instanceof Array)t+="["+e.map(function(e){return fe(e)}).join(",")+"]";else if(!e.toJS||e instanceof ne.Json){t="{";var n=[];for(var r in e){var a="";if("string"==typeof r)a+='"'+r+'"';else if("number"==typeof r)a+=r;else{if("boolean"!=typeof r)throw new Error("THis is not ES6... no expressions on left side yet");a+=r}a+=":"+fe(e[r]),n.push(a)}t+=n.join(",")+"}"}else{if(!e.toString)throw new Error("1Can not show JSON object "+JSON.stringify(e));t=e.toString()}}return t};ne.Json.prototype.toJS=function(e,t,n){return g(this.value,e,t,n)},ne.Convert=function(e){return ne.extend(this,e)},ne.Convert.prototype.toString=function(){var e="CONVERT(";return e+=this.dbtypeid,"undefined"!=typeof this.dbsize&&(e+="("+this.dbsize,this.dbprecision&&(e+=","+dbprecision),e+=")"),e+=","+this.expression.toString(),this.style&&(e+=","+this.style),e+=")"},ne.Convert.prototype.toJS=function(e,t,n){return"alasql.stdfn.CONVERT("+this.expression.toJS(e,t,n)+',{dbtypeid:"'+this.dbtypeid+'",dbsize:'+this.dbsize+",style:"+this.style+"})"},T.stdfn.CONVERT=function(e,t){var n=e;if(t.style){var r;if(r=/\d{8}/.test(n)?new Date(+n.substr(0,4),+n.substr(4,2)-1,+n.substr(6,2)):new Date(n),1==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(2==t.style)n=("0"+r.getYear()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(3==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getYear()).substr(-2);else if(4==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getYear()).substr(-2);else if(5==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(6==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+("0"+r.getYear()).substr(-2);else if(7==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+("0"+r.getYear()).substr(-2);else if(8==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(10==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+("0"+r.getYear()).substr(-2);else if(11==t.style)n=("0"+r.getYear()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else if(12==t.style)n=("0"+r.getYear()).substr(-2)+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2);else if(101==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2)+"/"+r.getFullYear();else if(102==t.style)n=r.getFullYear()+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+("0"+r.getDate()).substr(-2);else if(103==t.style)n=("0"+r.getDate()).substr(-2)+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+r.getFullYear();else if(104==t.style)n=("0"+r.getDate()).substr(-2)+"."+("0"+(r.getMonth()+1)).substr(-2)+"."+r.getFullYear();else if(105==t.style)n=("0"+r.getDate()).substr(-2)+"-"+("0"+(r.getMonth()+1)).substr(-2)+"-"+r.getFullYear();else if(106==t.style)n=("0"+r.getDate()).substr(-2)+" "+r.toString().substr(4,3).toLowerCase()+" "+r.getFullYear();else if(107==t.style)n=r.toString().substr(4,3)+" "+("0"+r.getDate()).substr(-2)+","+r.getFullYear();else if(108==t.style)n=("0"+r.getHours()).substr(-2)+":"+("0"+r.getMinutes()).substr(-2)+":"+("0"+r.getSeconds()).substr(-2);else if(110==t.style)n=("0"+(r.getMonth()+1)).substr(-2)+"-"+("0"+r.getDate()).substr(-2)+"-"+r.getFullYear();else if(111==t.style)n=r.getFullYear()+"/"+("0"+(r.getMonth()+1)).substr(-2)+"/"+("0"+r.getDate()).substr(-2);else{if(112!=t.style)throw new Error("The CONVERT style "+t.style+" is not realized yet.");n=r.getFullYear()+("0"+(r.getMonth()+1)).substr(-2)+("0"+r.getDate()).substr(-2)}}var a=t.dbtypeid.toUpperCase();if("Date"==t.dbtypeid)return new Date(n);if("DATE"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i}if("DATETIME"==a||"DATETIME2"==a){var s=new Date(n),i=s.getFullYear()+"."+("0"+(s.getMonth()+1)).substr(-2)+"."+("0"+s.getDate()).substr(-2);return i+=" "+("0"+s.getHours()).substr(-2)+":"+("0"+s.getMinutes()).substr(-2)+":"+("0"+s.getSeconds()).substr(-2),i+="."+("00"+s.getMilliseconds()).substr(-3)}if(["MONEY"].indexOf(a)>-1){var o=+n;return(0|o)+100*o%100/100}if(["BOOLEAN"].indexOf(a)>-1)return!!n;if(["INT","INTEGER","SMALLINT","BIGINT","SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t.dbtypeid.toUpperCase())>-1)return 0|n;if(["STRING","VARCHAR","NVARCHAR","CHARACTER VARIABLE"].indexOf(t.dbtypeid.toUpperCase())>-1)return t.dbsize?(""+n).substr(0,t.dbsize):""+n;if(["CHAR","CHARACTER","NCHAR"].indexOf(a)>-1)return(n+new Array(t.dbsize+1).join(" ")).substr(0,t.dbsize);if(["NUMBER","FLOAT"].indexOf(a)>-1){if("undefined"!=typeof t.dbprecision){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}return+n}if(["DECIMAL","NUMERIC"].indexOf(a)>-1){var o=+n,u=Math.pow(10,t.dbprecision);return(0|o)+o*u%u/u}if(!(["JSON"].indexOf(a)>-1))throw new Error("Wrong conversion type");if("object"==typeof n)return n;try{return JSON.parse(n)}catch(c){throw new Error("Cannot convert string to JSON")}return n},ne.ColumnDef=function(e){return ne.extend(this,e)},ne.ColumnDef.prototype.toString=function(){var 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},ne.CreateTable=function(e){return ne.extend(this,e)},ne.CreateTable.prototype.toString=function(){var e="CREATE";if(this.temporary&&(e+=" TEMPORARY"),e+=this.view?" VIEW":" "+(this["class"]?"CLASS":"TABLE"),this.ifnotexists&&(e+=" IF NOT EXISTS"),e+=" "+this.table.toString(),this.viewcolumns&&(e+="("+this.viewcolumns.map(function(e){return e.toString()}).join(",")+")"),this.as)e+=" AS "+this.as;else{var t=this.columns.map(function(e){return e.toString()});e+=" ("+t.join(",")+")"}return this.view&&this.select&&(e+=" AS "+this.select.toString()),e},ne.CreateTable.prototype.execute=function(e,t,n){var r=T.databases[this.table.databaseid||e],a=this.table.tableid;if(!a)throw new Error("Table name is not defined");var s=this.columns,i=this.constraints||[];if(this.ifnotexists&&r.tables[a])return 0;if(r.tables[a])throw new Error("Can not create table '"+a+"', because it already exists in the database '"+r.databaseid+"'");var o=r.tables[a]=new T.Table;this["class"]&&(o.isclass=!0);var u=[],c=[];if(s&&s.forEach(function(e){var t=e.dbtypeid;T.fn[t]||(t=t.toUpperCase()),["SERIAL","SMALLSERIAL","BIGSERIAL"].indexOf(t)>-1&&(e.identity={value:1,step:1});var n={columnid:e.columnid,dbtypeid:t,dbsize:e.dbsize,dbprecision:e.dbprecision,notnull:e.notnull,identity:e.identity};if(e.identity&&(o.identities[e.columnid]={value:+e.identity.value,step:+e.identity.step}),e.check&&o.checkfn.push(new Function("r","var y;return "+e.check.expression.toJS("r",""))),e["default"]&&u.push("'"+e.columnid+"':"+e["default"].toJS("r","")),e.primarykey){var r=o.pk={};r.columns=[e.columnid],r.onrightfns="r['"+e.columnid+"']",r.onrightfn=new Function("r","var y;return "+r.onrightfns),r.hh=V(r.onrightfns),o.uniqs[r.hh]={}}if(e.unique){var a={};o.uk=o.uk||[],o.uk.push(a),a.columns=[e.columnid],a.onrightfns="r['"+e.columnid+"']",a.onrightfn=new Function("r","var y;return "+a.onrightfns),a.hh=V(a.onrightfns),o.uniqs[a.hh]={}}if(e.foreignkey){var s=e.foreignkey.table,i=T.databases[s.databaseid||T.useid].tables[s.tableid];if("undefined"==typeof s.columnid){if(!(i.pk.columns&&i.pk.columns.length>0))throw new Error("FOREIGN KEY allowed only to tables with PRIMARY KEYs");s.columnid=i.pk.columns[0]}var l=function(t){var n={};if("undefined"==typeof t[e.columnid])return!0;n[s.columnid]=t[e.columnid];var r=i.pk.onrightfn(n);if(!i.uniqs[i.pk.hh][r])throw new Error('Foreign key "'+t[e.columnid]+'" is not found in table '+i.tableid); +return!0};o.checkfn.push(l)}e.onupdate&&c.push("r['"+e.columnid+"']="+e.onupdate.toJS("r","")),o.columns.push(n),o.xcolumns[n.columnid]=n}),o.defaultfns=u.join(","),o.onupdatefns=c.join(";"),i.forEach(function(e){if("PRIMARY KEY"===e.type){if(o.pk)throw new Error("Primary key already exists");var t=o.pk={};t.columns=e.columns,t.onrightfns=t.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),t.onrightfn=new Function("r","var y;return "+t.onrightfns),t.hh=V(t.onrightfns),o.uniqs[t.hh]={}}else if("CHECK"===e.type)o.checkfn.push(new Function("r","var y;return "+e.expression.toJS("r","")));else if("UNIQUE"===e.type){var n={};o.uk=o.uk||[],o.uk.push(n),n.columns=e.columns,n.onrightfns=n.columns.map(function(e){return"r['"+e+"']"}).join("+'`'+"),n.onrightfn=new Function("r","var y;return "+n.onrightfns),n.hh=V(n.onrightfns),o.uniqs[n.hh]={}}else if("FOREIGN KEY"===e.type){var r=o.xcolumns[e.columns[0]],a=e.fktable;e.fkcolumns&&e.fkcolumns.length>0&&(a.columnid=e.fkcolumns[0]);var s=T.databases[a.databaseid||T.useid].tables[a.tableid];"undefined"==typeof a.columnid&&(a.columnid=s.pk.columns[0]);var i=function(e){var t={};if("undefined"==typeof e[r.columnid])return!0;t[a.columnid]=e[r.columnid];var n=s.pk.onrightfn(t);if(!s.uniqs[s.pk.hh][n])throw new Error('Foreign key "'+e[r.columnid]+'" is not found in table '+s.tableid);return!0};o.checkfn.push(i)}}),this.view&&this.viewcolumns){var l=this;this.viewcolumns.forEach(function(e,t){l.select.columns[t].as=e.columnid})}if(r.engineid)return T.engines[r.engineid].createTable(this.table.databaseid||e,a,this.ifnotexists,n);o.insert=function(n,r){var a=T.inserted;T.inserted=[n];var s=this,i=!1,o=!1;for(var u in s.beforeinsert){var c=s.beforeinsert[u];c&&(c.funcid?T.fn[c.funcid](n)===!1&&(o=o||!0):c.statement&&c.statement.execute(e)===!1&&(o=o||!0))}if(!o){var l=!1;for(var u in s.insteadofinsert){l=!0;var c=s.insteadofinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}if(!l){for(var h in s.identities){var d=s.identities[h];n[h]=d.value}if(s.checkfn&&s.checkfn.length>0&&s.checkfn.forEach(function(e){if(!e(n))throw new Error("Violation of CHECK constraint")}),s.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof n[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),s.pk){var f=s.pk,p=f.onrightfn(n);if("undefined"!=typeof s.uniqs[f.hh][p]){if(!r)throw new Error("Cannot insert record, because it already exists in primary key index");i=s.uniqs[f.hh][p]}}if(s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);if("undefined"!=typeof s.uniqs[e.hh][t]){if(!r)throw new Error("Cannot insert record, because it already exists in unique index");i=s.uniqs[e.hh][t]}}),i)s.update(function(e){for(var t in n)e[t]=n[t]},s.data.indexOf(i),t);else{s.data.push(n);for(var h in s.identities){var d=s.identities[h];d.value+=d.step}if(s.pk){var f=s.pk,p=f.onrightfn(n);s.uniqs[f.hh][p]=n}s.uk&&s.uk.length&&s.uk.forEach(function(e){var t=e.onrightfn(n);s.uniqs[e.hh][t]=n})}for(var u in s.afterinsert){var c=s.afterinsert[u];c&&(c.funcid?T.fn[c.funcid](n):c.statement&&c.statement.execute(e))}T.inserted=a}}},o["delete"]=function(t){var n=this,r=n.data[t],a=!1;for(var s in n.beforedelete){var i=n.beforedelete[s];i&&(i.funcid?T.fn[i.funcid](r)===!1&&(a=a||!0):i.statement&&i.statement.execute(e)===!1&&(a=a||!0))}if(a)return!1;var o=!1;for(var s in n.insteadofdelete){o=!0;var i=n.insteadofdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}if(!o){if(this.pk){var u=this.pk,c=u.onrightfn(r);if("undefined"==typeof this.uniqs[u.hh][c])throw new Error("Something wrong with primary key index on table");this.uniqs[u.hh][c]=void 0}n.uk&&n.uk.length&&n.uk.forEach(function(e){var t=e.onrightfn(r);if("undefined"==typeof n.uniqs[e.hh][t])throw new Error("Something wrong with unique index on table");n.uniqs[e.hh][t]=void 0});for(var s in n.afterdelete){var i=n.afterdelete[s];i&&(i.funcid?T.fn[i.funcid](r):i.statement&&i.statement.execute(e))}}},o.deleteall=function(){this.data.length=0,this.pk&&(this.uniqs[this.pk.hh]={}),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh]={}})},o.update=function(t,n,r){var a,s=H(this.data[n]);if(this.pk&&(a=this.pk,a.pkaddr=a.onrightfn(s,r),"undefined"==typeof this.uniqs[a.hh][a.pkaddr]))throw new Error("Something wrong with index on table");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.ukaddr=e.onrightfn(s),"undefined"==typeof o.uniqs[e.hh][e.ukaddr])throw new Error("Something wrong with unique index on table")}),t(s,r,T);var i=!1;for(var u in o.beforeupdate){var c=o.beforeupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s)===!1&&(i=i||!0):c.statement&&c.statement.execute(e)===!1&&(i=i||!0))}if(i)return!1;var l=!1;for(var u in o.insteadofupdate){l=!0;var c=o.insteadofupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}if(!l){if(o.checkfn&&o.checkfn.length>0&&o.checkfn.forEach(function(e){if(!e(s))throw new Error("Violation of CHECK constraint")}),o.columns.forEach(function(e){if(e.notnull&&"undefined"==typeof s[e.columnid])throw new Error("Wrong NULL value in NOT NULL column "+e.columnid)}),this.pk&&(a.newpkaddr=a.onrightfn(s),"undefined"!=typeof this.uniqs[a.hh][a.newpkaddr]&&a.newpkaddr!==a.pkaddr))throw new Error("Record already exists");o.uk&&o.uk.length&&o.uk.forEach(function(e){if(e.newukaddr=e.onrightfn(s),"undefined"!=typeof o.uniqs[e.hh][e.newukaddr]&&e.newukaddr!==e.ukaddr)throw new Error("Record already exists")}),this.pk&&(this.uniqs[a.hh][a.pkaddr]=void 0,this.uniqs[a.hh][a.newpkaddr]=s),o.uk&&o.uk.length&&o.uk.forEach(function(e){o.uniqs[e.hh][e.ukaddr]=void 0,o.uniqs[e.hh][e.newukaddr]=s}),this.data[n]=s;for(var u in o.afterupdate){var c=o.afterupdate[u];c&&(c.funcid?T.fn[c.funcid](this.data[n],s):c.statement&&c.statement.execute(e))}}},this.view&&this.select&&(o.view=!0,o.select=this.select.compile(this.table.databaseid||e));var h;return T.options.nocount||(h=1),n&&(h=n(h)),h},T.fn.Date=Object,T.fn.Date=Date,T.fn.Number=Number,T.fn.String=String,T.fn.Boolean=Boolean,le.EXTEND=T.utils.extend,le.CHAR=String.fromCharCode.bind(String),le.ASCII=function(e){return e.charCodeAt(0)},le.COALESCE=function(){for(var e=0;e0)var r=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),s=new Function("x,params,alasql",r);var i=function(e,r){var i,o,u=T.databases[t];o="undefined"!=typeof n?n:u.counter++;var c={$id:o,$node:"VERTEX"};return u.objects[c.$id]=c,i=c,a&&a(c),s&&s(c,e,T),r&&(i=r(i)),i};return i},ne.CreateEdge=function(e){return ne.extend(this,e)},ne.CreateEdge.prototype.toString=function(){var e="CREATE EDGE ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateEdge.prototype.toJS=function(e){var t="this.queriesfn["+(this.queriesidx-1)+"](this.params,null,"+e+")";return t},ne.CreateEdge.prototype.compile=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],void 0===l.$out&&(l.$out=[]),l.$out.push(c.$id),void 0===typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.CreateGraph=function(e){return ne.extend(this,e)},ne.CreateGraph.prototype.toString=function(){var e="CREATE GRAPH ";return this["class"]&&(e+=this["class"]+" "),e},ne.CreateGraph.prototype.execute=function(e,t,n){function r(e){var t=T.databases[T.useid].objects;for(var n in t)if(t[n].name===e)return t[n]}function a(n){var r={};"undefined"!=typeof n.as&&(T.vars[n.as]=r),"undefined"!=typeof n.prop&&(r.$id=n.prop,r.name=n.prop),"undefined"!=typeof n.sharp&&(r.$id=n.sharp),"undefined"!=typeof n.name&&(r.name=n.name),"undefined"!=typeof n["class"]&&(r.$class=n["class"]);var a=T.databases[e];if("undefined"==typeof r.$id&&(r.$id=a.counter++),r.$node="VERTEX","undefined"!=typeof n.json&&Y(r,new Function("params,alasql","var y;return "+n.json.toJS())(t,T)),a.objects[r.$id]=r,"undefined"!=typeof r.$class){if("undefined"==typeof T.databases[e].tables[r.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[r.$class].data.push(r)}return s.push(r.$id),r}var s=[];return this.from&&T.from[this.from.funcid]&&(this.graph=T.from[this.from.funcid.toUpperCase()]),this.graph.forEach(function(n){if(n.source){var i={};"undefined"!=typeof n.as&&(T.vars[n.as]=i),"undefined"!=typeof n.prop&&(i.name=n.prop),"undefined"!=typeof n.sharp&&(i.$id=n.sharp),"undefined"!=typeof n.name&&(i.name=n.name),"undefined"!=typeof n["class"]&&(i.$class=n["class"]);var o=T.databases[e];"undefined"==typeof i.$id&&(i.$id=o.counter++),i.$node="EDGE","undefined"!=typeof n.json&&Y(i,new Function("params,alasql","var y;return "+n.json.toJS())(t,T));var u;if(n.source.vars){var c=T.vars[n.source.vars];u="object"==typeof c?c:o.objects[c]}else{var l=n.source.sharp;"undefined"==typeof l&&(l=n.source.prop),u=T.databases[e].objects[l],"undefined"!=typeof u||!T.options.autovertex||"undefined"==typeof n.source.prop&&"undefined"==typeof n.source.name||(u=r(n.source.prop||n.source.name),"undefined"==typeof u&&(u=a(n.source)))}var h;if(n.source.vars){var c=T.vars[n.target.vars];h="object"==typeof c?c:o.objects[c]}else{var d=n.target.sharp;"undefined"==typeof d&&(d=n.target.prop),h=T.databases[e].objects[d],"undefined"!=typeof h||!T.options.autovertex||"undefined"==typeof n.target.prop&&"undefined"==typeof n.target.name||(h=r(n.target.prop||n.target.name),"undefined"==typeof h&&(h=a(n.target)))}if(i.$in=[u.$id],i.$out=[h.$id],"undefined"==typeof u.$out&&(u.$out=[]),u.$out.push(i.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(i.$id),o.objects[i.$id]=i,"undefined"!=typeof i.$class){if("undefined"==typeof T.databases[e].tables[i.$class])throw new Error("No such class. Pleace use CREATE CLASS");T.databases[e].tables[i.$class].data.push(i)}s.push(i.$id)}else a(n)}),n&&(s=n(s)),s},ne.CreateGraph.prototype.compile1=function(e){var t=e,n=new Function("params,alasql","var y;return "+this.from.toJS()),r=new Function("params,alasql","var y;return "+this.to.toJS());if("undefined"!=typeof this.name)var a="x.name="+this.name.toJS(),s=new Function("x",a);if(this.sets&&this.sets.length>0)var a=this.sets.map(function(e){return"x['"+e.column.columnid+"']="+e.expression.toJS("x","")}).join(";"),i=new Function("x,params,alasql","var y;"+a);var o=function(e,a){var o=0,u=T.databases[t],c={$id:u.counter++,$node:"EDGE"},l=n(e,T),h=r(e,T);return c.$in=[l.$id],c.$out=[h.$id],"undefined"==typeof l.$out&&(l.$out=[]),l.$out.push(c.$id),"undefined"==typeof h.$in&&(h.$in=[]),h.$in.push(c.$id),u.objects[c.$id]=c,o=c,s&&s(c),i&&i(c,e,T),a&&(o=a(o)),o};return o},ne.AlterTable=function(e){return ne.extend(this,e)},ne.AlterTable.prototype.toString=function(){var e="ALTER TABLE "+this.table.toString();return this.renameto&&(e+=" RENAME TO "+this.renameto),e},ne.AlterTable.prototype.execute=function(e,t,n){var r=T.databases[e];if(r.dbversion=Date.now(),this.renameto){var a=this.table.tableid,s=this.renameto,i=1;if(r.tables[s])throw new Error("Can not rename a table '"+a+"' to '"+s+"', because the table with this name already exists");if(s==a)throw new Error("Can not rename a table '"+a+"' to itself");return r.tables[s]=r.tables[a],delete r.tables[a],i=1,n&&n(i),i}if(this.addcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.addcolumn.columnid;if(u.xcolumns[c])throw new Error('Cannot add column "'+c+'", because it already exists in the table "'+o+'"');var l={columnid:c,dbtypeid:this.dbtypeid,dbsize:this.dbsize,dbprecision:this.dbprecision,dbenum:this.dbenum,defaultfns:null},h=function(){};u.columns.push(l),u.xcolumns[c]=l;for(var d=0,f=u.data.length;f>d;d++)u.data[d][c]=h();return 1}if(this.modifycolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var o=this.table.tableid,u=r.tables[o],c=this.modifycolumn.columnid;if(!u.xcolumns[c])throw new Error('Cannot modify column "'+c+'", because it was not found in the table "'+o+'"');var l=u.xcolumns[c];return l.dbtypeid=this.dbtypeid,l.dbsize=this.dbsize,l.dbprecision=this.dbprecision,l.dbenum=this.dbenum,1}if(this.renamecolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;var l,o=this.table.tableid,u=r.tables[o],c=this.renamecolumn,p=this.to;if(!u.xcolumns[c])throw new Error('Column "'+c+'" is not found in the table "'+o+'"');if(u.xcolumns[p])throw new Error('Column "'+p+'" already exists in the table "'+o+'"');if(c!=p){for(var b=0;bd;d++)u.data[d][p]=u.data[d][c],delete u.data[d][c];return u.data.length}return 0}if(this.dropcolumn){var r=T.databases[this.table.databaseid||e];r.dbversion++;for(var o=this.table.tableid,u=r.tables[o],c=this.dropcolumn,g=!1,b=0;bd;d++)delete u.data[d][c];return u.data.length}throw Error("Unknown ALTER TABLE method")},ne.CreateIndex=function(e){return ne.extend(this,e)},ne.CreateIndex.prototype.toString=function(){var e="CREATE";return this.unique&&(e+=" UNIQUE"),e+=" INDEX "+this.indexid+" ON "+this.table.toString(),e+="("+this.columns.toString()+")"},ne.CreateIndex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.table.tableid,s=r.tables[a],i=this.indexid;r.indices[i]=a;var o=this.columns.map(function(e){return e.expression.toJS("r","")}).join("+'`'+"),u=new Function("r,params,alasql","return "+o);if(this.unique){s.uniqdefs[i]={rightfns:o};var c=s.uniqs[i]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=o(s.data[l]);c[d]||(c[d]={num:0}),c[d].num++}}else{var f=V(o);s.inddefs[i]={rightfns:o,hh:f},s.indices[f]={};var p=s.indices[f]={};if(s.data.length>0)for(var l=0,h=s.data.length;h>l;l++){var d=u(s.data[l],t,T);p[d]||(p[d]=[]),p[d].push(s.data[l])}}var b=1;return n&&(b=n(b)),b},ne.Reindex=function(e){return ne.extend(this,e)},ne.Reindex.prototype.toString=function(){var e="REINDEX "+this.indexid;return e},ne.Reindex.prototype.execute=function(e,t,n){var r=T.databases[e],a=this.indexid,s=r.indices[a],i=r.tables[s];i.indexColumns();var o=1;return n&&(o=n(o)),o},ne.DropIndex=function(e){return ne.extend(this,e)},ne.DropIndex.prototype.toString=function(){return"DROP INDEX"+this.indexid},ne.DropIndex.prototype.compile=function(e){this.indexid;return function(){return 1}},ne.WithSelect=function(e){return ne.extend(this,e)},ne.WithSelect.prototype.toString=function(){var e="WITH ";return e+=this.withs.map(function(e){return e.name+" AS ("+e.select.toString()+")"}).join(",")+" ",e+=this.select.toString()},ne.WithSelect.prototype.execute=function(e,t,n){var r=this,a=[];r.withs.forEach(function(n){a.push(T.databases[e].tables[n.name]);var r=T.databases[e].tables[n.name]=new ee({tableid:n.name});r.data=n.select.execute(e,t)});var s=1;return s=this.select.execute(e,t,function(t){return r.withs.forEach(function(t,n){a[n]?T.databases[e].tables[t.name]=a[n]:delete T.databases[e].tables[t.name]}),n&&(t=n(t)),t})},ne.If=function(e){return ne.extend(this,e)},ne.If.prototype.toString=function(){var e="IF ";return e+=this.expression.toString(),e+=" "+this.thenstat.toString(),this.elsestat&&(e+=" ELSE "+this.thenstat.toString()),e},ne.If.prototype.execute=function(e,t,n){var r,a=new Function("params,alasql,p","var y;return "+this.expression.toJS("({})","",null)).bind(this);return a(t,T)?r=this.thenstat.execute(e,t,n):this.elsestat?r=this.elsestat.execute(e,t,n):n&&(r=n(r)),r},ne.While=function(e){return ne.extend(this,e)},ne.While.prototype.toString=function(){var e="WHILE ";return e+=this.expression.toString(),e+=" "+this.loopstat.toString()},ne.While.prototype.execute=function(e,t,n){function r(u){o?s.push(u):o=!0,setTimeout(function(){i(t,T)?a.loopstat.execute(e,t,r):s=n(s)},0)}var a=this,s=[],i=new Function("params,alasql,p","var y;return "+this.expression.toJS());if(n){var o=!1;r()}else for(;i(t,T);){var u=a.loopstat.execute(e,t);s.push(u)}return s},ne.Break=function(e){return ne.extend(this,e)},ne.Break.prototype.toString=function(){var e="BREAK";return e},ne.Break.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.Continue=function(e){return ne.extend(this,e)},ne.Continue.prototype.toString=function(){var e="CONTINUE";return e},ne.Continue.prototype.execute=function(e,t,n,r){var a=1;return n&&(a=n(a)),a},ne.BeginEnd=function(e){return ne.extend(this,e)},ne.BeginEnd.prototype.toString=function(){var e="BEGIN "+this.statements.toString()+" END";return e},ne.BeginEnd.prototype.execute=function(e,t,n,r){function a(){s.statements[o].execute(e,t,function(e){return i.push(e),o++,o=0?r+="(x="+n[t].toJS()+",x==undefined?undefined:+x)":T.fn[s.xcolumns[e.columnid].dbtypeid]?(r+="(new "+s.xcolumns[e.columnid].dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS():r+=n[t].toJS(),u.push(r)}):n instanceof Array&&s.columns&&s.columns.length>0?s.columns.forEach(function(e,t){var r="'"+e.columnid+"':";["INT","FLOAT","NUMBER","MONEY"].indexOf(e.dbtypeid)>=0?r+="+"+n[t].toJS():T.fn[e.dbtypeid]?(r+="(new "+e.dbtypeid+"(",r+=n[t].toJS(),r+="))"):r+=n[t].toJS(),u.push(r)}):o=g(n),r.tables[a].defaultfns&&u.unshift(r.tables[a].defaultfns),i+=o?"a="+o+";":"a={"+u.join(",")+"};",r.tables[a].isclass&&(i+="var db=alasql.databases['"+e+"'];",i+='a.$class="'+a+'";',i+="a.$id=db.counter++;",i+="db.objects[a.$id]=a;"),r.tables[a].insert?(i+="var db=alasql.databases['"+e+"'];",i+="db.tables['"+a+"'].insert(a,"+(t.orreplace?"true":"false")+");"):i+="aa.push(a);"}),n=u+i,r.tables[a].insert||(i+="alasql.databases['"+e+"'].tables['"+a+"'].data=alasql.databases['"+e+"'].tables['"+a+"'].data.concat(aa);"),i+=r.tables[a].insert&&r.tables[a].isclass?"return a.$id;":"return "+t.values.length;var c=new Function("db, params, alasql","var y;"+u+i).bind(this)}else if(this.select){if(this.select.modifier="RECORDSET",selectfn=this.select.compile(e),r.engineid&&T.engines[r.engineid].intoTable){var l=function(e,t){var n=selectfn(e),s=T.engines[r.engineid].intoTable(r.databaseid,a,n.data,null,t);return s};return l}var h="return alasql.utils.extend(r,{"+s.defaultfns+"})",d=new Function("r,db,params,alasql",h),c=function(e,n,r){var s=selectfn(n).data;if(e.tables[a].insert)for(var i=0,o=s.length;o>i;i++){var u=H(s[i]);d(u,e,n,r),e.tables[a].insert(u,t.orreplace)}else e.tables[a].data=e.tables[a].data.concat(s);return r.options.nocount?void 0:s.length}}else{if(!this["default"])throw new Error("Wrong INSERT parameters");var f="db.tables['"+a+"'].data.push({"+s.defaultfns+"});return 1;",c=new Function("db,params,alasql",f)}if(r.engineid&&T.engines[r.engineid].intoTable&&T.options.autocommit)var l=function(e,t){var s=new Function("db,params","var y;"+n+"return aa;")(r,e),i=T.engines[r.engineid].intoTable(r.databaseid,a,s,null,t);return i};else var l=function(t,n){var r=T.databases[e];T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,a);var s=c(r,t,T);return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,a),T.options.nocount&&(s=void 0),n&&n(s),s};return l},ne.Insert.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.CreateTrigger=function(e){return ne.extend(this,e)},ne.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()},ne.CreateTrigger.prototype.execute=function(e,t,n){var r=1,a=this.trigger;e=this.table.databaseid||e;var s=T.databases[e],i=this.table.tableid,o={action:this.action,when:this.when,statement:this.statement,funcid:this.funcid};return s.triggers[a]=o,"INSERT"==o.action&&"BEFORE"==o.when?s.tables[i].beforeinsert[a]=o:"INSERT"==o.action&&"AFTER"==o.when?s.tables[i].afterinsert[a]=o:"INSERT"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofinsert[a]=o:"DELETE"==o.action&&"BEFORE"==o.when?s.tables[i].beforedelete[a]=o:"DELETE"==o.action&&"AFTER"==o.when?s.tables[i].afterdelete[a]=o:"DELETE"==o.action&&"INSTEADOF"==o.when?s.tables[i].insteadofdelete[a]=o:"UPDATE"==o.action&&"BEFORE"==o.when?s.tables[i].beforeupdate[a]=o:"UPDATE"==o.action&&"AFTER"==o.when?s.tables[i].afterupdate[a]=o:"UPDATE"==o.action&&"INSTEADOF"==o.when&&(s.tables[i].insteadofupdate[a]=o),n&&(r=n(r)),r},ne.DropTrigger=function(e){return ne.extend(this,e)},ne.DropTrigger.prototype.toString=function(){var e="DROP TRIGGER "+this.trigger;return e},ne.DropTrigger.prototype.execute=function(e,t,n){var r=0,a=T.databases[e],s=this.trigger,i=a.triggers[s];if(!i)throw new Error("Trigger not found");return r=1,delete a.tables[i].beforeinsert[s],delete a.tables[i].afterinsert[s],delete a.tables[i].insteadofinsert[s],delete a.tables[i].beforedelte[s],delete a.tables[i].afterdelete[s],delete a.tables[i].insteadofdelete[s],delete a.tables[i].beforeupdate[s],delete a.tables[i].afterupdate[s],delete a.tables[i].insteadofupdate[s],delete a.triggers[s],n&&(r=n(r)),r},ne.Delete=function(e){return ne.extend(this,e)},ne.Delete.prototype.toString=function(){var e="DELETE FROM "+this.table.toString();return this.where&&(e+=" WHERE "+this.where.toString()),e},ne.Delete.prototype.compile=function(e){e=this.table.databaseid||e;var t,n=this.table.tableid,r=T.databases[e];if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var a=new Function("r,params,alasql","var y;return ("+this.where.toJS("r","")+")").bind(this);t=function(t,s){if(r.engineid&&T.engines[r.engineid].deleteFromTable)return T.engines[r.engineid].deleteFromTable(e,n,a,t,s);T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].loadTableData(e,n);for(var i=r.tables[n],o=i.data.length,u=[],c=0,l=i.data.length;l>c;c++)a(i.data[c],t,T)?i["delete"]&&i["delete"](c,t,T):u.push(i.data[c]);i.data=u;var h=o-i.data.length;return T.options.autocommit&&r.engineid&&"LOCALSTORAGE"==r.engineid&&T.engines[r.engineid].saveTableData(e,n),s&&s(h),h}}else t=function(t,a){T.options.autocommit&&r.engineid&&T.engines[r.engineid].loadTableData(e,n);var s=r.tables[n];s.dirty=!0;var i=r.tables[n].data.length;r.tables[n].data.length=0;for(var o in r.tables[n].uniqs)r.tables[n].uniqs[o]={};for(var o in r.tables[n].indices)r.tables[n].indices[o]={};return T.options.autocommit&&r.engineid&&T.engines[r.engineid].saveTableData(e,n),a&&a(i),i};return t},ne.Delete.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Update=function(e){return ne.extend(this,e)},ne.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()),e},ne.SetColumn=function(e){return ne.extend(this,e)},ne.SetColumn.prototype.toString=function(){return this.column.toString()+"="+this.expression.toString()},ne.Update.prototype.compile=function(e){e=this.table.databaseid||e;var t=this.table.tableid;if(this.where){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query.modifier="RECORDSET",n}));var n=new Function("r,params,alasql","var y;return "+this.where.toJS("r","")).bind(this)}var r=T.databases[e].tables[t].onupdatefns||"";r+=";",this.columns.forEach(function(e){r+="r['"+e.column.columnid+"']="+e.expression.toJS("r","")+";"});var a=new Function("r,params,alasql","var y;"+r),s=function(r,s){var i=T.databases[e];if(i.engineid&&T.engines[i.engineid].updateTable)return T.engines[i.engineid].updateTable(e,t,a,n,r,s);T.options.autocommit&&i.engineid&&T.engines[i.engineid].loadTableData(e,t);var o=i.tables[t];if(!o)throw new Error("Table '"+t+"' not exists");for(var u=0,c=0,l=o.data.length;l>c;c++)n&&!n(o.data[c],r,T)||(o.update?o.update(a,c,r):a(o.data[c],r,T),u++);return T.options.autocommit&&i.engineid&&T.engines[i.engineid].saveTableData(e,t),s&&s(u),u};return s},ne.Update.prototype.execute=function(e,t,n){return this.compile(e)(t,n)},ne.Merge=function(e){return ne.extend(this,e)},ne.Merge.prototype.toString=function(){var e="MERGE ";return e+=this.into.tableid+" ",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(function(t){e+="WHEN ",t.matched||(e+="NOT "),e+="MATCHED ",t.bytarget&&(e+="BY TARGET "),t.bysource&&(e+="BY SOURCE "),t.expr&&(e+="AND "+t.expr.toString()+" "),e+="THEN ",t.action["delete"]&&(e+="DELETE "),t.action.insert&&(e+="INSERT ",t.action.columns&&(e+="("+t.action.columns.toString()+") "),t.action.values&&(e+="VALUES ("+t.action.values.toString()+") "),t.action.defaultvalues&&(e+="DEFAULT VALUES ")),t.action.update&&(e+="UPDATE ",e+=t.action.update.map(function(e){return e.toString()}).join(",")+" ")}),e},ne.Merge.prototype.execute=function(e,t,n){var r=1;return n&&(r=n(r)),r},ne.CreateDatabase=function(e){return ne.extend(this,e)},ne.CreateDatabase.prototype.toString=function(){var 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(function(e){return e.toString()}).join(", ")+")"),this.as&&(e+=" AS "+this.as),e},ne.CreateDatabase.prototype.execute=function(e,t,n){var r;if(this.args&&this.args.length>0&&(r=this.args.map(function(e){return new Function("params,alasql","var y;return "+e.toJS())(t,T)})),this.engineid){var a=T.engines[this.engineid].createDatabase(this.databaseid,this.args,this.ifnotexists,this.as,n);return a}var s=this.databaseid;if(T.databases[s])throw new Error("Database '"+s+"' already exists");var a=(new T.Database(s),1);return n?n(a):a},ne.AttachDatabase=function(e){return ne.extend(this,e)},ne.AttachDatabase.prototype.toString=function(){var e="ATTACH";return this.engineid&&(e+=" "+this.engineid),e+=" DATABASE "+this.databaseid,args&&(e+="(",args.length>0&&(e+=args.map(function(e){return e.toString()}).join(", ")),e+=")"),this.as&&(e+=" AS "+this.as),e},ne.AttachDatabase.prototype.execute=function(e,t,n){if(!T.engines[this.engineid])throw new Error('Engine "'+this.engineid+'" is not defined.');var r=T.engines[this.engineid].attachDatabase(this.databaseid,this.as,this.args,t,n);return r},ne.DetachDatabase=function(e){return ne.extend(this,e); +},ne.DetachDatabase.prototype.toString=function(){var e="DETACH";return e+=" DATABASE "+this.databaseid},ne.DetachDatabase.prototype.execute=function(e,t,n){if(!T.databases[this.databaseid].engineid)throw new Error('Cannot detach database "'+this.engineid+'", because it was not attached.');var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a])delete T.databases[a],a==T.useid&&T.use(),r=1;else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.UseDatabase=function(e){return ne.extend(this,e)},ne.UseDatabase.prototype.toString=function(){return"USE DATABASE "+this.databaseid},ne.UseDatabase.prototype.execute=function(e,t,n){var r=this.databaseid;if(!T.databases[r])throw new Error("Database '"+r+"' does not exist");T.use(r);var a=1;return n&&n(a),a},ne.DropDatabase=function(e){return ne.extend(this,e)},ne.DropDatabase.prototype.toString=function(){var e="DROP";return this.ifexists&&(e+=" IF EXISTS"),e+=" DATABASE "+this.databaseid},ne.DropDatabase.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].dropDatabase(this.databaseid,this.ifexists,n);var r,a=this.databaseid;if(a==T.DEFAULTDATABASEID)throw new Error("Drop of default database is prohibited");if(T.databases[a]){if(T.databases[a].engineid)throw new Error("Cannot drop database '"+a+"', because it is attached. Detach it.");delete T.databases[a],a==T.useid&&T.use(),r=1}else{if(!this.ifexists)throw new Error("Database '"+a+"' does not exist");r=0}return n&&n(r),r},ne.Declare=function(e){return ne.extend(this,e)},ne.Declare.prototype.toString=function(){var e="DECLARE ";return this.declares&&this.declares.length>0&&(e=this.declares.map(function(e){var t="";return t+="@"+e.variable+" ",t+=e.dbtypeid,this.dbsize&&(t+="("+this.dbsize,this.dbprecision&&(t+=","+this.dbprecision),t+=")"),e.expression&&(t+=" = "+e.expression.toString()),t}).join(",")),e},ne.Declare.prototype.execute=function(e,t,n){var r=1;return this.declares&&this.declares.length>0&&this.declares.map(function(e){var n=e.dbtypeid;T.fn[n]||(n=n.toUpperCase()),T.declares[e.variable]={dbtypeid:n,dbsize:e.dbsize,dbprecision:e.dbprecision},e.expression&&(T.vars[e.variable]=new Function("params,alasql","return "+e.expression.toJS("({})","",null))(t,T),T.declares[e.variable]&&(T.vars[e.variable]=T.stdfn.CONVERT(T.vars[e.variable],T.declares[e.variable])))}),n&&(r=n(r)),r},ne.ShowDatabases=function(e){return ne.extend(this,e)},ne.ShowDatabases.prototype.toString=function(){var e="SHOW DATABASES";return this.like&&(e+="LIKE "+this.like.toString()),e},ne.ShowDatabases.prototype.execute=function(e,t,n){if(this.engineid)return T.engines[this.engineid].showDatabases(this.like,n);var r=this,a=[];for(dbid in T.databases)a.push({databaseid:dbid});return r.like&&a&&a.length>0&&(a=a.filter(function(e){return T.utils.like(r.like.value,e.databaseid)})),n&&n(a),a},ne.ShowTables=function(e){return ne.extend(this,e)},ne.ShowTables.prototype.toString=function(){var e="SHOW TABLES";return this.databaseid&&(e+=" FROM "+this.databaseid),this.like&&(e+=" LIKE "+this.like.toString()),e},ne.ShowTables.prototype.execute=function(e,t,n){var r=T.databases[this.databaseid||e],a=this,s=[];for(tableid in r.tables)s.push({tableid:tableid});return a.like&&s&&s.length>0&&(s=s.filter(function(e){return T.utils.like(a.like.value,e.tableid)})),n&&n(s),s},ne.ShowColumns=function(e){return ne.extend(this,e)},ne.ShowColumns.prototype.toString=function(){var e="SHOW COLUMNS";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowColumns.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n&&n.columns){var r=n.columns.map(function(e){return{columnid:e.columnid,dbtypeid:e.dbtypeid,dbsize:e.dbsize}});return r}return[]},ne.ShowIndex=function(e){return ne.extend(this,e)},ne.ShowIndex.prototype.toString=function(){var e="SHOW INDEX";return this.table.tableid&&(e+=" FROM "+this.table.tableid),this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowIndex.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid],r=[];if(n&&n.indices)for(var a in n.indices)r.push({hh:a,len:Object.keys(n.indices[a]).length});return r},ne.ShowCreateTable=function(e){return ne.extend(this,e)},ne.ShowCreateTable.prototype.toString=function(){var e="SHOW CREATE TABLE "+this.table.tableid;return this.databaseid&&(e+=" FROM "+this.databaseid),e},ne.ShowCreateTable.prototype.execute=function(e){var t=T.databases[this.databaseid||e],n=t.tables[this.table.tableid];if(n){var r="CREATE TABLE "+this.table.tableid+" (",a=[];return n.columns&&(n.columns.forEach(function(e){var t=e.columnid+" "+e.dbtypeid;e.dbsize&&(t+="("+e.dbsize+")"),e.primarykey&&(t+=" PRIMARY KEY"),a.push(t)}),r+=a.join(", ")),r+=")"}throw new Error('There is no such table "'+this.table.tableid+'"')},ne.SetVariable=function(e){return ne.extend(this,e)},ne.SetVariable.prototype.toString=function(){var e="SET ";return"undefined"!=typeof this.value&&(e+=this.variable.toUpperCase()+" "+(this.value?"ON":"OFF")),this.expression&&(e+=this.method+this.variable+" = "+this.expression.toString()),e},ne.SetVariable.prototype.execute=function(e,t,n){if("undefined"!=typeof this.value){var r=this.value;"ON"==r?r=!0:"OFF"==r&&(r=!1),T.options[this.variable]=r}else if(this.expression){this.exists&&(this.existsfn=this.exists.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n})),this.queries&&(this.queriesfn=this.queries.map(function(t){var n=t.compile(e);return n.query&&!n.query.modifier&&(n.query.modifier="RECORDSET"),n}));var a=new Function("params,alasql","return "+this.expression.toJS("({})","",null)).bind(this)(t,T);if(T.declares[this.variable]&&(a=T.stdfn.CONVERT(a,T.declares[this.variable])),this.props&&this.props.length>0){if("@"==this.method)var s="alasql.vars['"+this.variable+"']";else var s="params['"+this.variable+"']";s+=this.props.map(function(e){return"string"==typeof e?"['"+e+"']":"number"==typeof e?"["+e+"]":"["+e.toJS()+"]"}).join(),new Function("value,params,alasql","var y;"+s+"=value")(a,t,T)}else"@"==this.method?T.vars[this.variable]=a:t[this.variable]=a}var a=1;return n&&(a=n(a)),a},T.test=function(e,t,n){if(0===arguments.length)return void T.log(T.con.results);if(1===arguments.length){var r=Date.now();return n(),void T.con.log(Date.now()-r)}2===arguments.length&&(n=t,t=1);for(var r=Date.now(),a=0;t>a;a++)n();T.con.results[e]=Date.now()-r},T.log=function(e,t){var n=T.useid,r=T.options.logtarget;x.isNode&&(r="console");var a;if(a="string"==typeof e?T(e,t):e,"console"===r||x.isNode)"string"==typeof e&&T.options.logprompt&&console.log(n+">",e),a instanceof Array&&console.table?console.table(a):console.log(fe(a));else{var s;s="output"===r?document.getElementsByTagName("output")[0]:"string"==typeof r?document.getElementById(r):r;var i="";if("string"==typeof e&&T.options.logprompt&&(i+="

    "+T.pretty(e)+"
    "),a instanceof Array)if(0===a.length)i+="

    [ ]

    ";else if("object"!=typeof a[0]||a[0]instanceof Array)for(var o=0,u=a.length;u>o;o++)i+="

    "+m(a[o])+"

    ";else i+=m(a);else i+=m(a);s.innerHTML+=i}},T.clear=function(){var e=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.clear&&console.clear();else{var t;t="output"===e?document.getElementsByTagName("output")[0]:"string"==typeof e?document.getElementById(e):e,t.innerHTML=""}},T.write=function(e){var t=T.options.logtarget;if(x.isNode||x.isMeteorServer)console.log&&console.log(e);else{var n;n="output"===t?document.getElementsByTagName("output")[0]:"string"==typeof t?document.getElementById(t):t,n.innerHTML+=e}},T.prompt=function(e,t,n){if(x.isNode)throw new Error("The prompt not realized for Node.js");var r=0;if("string"==typeof e&&(e=document.getElementById(e)),"string"==typeof t&&(t=document.getElementById(t)),t.textContent=T.useid,n){T.prompthistory.push(n),r=T.prompthistory.length;try{var a=Date.now();T.log(n),T.write('

    '+(Date.now()-a)+" ms

    ")}catch(s){T.write("

    "+olduseid+"> "+sql+"

    "),T.write('

    '+s+"

    ")}}var i=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],i,500),e.onkeydown=function(n){if(13===n.which){var a=e.value,s=T.useid;e.value="",T.prompthistory.push(a),r=T.prompthistory.length;try{var i=Date.now();T.log(a),T.write('

    '+(Date.now()-i)+" ms

    ")}catch(o){T.write("

    "+s+"> "+T.pretty(a,!1)+"

    "),T.write('

    '+o+"

    ")}e.focus(),t.textContent=T.useid;var u=e.getBoundingClientRect().top+document.getElementsByTagName("body")[0].scrollTop;E(document.getElementsByTagName("body")[0],u,500)}else 38===n.which?(r--,0>r&&(r=0),T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault())):40===n.which&&(r++,r>=T.prompthistory.length?(r=T.prompthistory.length,e.value=""):T.prompthistory[r]&&(e.value=T.prompthistory[r],n.preventDefault()))}},ne.BeginTransaction=function(e){return ne.extend(this,e)},ne.BeginTransaction.prototype.toString=function(){return"BEGIN TRANSACTION"},ne.BeginTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].begin(e,n):(n&&n(r),r)},ne.CommitTransaction=function(e){return ne.extend(this,e)},ne.CommitTransaction.prototype.toString=function(){return"COMMIT TRANSACTION"},ne.CommitTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[T.useid].engineid].commit(e,n):(n&&n(r),r)},ne.RollbackTransaction=function(e){return ne.extend(this,e)},ne.RollbackTransaction.prototype.toString=function(){return"ROLLBACK TRANSACTION"},ne.RollbackTransaction.prototype.execute=function(e,t,n){var r=1;return T.databases[e].engineid?T.engines[T.databases[e].engineid].rollback(e,n):(n&&n(r),r)},T.options.tsql&&(T.stdfn.OBJECT_ID=function(e,t){"undefined"==typeof t&&(t="T"),t=t.toUpperCase();var n=e.split("."),r=T.useid,a=n[0];2==n.length&&(r=n[0],a=n[1]);var s=T.databases[r].tables;r=T.databases[r].databaseid;for(var i in s)if(i==a){if(s[i].view&&"V"==t)return r+"."+i;if(!s[i].view&&"T"==t)return r+"."+i;return}}),T.options.mysql,(T.options.mysql||T.options.sqlite)&&(T.from.INFORMATION_SCHEMA=function(e,t,n,r,a){if("VIEWS"==e||"TABLES"==e){var s=[];for(var i in T.databases){var o=T.databases[i].tables;for(var u in o)(o[u].view&&"VIEWS"==e||!o[u].view&&"TABLES"==e)&&s.push({TABLE_CATALOG:i,TABLE_NAME:u})}return n&&(s=n(s,r,a)),s}throw new Error("Unknown INFORMATION_SCHEMA table")}),T.options.postgres,T.options.oracle,T.options.sqlite,T.into.SQL=function(e,t,n,r,a){var s;"object"==typeof e&&(t=e,e=void 0);var i={};if(T.utils.extend(i,t),"undefined"==typeof i.tableid)throw new Error("Table for INSERT TO is not defined.");var o="";0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));for(var u=0,c=n.length;c>u;u++)o+="INSERT INTO "+t.tableid+"(",o+=r.map(function(e){return e.columnid}).join(","),o+=") VALUES (",o+=r.map(function(e){var t=n[u][e.columnid];return e.typeid?"STRING"!=e.typeid&&"VARCHAR"!=e.typeid&&"NVARCHAR"!=e.typeid&&"CHAR"!=e.typeid&&"NCHAR"!=e.typeid||(t="'"+C(t)+"'"):"string"==typeof t&&(t="'"+C(t)+"'"),t}),o+=");\n";return s=T.utils.saveFile(e,o),a&&(s=a(s)),s},T.into.HTML=function(e,t,n,r,a){var s=1;if("object"!=typeof exports){var i={};T.utils.extend(i,t);var o=document.querySelector(e);if(!o)throw new Error("Selected HTML element is not found");0==r.length&&"object"==typeof n[0]&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}}));var u=document.createElement("table"),c=document.createElement("thead");if(u.appendChild(c),i.headers){for(var l=document.createElement("tr"),h=0;h0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s=n.length,i="";if(n.length>0){var o=r[0].columnid;i+=n.map(function(e){return e[o]}).join("\n")}return s=T.utils.saveFile(e,i),a&&(s=a(s)),s},T.into.TAB=T.into.TSV=function(e,t,n,r,a){var s={};return T.utils.extend(s,t),s.separator=" ",T.into.CSV(e,s,n,r,a)},T.into.CSV=function(e,t,n,r,a){0==r.length&&n.length>0&&(r=Object.keys(n[0]).map(function(e){return{columnid:e}})),"object"==typeof e&&(t=e,e=void 0);var s={};s.separator=";",s.quote='"',T.utils.extend(s,t);var i=n.length,o="";return s.headers&&(o+=s.quote+r.map(function(e){return e.columnid.trim()}).join(s.quote+s.separator+s.quote)+s.quote+"\r\n"),n.forEach(function(e,t){o+=r.map(function(t){var n=e[t.columnid];return n=(n+"").replace(new RegExp("\\"+s.quote,"g"),'""'),+n!=n&&(n=s.quote+n+s.quote),n}).join(s.separator)+"\r\n"}),i=T.utils.saveFile(e,o),a&&(i=a(i)),i},T.into.XLS=function(e,t,n,r,a){function s(){var e=' ",e+=""}return"undefined"!=typeof o.columns?r=o.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof o.column&&Y(e,o.column),"undefined"==typeof e.width&&(o.column&&"undefined"!=o.column.width?e.width=o.column.width:e.width="120px"),"number"==typeof e.width&&(e.width=e.width+"px"),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),o.headers&&o.headers instanceof Array&&(e.title=o.headers[t])}),e+="",r.forEach(function(t){e+=''}),e+="",o.headers&&(e+="",e+="",r.forEach(function(t,n){e+="0&&n.forEach(function(n,a){if(!(a>o.limit)){e+=""}),e+=""}}),e+="",e+="",e+="",e+=""}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets&&(i=t.sheets);var o={};"undefined"!=typeof i.Sheet1?o=i[0]:"undefined"!=typeof t&&(o=t),"undefined"==typeof o.sheetid&&(o.sheetid="Sheet1");var u=s(),c=T.utils.saveFile(e,u);return a&&(c=a(c)),c},T.into.XLSXML=function(e,t,n,r,a){function s(){function e(e){var t="";for(var n in e){t+="<"+n;for(var r in e[n])t+=" ",t+="x:"==r.substr(0,2)?r:"ss:",t+=r+'="'+e[n][r]+'"';t+="/>"}var a=V(t);return u[a]||(u[a]={styleid:c},s+='",c++),"s"+u[a].styleid}var a=' 0 ',s="",o=" ",u={},c=62;for(var l in i){var h=i[l];"undefined"!=typeof h.columns?r=h.columns:0==r.length&&n.length>0&&"object"==typeof n[0]&&(r=n[0]instanceof Array?n[0].map(function(e,t){return{columnid:t}}):Object.keys(n[0]).map(function(e){return{columnid:e}})),r.forEach(function(e,t){"undefined"!=typeof h.column&&Y(e,h.column),"undefined"==typeof e.width&&(h.column&&"undefined"!=typeof h.column.width?e.width=h.column.width:e.width=120),"number"==typeof e.width&&(e.width=e.width),"undefined"==typeof e.columnid&&(e.columnid=t),"undefined"==typeof e.title&&(e.title=""+e.columnid.trim()),h.headers&&h.headers instanceof Array&&(e.title=h.headers[idx])}),o+=' ',r.forEach(function(e,t){o+=''}),h.headers&&(o+='',r.forEach(function(t,n){if(o+="0&&n.forEach(function(n,a){if(!(a>h.limit)){var s={};if(Y(s,h.row),h.rows&&h.rows[a]&&Y(s,h.rows[a]),o+="';var b=u.format;if("undefined"==typeof c)o+="";else if("undefined"!=typeof b)if("function"==typeof b)o+=b(c);else{if("string"!=typeof b)throw new Error("Unknown format type. Should be function or string");o+=c}else o+="number"==l||"date"==l?c.toString():"money"==l?(+c).toFixed(2):c;o+=""}),o+=""}}),o+="
    "}return o+="
    ",a+s+o}"object"==typeof e&&(t=e,e=void 0);var i={};t&&t.sheets?i=t.sheets:i.Sheet1=t;var o=T.utils.saveFile(e,s());return a&&(o=a(o)),o},T.into.XLSX=function(e,t,n,r,s){function i(){"object"==typeof t&&t instanceof Array?n&&n.length>0&&n.forEach(function(e,n){o(t[n],e,void 0,n+1)}):o(t,n,r,1),u(s)}function o(e,t,n,r){var a={sheetid:"Sheet "+r,headers:!0};T.utils.extend(a,e),(!n||0==n.length)&&t.length>0&&(n=Object.keys(t[0]).map(function(e){return{columnid:e}}));var s={};h.SheetNames.indexOf(a.sheetid)>-1?s=h.Sheets[a.sheetid]:(h.SheetNames.push(a.sheetid),h.Sheets[a.sheetid]={},s=h.Sheets[a.sheetid]);var i="A1";a.range&&(i=a.range);var o=T.utils.xlscn(i.match(/[A-Z]+/)[0]),u=+i.match(/[0-9]+/)[0]-1;if(h.Sheets[a.sheetid]["!ref"])var c=h.Sheets[a.sheetid]["!ref"],l=T.utils.xlscn(c.match(/[A-Z]+/)[0]),d=+c.match(/[0-9]+/)[0]-1;else var l=1,d=1;var f=Math.max(o+n.length,l),p=Math.max(u+t.length+2,d),b=u+1;h.Sheets[a.sheetid]["!ref"]="A1:"+T.utils.xlsnc(f)+p,a.headers&&(n.forEach(function(e,t){s[T.utils.xlsnc(o+t)+""+b]={v:e.columnid.trim()}}),b++);for(var g=0;g=i;i++)s.push(i);return n&&(s=n(s,r,a)),s},T.from.FILE=function(e,t,n,r,a){var s;if("string"==typeof e)s=e;else{if(!(e instanceof Event))throw new Error("Wrong usage of FILE() function");s=e.target.files[0].name}var i=s.split("."),o=i[i.length-1].toUpperCase();if(T.from[o])return T.from[o](e,t,n,r,a);throw new Error("Cannot recognize file type for loading")},T.from.JSON=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=JSON.parse(e),n&&(s=n(s,r,a))}),s},T.from.TXT=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=e.split(/\r?\n/),""===s[s.length-1]&&s.pop();for(var t=0,i=s.length;i>t;t++)s[t]==+s[t]&&(s[t]=+s[t]),s[t]=[s[t]];n&&(s=n(s,r,a))}),s},T.from.TAB=T.from.TSV=function(e,t,n,r,a){return t=t||{},t.separator=" ",T.from.CSV(e,t,n,r,a)},T.from.CSV=function(e,t,n,r,a){var s={separator:",",quote:'"',headers:!0};T.utils.extend(s,t);var i,o;return T.utils.loadFile(e,!!n,function(e){function t(){if(g>=b)return f;if(c)return c=!1,d;var t=g;if(e.charCodeAt(t)===h){for(var n=t;n++g;){var r=e.charCodeAt(g++),a=1;if(10===r)c=!0;else if(13===r)c=!0,10===e.charCodeAt(g)&&(++g,++a);else if(r!==l)continue;return e.substring(t,g-a)}return e.substring(t)}for(var u,c,l=s.separator.charCodeAt(0),h=s.quote.charCodeAt(0),d={},f={},p=[],b=e.length,g=0,m=0;(u=t())!==f;){for(var v=[];u!==d&&u!==f;)v.push(u),u=t();if(s.headers){if(0===m){if("boolean"==typeof s.headers)o=v;else if(s.headers instanceof Array){o=s.headers;var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}}else{var E={};o.forEach(function(e,t){E[e]=v[t],"undefined"!=typeof E[e]&&0!==E[e].length&&E[e].trim()==+E[e]&&(E[e]=+E[e])}),p.push(E)}m++}else p.push(v)}if(i=p,s.headers&&a&&a.sources&&a.sources[r]){var y=a.sources[r].columns=[];o.forEach(function(e){y.push({columnid:e})})}n&&(i=n(i,r,a))}),i},T.from.XLS=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsjs");else if(s=x.global.XLS,!s)throw new Error("XLS library not found");return y(s,e,t,n,r,a)},T.from.XLSX=function(e,t,n,r,a){var s;if(x.isNode||x.isBrowserify)s=require("xlsx");else if(s=x.global.XLSX,!s)throw new Error("XLSX library not found");return y(s,e,t,n,r,a)},T.from.XML=function(e,t,n,r,a){var s;return T.utils.loadFile(e,!!n,function(e){s=S(e).root,n&&(s=n(s,r,a))}),s},T.from.GEXF=function(e,t,n,r,a){var s;return T("SEARCH FROM XML("+e+")",[],function(e){s=e,console.log(s),n&&(s=n(s))}),s},ne.Help=function(e){return ne.extend(this,e)},ne.Help.prototype.toString=function(){var e="HELP";return this.subject&&(e+=" "+this.subject),e},helpdocs=[{command:"ALTER TABLE table RENAME TO table"},{command:"ALTER TABLE table ADD COLUMN column coldef"},{command:"ALTER TABLE table MODIFY COLUMN column coldef"},{command:"ALTER TABLE table RENAME COLUMN column TO column"},{command:"ALTER TABLE table DROP column"},{command:"ATTACH engine DATABASE database"},{command:"ASSERT value"},{command:"BEGIN [TRANSACTION]"},{command:"COMMIT [TRANSACTION]"},{command:"CREATE [engine] DATABASE [IF NOT EXISTS] database"},{command:"CREATE TABLE [IF NOT EXISTS] table (column definitions)"},{command:"DELETE FROM table [WHERE expression]"},{command:"DETACH DATABASE database"},{command:"DROP [engine] DATABASE [IF EXISTS] database"},{command:"DROP TABLE [IF EXISTS] table"},{command:"INSERT INTO table VALUES value,..."},{command:"INSERT INTO table DEFAULT VALUES"},{command:"INSERT INTO table SELECT select"},{command:"HELP [subject]"},{command:"ROLLBACK [TRANSACTION]"},{command:"SELECT [modificator] columns [INTO table] [FROM table,...] [[mode] JOIN [ON] [USING]] [WHERE ] [GROUP BY] [HAVING] [ORDER BY] "},{command:"SET option value"},{command:"SHOW [engine] DATABASES"},{command:"SHOW TABLES"},{command:"SHOW CREATE TABLE table"},{command:"UPDATE table SET column1 = expression1, ... [WHERE expression]"},{command:"USE [DATABASE] database"},{command:"expression"},{command:'See also http://github/agershun/alasq for more information'}],ne.Help.prototype.execute=function(e,t,n){var r=[];return this.subject?r.push('See also http://github/agershun/alasq for more information'):r=helpdocs,n&&(r=n(r)),r},ne.Print=function(e){return ne.extend(this,e)},ne.Print.prototype.toString=function(){var e="PRINT";return this.statement&&(e+=" "+this.statement.toString()),e},ne.Print.prototype.execute=function(e,t,n){var r=this,a=1;if(T.precompile(this,e,t),this.exprs&&this.exprs.length>0){var s=this.exprs.map(function(e){var n=new Function("params,alasql,p","var y;return "+e.toJS("({})","",null)).bind(r),a=n(t,T);return fe(a)});console.log.apply(console,s)}else if(this.select){var i=this.select.execute(e,t);console.log(fe(i))}else console.log();return n&&(a=n(a)),a},ne.Source=function(e){return ne.extend(this,e)},ne.Source.prototype.toString=function(){var e="SOURCE";return this.url&&(e+=" '"+this.url+" '"),e},ne.Source.prototype.execute=function(e,t,n){var r;return M(this.url,!!n,function(e){return r=T(e),n&&(r=n(r)),r},function(e){throw e}),r},ne.Require=function(e){return ne.extend(this,e)},ne.Require.prototype.toString=function(){var e="REQUIRE";return this.paths&&this.paths.length>0&&(e+=this.paths.map(function(e){return e.toString()}).join(",")),this.plugins&&this.plugins.length>0&&(e+=this.plugins.map(function(e){return e.toUpperCase()}).join(",")),e},ne.Require.prototype.execute=function(e,t,n){var r=this,a=0,s="";return this.paths&&this.paths.length>0?this.paths.forEach(function(e){M(e.value,!!n,function(e){a++,s+=e,a0?this.plugins.forEach(function(e){T.plugins[e]||M(T.path+"/alasql-"+e.toLowerCase()+".js",!!n,function(i){a++,s+=i,ao;o++)i.add(n[o]);s.oncomplete=function(){r.close(),a&&a(u)}}},ge.fromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=[],i=e.target.result,o=i.transaction([t]),u=o.objectStore(t),c=u.openCursor();c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;t?(s.push(t.value),t["continue"]()):(i.close(),n&&n(s,r,a))}}},ge.deleteFromTable=function(e,t,n,r,a){var s=x.global.indexedDB,i=T.databases[e].ixdbid,o=s.open(i);o.onsuccess=function(e){var s=e.target.result,i=s.transaction([t],"readwrite"),o=i.objectStore(t),u=o.openCursor(),c=0;u.onblocked=function(e){},u.onerror=function(e){},u.onsuccess=function(e){var t=e.target.result;t?(n&&!n(t.value,r)||(t["delete"](),c++),t["continue"]()):(s.close(),a&&a(c))}}},ge.updateTable=function(e,t,n,r,a,s){var i=x.global.indexedDB,o=T.databases[e].ixdbid,u=i.open(o);u.onsuccess=function(e){var i=e.target.result,o=i.transaction([t],"readwrite"),u=o.objectStore(t),c=u.openCursor(),l=0;c.onblocked=function(e){},c.onerror=function(e){},c.onsuccess=function(e){var t=e.target.result;if(t){if(!r||r(t.value,a)){var o=t.value;n(o,a),t.update(o),l++}t["continue"]()}else i.close(),s&&s(l)}}}}var me=T.engines.LOCALSTORAGE=function(){};me.get=function(e){var t=localStorage.getItem(e);if("undefined"!=typeof t){var n=void 0;try{n=JSON.parse(t)}catch(r){throw new Error("Cannot parse JSON object from localStorage"+t)}return n}},me.set=function(e,t){"undefined"==typeof t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},me.storeTable=function(e,t){var n=T.databases[e],r=n.tables[t],a={};a.columns=r.columns,a.data=r.data,a.identities=r.identities,me.set(n.lsdbid+"."+t,a)},me.restoreTable=function(e,t){var n=T.databases[e],r=me.get(n.lsdbid+"."+t),a=new T.Table;for(var s in r)a[s]=r[s];return n.tables[t]=a,a.indexColumns(),a},me.removeTable=function(e,t){var n=T.databases[e];localStorage.removeItem(n.lsdbid+"."+t)},me.createDatabase=function(e,t,n,r,a){var s=1,i=me.get("alasql");if(n&&i&&i.databases&&i.databases[e])s=0;else{if(i||(i={databases:{}}),i.databases&&i.databases[e])throw new Error('localStorage: Cannot create new database "'+e+'" because it already exists');i.databases[e]=!0,me.set("alasql",i),me.set(e,{databaseid:e,tables:{}})}return a&&a(s),s},me.dropDatabase=function(e,t,n){var r=1,a=me.get("alasql");if(t&&a&&a.databases&&!a.databases[e])r=0;else{if(!a){if(t)return 0;throw new Error("There is no any AlaSQL databases in localStorage")}if(a.databases&&!a.databases[e])throw new Error('localStorage: Cannot drop database "'+e+'" because there is no such database');delete a.databases[e],me.set("alasql",a);var s=me.get(e);for(var i in s.tables)localStorage.removeItem(e+"."+i);localStorage.removeItem(e)}return n&&n(r),r},me.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');t||(t=e);var i=new T.Database(t);if(i.engineid="LOCALSTORAGE",i.lsdbid=e,i.tables=me.get(e).tables,!T.options.autocommit&&i.tables)for(var o in i.tables)me.restoreTable(t,o);return a&&(s=a(s)),s},me.showDatabases=function(e,t){var n=[],r=me.get("alasql");if(e)var a=new RegExp(e.value.replace(/\%/g,".*"),"g");if(r&&r.databases){for(dbid in r.databases)n.push({databaseid:dbid});e&&n&&n.length>0&&(n=n.filter(function(e){return e.databaseid.match(a)}))}return t&&t(n),n},me.createTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid,i=me.get(s+"."+t);if(i&&!n)throw new Error('Table "'+t+'" alsready exists in localStorage database "'+s+'"');var o=me.get(s);T.databases[e].tables[t];return o.tables[t]=!0,me.set(s,o),me.storeTable(e,t),r&&r(a),a},me.dropTable=function(e,t,n,r){var a=1,s=T.databases[e].lsdbid;if(T.options.autocommit)var i=me.get(s);else var i=T.databases[e];if(!n&&!i.tables[t])throw new Error('Cannot drop table "'+t+'" in localStorage, because it does not exist');return delete i.tables[t],me.set(s,i),me.removeTable(e,t),r&&r(a),a},me.fromTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,me.restoreTable(e,t).data);return n&&(s=n(s,r,a)),s},me.intoTable=function(e,t,n,r,a){var s=(T.databases[e].lsdbid,n.length),i=me.restoreTable(e,t);return i.data||(i.data=[]),i.data=i.data.concat(n),me.storeTable(e,t),a&&a(s),s},me.loadTableData=function(e,t){T.databases[e],T.databases[e].lsdbid;me.restoreTable(e,t)},me.saveTableData=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid;me.storeTable(r,t),n.tables[t].data=void 0},me.commit=function(e,t){var n=T.databases[e],r=T.databases[e].lsdbid,a={databaseid:r,tables:{}};if(n.tables)for(var s in n.tables)a.tables[s]=!0,me.storeTable(e,s);return me.set(r,a),1},me.begin=me.commit,me.rollback=function(e,t){return};var ve=T.engines.SQLITE=function(){};ve.createDatabase=function(e,t,n,r,a){throw new Error("Connot create SQLITE database in memory. Attach it.")},ve.dropDatabase=function(e){throw new Error("This is impossible to drop SQLite database. Detach it.")},ve.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');if(n[0]&&n[0]instanceof ne.StringValue||n[0]instanceof ne.ParamValue){if(n[0]instanceof ne.StringValue)var i=n[0].value;else if(n[0]instanceof ne.ParamValue)var i=r[n[0].param];return T.utils.loadBinaryFile(i,!0,function(n){var r=new T.Database(t||e);r.engineid="SQLITE",r.sqldbid=e;var s=r.sqldb=new SQL.Database(n);r.tables=[];var i=s.exec("SELECT * FROM sqlite_master WHERE type='table'")[0].values;i.forEach(function(e){r.tables[e[1]]={};var t=r.tables[e[1]].columns=[],n=T.parse(e[4]),a=n.statements[0].columns;a&&a.length>0&&a.forEach(function(e){t.push(e)})}),a(1)},function(e){throw new Error('Cannot open SQLite database file "'+n[0].value+'"')}),s}throw new Error("Cannot attach SQLite database without a file")},ve.fromTable=function(e,t,n,r,a){var s=T.databases[e].sqldb.exec("SELECT * FROM "+t),i=a.sources[r].columns=[];s[0].columns.length>0&&s[0].columns.forEach(function(e){i.push({columnid:e})});var o=[];s[0].values.length>0&&s[0].values.forEach(function(e){var t={};i.forEach(function(n,r){t[n.columnid]=e[r]}),o.push(t)}),n&&n(o,r,a)},ve.intoTable=function(e,t,n,r,a){for(var s=T.databases[e].sqldb,i=0,o=n.length;o>i;i++){var u="INSERT INTO "+t+" (",c=n[i],l=Object.keys(c);u+=l.join(","),u+=") VALUES (",u+=l.map(function(e){return v=c[e],"string"==typeof v&&(v="'"+v+"'"),v}).join(","),u+=")",s.exec(u)}var h=o;return a&&a(h),h};var Ee=T.engines.FILESTORAGE=T.engines.FILE=function(){};if(Ee.createDatabase=function(e,t,n,r,a){var s=1,i=t[0].value;return T.utils.fileExists(i,function(e){if(e){if(n)return s=0,a&&(s=a(s)),s;throw new Error("Cannot create new database file, because it alreagy exists")}var t={tables:{}};T.utils.saveFile(i,JSON.stringify(t),function(e){a&&(s=a(s))})}),s},Ee.dropDatabase=function(e,t,n){var r,a=e.value;return T.utils.fileExists(a,function(e){if(e)r=1,T.utils.deleteFile(a,function(){r=1,n&&(r=n(r))});else{if(!t)throw new Error("Cannot drop database file, because it does not exist");r=0,n&&(r=n(r))}}),r},Ee.attachDatabase=function(e,t,n,r,a){var s=1;if(T.databases[t])throw new Error('Unable to attach database as "'+t+'" because it already exists');var i=new T.Database(t||e);return i.engineid="FILESTORAGE",i.filename=n[0].value,M(i.filename,!!a,function(e){try{i.data=JSON.parse(e)}catch(t){throw new Error("Data in FileStorage database are corrupted")}if(i.tables=i.data.tables,!T.options.autocommit&&i.tables)for(var n in i.tables)i.tables[n].data=i.data[n];a&&(s=a(s))}),s},Ee.createTable=function(e,t,n,r){var a=T.databases[e],s=a.data[t],i=1;if(s&&!n)throw new Error('Table "'+t+'" alsready exists in the database "'+fsdbid+'"');var o=T.databases[e].tables[t];return a.data.tables[t]={columns:o.columns},a.data[t]=[],Ee.updateFile(e),r&&r(i),i},Ee.updateFile=function(e){var t=T.databases[e];return t.issaving?void(t.postsave=!0):(t.issaving=!0,t.postsave=!1,void T.utils.saveFile(t.filename,JSON.stringify(t.data),function(){t.issaving=!1,t.postsave&&setTimeout(function(){Ee.updateFile(e)},50)}))},Ee.dropTable=function(e,t,n,r){var a=1,s=T.databases[e];if(!n&&!s.tables[t])throw new Error('Cannot drop table "'+t+'" in fileStorage, because it does not exist');return delete s.tables[t],delete s.data.tables[t],delete s.data[t],Ee.updateFile(e),r&&r(a),a},Ee.fromTable=function(e,t,n,r,a){var s=T.databases[e],i=s.data[t];return n&&(i=n(i,r,a)),i},Ee.intoTable=function(e,t,n,r,a){var s=T.databases[e],i=n.length,o=s.data[t];return o||(o=[]),s.data[t]=o.concat(n),Ee.updateFile(e),a&&a(i),i},Ee.loadTableData=function(e,t){var n=T.databases[e];n.tables[t].data=n.data[t]},Ee.saveTableData=function(e,t){var n=T.databases[e];n.data[t]=n.tables[t].data,n.tables[t].data=null,Ee.updateFile(e)},Ee.commit=function(e,t){var n=T.databases[e];if(n.tables)for(var r in n.tables)n.data.tables[r]={columns:n.tables[r].columns},n.data[r]=n.tables[r].data;return Ee.updateFile(e),1},Ee.begin=Ee.commit,Ee.rollback=function(e,t){function n(){setTimeout(function(){return a.issaving?n():void T.loadFile(a.filename,!!t,function(n){a.data=n,a.tables={};for(var s in a.data.tables){var i=new T.Table({columns:a.data.tables[s].columns});Y(i,a.data.tables[s]),a.tables[s]=i,T.options.autocommit||(a.tables[s].data=a.data[s]),a.tables[s].indexColumns()}delete T.databases[e],T.databases[e]=new T.Database(e),Y(T.databases[e],a),T.databases[e].engineid="FILESTORAGE",T.databases[e].filename=a.filename,t&&(r=t(r))})},100)}var r=1,a=T.databases[e];a.dbversion++,n()},x.isBrowser&&!x.isWebWorker){var ye=ye||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,s=function(n){var r=t.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},i=e.webkitRequestFileSystem,o=e.requestFileSystem||i||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",l=0,h=500,d=function(t){var r=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?r():setTimeout(r,h)},f=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var a=e["on"+t[r]];if("function"==typeof a)try{a.call(e,n||e)}catch(s){u(s)}}},p=function(t,u){var h,p,b,g=this,m=t.type,v=!1,E=function(){f(g,"writestart progress write writeend".split(" "))},y=function(){if(!v&&h||(h=n().createObjectURL(t)),p)p.location.href=h;else{var r=e.open(h,"_blank");void 0==r&&"undefined"!=typeof safari&&(e.location.href=h)}g.readyState=g.DONE,E(),d(h)},S=function(e){return function(){return g.readyState!==g.DONE?e.apply(this,arguments):void 0}},T={create:!0,exclusive:!1};return g.readyState=g.INIT,u||(u="download"),a?(h=n().createObjectURL(t),r.href=h,r.download=u,s(r),g.readyState=g.DONE,E(),void d(h)):(/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)&&(t=new Blob(["\ufeff",t],{type:t.type})),e.chrome&&m&&m!==c&&(b=t.slice||t.webkitSlice,t=b.call(t,0,t.size,c),v=!0),i&&"download"!==u&&(u+=".download"),(m===c||i)&&(p=e),o?(l+=t.size,void o(e.TEMPORARY,l,S(function(e){e.root.getDirectory("saved",T,S(function(e){var n=function(){e.getFile(u,T,S(function(e){e.createWriter(S(function(n){n.onwriteend=function(t){p.location.href=e.toURL(),g.readyState=g.DONE,f(g,"writeend",t),d(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=g["on"+e]}),n.write(t),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),y)}),y)};e.getFile(u,{create:!1},S(function(e){e.remove(),n()}),S(function(e){e.code===e.NOT_FOUND_ERR?n():y()}))}),y)}),y)):void y())},b=p.prototype,g=function(e,t){return new p(e,t)};return b.abort=function(){var e=this;e.readyState=e.DONE,f(e,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=ye:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return ye}),T.utils.saveAs=ye}return new z("alasql"),T.use("alasql"),T}),"object"!=typeof exports&&(alasql.worker=function(e,t,n){if(e===!0&&(e=void 0),"undefined"==typeof e)for(var r=document.getElementsByTagName("script"),a=0;a1){var o="REQUIRE "+t.map(function(e){return'"'+e+'"'}).join(",");alasql(o,[],n)}}else if(e===!1)return void delete alasql.webworker}); \ No newline at end of file diff --git a/package.json b/package.json index 30c4cae2ba..fbcbea1d6a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "alasql", "description": "Versatile SQL database for browser or node. Handles relational data and nested JSON (noSQL). Export to and import from Excel, localStorage or IndexedDB", - "version": "0.2.3", + "version": "0.2.4", "author": "Andrey Gershun ", "contributors": [ { @@ -27,29 +27,29 @@ }, "dependencies": { "dom-storage": "^2.0.1", - "es6-promise": "^3.0.2", - "lodash": "^4.0.0", + "es6-promise": "^3.1.2", + "lodash": "^4.6.1", + "request": "^2.69.0", "xlsjs": "^0.7.5", - "xlsx": "^0.8.0", - "request": "^2.67.0" + "xlsx": "^0.8.0" }, "devDependencies": { - "blueimp-md5": "^2.1.0", - "gulp": "^3.9.0", + "blueimp-md5": "^2.3.0", + "gulp": "^3.9.1", "gulp-concat": "^2.6.0", "gulp-dereserve": "^0.2.1", "gulp-rename": "^1.2.2", "gulp-replace": "^0.5.4", - "gulp-shell": "^0.5.0", - "gulp-uglify": "^1.4.1", - "jison": "^0.4.15", - "mocha": "^2.3.0", + "gulp-shell": "^0.5.2", + "gulp-uglify": "^1.5.3", + "jison": "^0.4.17", + "mocha": "^2.4.5", "mversion": "^1.10.0", "npm-check": "^4.0.1", "open": "0.0.5", "strftime": "^0.9.2", "uglifyjs": "^2.4.10", - "yargs": "^3.31.0" + "yargs": "^4.2.0" }, "engines": [ "node" diff --git a/partners/meteor/.versions b/partners/meteor/.versions index 786471c9f6..cc8baab25e 100644 --- a/partners/meteor/.versions +++ b/partners/meteor/.versions @@ -1,4 +1,4 @@ -agershun:alasql@0.2.3 -local-test:agershun:alasql@0.2.3 +agershun:alasql@0.2.4 +local-test:agershun:alasql@0.2.4 meteor@1.1.6 underscore@1.0.3 diff --git a/partners/meteor/package.js b/partners/meteor/package.js index 45a7336fad..2817d3c05b 100644 --- a/partners/meteor/package.js +++ b/partners/meteor/package.js @@ -1,6 +1,6 @@ Package.describe({ name: 'agershun:alasql', - version: '0.2.3', + version: '0.2.4', // Brief, one-line summary of the package. summary: 'AlaSQL - JavaScript SQL database library', // URL to the Git repository containing the source code for this package. diff --git a/test/test429.json b/test/test429.json index a505b6d086..e2875ad89b 100644 --- a/test/test429.json +++ b/test/test429.json @@ -5,7 +5,7 @@ "Atlas": "{\"databaseid\":\"Atlas\",\"tables\":{\"transactions\":true}}", "Atlas.transactions": "{\"columns\":[{\"columnid\":\"transid\",\"dbtypeid\":\"\"},{\"columnid\":\"payee\",\"dbtypeid\":\"\"},{\"columnid\":\"amount\",\"dbtypeid\":\"\"}],\"data\":[],\"identities\":{}}", "test": "{\"databaseid\":\"test\",\"tables\":{\"one\":true}}", - "test.one": "{\"columns\":[{\"columnid\":\"a\",\"dbtypeid\":\"INT\",\"identity\":{\"value\":1,\"step\":1}},{\"columnid\":\"b\",\"dbtypeid\":\"STRING\"}],\"data\":[{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"},{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"}],\"identities\":{\"a\":{\"value\":1,\"step\":1}}}", + "test.one": "{\"columns\":[{\"columnid\":\"a\",\"dbtypeid\":\"INT\",\"identity\":{\"value\":1,\"step\":1}},{\"columnid\":\"b\",\"dbtypeid\":\"STRING\"}],\"data\":[{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"},{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"},{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"},{\"b\":\"one\"},{\"b\":\"two\"},{\"b\":\"three\"},{\"b\":\"four\"}],\"identities\":{\"a\":{\"value\":1,\"step\":1}}}", "ls379": "{\"databaseid\":\"ls379\",\"tables\":{\"one\":true}}", "ls379.one": "{\"columns\":[{\"columnid\":\"a\",\"dbtypeid\":\"INT\"},{\"columnid\":\"b\",\"dbtypeid\":\"STRING\"}],\"data\":[],\"identities\":{}}" } \ No newline at end of file